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
When changing the mode to plain text ('null' or text/palin)
editor.setOption("mode", 'null');
the editor doesn't remove previous syntax highlighting until you refresh it.
To reproduce, open the demo http://codemirror.net/mode/javascript/index.html
In firebug set the mode to plain text
editor.setOption("mode", "text/plain");
The code still use the javascript mode for the existing text.
Set the editor value and see that it is now using the plain text mode:
editor.refresh();
Thanks
The text was updated successfully, but these errors were encountered:
When changing the mode to plain text ('null' or text/palin)
editor.setOption("mode", 'null');
the editor doesn't remove previous syntax highlighting until you refresh it.
To reproduce, open the demo
http://codemirror.net/mode/javascript/index.html
In firebug set the mode to plain text
editor.setOption("mode", "text/plain");
The code still use the javascript mode for the existing text.
Set the editor value and see that it is now using the plain text mode:
editor.refresh();
Thanks
The text was updated successfully, but these errors were encountered: