Edit HTML letter

drmover

Member
Licensed User
Longtime User
Hello,

Is it possible to edit an HTML letter from the Android? currently I am using the WebView which act as read only.

Any advice or idea what should I do?

Thank you,
Elad.
 

drmover

Member
Licensed User
Longtime User
Hello Erel,

Thank you for your reply.

I am using LoadHtml function to load an existing HTML file into WebView object.

After the file has been loaded, I want to be able to edit it on screen like FrontPage is doing.

Thanks,
Elad
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
There is no built-in support for such feature. Maybe you can add some javascript to your html that will make parts of it editable.

With the advent of HTML5 that is no longer true...

Have a look at the new technology: html5 contentEditable designMode - Google Search.

You can make individual HTML elements' content editable or the entire HTML page content editable.

Saving a page which the user has edited is less straightforward, there are no API methods to tell you which (if any) HTML elements a user has edited.
So you'd have to use javascript to grab the entire page content if you want to save it.

Tested and works in a Froyo emulator so the WebView does support these methods - try this url in the stock browser or a WebView: HTML5 Demo: ContentEditable.

Martin.
 
Upvote 0
Top