element-tiptap icon indicating copy to clipboard operation
element-tiptap copied to clipboard

How to change the default font size?

Open shiwei2019 opened this issue 3 years ago • 1 comments

The default font size is too big for me, but seems there is no method to change/set it? Please help. The issue is even worse because whenever I hit enter to start a new line, the font size changes back to the default big one.

shiwei2019 avatar Jul 30 '20 14:07 shiwei2019

In the meantime you can fork repo and set your own DEFAULT_FONT_SIZE here https://github.com/Leecason/element-tiptap/blob/b2cb42f683d868ef901f1233ddab591a5aa11824/src/utils/font_size.ts#L23

Draccano avatar Dec 04 '20 23:12 Draccano