Problem/Motivation
Currently, with using ckeditor_templates we have the same icon as this module, but we don't have a "Template" label next to the icon. With all the buttons and gizmos on a typical CKE toolbar, I'd like the ability to not show the label as well as rename the label to keep the toolbar less cluttered and more in line with what we had in CKE4.
Proposed resolution
I think adding the option to disable the label and change the text would need to update the template.js code to use config values like:
const dropdownView = createDropdown(locale);
dropdownView.buttonView.set({
label: this.editor.config.get('button_label'),
withText: this.editor.config.get('with_textl'),
icon: templateIcon,
tooltip: true
});
And then add those config values to this module's config form.
What do you think?
Comments
Comment #2
dbielke1986 commentedGreat Idea,
Will will try to implement this feature next week!
A MR is highly appreciated :-)
Comment #4
vincent.hoehnThank you for your feature request! The implementation has started.
Comment #5
afinnarn commentedThe changes so far look good to me with disabling the button label. Still missing the ability to rename the label text, but maybe that part is not wanted. Let me know if this needs reviewed or any help with the MR.
Comment #10
vincent.hoehnThe implementation is complete. I have merged the issue-fork in our dev branch 1.0.x-dev. If everything works, we will publish a new release soon.
Comment #11
dbielke1986 commentedComment #12
vincent.hoehnIntegrated in Release 1.0.3
Comment #13
naveenvalecha@vincent.hoehn
Thanks for the great work in creating and maintaining this module.
I have just now upgraded to Latest 1.0.3 and got the following error
Comment #14
dbielke1986 commentedHey,
Should be fixed in the latest dev version:
https://www.drupal.org/project/ckeditor5_template/issues/3392204
Comment #15
vincent.hoehnWith 1.0.4 everything should work as it is supposed to!
Comment #16
dbielke1986 commentedGreat
Comment #17
marcoka commentedThank you very much for this module. Really needed to use ckeditor productive in D10.
Comment #18
dbielke1986 commented