mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
88fc91a292
* Changed PrefixImageOptions so that thumb and thumbnail are distinct key-value pairs. Without this fix, cannot distinguish between thumb=foo.jpg and thumbnail=foo.jpg * Fixed link handler so whitespace is preserved around prefixed image options. * Fixed figure handler to process the 3 different kind of image options: size, simple image options, and prefixed image options. * There is a hack/fixme for "upright: aspect" prefixed image option which needs to be looked into. * Still need to fix uppercasing of the image resource name. With these fixes, the following wikitext roundtrips perfectly (after newline breaks are removed) [[Image:Foo.jpg|thumbnail = 'baby.jpg'|100x100px|center| alt =bbbbb| upright=true|bottom|link='http://foo.bar'| This is a [[Linked Caption]] in the image]] Change-Id: I6606df56874c2b97f00f08cb6bbeaec9878167d3 |
||
---|---|---|
api | ||
demos | ||
modules | ||
tests | ||
.gitignore | ||
.gitreview | ||
ApiVisualEditor.php | ||
README | ||
SpecialVisualEditorSandbox.php | ||
VisualEditor.alias.php | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
We're starting to merge bits from Wikidom and ParserPlayground tests here. Enjoy! Short-term work highlights: * convert parser to wikidom format & using the wikidom serializer * port/update/write more tests * Special: page to host the editor as a standalone demo * Opt-in test mode to switch the editor in on EditPage (initially blank) * Use serializer to save pages from editor * Use parser to load pages into editor Long-term work highlights: * more thorough & bulk testing * more extension support