Go to file
Trevor Parscal cdec86fb48 (bug 37875) Scroll changes on paste
This solves 2 issues:

1. Paste scrolls to the top of the editable box because we temporarily moved the focus to the paste container, and then moved it back. We solve this by saving/restoring the scroll position.
2. Scroll position adjusts vertically when pasting (using key repeat) because we handle pastes with a setTimeout and multiple paste jobs will pile up before they can be finished. We solve this by disallowing paste until we are done handling the previous one. In the case of key repeat this only is observable as slowing the repeat rate.

Thank you Christian for helping me solve this the old fashioned way - by sacrificing features you don't really need!

Change-Id: I75bcf9843b57cdff0db9b6dea62d66d4d76ac011
2012-12-07 14:58:29 -08:00
demos (bug 42806) Copy/paste errors on unbalanced data 2012-12-07 13:34:28 -08:00
maintenance Clean up, fix errors on demos. 2012-12-04 08:58:20 +01:00
modules (bug 37875) Scroll changes on paste 2012-12-07 14:58:29 -08:00
.gitignore Removed Parsoid-related files from .gitignore 2012-08-26 12:20:06 +03:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
.jshintignore JSHint: Added dotfiles and fixed tons of linting warnings. 2012-07-19 10:01:00 -07:00
.jshintrc inheritClass: Implement inherited 'static' property for classes. 2012-10-09 18:29:41 +00:00
ApiVisualEditor.php (bug 41865) Save page behavior for oldid 2012-12-05 06:44:41 +00:00
AUTHORS.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
CODING.md ve.ui.CommandFactory: Initial implementation 2012-10-24 17:48:16 +00:00
LICENSE.txt Changed to use MIT license per agreement with the VisualEditor team 2012-07-19 13:25:45 -07:00
README.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
VisualEditor.hooks.php (bug 42136) Use user prefs to set initial state of "Watch this". 2012-12-06 15:04:13 -08:00
VisualEditor.i18n.php Add qqq messages for missing i18n strings 2012-12-06 18:45:24 -08:00
VisualEditor.php (bug 42806) Copy/paste errors on unbalanced data 2012-12-07 13:34:28 -08:00
VisualEditorMessagesModule.php (bug 38034) Implement MediaWiki's copyright warning 2012-12-06 06:29:13 +01:00

VisualEditor provides a visual editor for wiki pages. It is written in
JavaScript and runs in a web browser. 

It uses the Parsoid parser to convert wikitext documents to annotated HTML
which the VisualEditor is able to load, modify and emit back to Parsoid at
which point it is converted back into wikitext.

For more information about these projects, check out the wiki:

	* http://www.mediawiki.org/wiki/VisualEditor
	* http://www.mediawiki.org/wiki/Parsoid