範文齋

位置:首頁 > 校園範文 > 其他

ecshop FCK編輯器換kindeditor編輯器

其他2.13W
下載最新版的kindeditor解壓到include命名爲kindeditor
文件:admin/includes/lib_找到

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);
}

ecshop FCK編輯器換kindeditor編輯器
換成

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);
}

然後修改kindeditro/php/上傳目錄修改includes/kindeditor/php/upload_如下:瀏覽服務器路徑修改includes/kindeditor/php/file_manager_如下:
//文件保存目錄路徑
$save_path = $php_path . ../../../images/upload/;
//文件保存目錄URL
$save_url = $php_url . ../../../images/upload/;

//根目錄路徑,可以指定絕對路徑,比如 /var/www/attached/
$root_path = $php_path . ../../../images/upload/;
//根目錄URL,可以指定絕對路徑,比如
$root_url = $php_url . ../../../images/upload/;