Skip to content

Commit

Permalink
add element to window.vueTinymce Object
Browse files Browse the repository at this point in the history
  • Loading branch information
awallef committed Dec 4, 2018
1 parent c67dda3 commit aefe474
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Template/Element/Component/tinymce.ctp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- tinymce -->
<script type="text/x-template" id="tinymce">
<div :id="id" class="no-trumbowyg">
<slot/>
<div>
<div :id="id" class="no-trumbowyg">
<slot/>
</div>
</div>
</script>
5 changes: 5 additions & 0 deletions webroot/js/element/component/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
default: function(){return{}}
}
},
created: function()
{
if(!scope.vueTinymce) scope.vueTinymce = {}
scope.vueTinymce[this.id] = this
},
computed:
{
cInit: function()
Expand Down

0 comments on commit aefe474

Please sign in to comment.