mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
06c86b3881
Firefox: * Doesn't fire events without a selection, so when all we have is a focusable node, create a dummy selection in the paste target so the browser triggers an event on command+C. Clipboard keys: * Instead of just creating a text hash which may or may not match up with the plain text in the clipboard data, just convert the clipboard store into an array and use the index as the key. Also prepend a random number (clipboardId) so on paste we can verify the copy came from the same CE document. The text hash is now used for validation if only HTML is written to the clipboard. HTML: * Instead letting the browser grab CE HTML, always get DM HTML from the converter as it is cleaner (no phantoms, linefeed markers, extra class names etc.), and will make cross-ve-instance pasting easier in the future. Clipboard overriding: * Always override the clipboard with the above HTML, either using clipboardData.setData if it is available (webkit) or by throwing the HTML into the pasteTarget and selecting it during pre-copy. Bug: 53375 Bug: 49396 Bug: 52096 Change-Id: Id0f39c10818047bb4b8922e97cead153a770757f |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
CODING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorDataModule.php |
VisualEditor
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 VisualEditor and Parsoid pages on mediawiki.
Developing and installing
For information on installing VisualEditor on a local wiki, please see https://www.mediawiki.org/wiki/Extension:VisualEditor
For information about contributing code to VisualEditor, see CODING.md. Patch submissions are reviewed and managed with Gerrit. There is also API documentation available for the VisualEditor.