Magento后台显示WYSIWYG可视化编辑器 20 April 2011 1:15 Wednesday by 小屋 浏览(1111)


所见即所得的WYSIWYG可视化编辑器在后台没显示的话可以通过:

Admin > System > Configuration > Content Management > WYSIWYG Options

这里来控制显示与否。

阅读全文>>

获取FCKeditor编辑器内容的值 30 March 2010 13:50 Tuesday by小屋 浏览(2643)

答案原址: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

阅读全文>>