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

dczepierga’s picture

Status: Active » Fixed

@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

mkesicki’s picture

Title: ckeditor_link module not works » CkEeditor module doesn't work with ckeditor_link module.
Status: Fixed » Closed (fixed)
mkesicki’s picture

Title: CkEeditor module doesn't work with ckeditor_link module. » CKEditor module doesn't work with ckeditor_link module.