{"id":20187392,"url":"https://github.com/wordpress-mobile/azteceditor-ios","last_synced_at":"2025-04-08T09:08:38.421Z","repository":{"id":9367522,"uuid":"61910691","full_name":"wordpress-mobile/AztecEditor-iOS","owner":"wordpress-mobile","description":"A reusable native iOS visual HTML text editor component.","archived":false,"fork":false,"pushed_at":"2024-08-15T23:56:46.000Z","size":41715,"stargazers_count":611,"open_issues_count":105,"forks_count":146,"subscribers_count":36,"default_branch":"develop","last_synced_at":"2024-09-27T00:17:47.736Z","etag":null,"topics":["carthage","cocoapods","editor","html","html-editor","ios","ios-lib","ios-libraries","ios-library","ios-swift","native","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wordpress-mobile.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-24T20:27:32.000Z","updated_at":"2024-09-11T08:19:31.000Z","dependencies_parsed_at":"2022-08-27T00:11:42.975Z","dependency_job_id":"9812b445-4516-4eca-b03d-5f518b8b664c","html_url":"https://github.com/wordpress-mobile/AztecEditor-iOS","commit_stats":{"total_commits":3384,"total_committers":53,"mean_commits":63.84905660377358,"dds":0.6841016548463357,"last_synced_commit":"0fd30b205f4a1bfc6ab661bea2b7e6688744af9c"},"previous_names":["wordpress-mobile/wordpress-aztec-ios"],"tags_count":185,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FAztecEditor-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FAztecEditor-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FAztecEditor-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wordpress-mobile%2FAztecEditor-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wordpress-mobile","download_url":"https://codeload.github.com/wordpress-mobile/AztecEditor-iOS/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809962,"owners_count":20999816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carthage","cocoapods","editor","html","html-editor","ios","ios-lib","ios-libraries","ios-library","ios-swift","native","swift"],"created_at":"2024-11-14T03:23:27.362Z","updated_at":"2025-04-08T09:08:38.400Z","avatar_url":"https://github.com/wordpress-mobile.png","language":"Swift","readme":"# Aztec for iOS: Native HTML Editor\n\n\u003cp align=\"center\"\u003e\n\u003cimg width=200px height=200px src=\"RepoAssets/aztec.png\" alt=\"Aztec's Logo'\"/\u003e\n\u003c/p\u003e\n\n[![CircleCI](https://circleci.com/gh/wordpress-mobile/AztecEditor-iOS.svg?style=svg)](https://circleci.com/gh/wordpress-mobile/AztecEditor-iOS)\n[![Version](https://img.shields.io/cocoapods/v/WordPress-Aztec-iOS.svg?style=flat)](http://cocoapods.org/pods/WordPress-Aztec-iOS)\n[![License](https://img.shields.io/cocoapods/l/WordPress-Aztec-iOS.svg?style=flat)](http://cocoapods.org/pods/WordPress-Aztec-iOS)\n[![Platform](https://img.shields.io/cocoapods/p/WordPress-Aztec-iOS.svg?style=flat)](http://cocoapods.org/pods/WordPress-Aztec-iOS)\n\n## About Aztec \u0026 WordPressEditor\n\nAztec is a Swift library that provides a `UITextView` subclass with HTML visual-editing capabilities.\n\n - Use this library if you want to create an App that interacts with raw HTML content.\n\nWordPressEditor is a Swift library that provides a plugin to make Aztec work with WordPress content.\n\n - Use this library if you want to create an App that interacts with WordPress HTML content.\n\n## Requirements\n\n- iOS 11 and above\n- Xcode 12 and above\n\n## Running the Example App\n\nTo run the Example app, you first  open the file `Aztec.xcworkspace` from the root directory of Aztec.\n\nMake sure the `AztecExample` target it selected, and press CMD + R to run it.\n\n## Integrating the Library with Carthage\n\nBoth libraries are available through [Carthage](https://github.com/Carthage/Carthage). To install\nit, simply add the following line to your Cartfile:\n\n```bash\ngithub \"wordpress-mobile/AztecEditor-iOS\" \"1.0\" # or the version number you want\ngithub \"wordpress-mobile/WordPressEditor-iOS\" \"1.0\"\n```\n\nFollow [these instructions](https://github.com/Carthage/Carthage#getting-started) to add `Aztec.framework` or `WordPressEditor.framework` to your App.\n\nThen:\n\n1. Open your project, head to **Build Settings** for your target and add `$(SDKROOT)/usr/include/libxml2/` to your **Header Search Paths**.\n2. Go to `Build Phases` \u003e `Link Binary With Libraries` and add `Aztec.framework`.\n3. Add `import Aztec` to your project's source.\n\n## Integrating the Library with CocoaPods\n\nBoth libraries are available through [CocoaPods](http://cocoapods.org). To install\nthem, simply add the following lines to your Podfile:\n\n```bash\npod \"WordPress-Aztec-iOS\", \"1.0\" # or the version number you want\npod \"WordPress-Editor-iOS\", \"1.0\"\n```\n\n## Integrating the Library with SPM\n\nBoth libraries are available through [SPM](https://www.swift.org/package-manager/). To install them, add the package to your package \ndependencies and the appropriate library to your target dependencies.\n\n```Swift\nlet package = Package(\n    name: \"YourPackage\",\n    products: [\n        .library(name: \"YourLibrary\", targets: [\"YourTarget\"]),\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/wordpress-mobile/AztecEditor-iOS\", .upToNextMajor(from: \"1.20.0\")),\n    ],\n    targets: [\n        .target(\n            name: \"YourTarget\",\n            dependencies: [\n                .product(name: \"Aztec\", package: \"AztecEditor-iOS\"), // You can choose...\n                .product(name: \"WordPressEditor\", package: \"AztecEditor-iOS\"), // which library you need.\n            ]\n        ),\n    ]\n)\n```\n\n#### Via Xcode\n\nYou can also just use the project repo URL (https://github.com/wordpress-mobile/AztecEditor-iOS) via Xcode!\n\n_**note**_: SPM support was added in version 1.20.0, tags prior to that will fail to resolve in SPM.\n\n## Usage\n\nAfter installing Aztec, import the module and use the `Aztec.TextView` view as shown below:\n\n```swift\nimport Aztec\n\n// ...\n\nlet textView = Aztec.TextView(\n    defaultFont: UIFont,\n    defaultParagraphStyle: ParagraphStyle = ParagraphStyle.default,\n    defaultMissingImage: UIImage) {\n```\n\n## Contributing\n\nRead our [Contributing Guide](CONTRIBUTING.md) to learn about reporting issues, contributing code, and more ways to contribute.\n\n## Getting in Touch\n\nIf you have questions about getting setup or just want to say hi, join the [WordPress Slack](https://chat.wordpress.org) and drop a message on the `#mobile` channel.\n\n## License\n\nAztecEditor-iOS and WordPress-Editor-iOS are open source projects covered by the [Mozilla Public License Version 2.0](LICENSE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordpress-mobile%2Fazteceditor-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwordpress-mobile%2Fazteceditor-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordpress-mobile%2Fazteceditor-ios/lists"}