Page MenuHomePhabricator

Allow the user to enter JavaScript regular expressions during editing.
Closed, DeclinedPublic

Description

Author: avarab

Description:
This is a feature request for an additional user preference which if enabled
would add an additional textbox to be displayed during editing where regular
expressions to be run on the main input textbox could be performed.

This would be very useful for mass text editing describeable by a patter.


Version: unspecified
Severity: enhancement

Details

Reference
bz1708

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:14 PM
bzimport set Reference to bz1708.
bzimport added a subscriber: Unknown Object (MLST).

mrnobo1024 wrote:

You can do this with a javascript: URL, like this
javascript:t=document.forms['editform'].wpTextbox1;void(t.value=t.value.replace(/foo/g,
'bar'))

You want to copy the text in your favorite editor and use regex
there. The editing box is not meant to emulate emacs / vim :o)

This can be achieved without changes to Mediawiki using Javascript to create
needed components. Marking as WONTFIX.

avarab wrote:

*** Bug 3221 has been marked as a duplicate of this bug. ***