You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value for the API parameter [language] is an empty string (''), which sets the editor to plaintext mode. When the [language] parameter is updated, the editor switches to the corresponding language mode. However, it appears that once a language is selected, it is not possible to revert the editor back to plaintext mode by setting [language] to an empty string ('').
Allowing users to switch back to plaintext mode is useful, especially when they test a language that turns out to be unsuitable for the editor’s content.
The default value for the API parameter [language] is an empty string (''), which sets the editor to plaintext mode. When the [language] parameter is updated, the editor switches to the corresponding language mode. However, it appears that once a language is selected, it is not possible to revert the editor back to plaintext mode by setting [language] to an empty string ('').
Allowing users to switch back to plaintext mode is useful, especially when they test a language that turns out to be unsuitable for the editor’s content.
Ref forum: https://discuss.codemirror.net/t/switching-between-plaintext-and-a-language-throws-error/3104
Ref code-editor:
The text was updated successfully, but these errors were encountered: