InsertImage in document.execCommand not appearing
<p>So I made a function to insert image through document.execcommand in JavaScript..</p>

<pre><code>function images() {
    var img = prompt ("Enter the image link", "");
    if (img != null) {
    lol.document.execCommand("insertImage", false, img);
    }
    };
</code></pre>

<p>The image is not appearing, even on live server.. It shows the broken image icon. This code is supported by all browsers. The rest of my execcommand functions are working well.. </p>
