Page MenuHomePhabricator

Allow always using the wikitext editor, regardless of user's preferences in an Inputbox
Open, Needs TriagePublic

Description

Related to T204167 and T89341.

It would be helpful to have an option for InputBox to say 1) only allow the WikiText editor, 2) only allow the VE editor, or 3) allow both with the default being the user's preference. Currently it seems like the second option can be done through useve=true and the third option can be done by omitting useve (currently useve check is here), but I'm running into a case where the wikitext editor is desirable due to the preloaded text in a commenttitle InputBox form.

I think it should be fine to still allow manually switching to the visual editor, even if a "force wikitext editor" option was passed (i.e., it shouldn't completely disable the VisualEditor option).

The current actual behavior is if the last used editor was VE (or I assume if "Always give me the visual editor if possible" is set), then that will be the editor used regardless of the InputBox parameters.