//FCKeditor
var oEditor = FCKeditorAPI.GetInstance(EditorName) ;
oEditor.SetHTML(ContentStr) ;
eWebEditor1为eWebEditor ID
// 取编辑器内容
var sHTML = eWebEditor1.getHTML();
// 设置编辑器内容
eWebEditor1.setHTML('<b>Hello My World!</b>');
// 在当前选择处理插入
eWebEditor1.insertHTML('This is Insert Function!');
// 在尾部追加内容
eWebEditor1.appendHTML('This is Append Function!');
// 改变编辑器状态为代码编辑状态
eWebEditor1.setMode('CODE');
本文详细介绍了eWebEditor富文本编辑器的基本操作方法,包括获取编辑器内容、设置内容、插入及追加内容等。此外还介绍了如何切换编辑器到代码编辑模式。
335

被折叠的 条评论
为什么被折叠?



