View Full Version : Editor: toggle on/off?
fordprefect
24 Jul 2012, 2:06 PM
Hi,
I'm wondering if there's a way to toggle the editor control so that it could display rich text without the the text being editable and then a way to toggle it into edit mode.
If not, what would be the best way to display rich text in a form?
Thanks for any help.
scottmartin
24 Jul 2012, 2:31 PM
Are you looking for htmlEditor.setReadOnly(true) or did you have something else in mind?
Scott
fordprefect
24 Jul 2012, 2:37 PM
Are you looking for htmlEditor.setReadOnly(true) or did you have something else in mind?
Scott
That's perfect, thank you. Did not see that in the docs but after your post I looked in the source and saw that it was there.
Appreciate your assistance.
scottmartin
24 Jul 2012, 2:43 PM
Do you have an older version?
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.HtmlEditor-method-setReadOnly
Scott.
fordprefect
25 Jul 2012, 9:29 AM
Do you have an older version?
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.HtmlEditor-method-setReadOnly (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.form.field.HtmlEditor-method-setReadOnly)
Scott.
I see it now, I must have just overlooked it - strange. Thanks Scott.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.