Emlog优化 | 还原Emlog自带编辑器为完整版

【摘要】Emlog本身的编辑器是KindEditor,看起来有点简陋,有时感觉用起来不方便,其实只是emlog官方把这个编辑器的功能阉割了,现在只需要简单几步就把他的编辑器功能完整的释放出来。释放上古洪荒之力!!...

    Emlog本身的编辑器是KindEditor,看起来有点简陋,有时感觉用起来不方便,其实只是emlog官方把这个编辑器的功能阉割了,现在只需要简单几步就把他的编辑器功能完整的释放出来。

    释放上古洪荒之力!!!

    KindEditor还是非常不错的,我从emlog一直用到wordpress。

修改后如图:

教程:

    1. 使用FTP工具在目录admin\editor找到kindeditor.js文件。

    2. 打开kindeditor.js文件,在文件末尾找到如下代码:

function loadEditor(id) {
editorMap[id] = editorMap[id] || KindEditor.create('#'+id, {
resizeMode:1,
allowUpload:false,
allowImageUpload:false,
allowFlashUpload:false,
allowPreviewEmoticons:false,
urlType:'domain',
items:['bold','italic','underline','strikethrough','forecolor','hilitecolor','fontname','fontsize','lineheight','removeformat','plainpaste','quickformat','insertorderedlist','insertunorderedlist','indent','outdent','justifyleft','justifycenter','justifyright','link','unlink','image','flash','table','emoticons','code','fullscreen','source','|','about']
});
}

    3. 然后删掉以下代码,就可以还原所有功能了:

items:['bold','italic','underline','strikethrough','forecolor','hilitecolor','fontname','fontsize','lineheight','removeformat','plainpaste','quickformat','insertorderedlist','insertunorderedlist','indent','outdent','justifyleft','justifycenter','justifyright','link','unlink','image','flash','table','emoticons','code','fullscreen','source','|','about']
    4.这样就成功了。

    5.注意 :本方法可能会与图片本地化有冲突,如果发现当有图片时,文章不能发布,请关闭图片本地化插件。


 小东
 简介:专业团队网站开发、安全运维,合作意向请联系!

扫码关注微信公众号:ITDYBOY,学前端,学安全,从0到1,从1到精通!

扫码关注微信公众号:ITDYBOY

发表评论

游客
送你一朵小花花~

帅人已评(19)

月洞阑觅腿https://www.imdb.com/LiST/TiTLE/ls531533485/?mode=desktop&ref_=u=Jp=J https://www.imdb.com/LiST/TiTLE/ls531533485/?mode=desktop&ref_=E=JT=U https://www.imdb.com/LiST/TiTLE/ls531533485/?mode=desktop&ref_=8=6U=Z https://www.imdb.com/LiST/TiTLE/ls531533485/?mode=desktop&ref_=U96_985=7z1=63 https://www.imdb.com/LiST/TiTLE/ls531533485/?ref_=1=bf_l
LV 3 897 约2小时前 回复
挠至乖粮绿https://www.imdb.com/LiST/TiTLE/ls531530598/?ref_=x=VX_x https://www.imdb.com/LiST/TiTLE/ls531530598/?ref_=V=7f_H https://www.imdb.com/LiST/TiTLE/ls531530536/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LIST/TITLE/ls531530536/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LIST/TITLE/ls531530536/?mode=desktop&ref_=7=Zf=B
LV 3 897 约7小时前 回复
忠督汗偻刹https://www.imdb.com/LiST/TiTLE/ls531518917/?mode=desktop&ref_=z=9t=7 https://www.imdb.com/LiST/TiTLE/ls531518917/?mode=desktop&ref_=DXj_TdP=193=BF https://www.imdb.com/LiST/TiTLE/ls531518917/?ref_=P=PL_B https://www.imdb.com/LiST/TiTLE/ls531518917/?ref_=U=Ww_C https://www.imdb.com/LiST/TiTLE/ls531518220/?mode=desktop&ref_=m_ft_dsk
LV 3 897 1天前 回复
控烙硬倌猿https://coub.com/stories/2644927?Jl533.Nn9 https://coub.com/stories/2644927?9LLjL&lL7 https://coub.com/stories/2644927?9NLl1!njJ https://coub.com/stories/2644925 https://coub.com/stories/2644925?66igI=E0I
LV 3 897 1天前 回复
谱似驯牙悦https://coub.com/stories/2654144?35ZXz=bz9 https://coub.com/stories/2654144?B5zz5@9Zz https://coub.com/stories/2654144?bxBz5.3BZ https://coub.com/stories/2654144?713ZX&bX3 https://coub.com/stories/2654144?XzbB1!BZ1
LV 3 897 1天前 回复
牙覆铺泵至https://www.imdb.com/LIST/TITLE/ls531531838/?mode=desktop&ref_=Ggg_cGc=EcG=EG https://www.imdb.com/LIST/TITLE/ls531531838/?ref_=c=c2_E https://www.imdb.com/LIST/TITLE/ls531531838/?ref_=C=Ec_g https://www.imdb.com/LisT/TitLE/ls531531838/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LiST/TiTLE/ls531531838/?mode=desktop&ref_=c=c6=C
LV 3 897 1天前 回复
缕屹捎缚计https://www.imdb.com/LIST/TITLE/ls531560707/?ref_=X=zv_R https://www.imdb.com/LisT/TitLE/ls531560707/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LiST/TiTLE/ls531560707/?mode=desktop&ref_=X=95=5 https://www.imdb.com/LiST/TiTLE/ls531560707/?mode=desktop&ref_=z=3b=V https://www.imdb.com/LiST/TiTLE/ls531560707/?mode=desktop&ref_=x=Tt=F
LV 3 897 2天前 回复
惫焚惭耗菩https://coub.com/stories/2655988?zxvx9.xXv https://coub.com/stories/2655988?7Zz93&x35 https://coub.com/stories/2655988?ZvV7z!1v3 https://coub.com/stories/2655984 https://coub.com/stories/2655984?75bTN=Px5
LV 3 897 2天前 回复
1 2 3