42

GitHub - GeekTree0101/VEditorKit: Lightweight and Powerful Editor Kit (Beta)

 5 years ago
source link: https://github.com/GeekTree0101/VEditorKit
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

logo.png

CI Status Version License Platform

Lightweight and Powerful Editor Kit built on Texture(AsyncDisplayKit) https://github.com/texturegroup/texture.
VEditorKit provides the most core functionality needed for the editor. Unfortunately, When combined words are entered then UITextView selectedRange will changed and typingAttribute will cleared. So, In combined words case, Users can't continue typing the style they want.

TypingAttributes Spec

When the text view’s selection changes, the contents of the dictionary are cleared automatically. https://developer.apple.com/documentation/uikit/uitextview/1618629-typingattributes

Basic spec list

  • Advanced EditableTextView (Support Combined words such as Korean)
  • Default Image, Video, Og-Object(Link Preview) UI Components
  • XML Parser & Builder
  • Editor Rule Base Development

Example


Bi-direction attribute binding Combined Words TypingAttribute Regex pattern base attributed typing english.gif korean.gif regexAttributeTyping.gif XML Parse & Build Delete Media Content & Merge TextViews Auto-generate Link Preview test4.gif test3.gif placeholder.gif

Usage

Requirements

  • Xcode <~ 9.0
  • Swift 4.2
  • iOS <~ 9.3

Installation

VEditorKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'VEditorKit'

Author

Geektree0101, [email protected]

License

VEditorKit is available under the MIT license. See the LICENSE file for more info.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK