1 ckeditor5.module | _ckeditor5_image_caption_plugin_check($format, $plugin_name) |
Enabled callback for hook_ckeditor5_plugins().
Checks if the data-caption support should be enabled based on the configuration of a text format and editor.
Parameters
object $format: The filter format object for which CKEditor is checking settings.
string $plugin_name: The plugin that is being checked.
Return value
bool: TRUE if the image plugin is enabled, FALSE otherwise.
File
- core/
modules/ ckeditor5/ ckeditor5.module, line 883 - Provides integration with the CKEditor WYSIWYG editor.
Code
function _ckeditor5_image_caption_plugin_check($format, $plugin_name) {
return !empty($format->filters['filter_image_caption']->status);
}