myFocus 一个KindEditor的焦点图插件(js中失去焦点)万万没想到

随心笔谈2年前发布 admin
169 0 0

文章摘要

这篇文章介绍了如何在使用keEditor时配置焦点路径和相关插件。首先,必须设置`myFocusPath`库文件地址,具体代码为`KE.myFocusPath="/yzj/myFocus/myfocus-1.2.0.full.js"`。接着,通过`KE.show`方法允许使用`FileManager`插件,并配置了两个`.css`文件路径:`KE.scriptPath+"skins/common/editor.css"`和`KE.scriptPath+"plugins/my_focus/editor.css"`。此外,还指定了使用`myfocus`插件,并在`items`中进行了相关配置。

//调用基本设置

//设置myFocusPath库文件地址,必须的

KE.myFocusPath=”/yzj/myFocus/myfocus-1.2.0.full.js”

KE.show({

…….

//指定可以使用KindEditor提供的FileManager插件

allowFileManager : true,

cssPath : [KE.scriptPath+”skins/common/editor.css”,KE.scriptPath+”plugins/my_focus/editor.css”],

//在编辑器中使用myfocus插件

items : [“myfocus”…….]

……..

});

© 版权声明

相关文章