Php 在ck编辑器中集成Javascript虚拟键盘插件
我正在尝试在ck编辑器中集成Javascript虚拟键盘插件。在pugin中,他们给出了如何将其与ck编辑器集成的说明,但我仍然无法将其集成。有人能帮我解决问题吗 安装:Php 在ck编辑器中集成Javascript虚拟键盘插件,php,javascript,ckeditor,Php,Javascript,Ckeditor,我正在尝试在ck编辑器中集成Javascript虚拟键盘插件。在pugin中,他们给出了如何将其与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. Upda
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';
我的问题解决了,因为它和其他插件有冲突,所以它会显示一个空白的弹出页面 您尝试了什么?除了最后一个我真的无法理解的步骤外,我完成了上述所有步骤。CKEDITOR.editorConfig=function(config){//在此处定义对默认配置的更改。例如:config.language='DE';config.extraPlugins='equation';config.extraPlugins='Jsvk';您需要将该项添加到工具栏配置中。
Jsvk
toolbar中的哪个位置。您能解释一下它的位置吗?CKEDITOR.editorConfig
-config.toolbarGroups
?我已经在config.js文件中编写了您的代码,但仍然无法运行:(更改config.extraPlugins
此外,您需要添加它们,并用逗号分隔,而不是重写配置变量。是的,这样做了,菜单工具栏会显示Jsvk,但每当我打开它时,它会显示一个空白弹出框,就是它,没有其他内容!然后您没有正确提取它(第一步).检查您的错误。我已提取了ckeditor/plugins中rar文件中的Jsvk文件夹/