WebView を使用して RichTextEditor を実装しようとしています。
次のコードを使用して画像を挿入しました。それは完璧に機能しています。
webview.loadUrl("javascript:
(function () { document.execCommand('insertImage', 'false','"
+ selectedImagePath +"');})()");
高さと幅を指定するには、次のコマンドを使用しましたが、機能しません。
String imagSpec = " width=" + 200 + " height=" + 200 + " border= 5" ;
webview.loadUrl("javascript(function () {
document.execCommand('insertImage', 'false','"
+ selectedImagePath +imagSpec+ "');})()");
正しく行うのを手伝ってください。