简体   繁体   English

在ck编辑器中集成Javascript虚拟键盘插件

[英]Integrate Javascript Virtual Keyboard plugin in ck editor

i am trying to integrate Javascript Virtual Keyboard plugin in ck editor.Inside of the pugin, they have given the insturctions about how to integrate it with the ck editor but still i am not able to integrate it. 我正在尝试在ck编辑器中集成Javascript虚拟键盘插件。在pugin中,他们给出了有关如何将其与ck编辑器集成的说明,但我仍然无法将其集成。 So can anyone help me to solve my problem. 任何人都可以帮助我解决我的问题。

INSTALLATION: 安装:

 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

You can download the plugin from this link 您可以从此链接下载插件

So far, i've tried this which includes step 2 and 1 but got stuck at step3:- 到目前为止,我已经尝试过包括第2步和第1步的操作,但在第3步中遇到了麻烦:-

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
     config.language = 'DE';
     config.extraPlugins = 'equation';
     config.extraPlugins = 'Jsvk' ; };

It is showing me the option of virtual keyboard but whenever i am trying to open it then it is showing me a blank popup box 它向我显示了虚拟键盘的选项,但是每当我尝试打开它时,它就会向我显示一个空白的弹出框

You need to add Jsvk in CKEDITOR.editorConfig - config.toolbarGroups : 您需要在CKEDITOR.editorConfig - config.toolbarGroups添加Jsvk

CKEDITOR.editorConfig = function( config ) { 
     // .....................
     config.toolbarGroups = [ 
         // .....................
         { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'Jsvk' ] }, 
         // ...............................................................^^^^^^
     ];
};

also change config.extraPlugins : 还更改config.extraPlugins

config.extraPlugins = 'equation, Jsvk';

解决了我的问题,因为这是与其他插件的冲突问题,因此它显示空白的弹出页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM