王尘宇王尘宇

研究百度干SEO做推广变成一个被互联网搞的人

Emlog后台中content、excerpt以纯文本格式的教程分享

近来弄一个项目,需要把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   温馨提醒:假如您对本文有疑问,请在本页留言即可!!

相关文章

评论列表

发表评论:
验证码

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。