6 ms·
It can apply classes too as you wish. You can use formatInline or formatBlock command to add inline or block elements with needed classes. An example how its do
by olla 12y ago
It can apply classes too as you wish. You can use formatInline or formatBlock command to add inline or block elements with needed classes. An example how its done internally https://github.com/Voog/wysihtml/blob/master/src/commands/foreColor.js https://github.com/Voog/wysihtml/blob/master/src/commands/fo...