Page MenuHomePhabricator

Allow CodeMirror to be used for other textareas with WikiEditor
Open, Needs TriagePublic

Description

While CodeMirror is extremely helpful for regular wiki editing tools, it has no means for third-party usage outside of #wpTextbox1:

https://github.com/wikimedia/mediawiki-extensions-CodeMirror/blob/master/resources/ext.CodeMirror.js

I think making the code more agnostic and exposing the function for enabling CodeMirror in any other libraries working with WikiEditor, for example, Convenient-Discussions, will be beneficial for them.