Skip to main content
100%

WYSIWYG to CKEdtior hooks

✓ Published0🌍 Public
Aalexfinnarn
Last edited Aug 8, 2018
Created on Aug 8, 2018

This example shows how a Drupal module integrates a custom code syntax highlighting button into CKEditor through two hook implementations. The first hook, `hook_wysiwyg_plugin`, registers a plugin button for the CKEditor instance, while `hook_ckeditor_plugins` defines the plugin’s JavaScript file, button label, and icon image path. The code specifies the plugin’s location via `backdrop_get_path()` and uses t() for translatable UI strings, demonstrating the API contract for extending editor functionality in Backdrop CMS.

AI-generated description

Similar vizzes