Page MenuHomePhabricator

toolbar and header/footer from proofread page on wikisource
Open, MediumPublic


Author: enomil

Toolbar can't be used in the header and footer editform from proofread page extension. The most big wikisources uses this extension, so add #wpHeaderTextbox and #wpFooterTextbox to mediawiki.action.edit.js.

Version: 1.18.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:48 PM
bzimport set Reference to bz31566.
bzimport added a subscriber: Unknown Object (MLST).

enomil wrote:

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

I suggest we add:

".wpEdittoolsText" to the focus policy of mediawiki.action.edit.js.

Then we can add the class wpEdittoolsText to the header and footer fields of ProofreadPage, and to something like the old upload wizard of Commons (bug 31682) and any other field that wants to make use of the editor.

Come to think of it. Only partially solved. The WikiEditor toolbar does not yet have a method of inserting characters into the Header/Footer yet, so this probably needs some additional work.

But at least the Extension:CharInsert icw MediaWiki:Edittools now works again.

If possible, I'd like that toolbar/toolbox tool would act into any box selected with a $( document.activeElement ) selection. I'll try to add this selection into my own scripts; it would be very useful to manage both nsPage header-body-footer and multi-field forms too. I'm not so experienced with jQuery, and I can't understand difference between that selector and a :focus selector.