24 Sep 2008 5:13 AM #1
Need to display a non editable HtmlEditor in a form
In our application, we need to display some rendered HTML inside a form. This HtmlEditor will be used as a preview of a (HTML) mail to be send. The user cannot modify the content. An additional (editable) textarea has been added so that users can add their own comments before sending the mail.
I would like to know if it is possible to add a non editable HtmlEditor to a Ext.FormPanel. I already removed the toolbar.
24 Sep 2008 10:58 AM #2
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
Wouldn't it be a lot easier to use the StaticTextField user extension?
19 Feb 2009 1:20 AM #3
Even i am in the need of Non editable html editor. i.e., preview of a html editor
can you please tell me how did u achieved it
and also what should i do to remove the Toolbar
19 Feb 2009 1:57 AM #4
You can remove individual tool bar options with the following enabled or disabled as required by adding this to the html editor properties.
enableFont: false, enableFontSize: false, enableSourceEdit: false, enableAlignments: false, enableColors: false, enableFormat: false, enableLinks: false, enableLists: false
19 Feb 2009 1:59 AM #5
I'm also interested in a clean way to disable the html editor because the textual preview it provides is MUCH better that the textarea, especially when displaying HTML rich content.
19 Feb 2009 2:07 AM #6
Ya thanks for the reply
i could hide the toolbar .....but how can i make the textarea as non editable....or readonly....
9 Jul 2010 9:20 AM #7
Bump. I am also interested in a read-only/non-editable HTMLEditor. Is there a clean way to do this?