在处理Ext的HtmlEditor的时候,需要在表单初始化的时候就使用源码编辑,HtmlEditor控件没有提供默认的设置,提供了一个toggleSourceEdit方法来进行切换,但是单单执行该方法不起作用,所以我们需要通过控件的initialize事件来进行初始化处理,具体看代码:
{
xtype : 'htmleditor',
name : 'rparammap.content',
enableAlignments :false,
enableColors: true,
enableFont : false,
enableFontSize: true,
enableFormat: true,
enableLinks: true,
enableLists : false,
enableSourceEdit: true,
width:444,
height:150,
allowBlank:false,
fieldLabel : '',
listeners:{
initialize : function (h){
var btn = this.tb.items.get('sourceedit');
btn.toggle(true);
this.toggleSourceEdit(true);
}
}
}
主要是这段代码:
var btn = this.tb.items.get('sourceedit');
btn.toggle(true);
this.toggleSourceEdit(true);
这样初始化控件的时候就可以切换到源码状态了。
分享到:
相关推荐
ecplise html编辑器tk.eclipse.plugin.htmleditor_2.2.0.jar 配合GEF插件能在eclipse里识别html的标签来方便编辑html页面。tk.eclipse.plugin.htmleditor_2.2.0.jar文件直接复制到eclipse\plugins里面即可
tk.eclipse.plugin.htmleditor_2.1.0
Lion.Data.Library.HtmlEditor v2.0(源码和实例)
tk.eclipse.plugin.htmleditor_2.2.0.jar,eclipse插件
1、eclipse的html文件编辑插件。 2、eclipse for java是没有自带html文件编辑的工具,(eclipse for JEE)则自带了。这个插件可以弥补eclipse for java的这一缺陷。 3、插件导入后可以配置一下eclipse的文件关联,将...
47、Ext.form.Radio类 ………………… 43 48、Ext.form.HtmlEditor类 …………… 43 49、Ext.form.TextField类 …………… 44 50、Ext.form.NumberField类 ………… 44 51、Ext.form.TextArea类 …………… 45 52、...
1.解压后得到GEF-ALL-3.4.1.zip和tk.eclipse.plugin.htmleditor_2.2.0.jar 2.安装GEF 解压GEF-ALL-3.4.1.zip,得到一个eclipse文件夹,打开可看到: 下面有三个文件夹:features,plugins,readme 分别拷贝上面...
关于Lion.Data.Library.HtmlEditor 2.0 的演示文件
tk.eclipse.plugin.htmleditor_2.2.0.jar
47、Ext.form.Radio类 ………………… 43 48、Ext.form.HtmlEditor类 …………… 43 49、Ext.form.TextField类 …………… 44 50、Ext.form.NumberField类 ………… 44 51、Ext.form.TextArea类 …………… 45 52、...
4.1.16 Ext.form.field.HtmlEditor编辑器字段 4.1.17 Ext.form.field.Display只读文本字段 4.1.18 Ext.form.Label标签字段 4.1.19 Ext.form.FieldSet字段集 4.1.20 Ext.form.FieldContainer容器字段 4.1.21 Ext...
这是一个针对Lion.Data.Library.HtmlEditor 2.0所使用配置文件的管理程序,只对初学者用 . BTW:如果你会一些xml,可以手动去修改,里面已经写了注释
安装Eclipse HTML Editor插件 解压缩tk.eclipse.plugin.htmleditor_1.6.7.zip包,然后将plugins目录拷贝至D:\eclipse目录下覆盖原文件夹即可。到此Eclipse HTML Editor插件安装完成。 <br>完成以上...
8.4.4 状态管理:ext.state.manager、ext.state.provider、ext.state.local-storageprovider和ext.state.cookieprovider / 426 8.5 综合实例 / 426 8.5.1 使用子模板 / 426 8.5.2 递归调用模板 / 428 8.6 本章...
tk.eclipse.plugin.htmleditor_2.0.4 tk.eclipse.plugin.htmleditor_2.0.4
执照:麻省理工学院演示:论坛:Ext.ux.form.field.UploadFileField 执照:麻省理工学院演示:论坛:Ext.ux.form.field.ImageFileField 执照:麻省理工学院演示:论坛:Ext.ux.form.plugin.HtmlEditor 执照:麻省...
eclipse html插件,有需要的可以下。 随后还会有tk.eclipse.plugin.jsf_2.0.6.jar等资源
tk.eclipse.plugin.htmleditor_2.0.4.rar
7.2.7 在线编辑器Ext.form.HtmlEditor 7.3 ExtJS表单组件的综合应用 第8章 设计表格类布局 8.1 表格简介 8.1.1 表格的基本属性 8.1.2 制作第一个表格 8.2 表格常用功能详解 8.2.1 主要属性功能 8.2.2 自定义...