diff --git a/editors/ckeditor.inc b/editors/ckeditor.inc index 896fc84..901e0b6 100644 --- a/editors/ckeditor.inc +++ b/editors/ckeditor.inc @@ -27,6 +27,7 @@ function wysiwyg_ckeditor_editor() { ), ), ), + 'install note callback' => 'wysiwyg_ckeditor_install_note', 'version callback' => 'wysiwyg_ckeditor_version', 'themes callback' => 'wysiwyg_ckeditor_themes', 'settings callback' => 'wysiwyg_ckeditor_settings', @@ -49,6 +50,13 @@ function wysiwyg_ckeditor_editor() { } /** + * Return an install note. + */ +function wysiwyg_ckeditor_install_note() { + return t('Do NOT download the "CKEditor for Drupal" edition.'); +} + +/** * Detect editor version. * * @param $editor diff --git a/wysiwyg.admin.inc b/wysiwyg.admin.inc index ff23b28..acca810 100644 --- a/wysiwyg.admin.inc +++ b/wysiwyg.admin.inc @@ -413,6 +413,11 @@ function wysiwyg_profile_overview($form, &$form_state) { $instructions = '

' . t('Extract the archive and copy its contents into a new folder in the following location:
@editor-path', $targs) . '

'; $instructions .= '

' . t('So the actual library can be found at:
@library-filepath', $targs) . '

'; + // Add any install notes. + if (!empty($editor['install note callback']) && function_exists($editor['install note callback'])) { + $instructions .= $editor['install note callback'](); + } + $status[$name]['description'] .= $instructions; $count--; }