Download the plugin and place the unpacked My_focus folder under the Kindeditor plug-in directory (kindeditor directory/plugins/) such as: H:\webprobject\yzj\kindeditor\plugins\my_ Focus\
In the page where you use the Kindeditor editor, load the plugin My_focus directory ke-plugins-myfocus.js files such as: <script language= "JavaScript" type= "text/" JavaScript "src=" Kindeditor/plugins/my_focus/ke-plugins-myfocus.js ></script>
Copy Code code as follows:
Invoke Basic settings
Set Myfocuspath library file address, required
Ke.myfocuspath = "/yzj/myfocus/myfocus-1.2.0.full.js"
Ke.show ({
.......
Specify the FileManager plug-ins that can be supplied using Kindeditor
Allowfilemanager:true,
/*
* This sets the CSS file to be introduced in the editor.
* You can also copy the contents of the Plugins/my_focus/editor.css file to the skins/common/editor.css below and copy Plugins/my_focus/myfocus.png to skins/ common/folder below
* This property does not have to be set
*/
Csspath: [ke.scriptpath+ "Skins/common/editor.css", ke.scriptpath+ "Plugins/my_focus/editor.css"],
Using the Myfocus plug-in in the editor
Items: ["Myfocus" ...]
........
});
Plugin screenshot