TextArea HTMLEditor

 

现在我们在表单里加入文本框,Ext里有很多的选择,你可以用标准的textarea文本框,也可以用HTMLEditor编辑器对文本做排版。

Textarea:和传统的Htmltextarea一样。

Htmleditor:具有排版功能按钮的文本编辑器。

我们把hideLabel属性设置成true,labelSeparator属性设置成‘’空字符,这样有比较好的视觉效果。

{

xtype: 'textarea',

name: 'description',

hideLabel: true,

labelSeparator: '',

height: 100,

anchor: '100%'

}

当然我们也可以把xtype属性改成htmleditor,这样我们就有了一个具有排版功能的编辑器。

{

xtype: 'htmleditor',

name: 'description',

hideLabel: true,

labelSeparator: '',

height: 100,

anchor: '100%'

}

 

相关文章:

  • 2021-07-23
  • 2022-02-10
  • 2022-12-23
  • 2022-01-15
  • 2021-12-09
  • 2021-10-15
  • 2021-12-02
  • 2021-09-24
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2022-01-13
  • 2022-01-16
  • 2021-11-10
  • 2021-12-18
  • 2021-05-25
相关资源
相似解决方案