xdan / jodit

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

How to update toolbar icon and tooltip #1152

Open alindas opened 1 week ago

alindas commented 1 week 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 5 days 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'
      },
      }
})