Hacks:使用Tinyeditor在2.3*中创建您的块
发布者: Dylian于2008/4/4 14:41:26 阅读量:7531要使用Tinyeditor在2.3中创建自定义块
访问根目录/module/system/admin/blocksadmin/
备份blockform.php文件
然后打开它。
然后
搜索:
 $textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT, 'bcontent', $block['content'], 15, 70); 并将其替换为
 if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php")) { 
    include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php"); 
    $textarea = new XoopsFormTinyeditorTextArea(array('caption'=>_AM_CONTENT, 'name'=>'bcontent', 'value'=>$block['content'], 'width'=>'100%', 'height'=>'400px',  'xEditor'=>'1')); 
    }else{ 
    $textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT, 'bcontent', $block['content'], 15, 70); 
    } 如果访问您的管理中的块,则您将看到编译器而不是普通编辑器。
(此修改仅适用于已安装 tinyeditor 的情况!)



 Re: 使用 Tinyeditor 创建版本 2.3* 中的块
 Re: 使用 Tinyeditor 创建版本 2.3* 中的块


 (仅适用于 XOOPS 2.2*,不适用于 2.0 或 2.3)
(仅适用于 XOOPS 2.2*,不适用于 2.0 或 2.3)

 
		