如何在同一页面上使用多个文本编辑器?如何使用suyati / line-control编辑器获取文本并设置此测试编辑器的文本?
我的代码如下:
$("#txtEditor").Editor({
fonts: '',
styles: '',
font_size: '',
//bold: false,
//italics: false,
//underline:false,
//color: false, //'#000000',
//aligneffects:false,
textformats: false,
actions: true,
insertoptions: false,
insert_img: false,
insert_table: false,
//print: false,
//rm_format: false,
//select_all: false,
advancedoptions: true,
//togglescreen: false,
//texteffects:false,
//fonteffects:false,
extraeffects: true,
screeneffects: true,
splchars: '',
status_bar: true
});
var t = "<%=cel.txt_email%>";
console.log(t);
$("#txtEditor").Editor("setText", t);
$("#txt_email_reminder").Editor({
fonts: '',
styles: '',
font_size: '',
//bold: false,
//italics: false,
//underline:false,
//color: false, //'#000000',
//aligneffects:false,
textformats: false,
actions: true,
insertoptions: false,
insert_img: false,
insert_table: false,
//print: false,
//rm_format: false,
//select_all: false,
advancedoptions: true,
//togglescreen: false,
//texteffects:false,
//fonteffects:false,
extraeffects: true,
screeneffects: true,
splchars: '',
status_bar: true
});
var t2 = "<%= cel.txt_email_reminder%>";
console.log(t2);
$("#txtEditorReminder").Editor("setText", t2);