Project

General

Profile

Bug #18015 ยป rtehtmlarea_bugfix_7196.patch

Administrator Admin, 2008-01-17 23:06

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (working copy)
/***************************************************
* GECKO-SPECIFIC FUNCTIONS
***************************************************/
HTMLArea.prototype.isEditable = function() {
return (this._doc.designMode === "on");
};
/***************************************************
* MOZILLA/FIREFOX EDIT MODE INITILIZATION
typo3/sysext/rtehtmlarea/htmlarea/htmlarea-ie.js (working copy)
*
* (c) 2002-2004, interactivetools.com, inc.
* (c) 2003-2004 dynarch.com
* (c) 2004-2007 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
* (c) 2004-2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
......
/***************************************************
* IE-SPECIFIC FUNCTIONS
***************************************************/
HTMLArea.prototype.isEditable = function() {
return this._doc.body.contentEditable;
};
/***************************************************
* FINAL IE CLEANUP
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (working copy)
* This function gets called when the toolbar is updated
*/
onUpdateToolbar : function () {
if (this.editor.getMode() === "textmode" || this.editor._doc.designMode !== "on") {
if (this.editor.getMode() === "textmode" || !this.editor.isEditable()) {
return false;
}
var parentElement = this.editor._statusBarTree.selected ? this.editor._statusBarTree.selected : this.editor.getParentElement();
    (1-1/1)