сделал вот так:
<script language="javascript" type="text/javascript">
<!--
function startUpload(){
document.getElementById('myf1_upload_process').style.visibility = 'visible';
document.getElementById('myf1_upload_form').style.visibility = 'hidden';
return true;
}
function stopUpload(success){
var result = '';
if (success == 1){
result = '<span class="mymsg">The file was uploaded successfully!<\/span>';
}
else {
result = '<span class="myemsg">There was an error during file upload!<\/span>';
}
document.getElementById('myf1_upload_process').style.visibility = 'hidden';
document.getElementById('myf1_upload_form').innerHTML = result + '<br/>File: <input name="myfile" type="file" accept="image/*" size="0" /><input type="submit" name="submitBtn" class="mysbtn" value="Upload" />';
document.getElementById('myf1_upload_form').style.visibility = 'visible';
editor = ipb.textEditor.getEditor(ipb.topic.fastReplyId);
editor.insert("[img]URL For Uploaded Photo[/img]", true );
return true;
}
//-->
</script>
добавил:
editor = ipb.textEditor.getEditor(ipb.topic.fastReplyId);
editor.insert("[img]URL For Uploaded Photo[/img]", true );
и он вставляет: [img]URL For Uploaded Photo[/img]
но, как получить ссылку на фото вместо:
URL For Uploaded Photo