Skip to content
Discussion options

You must be logged in to vote

I used these codes to add the tooltip, which may help you.

editor.DomComponents.getTypes().forEach(addCustomToolbarButtons);

  const addCustomToolbarButtons = (component) => {
    const model = component.model;
    const id = component.id;
    const init = model.prototype.init;

    editor.DomComponents.addType(id, {
      model: {
        init(...args) {
          init.apply(this, args);
          const toolbar = this.get('toolbar');

          toolbar.forEach((button) => {
            switch (button.command) {
              case 'tlb-move':
                button.attributes = {
                  ...button.attributes,
                  title: 'Move',
                };
                b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@saharhagekr
Comment options

Answer selected by saharhagekr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants