Problems clearing the text in an Editor component

UI Components for Angular
Post Reply
thefatoneinthecorner
Posts: 5
Joined: 21 Apr 2016, 10:41

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 May 2016, 20:49

Please provide steps to replicate the issue.

thefatoneinthecorner
Posts: 5
Joined: 21 Apr 2016, 10:41

05 May 2016, 19:30

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 May 2016, 15:47

@Trypticon please look into this.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests