cjwirth / RichEditorView

RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing.
BSD 3-Clause "New" or "Revised" License
1.9k stars 445 forks source link

Font Size and Font family #125

Open chitvan832 opened 7 years ago

chitvan832 commented 7 years ago

how can i add font Family and font size change in toolbar

cjwirth commented 7 years ago

Right now there isn't any support for changing the Font Family.

If you wanted, you could add that functionality to a JS file that you load. Then you could call that JS method to change the font family (this is how all the editing is happening right now.)

There is a function for the font size though, setFontSize(). You'd just have to make a toolbar item whose action ends up calling that function.

Let me know how it goes 👍

vinhtnk commented 7 years ago

Hi @cjwirth I have tested setFontSize but it wasn't working.