Latest 1.3.2
Homepage https://github.com/wordpress-mobile/WordPress-Aztec-iOS
License GPLv2
Platforms ios 10.0
Dependencies WordPress-Aztec-iOS
Authors , , ,

Aztec for iOS: Native HTML Editor

Aztec's Logo'

Travis
Version
License
Platform

About Aztec & WordPressEditor

Aztec is a Swift library that provides a UITextView subclass with HTML visual-editing capabilities.

  • Use this library if you want to create an App that interacts with raw HTML content.

WordPressEditor is a Swift library that provides a plugin to make Aztec work with WordPress content.

  • Use this library if you want to create an App that interacts with WordPress HTML content.

Requirements

  • iOS 10 and above
  • Xcode 9.3 and above

Running the Example App

To run the Example app, you first need to make sure its dependencies are installed:

  • Make sure you have Carthage installed.
  • Using the command line:
cd Example
carthage update --platform iOS

Once Carthage finishes, you should open the file Aztec.xcworkspace from the root directory of Aztec.

Make sure the AztecExample target it selected, and press CMD + R to run it.

Integrating the Library with Carthage

Both libraries are available through Carthage. To install
it, simply add the following line to your Cartfile:

github "wordpress-mobile/AztecEditor-iOS" "1.0" # or the version number you want
github "wordpress-mobile/WordPressEditor-iOS" "1.0"

Follow these instructions to add Aztec.framework or WordPressEditor.framework to your App.

Then:

  1. Open your project, head to Build Settings for your target and add $(SDKROOT)/usr/include/libxml2/ to your Header Search Paths.
  2. Go to Build Phases > Link Binary With Libraries and add Aztec.framework.
  3. Add import Aztec to your project’s source.

Integrating the Library with CocoaPods

Both libraries are available through CocoaPods. To install
them, simply add the following lines to your Podfile:

pod "WordPress-Aztec-iOS", "1.0" # or the version number you want
pod "WordPress-Editor-iOS", "1.0"

Usage

After installing Aztec, import the module and use the Aztec.TextView view as shown below:

import Aztec

// ...

let textView = Aztec.TextView(
    defaultFont: UIFont,
    defaultParagraphStyle: ParagraphStyle = ParagraphStyle.default,
    defaultMissingImage: UIImage) {

License

WordPress-Aztec-iOS is available under the GPLv2 license. See the LICENSE file for more info.
WordPress-Editor-iOS is available under the GPLv2 license. See the LICENSE file for more info.

Latest podspec

{
    "name": "WordPress-Editor-iOS",
    "version": "1.3.2",
    "summary": "The WordPress HTML Editor.",
    "description": "The WordPress HTML Editor by Automattic Inc.",
    "homepage": "https://github.com/wordpress-mobile/WordPress-Aztec-iOS",
    "license": {
        "type": "GPLv2",
        "file": "LICENSE"
    },
    "authors": {
        "Automattic": "[email protected]",
        "Diego Rey Mendez": "[email protected]",
        "Sergio Estevao": "[email protected]",
        "Jorge Leandro Perez": "[email protected]"
    },
    "social_media_url": "http://twitter.com/WordPressiOS",
    "source": {
        "git": "https://github.com/wordpress-mobile/WordPress-Aztec-iOS.git",
        "tag": "1.3.2"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.0",
    "module_name": "WordPressEditor",
    "source_files": "WordPressEditor/WordPressEditor/Classes/**/*",
    "resources": "WordPressEditor/WordPressEditor/Assets/**/*",
    "xcconfig": {
        "OTHER_LDFLAGS": "-lxml2",
        "HEADER_SEARCH_PATHS": "/usr/include/libxml2"
    },
    "dependencies": {
        "WordPress-Aztec-iOS": [
            "1.3.2"
        ]
    }
}

Pin It on Pinterest

Share This