views:

11

answers:

0

Hi i create my own filemanager. This open in a popup.

if i insert a link to an text the code is work perfect, but if i use it an image remove the selected image in opener window

function addslashes(str){return (str+'').replace(/[\"']/g, '\$&').replace(/\u0000/g, '\0')}

var code = window.opener.tinyMCE.activeEditor.selection.getContent(); var code = addslashes(code); window.opener.tinyMCE.activeEditor.selection.setContent(''+code+''); window.close();

Please help someone!!!