所见即所得的WYSIWYG可视化编辑器在后台没显示的话可以通过:
Admin > System > Configuration > Content Management > WYSIWYG Options
这里来控制显示与否。
所见即所得的WYSIWYG可视化编辑器在后台没显示的话可以通过:
Admin > System > Configuration > Content Management > WYSIWYG Options
这里来控制显示与否。
答案原址:http://www.phpchina.com/html/97/n-33197.html
利用Javascript取和设FCKeditor值也是非常容易的,如下:
EditorName是页面中可编辑区域元素的id比如:
<TEXTAREA id="texterea1" name="content" rows="30" cols="420"><c:out value="${content}"/></TEXTAREA>
EditorName就是texterea1了
// 获取编辑器中HTML内容
function getEditorHTMLContents(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.GetXHTML(true));
}
// 获取编辑器中文字内容
function getEditorTextContents(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.EditorDocument.b