Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.99k stars 612 forks source link

How do I change the behavior of a align button ? #1249

Closed edreamwork closed 1 year ago

edreamwork commented 3 years ago

The Align Left button adds style = "text-align: left" to the wrapper. I dont want to have any inline style in my code. So I have the below css

align-left {
 text-align:left;
}

How do I modify that button so that it would add align-left class to the wrapper instead of adding the inline style ?

Description

How to reproduce?

Alex-D commented 1 year ago

You cannot do that with version 2.

I keep that in mind for Trumbowyg 3 :)