* Feature #6712: htmlArea RTE: make hotkeys configurable in PageTSConfig
* Feature #6712 continued: htmlArea RTE: adding hotkeys to default configuration settings
+ * Bugfix: htmlArea RTE: Correction to InlineDefault plugin causing frame reload.
2007-11-14 Ingmar Schlecht <ingmar@typo3.org>
* Feature #6712: htmlArea RTE: make hotkeys configurable in PageTSConfig
* Feature #6712 continued: htmlArea RTE: adding hotkeys to default configuration settings
+ * Bugfix: htmlArea RTE: Correction to InlineDefault plugin causing frame reload.
2007-11-13 Stanislas Rolland <stanislas.rolland@fructifor.ca>
if (this._customUndo) {
this._undoTakeSnapshot();
}
- for (pluginId in this.plugins) {
+ for (var pluginId in this.plugins) {
if (this.plugins.hasOwnProperty(pluginId)) {
var pluginInstance = this.plugins[pluginId].instance;
if (typeof(pluginInstance.onUpdateToolbar) === "function") {
onUpdateToolbar : function () {
var editor = this.editor;
var buttonList = DefaultInline.buttonList;
- var buttonId, button, n = buttonList.length, commandState;
+ var buttonId, n = buttonList.length, commandState;
for (var i = 0; i < n; ++i) {
buttonId = buttonList[i][0];
- button = editor._toolbarObjects[buttonId];
- commandState = false;
- if ((editor._editMode != "textmode")) {
- try {
- commandState = editor._doc.queryCommandState(buttonId);
- } catch(e) {
- commandState = false;
+ if (typeof(editor._toolbarObjects[buttonId]) !== "undefined") {
+ commandState = false;
+ if ((editor._editMode != "textmode")) {
+ try {
+ commandState = editor._doc.queryCommandState(buttonId);
+ } catch(e) {
+ commandState = false;
+ }
}
+ editor._toolbarObjects[buttonId].state("active", commandState);
}
- button.state("active", commandState);
}
}
});