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

ToolBar options #190

Open RamohanReddy opened 6 years ago

RamohanReddy commented 6 years ago

Hi How to give only 3 options on toolbar.

barotbhavesh commented 4 years ago

@ramohanreddy you can use below Demo code let toolbar = RichEditorToolbar(frame: CGRect(x: 0, y: 0, width: self.view.bounds.width, height: 44)) toolbar.options = [RichEditorDefaultOption.clear, RichEditorDefaultOption.italic, RichEditorDefaultOption.subscript, RichEditorDefaultOption.superscript, RichEditorDefaultOption.strike, RichEditorDefaultOption.underline, RichEditorDefaultOption.alignLeft, RichEditorDefaultOption.alignCenter, RichEditorDefaultOption.alignRight, RichEditorDefaultOption.textColor, RichEditorDefaultOption.textBackgroundColor, RichEditorDefaultOption.unorderedList, RichEditorDefaultOption.orderedList] return toolbar