xdan / jodit

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

Customizing font size and font family buttons to display selected size and font family #1121

Closed kozlyakovskaya-tatsiana closed 1 month ago

kozlyakovskaya-tatsiana commented 2 months ago

How to customize font size and font family buttons to display selected size and font family as it implemented in demo for pro version? Or is it available only in Pro mode? Instead of image

I'd like to display image

xdan commented 1 month ago

Hi, it just component option:

Jodit.make('#editor', {
        controls: {
             font: {
                component: 'select'         
            }
      }
});
kozlyakovskaya-tatsiana commented 1 month ago

It works!) Thanks you so much for bringing your attention to that.

kozlyakovskaya-tatsiana commented 1 month ago

Closed