Bug #23664 » rtehtmlarea_bugfix_15880_trunk.patch
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail) | ||
---|---|---|
* @event hotkey
|
||
* Fires when the button hotkey is pressed
|
||
*/
|
||
'hotkey'
|
||
'hotkey',
|
||
/*
|
||
* @event context
|
||
* Fires when the button is triggered from the context menu
|
||
*/
|
||
'context'
|
||
);
|
||
this.addListener({
|
||
afterrender: {
|
||
... | ... | |
this.addListener({
|
||
hotkey: {
|
||
fn: this.onHotKey
|
||
}
|
||
},
|
||
context: {
|
||
fn: this.onButtonClick
|
||
},
|
||
});
|
||
this.setHandler(this.onButtonClick, this);
|
||
// Monitor toolbar updates in order to refresh the state of the button
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/ContextMenu/context-menu.js (copie de travail) | ||
---|---|---|
onItemClick: function (item, event) {
|
||
var button = this.getButton(item.getItemId());
|
||
if (button) {
|
||
button.fireEvent('click', button, event);
|
||
button.fireEvent('context', button, event);
|
||
} else if (item.getItemId() === 'DeleteTarget') {
|
||
// Do not leave a non-ie table cell empty
|
||
var parent = this.deleteTarget.parent().dom;
|