Project

General

Profile

Bug #21049 » rtehtmlarea_bugfix_11946_typo3_4-1.patch

Administrator Admin, 2009-09-14 07:55

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/ContextMenu/context-menu.js (copie de travail)
* Copyright notice
*
* Copyright (c) 2003 dynarch.com. Authored by Mihai Bazon. Sponsored by www.americanbible.org.
* Copyright (c) 2004, 2005 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
* Copyright (c) 2004-2009 Stanislas Rolland <typo3(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
......
if (enabled && elmenus.length) elmenus.push(null);
for (i = opcodes.length; i > 0;) {
opcode = opcodes[--i];
if(opEnabled[opcode]) elmenus.push([i18n[opcode + "-title"],
if (opEnabled[opcode]) {
elmenus.push([
i18n[opcode + "-title"],
(tbo ? ContextMenu.tableOperationsHandler(editor, tbo, opcode) : ContextMenu.execCommandHandler(editor, opcode)),
i18n[opcode + "-tooltip"],
btnList[opcode][1], opcode]);
btnList[opcode][1],
opcode,
(opcode == "table-prop" || opcode == "row-prop" || opcode == "cell-prop")
]);
}
}
};
......
ContextMenu.mouseUpHandler = function(item,instance) {
return (function(ev) {
var timeStamp = (new Date()).getTime();
if (timeStamp - instance.timeStamp > 500) item.__msh.activate();
if (!HTMLArea.is_ie) HTMLArea._stopEvent(ev);
instance.editor.updateToolbar();
if (timeStamp - instance.timeStamp > 500) {
item.__msh.activate();
}
if (!HTMLArea.is_ie) {
HTMLArea._stopEvent(ev);
}
if (!item.__msh.dialog) {
instance.editor.updateToolbar();
}
return false;
});
};
......
tooltip: option[2] || null,
icon: option[3] || null,
activate: ContextMenu.activateHandler(item, this),
cmd: option[4] || null
cmd: option[4] || null,
dialog: option[5] || null
};
label = label.replace(/_([a-zA-Z0-9])/, "<u>$1</u>");
if (label != option[0]) this.keys.push([ RegExp.$1, item ]);
(3-3/6)