Skip to content

hivecms/quillview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quillview

Display quill format on iOS native views.

Installtion

vi Podfile
platform :ios, '8.0'

target 'your_target_name' do
    pod 'QuillView', :git => 'https://github.com/hivecms/QuillView.git'
end
pod install

Usage

#import "QuillView.h"

...

QuillView *quillView = [[QuillView alloc] initWithFrame:frame];
quillView.contentStrings = @"{\"ops\":[{\"insert\":\"Quill uses classes for most inline styles.\\n\\nThe exception is \"},{\"attributes\":{\"background\":\"yellow\"},\"insert\":\"background\"},{\"insert\":\" and \"},{\"attributes\":{\"color\":\"purple\"},\"insert\":\"color\"},{\"insert\":\",\\nwhere it uses inline styles.\\n\\nThis \"},{\"attributes\":{\"font\":\"PingFang TC\",\"strike\":\"true\"},\"insert\":\"demo\"},{\"insert\":\" shows how to \"},{\"attributes\":{\"size\":\"32px\"},\"insert\":{\"formula\":\"change\"}},{\"insert\":\" this.\\n\"}]}";
[self.view addSubView: QuillView];

Ref

Quill Editor https://quilljs.com/ https://github.com/quilljs/quill

CSS Parser https://github.com/gavinkwoe/BeeFramework/tree/master/framework/mvc/view/css