chuckh / polymer-quill

Polymer Quill Rich Text Editor
51 stars 29 forks source link

Support js event listener #31

Closed mdevlamynck closed 6 years ago

mdevlamynck commented 6 years ago

If I understand correctly to get the content of a polymer-quill instance I have to add a on-change="callback" attribute.

Is there a way to use a javascript event listener (i.e. d=document.getElementsByTagName('polymer-quill')[0]; d.addEventListener('change', callback))? If not can it be added?

The motivation is that it would be easier to integrate this with a language like elm.

mdevlamynck commented 6 years ago

It actually already works. My bad, turns out I just needed to learn how to use polymer correctly. Sorry for this.