GWicke has submitted this change and it was merged. Change subject: Added extension content collector to deal with extension content. ......................................................................
Added extension content collector to deal with extension content. * Added a token collector to collect all content between extension tokens and wrap it in a mw:Object/Extension/Content typed span with original source added to the span. The content is not actually processed by the extension since we dont yet have Parsoid-versions of them or have a way to invoke them yet. * VE could just protect the extension content and prevent it from being edited (or allow the text to be edited -- but this might change once extension content is processed). * The serializer simply RTs back the original source. * 2 more tests green and tests on a few pages show that the content is RTing unmodified. Change-Id: I3f0753227777dc82287ca8b2514603947febe4a6 --- A js/lib/ext.ExtensionContentCollector.js M js/lib/mediawiki.parser.js 2 files changed, 60 insertions(+), 6 deletions(-) Approvals: GWicke: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/33699 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3f0753227777dc82287ca8b2514603947febe4a6 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: Subramanya Sastry <[email protected]> Gerrit-Reviewer: GWicke <[email protected]> Gerrit-Reviewer: Subramanya Sastry <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
