Page 1 of 1

Problems clearing the text in an Editor component

Posted: 02 May 2016, 16:28
by thefatoneinthecorner
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.

Re: Problems clearing the text in an Editor component

Posted: 02 May 2016, 20:49
by cagatay.civici
Please provide steps to replicate the issue.

Re: Problems clearing the text in an Editor component

Posted: 05 May 2016, 19:30
by thefatoneinthecorner
Sorry for the delay in getting back to you.

The simplest way to see this behaviour is from your demo page at http://www.primefaces.org/primeng/#/editor.

Do the following:
  • - navigate to the URL and refresh the page.
    - click on the "Clear" button immediately below the first editor.
    - attempt to click into the editor text area.
    - observe that you do not get a text input cursor and character events are ignored.
I get similar behaviour to the above when I use the Editor component in a test program.

I have also noticed that the Clear button doesn't appear to work at all for the second editor on the demo page.

Re: Problems clearing the text in an Editor component

Posted: 06 May 2016, 15:47
by cagatay.civici
@Trypticon please look into this.