okay ich hab da einen temp bugfix gebaut...
ersetzt die function SPAW_hyperlink_click in contenido\external\wysiwyg\script.js.php
Code: Alles auswählen
function SPAW_hyperlink_click(editor, sender) // CONTENIDO
{
window.frames[editor+'_rEdit'].focus();
var hyp = SPAW_getLink(editor); // current link
var myLink = new Object();
if (hyp)
{
myLink.Href = hyp.href.replace('<?php echo $cfgClient[$client]['path']['htmlpath'];?>', '');
myLink.Target = hyp.target;
} else {
myLink = false;
}
var slink = showModalDialog("<?php echo $spaw_dir ?>" + "dialogs/insert_link.php?client=<?php echo $client;?>&lang=<?php echo $lang;?>&belang=<?php echo $belang;?>",myLink,"dialogHeight: 170px; dialogWidth: 430px; resizable: no; help: no; status: no; scroll: no; " );
if(slink != null) {
if (slink) {
this[editor+'_rEdit'].document.execCommand('CreateLink',false,slink.Href); // Insert Url
if (!hyp.target) { // try to get link
var hyp = SPAW_getLink(editor);
}
if (hyp) {
if (slink.Target != "") { // if target available set it
hyp.target = slink.Target;
} else { // remove it
hyp.removeAttribute("target");
}
} else { // link capturing failed
if (slink.Target != "") { // only warn if target was selected
alert("Selected target could not be set. Select link once and try again.");
}
}
}
} else {
this[editor+'_rEdit'].document.execCommand('UnLink',false);
}
der fehler tritt deshalb auf wenn ein link gesetzt wurde (was auch funktioniert und man hat ein code sample wie oben (zwei wörter+ein space) liefert der internet explorer nicht den link zurück um ein target zu setzen... hmm was besseres fällt mir momentan nicht ein...
wenn ein link + target gesetzt wird und ein solches code sample wäre gewählt erscheint nur eine warnmeldung das kein target gesetzt wurde...