Is there a good way to allow editing of HTML content in a native iOS application?
For example, if you are building an email app and want to allow replying to an email and editing the original message. It needs to pretty much support any valid HTML, including images, styles, etc.
I've tried a contenteditable UIWebView as well as using NSAttributedString with a UITextView, but neither are good solutions - UIWebView does not have any way to manage content or cursor position, and UITextView will not render HTML that includes images and other elements.
Unless you're willing to show a textarea with html code, I think the only way is to go for a mobile rich text editor with a toolbar and stuff, because contenteditable uses shortcuts like crtl + b right?!
Check out these two guys for mobile browsers:
http://mindmup.github.io/bootstrap-wysiwyg/
http://imperavi.com/redactor/
UPDATE
For native apps you may 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With