I am attempting to use the designMode property of a document in
WebView but it doesn't seem to work. Is this something that is just
not implemented yet, or will not be implemented?
For background, setting designMode = "on" on a document should make
that document editable in the browser. This is how rich text controls
are often implemented in web pages.
WebView seems to recognize the property and in some cases behaves
differently depending on whether or not it's set, but I cannot seem to
actually edit text.
This small HTML file shows the issue. This works fine in Safari (Mac)
and Firefox (Mac) but does not in a WebView or Browser under Android.
If it is working properly then clicking the "Enable Design Mode"
button should cause the entire document to become editable.
<html>
<body>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,<br/>
sed do eiusmod tempor incididunt ut labore et dolore magna,<br/>
aliqua. Ut enim ad minim veniam, quis nostrud exercitation,<br/>
ullamco laboris nisi ut aliquip ex ea commodo consequat.,<br/>
Duis aute irure dolor in reprehenderit in voluptate velit,<br/>
esse cillum dolore eu fugiat nulla pariatur. Excepteur,<br/>
sint occaecat cupidatat non proident, sunt in culpa,<br/>
qui officia deserunt mollit anim id est laborum.,<br/>
<br/>
<script language="JavaScript">
function enableDesignMode()
{
var elem = document;
elem.designMode = "on";
}
</script>
<br/>
<input type="button" value="Enable Design Mode" onClick="return
enableDesignMode();"/>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---