Community Wishlist Survey 2017/Editing/Provide easy interface for replacements in the Visual Editor

From Meta, a Wikimedia project coordination wiki

Provide easy interface for replacements in the Visual Editor

  • Who would benefit: At least fawiki, hewiki, rowiki and ruwiki users, presumably many more
  • Proposed solution:
    What most of the scripts needs are:
    • A utility function for doing replacement (similar to ve.dm.Document.prototype.findText maybe ve.dm.Document.prototype.replaceText)
    • The replacement should be able to keep the annotations
    • Advance use: sometimes (as you can see in fawiki) replacements are context aware. It may be too far to support such complex replacements within ve itself, but providing documentation how to do it would be great.

Discussion[edit]

Voting[edit]