原创:在ECShop中使用TQEditor

整个过程共4个步. 第一步: 下载TQEditor V2.2.5版 下载网址 http://www.e512.net/tqeditor 第二步: 解压文件到 [网站主目录]/tqeditor/ 第三步: 在根目录添加文件 tqeditor_upload_image.php ———————-内容如下——————- <?php /** Author:TengQiu Li Copyright: TengQiu Li Site: http://www.e512.net */ define(‘DIR_ROOT’, dirname(__FILE__).’/’); require_once DIR_ROOT.’tqeditor/upload.inc.php’; $path= ‘images/upload/Image/’; $save_dir=DIR_ROOT.$path; $save_url=’/’.$path; $result=uploadImage($save_dir,$save_url,’file’,2097152); echo json_encode($result); ———————-文件结束——————— 第四步: 修改 [网站主目录]/admin/includes/lib_main.php 修改函数create_html_editor, 修改后如下: —————–修改后的 create_html_editor——————— function create_html_editor($input_name, $input_value = ”) { global $smarty; $htm='<textarea id="’.$input_name.’" name="’.$input_name.’" > $htm.='<script type="text/javascript" src="/tqeditor/TQEditor.with-plugs.min.js"></script>’; $htm.='<script type="text/javascript" >new TQEditor("’.$input_name.’",{imageUploadUrl:"/tqeditor_upload_image.php"})</script>’; $smarty->assign(‘FCKeditor’, $htm); } ——————————————————————- 完成.因为你的喜爱会挡也挡不住地流露出来。

原创:在ECShop中使用TQEditor

相关文章:

你感兴趣的文章:

标签云: