`
jacky68147527
  • 浏览: 207099 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

HtmlEditor保存到数据库的问题

阅读更多
{          xtype:'htmleditor',
            id:'bio',
            fieldLabel:'Biography',
            height:200,
            enableLinks :false,     //这是把链接的按钮去掉.
            enableLists : false,     // 这是把list 排序给去掉,
            value: Ext.util.Format.htmlDecode('<FONT color=#ff0000><U><EM>22</EM></U></FONT>'),
            anchor:'98%'   //上述这个是编码转换..
        }
就是这个编码转换...这是一个html在线编辑器,在对数据库存储时,存储也是基本的html格式代码..
Ext.util.Format.htmlDecode(),,,这个函数,有读取数据库值并显示到页面上时,就起到作用了呢.
另外还有一个函数:Ext.util.Format.htmlEncode()  与上述反作用..
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics