0
如何用Zend實現Fckeditor。帶Zend Framework的Fckeditor
我有這樣的觀點:
src="/js/fckeditor.js"></script>..etc..
<textarea name="profileDescription" id="ckeditor"..etc..
window.onload = function()
{
if(document.getElementById('ckeditor')) {
var oFCKeditor = new FCKeditor('ckeditor') ;
oFCKeditor.BasePath = "<?php echo BASE_URL; ?>js/fckeditor.js";
oFCKeditor.Height = 500;
oFCKeditor.Width = 700;
oFCKeditor.ReplaceTextarea() ;
}
};
我得到這個錯誤: 應用程序錯誤
異常信息:
消息:資源 'JS' 未找到
請求參數:
array (
'controller' => 'js',
'action' => 'fckeditor.jseditor',
'module' => 'default',
'InstanceName' => 'ckeditor',
'Toolbar' => 'Default',
)
你能提供更多信息嗎?你打算在哪裏添加ckeditor? – 2011-01-21 10:22:30