Build a blog post composer in an iPhone app with bold, italic, heading levels, and image insertion.
Add a formatted notes editor to an iPad app with text color, alignment, and undo/redo support.
Create a social feature with hashtag and mention detection callbacks for autocomplete suggestions.
Display and edit HTML content inside an iOS app with color-coded syntax highlighting in the source view.
The bundled JavaScript file must be added to Copy Bundle Resources in Xcode, not Compile Sources, or the editor will not function.
ZSSRichTextEditor is a rich text editor component for iOS apps. It gives users a formatting toolbar similar to what they would find in word processors like Google Docs or Microsoft Word, embedded directly inside an iPhone or iPad app. The editor works by selecting text and tapping toolbar buttons to apply formatting. The editor displays content in a WYSIWYG (what you see is what you get) view, meaning text appears formatted as the user edits it rather than as raw code. A source view is also included that shows the underlying HTML with color-coded syntax highlighting. Changes made in the source view are reflected back in the formatted preview. The toolbar covers a wide range of formatting options: bold, italic, underline, strikethrough, subscript and superscript, six heading levels, text alignment, ordered and unordered lists, indentation, undo and redo, and the ability to insert images and links. Text color and background color can also be changed using a built-in color picker. Integration is done by subclassing ZSSRichTextEditor in your own class. You can load HTML into the editor, retrieve the HTML when the user finishes, and insert text or links at the cursor. The toolbar can be restricted to specific buttons, tint colors can be customized, and custom buttons can be added. The editor also fires callbacks when it detects hashtags or mentions, which is useful for social-style apps. Installation works through CocoaPods or by copying the source files manually. The README includes an important note: the bundled JavaScript file must be added to Copy Bundle Resources in Xcode rather than Compile Sources, or the editor will not function correctly. iOS 7 or later is required.
← nnhubbard on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.