...
in wysiwyg.js
trova questo
codice:
// Make the iframe editable in both Mozilla and IE
doc.body.contentEditable = true;
doc.designMode = "on";
e aggiungi questo dopo
codice:
if(document.all && !window.opera){
var IEdoc=document.getElementById("wysiwyg" + n).contentWindow;
IEdoc.document.onkeydown = function () {
if (IEdoc.event.keyCode == 13) {
var sel = IEdoc.document.selection;
if (sel.type == "Control")
return;
var r = sel.createRange();
r.pasteHTML("<br \/>");
IEdoc.event.cancelBubble = true;
IEdoc.event.returnValue = false;
r.select();
r.moveEnd("character", 1);
r.moveStart("character", 1);
r.collapse(false);
return false;
}
}
}
nessuna responsabilita' da parte mia riguardo lo script,
l' ho scritto anni fa e non ho tempo di riguardarlo, altri editor ottengono sicuramente lo stesso risultato in altri modi.