From dbcc573f693cb519cacdc45f008d4115ab928d7a Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 4 Nov 2015 11:35:31 -0700 Subject: [PATCH] Quill DDAU --- app/pods/components/text-editor/component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/pods/components/text-editor/component.js b/app/pods/components/text-editor/component.js index 07c8f7a..01d00fd 100644 --- a/app/pods/components/text-editor/component.js +++ b/app/pods/components/text-editor/component.js @@ -3,7 +3,8 @@ import Ember from 'ember'; export default Ember.Component.extend({ quill: null, - value: null, // passed in + value: null, + update: null, didInsertElement: function() { let quill = new Quill(`#${this.get('elementId')} .editor`, { @@ -22,11 +23,10 @@ export default Ember.Component.extend({ quill.on('text-change', (delta, source) => { if (source === 'user') { - this.set('value', Ember.$(quill.getHTML()).html()); + this.attrs['update'](Ember.$(quill.getHTML()).html()); } }); this.set('quill', quill); }, - });