Deadpikle / iOS-Rich-Text-Editor

A Rich Text Editor library for iOS
Other
14 stars 10 forks source link

Try to resize image attachment display size. #10

Closed hstdt closed 7 years ago

hstdt commented 7 years ago

To show large size images, here's my idea of resize.

hstdt commented 7 years ago

Before: richtexteditorbefore After: richtexteditordemo

Deadpikle commented 7 years ago

👍

Deadpikle commented 7 years ago

In the future, though, be a bit careful about your pull requests -- your changes in RichTextEditor.m from #8 showed up here!

hstdt commented 7 years ago

@Deadpikle

When saving attributedString to rtfd data,attachmentBoundsForTextContainer in RichTextImageAttachmentwill lost, but NSKeyedArchiver works well(slower).

Maybe this is not the best way of solving image size..😓

image

image

Deadpikle commented 7 years ago

@hstdt Perhaps there is something you/we could do with DTCoreText to save and load the text with attachment? At the very least, you could save it as HTML more easily that way. Something to look into...hmm...

See #11.