近来弄一个项目,需要把Emlog背景中content、excerpt以纯文本的情势展现,特别感谢[[email protected]],下面直接进入主题,教程以下:
1、把背景文件admin/views/add_log.php中的
<textarea id="content" name="content" style="width:845px; height:460px;"></textarea>改成:<input id="content" name="content" style="width:400px;" /><textarea id="excerpt" name="excerpt" style="width:845px; height:260px;"></textarea>改成<input id="excerpt" name="excerpt" style="width:400px;" />2、把背景文件admin/views/edit_log.php中的
<textarea id="content" name="content" style="width:845px; height:460px;"><?php echo $content; ?></textarea>改成<input id="content" name="content" value="<?php echo $content; ?>" style="width:400px;"/><textarea id="excerpt" name="excerpt" style="width:845px; height:260px; border:#CCCCCC solid 1px;"><?php echo $excerpt; ?></textarea>改成:<input id="excerpt" name="excerpt" value="<?php echo $excerpt;?>" style="width:400px;" />3、删除文件admin/views/add_log.php、edit_log.php中的
loadEditor('content');loadEditor('excerpt');4、删除admin/views/js/common.js文件中的
editorMap['content'].sync();editorMap['excerpt'].sync();完成收工!!! End 温馨提醒:假如您对本文有疑问,请在本页留言即可!!

评论列表