1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

i18n section types

This commit is contained in:
McMatts 2022-03-10 12:10:39 -05:00
parent bca7794c00
commit f735ae1278
11 changed files with 61 additions and 44 deletions

View file

@ -67,7 +67,8 @@ export default Component.extend({
}
},
didInsertElement() {
didInsertElement(...args) {
this._super(...args);
var editor = CodeMirror.fromTextArea(document.getElementById(this.get('editorId')), {
theme: "material",
lineNumbers: true,
@ -91,7 +92,8 @@ export default Component.extend({
this.set('codeEditor', editor);
},
willDestroyElement() {
willDestroyElement(...args) {
this._super(...args);
let editor = this.get('codeEditor');
if (!_.isNull(editor)) {