Zend framework 带Zend框架的Fckeditor
如何使用Zend实现Fckeditor 我认为:Zend framework 带Zend框架的Fckeditor,zend-framework,Zend Framework,如何使用Zend实现Fckeditor 我认为: src="/js/fckeditor.js"></script>..etc.. <textarea name="profileDescription" id="ckeditor"..etc.. window.onload = function() { if(document.getElementById('ckeditor')) { var oFCKeditor = n
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() ;
}
};
您可能需要创建htaccess来读取此类文件 这是我对ZF项目的默认访问权限:
AddDefaultCharset utf-8
ServerSignature off
SetEnv APPLICATION_ENV development
<IfModule mod_headers.c>
Header unset Server
Header unset X-Powered-By
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
php_flag magic_quotes_gpc off
</IfModule>
RewriteEngine On
RewriteBase /proj_rodrigo/public/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
如果这是您的格式,只需将JS添加到其中的信息
希望它能起作用。
关于您能提供更多信息吗?您计划在哪里添加ckeditor?我找不到zend framework的任何ckeditor模块。如果您有,请添加infomattion。可能有帮助我认为在08/15 ZF应用程序中src必须是/public/js/fckeditor.js
AddDefaultCharset utf-8
ServerSignature off
SetEnv APPLICATION_ENV development
<IfModule mod_headers.c>
Header unset Server
Header unset X-Powered-By
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
php_flag magic_quotes_gpc off
</IfModule>
RewriteEngine On
RewriteBase /proj_rodrigo/public/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
RewriteRule !\.(phtml|swf|jar|js)index.php