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

i18n section strings

This commit is contained in:
McMatts 2022-03-10 13:49:19 -05:00
parent f735ae1278
commit ce9c635fb4
7 changed files with 39 additions and 22 deletions

View file

@ -15,6 +15,8 @@ export default Component.extend({
data: "",
didReceiveAttrs() {
this._super();
this.set("data", this.get("meta.rawBody"));
},

View file

@ -30,6 +30,8 @@ export default Component.extend(SectionMixin, {
},
didReceiveAttrs() {
this._super();
let config = {};
try {

View file

@ -36,11 +36,13 @@ export default Component.extend({
this.set('pageBody', body);
},
didInsertElement() {
didInsertElement(...args) {
this._super(...args);
this.attachEditor();
},
willDestroyElement() {
willDestroyElement(...args) {
this._super(...args);
let editor = this.get('codeEditor');
if (this.get('editMode')) {