Hello,
When you use linkit with ckeditor, the popin doesn't respond correctly and few error JS is send to the console :
afterInit() is undefined and insertLink() is undefined.
This error is send because ckeditor/linkitDialog.js or tinymce/linkitDiablog.js is loaded before linkit.js, linkitdashboard.js
You must use dependencies for the ckeditor/linkitDialog.js, tinymce/linkitDiablog.js in linkit.module in your hook_library.
The $libraries['field'] has been the "dependencies" information, but no ckeditor or tinymce
I have create a patch for the version "7.x-3.1" and is join to this issue.
// Linkit ckeditor dialog script.
$libraries['ckeditor'] = array(
'title' => 'Linkit CKeditor',
'js' => array(
$path . '/editors/ckeditor/linkitDialog.js' => array('group' => JS_DEFAULT),
),
'dependencies' => array(
array('linkit', 'base'),
),
);
// Linkit tinymce dialog script.
$libraries['tinymce'] = array(
'title' => 'Linkit TinyMCE',
'js' => array(
$path . '/editors/tinymce/linkitDialog.js' => array('group' => JS_DEFAULT),
),
'dependencies' => array(
array('linkit', 'base'),
),
);
Best regards,
Sébastien
Comments
Comment #1
sebyoga commentedComment #2
dazz commentedI'm getting another error but I think its related to this problem.
When I open the dialog I get the error
It seems to be missing this function from /better-autocomplete/jquery.better-autocomplete.js
Comment #3
anonThanks for the patch, its now commited.