Editor TypeScript

This commit is contained in:
Mo Bitar
2020-04-11 19:42:50 -05:00
parent 16bde8d1d4
commit 2bc3658f1a
15 changed files with 794 additions and 614 deletions

View File

@@ -27,7 +27,7 @@ class RevisionPreviewModalCtrl {
async configure() {
this.note = await this.application.createTemplateItem({
contentType: ContentTypes.Note,
contentType: ContentType.Note,
content: this.content
});
@@ -45,7 +45,7 @@ class RevisionPreviewModalCtrl {
* editor object has non-copyable properties like .window, which cannot be transfered
*/
const editorCopy = await this.application.createTemplateItem({
contentType: ContentTypes.Component,
contentType: ContentType.Component,
content: editorForNote.content
});
this.application.component.setReadonlyStateForComponent(editorCopy, true, true);