From aefe474c3ea06202908f379f491f4c7291368bec Mon Sep 17 00:00:00 2001 From: Wallef Antoine Date: Tue, 4 Dec 2018 10:22:04 +0100 Subject: [PATCH] add element to window.vueTinymce Object --- src/Template/Element/Component/tinymce.ctp | 6 ++++-- webroot/js/element/component/tinymce.js | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Template/Element/Component/tinymce.ctp b/src/Template/Element/Component/tinymce.ctp index 11f965f..a1704d7 100644 --- a/src/Template/Element/Component/tinymce.ctp +++ b/src/Template/Element/Component/tinymce.ctp @@ -1,6 +1,8 @@ diff --git a/webroot/js/element/component/tinymce.js b/webroot/js/element/component/tinymce.js index cc6433c..d76940f 100644 --- a/webroot/js/element/component/tinymce.js +++ b/webroot/js/element/component/tinymce.js @@ -9,6 +9,11 @@ default: function(){return{}} } }, + created: function() + { + if(!scope.vueTinymce) scope.vueTinymce = {} + scope.vueTinymce[this.id] = this + }, computed: { cInit: function()