├── .ruby-version
├── .xcode-version
├── Sources
├── Aztec
│ ├── Classes
│ │ ├── .gitkeep
│ │ ├── Processor
│ │ │ ├── Processor.swift
│ │ │ ├── PipelineProcessor.swift
│ │ │ ├── HTMLTreeProcessor.swift
│ │ │ ├── RegexProcessor.swift
│ │ │ └── ShortcodeAttribute.swift
│ │ ├── Extensions
│ │ │ ├── UILayoutPriority+Swift4.swift
│ │ │ ├── NSAttributedString+CharacterName.swift
│ │ │ ├── UIFont+Emoji.swift
│ │ │ ├── DocumentReadingOptionKey+Swift4.swift
│ │ │ ├── Array+Helpers.swift
│ │ │ ├── DocumentType+Swift4.swift
│ │ │ ├── UIStackView+Helpers.swift
│ │ │ ├── NSBundle+AztecBundle.swift
│ │ │ ├── NSAttributedString+Archive.swift
│ │ │ ├── NSAttributedString+ReplaceOcurrences.swift
│ │ │ ├── UITextView+Delegate.swift
│ │ │ ├── StringUTF16+RangeConversion.swift
│ │ │ ├── NSLayoutManager+Attachments.swift
│ │ │ ├── NSMutableAttributedString+ParagraphProperty.swift
│ │ │ ├── Array+ShortcodeAttribute.swift
│ │ │ ├── UIColor+Parsers.swift
│ │ │ ├── NSTextingResult+Helpers.swift
│ │ │ ├── NSMutableAttributedString+ReplaceAttributes.swift
│ │ │ ├── Array+Attribute.swift
│ │ │ ├── NSAttributedStringKey+Conversion.swift
│ │ │ ├── NSAttributedString+Analyzers.swift
│ │ │ ├── UIFont+Traits.swift
│ │ │ └── UITextView+Undoable.swift
│ │ ├── Formatters
│ │ │ ├── Implementations
│ │ │ │ ├── BoldFormatter.swift
│ │ │ │ ├── ItalicFormatter.swift
│ │ │ │ ├── ColorFormatter.swift
│ │ │ │ ├── StrikethroughFormatter.swift
│ │ │ │ ├── CiteFormatter.swift
│ │ │ │ ├── UnderlineFormatter.swift
│ │ │ │ ├── SubscriptFormatter.swift
│ │ │ │ ├── SuperscriptFormatter.swift
│ │ │ │ └── FigureFormatter.swift
│ │ │ └── Base
│ │ │ │ └── FontFormatter.swift
│ │ ├── NSAttributedString
│ │ │ ├── Conversions
│ │ │ │ ├── ParagraphPropertyConverters
│ │ │ │ │ └── Base
│ │ │ │ │ │ └── ParagraphPropertyConverter.swift
│ │ │ │ └── AttachmentToElementConverter
│ │ │ │ │ ├── CommentAttachmentToElementConverter.swift
│ │ │ │ │ ├── HTMLAttachmentToElementConverter.swift
│ │ │ │ │ ├── LineAttachmentToElementConverter.swift
│ │ │ │ │ └── Base
│ │ │ │ │ └── AttachmentToElementConverter.swift
│ │ │ └── Attributes
│ │ │ │ └── UnsupportedHTML.swift
│ │ ├── Converters
│ │ │ ├── StringAttributesToAttributes
│ │ │ │ ├── Base
│ │ │ │ │ └── StringAttributeConverter.swift
│ │ │ │ ├── ConditionalConverters
│ │ │ │ │ └── ConditionalItalicStringAttributeConverter.swift
│ │ │ │ └── Implementations
│ │ │ │ │ ├── UnderlineStringAttributeConverter.swift
│ │ │ │ │ ├── SubscriptStringAttributeConverter.swift
│ │ │ │ │ ├── SuperscriptStringAttributeConverter.swift
│ │ │ │ │ └── ItalicStringAttributeConverter.swift
│ │ │ ├── AttributesToStringAttributes
│ │ │ │ ├── Base
│ │ │ │ │ ├── MainAttributesConverter.swift
│ │ │ │ │ └── ElementAttributeConverter.swift
│ │ │ │ └── Implementations
│ │ │ │ │ ├── UnderlineElementAttributeConverter.swift
│ │ │ │ │ ├── ForegroundColorElementAttributeConverter.swift
│ │ │ │ │ ├── BoldElementAttributeConverter.swift
│ │ │ │ │ └── ItalicElementAttributeConverter.swift
│ │ │ └── ElementsToAttributedString
│ │ │ │ ├── Implementations
│ │ │ │ ├── BRElementConverter.swift
│ │ │ │ ├── CiteElementConverter.swift
│ │ │ │ ├── FigcaptionElementConverter.swift
│ │ │ │ ├── FigureElementConverter.swift
│ │ │ │ └── HRElementConverter.swift
│ │ │ │ └── Base
│ │ │ │ ├── AttachmentElementConverter.swift
│ │ │ │ ├── ElementConverter.swift
│ │ │ │ └── FormatterElementConverter.swift
│ │ ├── TextKit
│ │ │ ├── Configuration.swift
│ │ │ ├── ParagraphProperty
│ │ │ │ ├── Figure.swift
│ │ │ │ ├── HTMLPre.swift
│ │ │ │ ├── HTMLDiv.swift
│ │ │ │ ├── HTMLParagraph.swift
│ │ │ │ ├── HTMLLi.swift
│ │ │ │ ├── Blockquote.swift
│ │ │ │ ├── Figcaption.swift
│ │ │ │ └── ParagraphProperty.swift
│ │ │ ├── FontProvider.swift
│ │ │ ├── RenderableAttachment.swift
│ │ │ └── LineAttachment.swift
│ │ ├── GUI
│ │ │ ├── Assets.swift
│ │ │ └── FormatBar
│ │ │ │ ├── FormatBarDelegate.swift
│ │ │ │ └── FormattingIdentifier.swift
│ │ ├── Constants
│ │ │ └── Metrics.swift
│ │ └── Plugin
│ │ │ ├── PluginInputCustomizer.swift
│ │ │ ├── Plugin.swift
│ │ │ └── PluginOutputCustomizer.swift
│ ├── Aztec.swift
│ └── Assets
│ │ └── Media.xcassets
│ │ ├── Contents.json
│ │ ├── play.imageset
│ │ ├── gridicons-play.pdf
│ │ └── Contents.json
│ │ └── image.imageset
│ │ ├── gridicons-image.pdf
│ │ ├── gridicons-image-dark.pdf
│ │ └── Contents.json
├── WordPressEditor
│ ├── Assets
│ │ └── aztec.png
│ └── Classes
│ │ ├── Plugins
│ │ └── WordPressPlugin
│ │ │ ├── Calypso
│ │ │ ├── GalleryShortcode
│ │ │ │ ├── GallerySupportedAttribute.swift
│ │ │ │ ├── GalleryAttachment.swift
│ │ │ │ ├── GalleryShortcodeInputProcessor.swift
│ │ │ │ └── GalleryElementToTagConverter.swift
│ │ │ └── Embeds
│ │ │ │ └── WordPressPasteboardDelegate.swift
│ │ │ ├── Gutenberg
│ │ │ ├── GutenbergAttributeNames.swift
│ │ │ ├── Gutenblock.swift
│ │ │ ├── GutenpackAttachmentToElementConverter.swift
│ │ │ ├── GutenbergAttributeDecoder.swift
│ │ │ ├── GutenblockConverter.swift
│ │ │ ├── GutenpackConverter.swift
│ │ │ └── GutenbergAttributeEncoder.swift
│ │ │ └── WordPressPlugin.swift
│ │ └── Extensions
│ │ ├── MediaAttachment+WordPress.swift
│ │ └── VideoAttachment+WordPress.swift
└── HTMLParser
│ ├── DOM
│ ├── Logic
│ │ └── CSS
│ │ │ ├── CSSAttributeMatcher.swift
│ │ │ ├── ForegroundColorCSSAttributeMatcher.swift
│ │ │ ├── ItalicCSSAttributeMatcher.swift
│ │ │ ├── UnderlineCSSAttributeMatcher.swift
│ │ │ └── BoldCSSAttributeMatcher.swift
│ └── Data
│ │ ├── CommentNode.swift
│ │ ├── AttributeType.swift
│ │ └── CSSAttributeType.swift
│ ├── Converters
│ └── In
│ │ ├── InAttributesConverter.swift
│ │ ├── InNodesConverter.swift
│ │ └── InAttributeConverter.swift
│ ├── Extensions
│ ├── String+CharacterName.swift
│ ├── Character+Name.swift
│ └── String+HTML.swift
│ ├── ElementsToHTML
│ ├── Base
│ │ └── ElementToStringConverter.swift
│ └── Implementations
│ │ └── GenericElementToTagConverter.swift
│ └── HTMLToElements
│ └── Converter.swift
├── docs
└── resources
│ ├── application.css
│ ├── application.js
│ ├── file_cpp.png
│ ├── file_objc.png
│ ├── xcov_logo.png
│ ├── file_swift.png
│ ├── main.js
│ └── opensans.css
├── .bundle
└── config
├── RepoAssets
└── aztec.png
├── Example
├── Example
│ ├── Images.xcassets
│ │ ├── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── ItunesArtwork@2x.png
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-57x57@1x.png
│ │ │ ├── Icon-App-57x57@2x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ └── Icon-App-83.5x83.5@2x.png
│ ├── SampleContent
│ │ ├── failedMedia.html
│ │ ├── videoShortcodes.html
│ │ ├── gallery.html
│ │ ├── underline.html
│ │ ├── video.html
│ │ ├── imagesOverlays.html
│ │ ├── bigLists.html
│ │ └── captions.html
│ ├── UIImage+SaveTo.swift
│ └── Info.plist
├── AztecExample.xcodeproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Example.xcworkspace
│ └── contents.xcworkspacedata
└── AztecUITests
│ ├── Info.plist
│ ├── Pages
│ ├── BlogsPage.swift
│ ├── BasePage.swift
│ └── EditLinkPage.swift
│ └── Logger.swift
├── Tests
├── AztecTests
│ ├── Resources
│ │ ├── aztec.png
│ │ ├── HTMLAttachmentRender_2x.png.dat
│ │ ├── HTMLAttachmentRender_3x.png.dat
│ │ ├── UIImageResizeImage1_2x.png.dat
│ │ ├── UIImageResizeImage1_3x.png.dat
│ │ ├── UIImageResizeImage2_2x.png.dat
│ │ ├── UIImageResizeImage2_3x.png.dat
│ │ ├── CommentAttachmentRender_2x.png.dat
│ │ ├── CommentAttachmentRender_3x.png.dat
│ │ └── README.md
│ ├── TestingSupport
│ │ ├── UIKit+Extensions.swift
│ │ ├── NSBundle+AztecTestsBundle.swift
│ │ ├── TextViewStubDelegate.swift
│ │ ├── TextViewStub.swift
│ │ └── TextViewStubAttachmentDelegate.swift
│ ├── Processor
│ │ ├── ShortcodeAttributeSerializerTests.swift
│ │ ├── HTMLProcessorTests.swift
│ │ └── HTMLTreeProcessorTests.swift
│ ├── Aztec.xctestplan
│ ├── Extensions
│ │ ├── UIStackViewHelpersTests.swift
│ │ ├── ArrayHelperTests.swift
│ │ ├── NSMutableAttributedStringParagraphProperty.swift
│ │ ├── UIColorHexParserTests.swift
│ │ └── NSAttributedStringKeyHelperTests.swift
│ ├── TextKit
│ │ ├── ParagraphStyleTests.swift
│ │ └── UnsupportedHTMLTests.swift
│ ├── Importer
│ │ └── InAttributeConverterTests.swift
│ └── Converters
│ │ ├── ElementToAttributedString
│ │ └── GenericElementConverterTests.swift
│ │ └── AttributesToStringAttributes
│ │ ├── ItalicElementAttributeConverterTests.swift
│ │ └── UnderlineElementAttributeConverterTests.swift
├── WordPressEditorTests
│ ├── Resources
│ │ ├── GutenpackAttachmentRender_2x.png
│ │ └── GutenpackAttachmentRender_3x.png
│ ├── Extensions
│ │ ├── StringRegExTests.swift
│ │ ├── VideoAttachmentWordPressTests.swift
│ │ └── MediaAttachmentWordPressTests.swift
│ └── WordPressPlugin
│ │ ├── Calypso
│ │ ├── GalleryShortcode
│ │ │ ├── GalleryElementToTagConverterTests.swift
│ │ │ └── GalleryShortcodeInputProcessorTests.swift
│ │ └── AutopRemovep
│ │ │ └── RemovePProcessorTests.swift
│ │ └── Gutenberg
│ │ └── GutenblockTests.swift
└── HTMLParserTests
│ └── HTML
│ └── Nodes
│ └── TextNodeTests.swift
├── Gemfile
├── Documentation
└── resources
│ ├── html_to_nsattributedstring.png
│ └── nsattributedstring_to_html.png
├── .github
├── ISSUE_TEMPLATE
│ ├── custom.md
│ ├── feature_request.md
│ └── bug_report.md
├── ISSUE_TEMPLATE.md
└── PULL_REQUEST_TEMPLATE.md
├── .swiftpm
└── xcode
│ └── package.xcworkspace
│ └── contents.xcworkspacedata
├── Scripts
└── build.sh
├── .rubocop.yml
├── .editorconfig
├── .buildkite
├── shared-pipeline-vars
├── publish-aztec-pod.sh
└── publish-editor-pod.sh
├── WordPress-Editor-iOS.podspec
├── Package.swift
├── .gitignore
├── WordPress-Aztec-iOS.podspec
└── fastlane
└── Fastfile
/.ruby-version:
--------------------------------------------------------------------------------
1 | 3.2.2
2 |
--------------------------------------------------------------------------------
/.xcode-version:
--------------------------------------------------------------------------------
1 | 16.4
2 |
--------------------------------------------------------------------------------
/Sources/Aztec/Classes/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/resources/application.css:
--------------------------------------------------------------------------------
1 | //= require_self
2 |
--------------------------------------------------------------------------------
/docs/resources/application.js:
--------------------------------------------------------------------------------
1 | //= require_self
2 |
--------------------------------------------------------------------------------
/.bundle/config:
--------------------------------------------------------------------------------
1 | ---
2 | BUNDLE_PATH: "vendor/bundle"
3 |
--------------------------------------------------------------------------------
/Sources/Aztec/Aztec.swift:
--------------------------------------------------------------------------------
1 | @_exported import HTMLParser
2 |
--------------------------------------------------------------------------------
/RepoAssets/aztec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/RepoAssets/aztec.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/docs/resources/file_cpp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/docs/resources/file_cpp.png
--------------------------------------------------------------------------------
/docs/resources/file_objc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/docs/resources/file_objc.png
--------------------------------------------------------------------------------
/docs/resources/xcov_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/docs/resources/xcov_logo.png
--------------------------------------------------------------------------------
/Sources/Aztec/Assets/Media.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/docs/resources/file_swift.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/docs/resources/file_swift.png
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/aztec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/aztec.png
--------------------------------------------------------------------------------
/Sources/WordPressEditor/Assets/aztec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Sources/WordPressEditor/Assets/aztec.png
--------------------------------------------------------------------------------
/Sources/Aztec/Classes/Processor/Processor.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public protocol Processor {
4 | func process(_ text: String) -> String
5 | }
6 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | source 'https://rubygems.org'
4 |
5 | gem 'cocoapods', '~> 1.12'
6 | gem 'fastlane', '~> 2.226'
7 | gem 'rubocop', '~> 1.18'
8 |
--------------------------------------------------------------------------------
/Documentation/resources/html_to_nsattributedstring.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Documentation/resources/html_to_nsattributedstring.png
--------------------------------------------------------------------------------
/Documentation/resources/nsattributedstring_to_html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Documentation/resources/nsattributedstring_to_html.png
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/HTMLAttachmentRender_2x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/HTMLAttachmentRender_2x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/HTMLAttachmentRender_3x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/HTMLAttachmentRender_3x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/UIImageResizeImage1_2x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/UIImageResizeImage1_2x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/UIImageResizeImage1_3x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/UIImageResizeImage1_3x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/UIImageResizeImage2_2x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/UIImageResizeImage2_2x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/UIImageResizeImage2_3x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/UIImageResizeImage2_3x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/CommentAttachmentRender_2x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/CommentAttachmentRender_2x.png.dat
--------------------------------------------------------------------------------
/Tests/AztecTests/Resources/CommentAttachmentRender_3x.png.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/AztecTests/Resources/CommentAttachmentRender_3x.png.dat
--------------------------------------------------------------------------------
/Sources/Aztec/Assets/Media.xcassets/play.imageset/gridicons-play.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Sources/Aztec/Assets/Media.xcassets/play.imageset/gridicons-play.pdf
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/custom.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Custom issue template
3 | about: Describe this issue template's purpose here.
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png
--------------------------------------------------------------------------------
/Sources/Aztec/Assets/Media.xcassets/image.imageset/gridicons-image.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Sources/Aztec/Assets/Media.xcassets/image.imageset/gridicons-image.pdf
--------------------------------------------------------------------------------
/Tests/WordPressEditorTests/Resources/GutenpackAttachmentRender_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/WordPressEditorTests/Resources/GutenpackAttachmentRender_2x.png
--------------------------------------------------------------------------------
/Tests/WordPressEditorTests/Resources/GutenpackAttachmentRender_3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Tests/WordPressEditorTests/Resources/GutenpackAttachmentRender_3x.png
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ### Expected behavior
2 |
3 |
4 | ### Actual behavior
5 |
6 |
7 | ### Steps to reproduce the behavior
8 |
9 |
10 | ##### Tested on [device], iOS [version], Aztec [version]
11 |
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wordpress-mobile/AztecEditor-iOS/develop/Example/Example/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/Sources/Aztec/Classes/Formatters/Implementations/BoldFormatter.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 |
3 | class BoldFormatter: FontFormatter {
4 |
5 | init() {
6 | super.init(traits: .traitBold, htmlRepresentationKey: .boldHtmlRepresentation)
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/Sources/Aztec/Classes/Formatters/Implementations/ItalicFormatter.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 |
3 | class ItalicFormatter: FontFormatter {
4 |
5 | init() {
6 | super.init(traits: .traitItalic, htmlRepresentationKey: .italicHtmlRepresentation)
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/Sources/Aztec/Classes/NSAttributedString/Conversions/ParagraphPropertyConverters/Base/ParagraphPropertyConverter.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public protocol ParagraphPropertyConverter {
4 | func convert(_ property: ParagraphProperty) -> ElementNode?
5 | }
6 |
--------------------------------------------------------------------------------
/Sources/Aztec/Assets/Media.xcassets/play.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "gridicons-play.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/Tests/AztecTests/TestingSupport/UIKit+Extensions.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 |
3 | extension UIPasteboard {
4 | static let forTesting = UIPasteboard.withUniqueName()
5 |
6 | /// Remove all items from the pasteboard
7 | ///
8 | func reset() {
9 | self.items = [[:]]
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Tests/AztecTests/TestingSupport/NSBundle+AztecTestsBundle.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | extension Bundle {
4 | @objc public class var aztecTestsBundle: Bundle {
5 | #if SWIFT_PACKAGE
6 | return .module
7 | #else
8 | return Bundle(for: TextViewStub.self)
9 | #endif
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Sources/Aztec/Classes/Extensions/NSAttributedString+CharacterName.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | extension NSAttributedString {
4 | convenience init(_ characterName: Character.Name, attributes: [NSAttributedString.Key: Any]?) {
5 | self.init(string: String(characterName), attributes: attributes)
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/Example/AztecExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
12 |
3 | 20px Wide Image:
4 | 
5 | 50px Wide Image:
6 | 
7 | 70px Wide Image:
8 | 
9 | 90px Wide Image:
10 | 
11 | 120px Wide Image:
12 | 
13 | 200px Wide Image:
14 | 
15 | 300px Wide Image:
16 |
17 |