Project

General

Profile

Feature #19344 ยป rtehtmlarea_feature_9370.patch

Administrator Admin, 2008-09-17 17:50

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js (copie de travail)
},
/*
* This function gets called when the plugin is generated
* Set table borders if requested by configuration
*/
onGenerate : function() {
if (this.buttonsConfiguration.toggleborders && this.buttonsConfiguration.toggleborders.setOnRTEOpen) {
this.toggleBorders(true);
}
},
/*
* This function gets called when the toolbar is being updated
*/
onUpdateToolbar : function() {
if (this.editor.getMode() === "wysiwyg" && this.editor.isEditable() && this.isButtonInToolbar("TO-toggle-borders")) {
this.editor._toolbarObjects["TO-toggle-borders"].state("active", HTMLArea._hasClass(this.editor._doc.body, 'htmlarea-showtableborders'));
}
},
/*
* This function gets called when a Table Operations button was pressed.
*
* @param object editor: the editor instance
    (1-1/1)