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:
parent
bca7794c00
commit
f735ae1278
11 changed files with 61 additions and 44 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue