D drmover Member Licensed User Longtime User Feb 22, 2012 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2012 #2 What do you mean? Do you want to load an existing web page and change parts of it? Upvote 0
D drmover Member Licensed User Longtime User Feb 23, 2012 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2012 #4 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. Upvote 0
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.
warwound Expert Licensed User Longtime User Feb 23, 2012 #5 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... 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.