在extjs中实现的文本编辑器

new Ext.form.HtmlEditor( {
fieldLabel : '完成效果描述',
allowBlank : true,
name : 'cmt_gzmbZbdy_wcxgms',
id:'cmt_gzmbZbdy_wcxgms',
height : 100,
width : 200,
anchor : '90%'
})


new Ext.form.HtmlEditor({
      name:'htmlContent',
      autoHeight:false,
      height:150,
      width:510,
      fieldLabel:'HTML字段',
      createLinkText:'创建超链接',
      defaultLinkValue:"http://www.",
      enableAlignments:true,
      enableColors:true,
      enableFont:true,
      enableFontSize:true,
      enableFormat:true,
      enableLinks:true,
      enableLists:true,
      enableSourceEdit:true,
      fontFamilies:['宋体','隶书','黑体'],
      buttonTips:{bold:{title:'Bold(Ctrl+B)',text:'粗体'},
           italic:{title:'Italic(Ctrl+T)',text:'斜体'},
           underline:{title:'Underline(Ctrl+U)',text:'下划线'},
           increasefontsize:{title:'Grow Text',text:'增大字体'},
           decreasefontsize:{title:'Shrink Text',text:'缩小字体'},
           backcolor:{title:'Text Highlight Color',text:'背景色'},
           forecolor:{title:'Font Color',text:'前景色'},
           justifyleft:{title:'Align Text Left',text:'左对齐'},
           justifycenter:{title:'Center Text',text:'居中对齐'},
           justifyright:{title:'Align Text Right',text:'右对齐'},
           insertunorderedlist:{title:'Bullet List',text:'项目符号'},
           insertorderedlist:{title:'Numbered List',text:'数字编码'},
           createlink:{title:'Hyperlink',text:'超链接'},
           sourceedit:{title:'Source Edit',text:'切换源代码编辑模式'}
      }
     })]

你可能感兴趣的:(ext)