tags:

views:

34

answers:

2

Hi

I have seen some write about making a UIWebView editable. I would like to be able to compose a message containing both text and images the WYSIWYG way, and I thought that I might do it with a UIWebView.

Is this a good solution and how do I do this? I have searched the web for examples, but found none.

Thank you

A: 

You could use the loadHTML:baseURL method from the UIWebView class reference:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html

Place this in the textViewDidEndEditing: delegate method of the UITextView:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextView_Class/Reference/UITextView.html

Evan Mulawski
A: 

Actually UIWebView way is so painful, mobile safari does not support WYSIWYG rich text editor area.

From Zoho FAQ :

I can't create or edit documents on my iPhone, the keyboard doesn't show up when opening iZoho on iPhone. What's the problem?

It is an issue with the iPhone as the safari browser doesn't seem to recognize the rich text editor area and hence the keyboard isn't appearing. This is not an iZoho specific problem as all the applications that use a WYSIWYG editor face the same issue. We hope that Apple will address this issue soon and come up with the next version of iPhone's Safari that supports rich text editing. As a workaround, we may give a plain text editor for users to edit/create their documents if this isn't corrected in Safari's next version.

You should implement rich text editing by yourself :(

Deniz Mert Edincik