Bug #24385 ยป rtehtmlarea_bugfix_16805_trunk.patch
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail) | ||
---|---|---|
getHelpTip: function (fieldName, label, pluginName) {
|
||
if (Ext.isDefined(TYPO3.ContextHelp)) {
|
||
var pluginName = Ext.isDefined(pluginName) ? pluginName : this.name;
|
||
return '<a class="t3-help-link" href="#" data-table="xEXT_rtehtmlarea_' + pluginName + '" data-field="' + fieldName + '"><abbr class="t3-help-teaser">' + this.localize(label) + '</abbr></a>';
|
||
return '<span class="t3-help-link" href="#" data-table="xEXT_rtehtmlarea_' + pluginName + '" data-field="' + fieldName + '"><abbr class="t3-help-teaser">' + this.localize(label) + '</abbr></span>';
|
||
} else {
|
||
return this.localize(label);
|
||
}
|
||
},
|
||
/**
|
||
* Initiate context help listening on the dialogue window
|
||
* This is normally specified as render handler of the window
|
||
*
|
||
* @return void
|
||
*/
|
||
enableContextHelp: function () {
|
||
if (Ext.isDefined(TYPO3.ContextHelp) && Ext.isFunction(TYPO3.ContextHelp.openHelpWindow)) {
|
||
Ext.select('div').on('click', TYPO3.ContextHelp.openHelpWindow, TYPO3.ContextHelp, {delegate: 'a.t3-help-link'});
|
||
}
|
||
},
|
||
/**
|
||
* Load a Javascript file asynchronously
|
||
*
|
||
* @param string url: url of the file to load
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/EditElement/edit-element.js (copie de travail) | ||
---|---|---|
resizable: !Ext.isIE,
|
||
iconCls: this.getButton(buttonId).iconCls,
|
||
listeners: {
|
||
render: {
|
||
fn: this.enableContextHelp
|
||
},
|
||
close: {
|
||
fn: this.onClose,
|
||
scope: this
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/RemoveFormat/remove-format.js (copie de travail) | ||
---|---|---|
resizable: !Ext.isIE,
|
||
iconCls: this.getButton(buttonId).iconCls,
|
||
listeners: {
|
||
render: {
|
||
fn: this.enableContextHelp
|
||
},
|
||
close: {
|
||
fn: this.onClose,
|
||
scope: this
|