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

i want to be able to change the font of the text while editing the editor. how do i implement this functionality? #172

Closed Abh15h3k closed 4 years ago

Abh15h3k commented 6 years ago

right now im just able to set bold, underline, italics. but i also want to be able to change the font (with the option to change the font size as well)

friendshipzhang commented 5 years ago

RE.setTextFontSize = function(fontSize){ document.execCommand("fontSize", false, fontSize); }; you can insert this code into rich_editor.js then insert a function in RichEditorView.swift

Pawan-Paritem commented 3 years ago

friendshipzhang not working

RE.setTextFontSize = function(fontSize){ document.execCommand("fontSize", false, fontSize); };