Skip to main content

How to enable and disable button using summernote?

Is it possible to disable/enable the buttons of the editor without removing the buttons from the toolbar?

Summernote toolbar looks like this:

toolbar: [
    ['style', ['bold', 'italic', 'underline']],
    ['fontsize', ['fontsize']],
    ['color', ['color']]
  ]

I want to disable the "color" button while at the same time keeping it visible on the toolbar

Im using Summernote library.

Via Active questions tagged javascript - Stack Overflow https://ift.tt/UVk9zZ7

Comments