It's already checked on back end in some places. This is the same value as checking "if (EditorPreference::getPrimaryEditor() === EditorPreference::OPTION_EDITOR_VISUAL)"

Is there an easy way to pass that value from PHP to JS?