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.
Problems clearing the text in an Editor component
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please provide steps to replicate the issue.
-
- Posts: 5
- Joined: 21 Apr 2016, 10:41
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:
I have also noticed that the Clear button doesn't appear to work at all for the second editor on the demo page.
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 have also noticed that the Clear button doesn't appear to work at all for the second editor on the demo page.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
@Trypticon please look into this.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 29 guests