View Full Version : emptyText for htmleditor

26 Feb 2014, 4:17 AM
Hi guys.

Does anyone have a suggestion for how to set up emptyText for a htmleditor field?
(The scenario is I have a list of comments, and an htmleditor field at the bottom to 'Add a new comment...')

Thanks in advance!

26 Feb 2014, 7:32 AM
This may be tricky as the htmlEditor is just a wrapper to include the browser editor in a frame. emptyText is just a placeholder and there are several approaches used ( see applyEmptyText ) for assigning the text. I suspect you would need to use setRawValue(), and you would have to address the issue of removing / inserting the value.

Others have used hidden labels and other approaches to get around this.