Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2011 at 00:03 UTC
Updated:
23 May 2011 at 07:55 UTC
I want to use ckeditor_link module, but it won't works. After some search, I found that code in ckeditor.lib.inc file from line 301:
if (module_exists('ckeditor_link') && file_exists(drupal_get_path('module', 'ckeditor_link') . 'plugins/link/plugin.js')) {
$arr['ckeditor_link'] = array(
'name' => 'drupal_path',
'desc' => t('Support for CKEditor SWF module'),
'path' => base_path() . drupal_get_path('module', 'ckeditor_link') . 'plugins/link/plugin.js',
'default' => 't'
);
}
It contains multiple errors, because:
- drupal_get_path() does not contains the '/' at the end
- the desc is wrong
- the path is valid without the 'plugin.js' string
if (module_exists('ckeditor_link') && file_exists(drupal_get_path('module', 'ckeditor_link') . '/plugins/link/plugin.js')) {
$arr['ckeditor_link'] = array(
'name' => 'drupal_path',
'desc' => t('Support for CKEditor Link module'),
'path' => base_path() . drupal_get_path('module', 'ckeditor_link') . '/plugins/link/',
'default' => 't'
);
}
(same error some line upper at ckeditor_swf module)
After the changes, do not remember to (install the ckeditor_module and) enable the link at every input format.
Comments
Comment #1
dczepierga commented@TommyChris, really thx for help, after all changes i forgot about this part of module... I commit changes to GIT, now everything seems to work good.
Greetings
Comment #2
mkesicki commentedComment #3
mkesicki commented