我正在尝试将Javascript虚拟键盘插件集成在ck编辑器中。在插件内部,他们已经给出了如何将其与ck编辑器集成的说明,但我仍然无法将其集成。有谁能帮我解决这个问题吗?
安装: 1. Extract contents of this archive to the /plugins/ folder under CKEditor root
2. add ",extraPlugins : 'Jsvk'" line to the editor constructor parameters
3. Update your toolbar by adding item 'Jsvk' to one of the button groups
你可以从这个链接下载插件
到目前为止,我已经尝试过这包括步骤2和1,但卡在步骤3:-
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.language = 'DE';
config.extraPlugins = 'equation';
config.extraPlugins = 'Jsvk' ; };
它显示了虚拟键盘的选项,但每当我试图打开它时,它会显示一个空白的弹出框
您需要在CKEDITOR.editorConfig
- config.toolbarGroups
中添加Jsvk
:
CKEDITOR.editorConfig = function( config ) {
// .....................
config.toolbarGroups = [
// .....................
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'Jsvk' ] },
// ...............................................................^^^^^^
];
};
也改变config.extraPlugins
:
config.extraPlugins = 'equation, Jsvk';
我的问题得到了解决,因为这是与其他插件的冲突问题,这就是为什么它显示一个空白的弹出页面。