PDA

View Full Version : help! htmleditor .



magicsilence
6 Sep 2010, 10:01 PM
extjs version: 3.0

i use the htmleditor as:

{
id:'tplcontent'
, xtype: 'htmleditor'
, name: 'tplcontent'
, fieldLabel: 'test'
, anchor:'90% 60%'
, value: '<html>\n <head>\ n <title></title>\n <style type="text/css">\n </style>\n </head>\n <body>\n </body>\n</html>'
}

when, i edit it in "source edit" :
http://farm5.static.flickr.com/4151/4966968278_14e5c9936f.jpg


then, i switch "source edit" to "WYSIWYG":
http://farm5.static.flickr.com/4088/4966365131_5594ed929f.jpg

finally, i go "source edit"....:
http://farm5.static.flickr.com/4091/4966365149_afa003211a.jpg


where my html tags??

Condor
6 Sep 2010, 10:51 PM
A HtmlEditor edits the content of the BODY, so you can't use HTML, HEAD and BODY tags.

magicsilence
7 Sep 2010, 12:14 AM
A HtmlEditor edits the content of the BODY, so you can use HTML, HEAD and BODY tags.

thank u.