xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.71k stars 354 forks source link

How to update toolbar icon and tooltip #1152

Open alindas opened 5 months ago

alindas commented 5 months ago

For example, I declared a button with a name of fullsize, but I also rewrote the exec method. I hope to implement updated icons and tooltips in the custom method. What can I do

xdan commented 4 months ago

If you want to correct the default behavior, you need to change controls

Jodit.make('#editor', {
      controls:  {
          fullsize: {
          tooltip: 'Fullsize',
          iconURL: './cutom-icon.svg'
      },
      }
})