Add ability to disable button text

Created on 29 September 2023, about 1 year ago
Updated 16 October 2023, about 1 year ago

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?

โœจ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States afinnarn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024