-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 5.9.4-SNAPSHOT
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Layouts & Widgets, Seam / JSF UI
-
Tags:
On the project layout-demo, the field of the HTML editor is required so an error message should be displayed if the user submits without any content. But, the upgrade of TinyMCE broke this behaviour.
TinyMCE does not work pretty well in an ajax form, that's why we had to remove the editor when submitting the ajax request (see NXP-5578). With the new version, we have to keep this way of handling the editor in an ajax form but when submitting without any content, we don't have an error message warning the user that the field is required.
By default, the editor creates a field "<p> </p>". In the previous version, this tag was removed properly when submitting the request, so the textarea was empty and the required worked fine.
The removal was done when the event "onPostProcess" was fired, a listener is defined on this event and the tag "<p> </p>" has been deleted.
What changed in the new version is when the editor is tagged "removed", no events are fired, so even if the listener is set, nothing happens.
- is required by
-
NXP-12428 Rewrite layout-demo tests using webdriver
- Resolved