ckeditor_ckeditor_css_alter(array &$css, Editor $editor)
Implements hook_ckeditor_css_alter().
function ckeditor_ckeditor_css_alter(array &$css, Editor $editor) { if (!$editor->hasAssociatedFilterFormat()) { return; } // Add the filter caption CSS if the text format associated with this text // editor uses the filter_caption filter. This is used by the included // CKEditor DrupalImageCaption plugin. if ($editor->getFilterFormat()->filters('filter_caption')->status) { $css[] = drupal_get_path('module', 'filter') . '/css/filter.caption.css'; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!ckeditor!ckeditor.module/function/ckeditor_ckeditor_css_alter/8.1.x