mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
5b4554b47f
Fix the commented-out code: it caused unindent to be triggered by just pressing Shift. ASCII 16 is "data link escape", no idea where that came from, so I removed it and used e.shiftKey instead. Also check whether indent/outdent is even possible before doing it. Currently this is done in a very hacky way (by checking the state of the indent button), ideally we'd refactor things such that toolbar tools can listen for keydowns and intercept them, that would make the code much cleaner and we wouldn't have this problem. Change-Id: I99885ee4b8a79cd24c4958c188addfc2b0453b03 |
||
---|---|---|
api | ||
demos/ve | ||
modules | ||
tests | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
LICENSE.txt | ||
README | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
VisualEditor and Parsoid work together to provide a visual editor for wiki pages. Parsoid is used 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. Both projects are written in JavaScript. Parsoid runs on Node.js while VisualEditor runs in a web browser. For more information about these projects, check out the wiki: * http://www.mediawiki.org/wiki/VisualEditor * http://www.mediawiki.org/wiki/Parsoid