Skip to content
A reusable native iOS visual HTML text editor component.
Branch: develop
Clone or download
SergioEstevao Merge pull request #1154 from wordpress-mobile/issue/1153_support_for…

Issue/1153 support for source elements inside videos
Latest commit 569a88b Mar 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci CircleCI: Update Specs repo when validating WordPress-Editor-iOS.podspec Mar 11, 2019
Aztec.xcworkspace First steps towards having a WordPress module. Apr 27, 2018
Aztec Add comments to new source extraction methods. Mar 18, 2019
Example Only convert video to shortcode if in the original HTML they where sh… Mar 18, 2019
WordPressEditor Make upload key public. Mar 19, 2019
docs Updates the xcov report. Sep 3, 2018
.gitignore Reorganized the example project to use Carthage. Sep 16, 2016 Add contributing file. Feb 13, 2017
LICENSE Initial commit Jun 24, 2016
WordPress-Aztec-iOS.podspec Update pod spec to version beta 2 for 1.5.0 Mar 19, 2019

Aztec for iOS: Native HTML Editor

Aztec's Logo'

CircleCI 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.


  • 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.


  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"


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) {


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.

You can’t perform that action at this time.