Project

General

Profile

Bug #21626 » rtehtmlarea_bugfix_12684_trunk.patch

Administrator Admin, 2009-11-20 17:58

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
}
var editor = RTEarea[owner._editorNo]["editor"];
var keyEvent = ((HTMLArea.is_ie || HTMLArea.is_safari) && ev.type == "keydown") || (HTMLArea.is_gecko && ev.type == "keypress");
var mouseEvent = (ev.type == "mousedown" || ev.type == "mouseup");
editor.focusEditor();
if(keyEvent) {
......
}
// update the toolbar state after some time
if (editor._timerToolbar) window.clearTimeout(editor._timerToolbar);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 100);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 200);
return false;
}
break;
......
}
// update the toolbar state after some time
if (editor._timerToolbar) window.clearTimeout(editor._timerToolbar);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 50);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 200);
break;
case 9: // KEY horizontal tab
var newkey = (ev.shiftKey ? "SHIFT-" : "") + "TAB";
......
case 40: // DOWN arrow key
if (HTMLArea.is_ie || HTMLArea.is_safari) {
if (editor._timerToolbar) window.clearTimeout(editor._timerToolbar);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 10);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 200);
return true;
}
break;
......
}
return true;
}
} else {
} else if (mouseEvent) {
// mouse event
if (editor._timerToolbar) window.clearTimeout(editor._timerToolbar);
if (ev.type == "mouseup") editor.updateToolbar();
(1-1/2)