Can't delete image in contenteditable div on Android

后端 未结 3 1273
情书的邮戳
情书的邮戳 2021-02-08 08:12

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

3条回答
  •  离开以前
    2021-02-08 08:49

    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.

提交回复
热议问题