API
Class

InitEvent ($UI/system/components/justep/richTextarea/richTextarea#InitEvent)

使用范围:UI2

Contents

class InitEvent ($UI/system/components/justep/richTextarea/richTextarea#InitEvent) extends ViewEvent

初始化editor事件,可以通过event.option设置editor的初始参数

Constructor Top

  InitEvent ()

Static Properties & Enumerations Top

object option

初始创建Editor对象参数,如:可设置toolbar,fontfamily,fontsize参数
参数:

工具条按钮定义 toolbar:[ 'source | undo redo | bold italic underline strikethrough | superscript subscript | forecolor backcolor | removeformat |', 'insertorderedlist insertunorderedlist | selectall cleardoc paragraph | fontfamily fontsize' , '| justifyleft justifycenter justifyright justifyjustify |', 'link unlink | emotion image video | map', '| horizontal print preview fullscreen', 'drafts', 'formula' ] 字体 'fontfamily': [ { name: 'songti', val: '宋体,SimSun'}, { name: 'yahei', val: '微软雅黑,Microsoft YaHei'}, { name: 'kaiti', val: '楷体,楷体_GB2312, SimKai'}, { name: 'heiti', val: '黑体, SimHei'}, { name: 'lishu', val: '隶书, SimLi'}, { name: 'andaleMono', val: 'andale mono'}, { name: 'arial', val: 'arial, helvetica,sans-serif'}, { name: 'arialBlack', val: 'arial black,avant garde'}, { name: 'comicSansMs', val: 'comic sans ms'}, { name: 'impact', val: 'impact,chicago'}, { name: 'timesNewRoman', val: 'times new roman'}, { name: 'sans-serif',val:'sans-serif'} ], 字号 'fontsize': [10, 12, 16, 18,24, 32,48] 段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准 'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''}

Constructor details Top

public InitEvent ()

初始化editor事件,可以通过event.option设置editor的初始参数

Static Properties & Enumerations Detail Top

static public object option

初始创建Editor对象参数,如:可设置toolbar,fontfamily,fontsize参数
参数:

工具条按钮定义 toolbar:[ 'source | undo redo | bold italic underline strikethrough | superscript subscript | forecolor backcolor | removeformat |', 'insertorderedlist insertunorderedlist | selectall cleardoc paragraph | fontfamily fontsize' , '| justifyleft justifycenter justifyright justifyjustify |', 'link unlink | emotion image video | map', '| horizontal print preview fullscreen', 'drafts', 'formula' ] 字体 'fontfamily': [ { name: 'songti', val: '宋体,SimSun'}, { name: 'yahei', val: '微软雅黑,Microsoft YaHei'}, { name: 'kaiti', val: '楷体,楷体_GB2312, SimKai'}, { name: 'heiti', val: '黑体, SimHei'}, { name: 'lishu', val: '隶书, SimLi'}, { name: 'andaleMono', val: 'andale mono'}, { name: 'arial', val: 'arial, helvetica,sans-serif'}, { name: 'arialBlack', val: 'arial black,avant garde'}, { name: 'comicSansMs', val: 'comic sans ms'}, { name: 'impact', val: 'impact,chicago'}, { name: 'timesNewRoman', val: 'times new roman'}, { name: 'sans-serif',val:'sans-serif'} ], 字号 'fontsize': [10, 12, 16, 18,24, 32,48] 段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准 'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''}