When I try to insert an image URL into my wysiwyg editor, Firefox seems to be replacing the URL with "../../"
string += "<img src='"+encodeURI(domain)+"/"+file_name+"' id='"+filename+"'>";
console.log(string);
However, the console output is:
<img src='http://www.testing.com/web_graph.gif' id='web_graph.gif'>
Then, when using:
document
.getElementById("texto_a_editar")
.contentWindow
.document
.execCommand('inserthtml', false, string);
I end up with:
<img src="../web_graph.gif" id="web_graph.gif">
Any suggestions on how to ensure the complete URL is displayed instead?