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

mkesicki’s picture

Status: Active » Postponed

Thank 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.

moniuch’s picture

Well, 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!