PDA

View Full Version : TextArea or HtmlEditor with text coloured



foxmarco
10 Jan 2011, 6:45 AM
Hello,

i'm looking for a widget like textarea or htmleditor where is possible via extjs colour some text. The main feauter must the possible to send to server via submit the text without HTML TAG. Is it possible? And how?

thank all

slckysr
10 Jan 2011, 6:46 AM
use codepress

http://www.sencha.com/learn/Extension:CodePress

foxmarco
11 Jan 2011, 12:01 AM
i tried it with out success. I've downloaded Ext.ux.CodePress.js put in my jsp page but i've this error:

"this.editor.body = this.doc.getElementsByTagName('body')[0];" -> this.editor dosnt exsist

Any solution? Could show me a correct installation...

Thanks

Condor
11 Jan 2011, 12:29 AM
A TextArea can't color parts of a text. For that you need a HtmlEditor.

If you want the text from the HtmlEditor, but without the HTML markup, then you will need to post-process the value with Ext.util.Format.stripTags.