- 相关推荐
ecshop FCK编辑器换kindeditor编辑器
下载最新版的kindeditor解压到include命名为kindeditor文件:admin/includes/lib_main.php找到
换成function create_html_editor($input_name, $input_value = )
{
global $smarty;
$editor = new FCKeditor($input_name);
$editor->BasePath = ../includes/fckeditor/;
$editor->ToolbarSet = Normal;
$editor->Width = 100%;
$editor->Height = 320;
$editor->Value = $input_value;
$FCKeditor = $editor->CreateHtml();
$smarty->assign(FCKeditor, $FCKeditor);
}
然后修改kindeditro/php/上传目录修改includes/kindeditor/php/upload_json.php如下:浏览服务器路径修改includes/kindeditor/php/file_manager_json.php如下:function create_html_editor($input_name, $input_value = )
{
global $smarty;
$kindeditor="
id="$input_name" name="$input_name" style=width:700px;height:300px;>$input_value
";
$smarty->assign(FCKeditor, $kindeditor);
}
//文件保存目录路径
$save_path = $php_path . ../../../images/upload/;
//文件保存目录URL
$save_url = $php_url . ../../../images/upload/;//根目录路径,可以指定绝对路径,比如 /var/www/attached/
$root_path = $php_path . ../../../images/upload/;
//根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/
$root_url = $php_url . ../../../images/upload/;
[ecshop FCK编辑器换kindeditor编辑器]相关文章:
【ecshop FCK编辑器换kindeditor编辑器】相关文章:
如何打开注册表编辑器07-03
电气自动化监控系统与图形编辑器论文07-04
ecshop的模板哪个比较好?07-11
教你跳槽换加薪07-03
换宿舍申请书05-09
诺基亚5730换屏幕教程07-12
换汽车方向机油方法07-04
还换不换幽默搞笑故事07-04
换寝室申请书06-23