Last modified: 2013-06-11 23:24:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46555, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44555 - Expose wikitext of template parameters and add basic editing support
Expose wikitext of template parameters and add basic editing support
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
DOM (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: ssastry
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-31 16:59 UTC by Gabriel Wicke
Modified: 2013-06-11 23:24 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gabriel Wicke 2013-01-31 16:59:26 UTC
Expose template parameters in a JSON array as described in https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Non-semantic_parameter_editing, so that the Visual Editor folks can start playing with it.

In a second step, add basic editing support without escaping.

Finally, add escaping for template parameters.

Editing support for page content caught up in a multi-template DOM structure is something we should probably defer for now. It would either require *very* powerful escaping logic (I'd venture the guess that it is actually possible with template interaction), or a wrapper extension tag that enforces DOM nesting for the entire block in both the PHP parser and Parsoid. Until we have that, we should still expose the content as strings as in the spec to provide read-only wikitext context for editors, but ignore changes to those strings when serializing modified template content.
Comment 1 ssastry 2013-02-22 19:09:05 UTC
First committed in: https://gerrit.wikimedia.org/r/#/c/47679/
Update in https://gerrit.wikimedia.org/r/#/c/50345/
Comment 2 ssastry 2013-04-16 23:49:48 UTC
Next piece of the puzzle merged here: https://gerrit.wikimedia.org/r/#/c/57527/
Comment 3 Gabriel Wicke 2013-05-02 00:10:06 UTC
The first iteration on parameter escaping has landed in https://gerrit.wikimedia.org/r/#/c/61635/.
Comment 4 Gabriel Wicke 2013-06-11 23:24:37 UTC
I believe the general functionality is there now. Specific bugs can be reported separately.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links