Editing HTML content in an iOS app

Is there a good way to enable editing HTML content in an iOS app?

For example, if you are creating an email application and want to allow reply to email and edit the original message. It should pretty much support any valid HTML, including images, styles, etc.

I tried contenteditable UIWebViewand also used NSAttributedStringwith UITextView, but none of them is a good solution. UIWebViewThere is no way to control the content or cursor position, and UITextViewwill not display HTML that contains images and other elements.

+4
source share
2 answers

If you don’t want to show the code textareawith the code html, I think the only way is to use a mobile text editor with a toolbar, etc., because it contenteditableuses shortcuts like crtl+ bright ?!

Check out these two guys for mobile browsers:

http://mindmup.imtqy.com/bootstrap-wysiwyg/

http://imperavi.com/redactor/

UPDATE

For your own applications, you can try:

http://www.omnigroup.com/omnioutliner

https://github.com/aryaxt/iOS-Rich-Text-Editor

http://www.cocoanetics.com/parts/dtrichtexteditor/

https://github.com/enormego/EGOTextView

+2
source

Check out these links for a tutorial. It contains a detailed explanation with the code.

http://ios-blog.co.uk/tutorials/rich-text-editing-a-simple-start-part-1/

0

Source: https://habr.com/ru/post/1525539/


All Articles