mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
ef24ac5879
When converting an element that starts an about group with at least one other element in it, we now only consider models that support about grouping. This prevents the first node from being converted to something else and leaving the others hanging. In practical terms, this means that elements like <link rel="mw:WikiLink/Category" typeof="mw:Object/Template"> get alienated and pull in the rest of their about group, rather than being converted to a category or alienMeta or whatever and leaving the other elements to be converted normally. Added a test case that asserts this. Really the result should be an MWtemplate rather than an alien, but that's a separate issue. Also removed superfluous mustMatchAll checks; we've already filtered the array by the time we get there. Change-Id: I522ba4c56d5bc52c7e9aab1e2535385540c1315d |
||
---|---|---|
.docs | ||
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