Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm not sure my request could be done without first modifying core CKEditor, but I'm sure it's worthwhile.
Rather then hacking the core config.js (as in config.templates_files = [ '/mytemplates.js' ];
) when trying to add my custom templates, I would welcome some kind of a hook (ckeditor_config_alter?) where my module could jump in and install its own templates and icons. This would be the Drupal way of extending functionality. Please.
Comments
Comment #1
mkesicki CreditAttribution: mkesicki commentedThank you for noticing that.
Please remember that you can use "Custom JavaScript configuration " option in "Advanced options" in CKEditor profile configuration to set this setting.
We will consider your 'voice' in future.
Comment #2
moniuch CreditAttribution: moniuch commentedWell, thanks for pointing this custom thingy - this must have slipped through my eye. However providing hooks would be definitely a clean way, as it would allow authors to treat custom templates as an installable/uninstallable feature. Dzięki!