Hello! We want to add an extension to our gadget, but we do not use textarea with 'wpTextbox1' id. Is it possible to remove this hard-coded element, or somehow add a way to change it from the outside?
CodeEditor has the same problem: T214989
Hello! We want to add an extension to our gadget, but we do not use textarea with 'wpTextbox1' id. Is it possible to remove this hard-coded element, or somehow add a way to change it from the outside?
CodeEditor has the same problem: T214989
I join. There is also an inconsistency in the fact that the button is added to any textarea that fires an wikiEditor.toolbarReady event:
mw.hook('wikiEditor.toolbarReady').add(function ($textarea) {
While the text is inserted only in the #wpTextbox1 element:
$('#wpTextbox1').textSelection('encapsulateSelection', textSelectionOpts);
So, a situation is possible where the text is added to a form different from one that has the button.
Currently, together with T214989: Allow CodeMirror to be used for other textareas with WikiEditor, these are the two only buttons that can not be added and work properly in WikiEditor, attached to an arbitrary textarea. So please fix, Convenient-Discussions needs it so much.