From 6e98803124354f1f97fd2560bc77c5b1d05bfdcd Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Tue, 28 Feb 2017 11:42:46 +0200 Subject: [PATCH] fix: editor view mode --- app/components/SimpleEditor/ContainerEditor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/SimpleEditor/ContainerEditor.js b/app/components/SimpleEditor/ContainerEditor.js index 011b367..9b74f70 100644 --- a/app/components/SimpleEditor/ContainerEditor.js +++ b/app/components/SimpleEditor/ContainerEditor.js @@ -36,8 +36,7 @@ class ContainerEditor extends SubstanceContainerEditor { this.el.focus() // TODO notworking if (this.isReadOnlyMode()) { - const documentSession = this.getDocumentSession() - documentSession.on('didUpdate', this.disableToolbar, this) + this.editorSession.onUpdate('', this.disableToolbar, this) this.addTargetToLinks() } -- GitLab