I am building a rich text editor in android. To do so, I am using a webView
with a contentEditable div.
To add styles, I invoke JavaScrip
I have implemented a richTextEditor using WebView
and JavaScript
.
I had no problem in inserting/deleting image that I have added to content editable html page. Code that I have used for inserting image is
String exeSucess = "document.execCommand('insertHtml', false,'');";
//Then code for executing this javascript.
Thanks.