Tagged: avia layout builder, Code block
Since WordPress is already using CodeMirror on Theme Editor & Plugin Editor, it would be great if we can have it on the Code Block element.
I tried to add it but not yet successful. I can put this on the browser console (after enqueuing the codemirror script in post editor) and it works but not sure if how to automate this when the edit element is triggered?
var editor = CodeMirror.fromTextArea(document.getElementById("aviaTBcontent"), {
lineNumbers: true,
mode: "text/html"
});
Hey MM,
This is an interesting feedback. We would have to add it on the code from our side on the backend JS loaded – we will do suggest to our developers.
Best regards,
Basilis