fix: Rich Editor - Add Asset Link doesn't work with images.

This commit is contained in:
Doug Bell 2007-02-15 03:42:08 +00:00
parent 717429037d
commit 126978314f
2 changed files with 2 additions and 1 deletions

View file

@ -179,7 +179,7 @@ function createLink() {
var link = '<a href="'+"^" + "/" + ";" + document.getElementById("url_formId").value+'"';
var target = document.getElementById('target_formId').value;
if (target != '_self') link += ' target="' + target + '"';
link += '>' + window.opener.tinyMceSelectedText + '</a>';
link += '>' + window.opener.tinyMCE.selectedInstance.selection.getSelectedHTML() + '</a>';
window.opener.tinyMCE.execCommand("mceInsertContent",false,link);
window.close();
}