mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
fda2e6c1b5
MWInternalLinkAnnotation was normalizing spaces to underscores. This is bad. Instead, we now do the following: * Normalize underscores to spaces for display purposes * Store the original title without underscore/space mangling * If the user didn't change the title (display title === original title with s/_/ /g), use the original title. Otherwise use the user's title verbatim, without normalizing either underscores or spaces. Also, per a conversation with Gabriel, we now only restore hrefPrefix when we're also restoring origTitle, otherwise Parsoid will barf. Change-Id: Ia74a493b2bce96c9345b60ed692eeb2e43ebceff |
||
---|---|---|
demos | ||
maintenance | ||
modules | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
CODING.md | ||
LICENSE.txt | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
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