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
require('codemirror/mode/php/php.js')require('codemirror/addon/mode/loadmode.js')// your options// ...// get the mode by findModeByName || findModeByExtension || findModeByMIME || findModeByFileName// like: view-source:https://codemirror.net/demo/loadmode.htmlconstsyntax='php'this.$refs.codemirror.editor.setOption('mode',syntax)CodeMirror.autoLoadMode(this.$refs.codemirror.editor,syntax)
Hi there,
there seems to be a problem when trying to lazy load modes like in the CodeMirror example.
syntax
in this case would be'text/x-php'
or any other of the supported language mime types.Is this a known problem or is some workaround needed? :)
The text was updated successfully, but these errors were encountered: