We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5c6fa commit 3cc563eCopy full SHA for 3cc563e
public/js/lib/editor/index.js
@@ -131,6 +131,17 @@ export default class Editor {
131
}
132
this.eventListeners = {}
133
this.config = config
134
+
135
+ // define modes from mode mime
136
+ let ignoreOverlay = {
137
+ token: function (stream, state) {
138
+ stream.next()
139
+ return null
140
+ }
141
142
+ CodeMirror.defineMode('vega', function (config, modeConfig) {
143
+ return CodeMirror.overlayMode(CodeMirror.getMode(config, 'application/ld+json'), ignoreOverlay)
144
+ })
145
146
147
on (event, cb) {
0 commit comments