Problems clearing the text in an Editor component
Posted: 02 May 2016, 16:28
Hi,
I have discovered that clearing the text in an editor component can leave the editor in a state where it no longer accepts character input. I have noticed this on the PrimeNG demo page http://www.primefaces.org/primeng/#/editor and my own experiments with version 1.0.0-beta.1 (observed with both Chrome 51.0.2704.22 and Safari 9.1 under OS X 10.11.4).
To workaround the problem I had to set the innerHTML of the ql-editor element to a div with an embedded br. Trying to set the model of the component to the same did not work.
I have discovered that clearing the text in an editor component can leave the editor in a state where it no longer accepts character input. I have noticed this on the PrimeNG demo page http://www.primefaces.org/primeng/#/editor and my own experiments with version 1.0.0-beta.1 (observed with both Chrome 51.0.2704.22 and Safari 9.1 under OS X 10.11.4).
To workaround the problem I had to set the innerHTML of the ql-editor element to a div with an embedded br. Trying to set the model of the component to the same did not work.