Latest 1.0.3
Homepage https://github.com/EurekaCommunity/RichTextRow
License MIT
Platforms ios 8.0, requires ARC
Dependencies Eureka
Authors

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

Latest podspec

{
    "name": "RichTextRow",
    "version": "1.0.3",
    "summary": "Eureka custom row that allows us to display and edit html.",
    "homepage": "https://github.com/EurekaCommunity/RichTextRow",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Fabio Felici": "[email protected]"
    },
    "source": {
        "git": "https://github.com/EurekaCommunity/RichTextRow.git",
        "tag": "1.0.3"
    },
    "social_media_url": "https://twitter.com/EurekaCommunity",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "ios": {
        "source_files": "Sources/**/*.{swift}",
        "resource_bundles": {
            "Resources": "Sources/**/*.{html,js}"
        }
    },
    "dependencies": {
        "Eureka": [
            "4.3.1"
        ]
    }
}

Pin It on Pinterest

Share This