Eureka row that allows us to edit/display HTML.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example.playground Changing minimum deployment target to 8.0 Apr 24, 2018
Example Changing minimum deployment target to 8.0 Apr 24, 2018
RichTextRow.xcodeproj Changing minimum deployment target to 8.0 Apr 24, 2018
RichTextRow.xcworkspace Supporting Eureka 4 Jan 31, 2018
RichTextRowTests
Sources Changing minimum deployment target to 8.0 Apr 24, 2018
.gitignore First commit May 4, 2017
.swift-version
Cartfile Supporting Eureka 4 Jan 31, 2018
Cartfile.resolved Adding Pod May 9, 2017
LICENSE License May 9, 2017
Podfile Changing minimum deployment target to 8.0 Apr 24, 2018
Podfile.lock Changing minimum deployment target to 8.0 Apr 24, 2018
README.md Update README Jan 31, 2018
RichTextRow.podspec Changing minimum deployment target to 8.0 Apr 24, 2018

README.md

Carthage compatible CocoaPods compatible License: MIT

Introduction

RichTextRow is a Eureka custom row that allows us to display and edit html. This row is using a WKWebView to render a div containing contenteditable=true attribute. Editing supports bold, italic and underline style, selectable from the long press menu.

Usage

import Eureka
import RichTextRow

class ViewController: FormViewController {

    let html = "<div>This is a div</div>"

    override func viewDidLoad() {
        super.viewDidLoad()

        form +++ Section()
            <<< RichTextRow() { row in
                row.title = "Placeholder"
                row.value = html
            }
    }
}

Requirements

  • iOS 9.0+
  • Xcode 9.0+
  • Eureka 4.0

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

To install RichTextRow, simply add the following line to your Podfile:

pod 'RichTextRow', '~> 1.0'

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa.

To install RichTextRow, simply add the following line to your Cartfile:

github "EurekaCommunity/RichTextRow" ~> 1.0

Customization

If you need to use custom CSS styles you can add them to RichTextEditor.html file.

Author