【发布时间】:2012-09-26 21:11:31
【问题描述】:
如何使用 Zend 实现 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?
-
我找不到任何适用于 zend 框架的 ckeditor 模块,如果您有任何请添加信息。 harikt.com/content/… 可能会有所帮助
-
我认为 src 必须是 /public/js/fckeditor.js (in 08/15 ZF Application)
标签: zend-framework