var s = { attrs: {} }; // Simple tag, reused for a whole lot of tags
var data = {
svg: {
attrs: {
width: null, height: null, viewBox: null
}
},
g: s
};
var globalAttrs = {
id: null,
'class': null,
lang: ["en", "es"],
style: null
};
var text = document.querySelector('textarea');
var myCodeMirror = CodeMirror.fromTextArea(text, {
mode: "svg",
extraKeys: {"Ctrl-Space": "autocomplete"},
});