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.
Is it possible to somehow make a setting that allows to specify that clicking a template should NOT replace all current content in the ckeditor?
Comments
Comment #1
guybedford CreditAttribution: guybedford commentedUnfortunately, these behavior seems to be hard coded into the ck editor templates as far as I can tell. So I'm not sure how to work around it. It may be worth trying another editor, as the others allow this behavior.
Comment #2
tostinni CreditAttribution: tostinni commentedPut this in your custom module:
Comment #3
guybedford CreditAttribution: guybedford commentedThanks! I've added this to the latest release.
Comment #5
pakmanlhJFTR as I hasn't been able to find the mentioned hook I made it work introducing the following configuration to the CKEditor directly:
config.templates_replaceContent = false;
Cheers and thanks for this great module.