* Added feature #10196: htmlArea RTE: Remove extension configuration variable enableClickEnlarge
* Fixed bug #10197: htmlArea RTE: Missing XCLASS inclusion in class.tx_rtehtmlarea_pi1.php
* Follow-up to #10181: htmlArea RTE: Move status bar to plugin
* Added feature #10196: htmlArea RTE: Remove extension configuration variable enableClickEnlarge
* Fixed bug #10197: htmlArea RTE: Missing XCLASS inclusion in class.tx_rtehtmlarea_pi1.php
* Follow-up to #10181: htmlArea RTE: Move status bar to plugin
+ * Fixed bug #9935: htmlArea RTE: enableWordClean on paste does not work when hidden button is not in toolbar
2009-01-18 Francois Suter <francois@typo3.org>
2009-01-18 Francois Suter <francois@typo3.org>
* Added feature #10196: htmlArea RTE: Remove extension configuration variable enableClickEnlarge
* Fixed bug #10197: htmlArea RTE: Missing XCLASS inclusion in class.tx_rtehtmlarea_pi1.php
* Follow-up to #10181: htmlArea RTE: Move status bar to plugin
* Added feature #10196: htmlArea RTE: Remove extension configuration variable enableClickEnlarge
* Fixed bug #10197: htmlArea RTE: Missing XCLASS inclusion in class.tx_rtehtmlarea_pi1.php
* Follow-up to #10181: htmlArea RTE: Move status bar to plugin
+ * Fixed bug #9935: htmlArea RTE: enableWordClean on paste does not work when hidden button is not in toolbar
2009-01-14 Stanislas Rolland <typo3@sjbr.ca>
2009-01-14 Stanislas Rolland <typo3@sjbr.ca>
/***************************************************************
* Copyright notice
*
/***************************************************************
* Copyright notice
*
-* (c) 2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
+* (c) 2008-2009 Stanislas Rolland <typo3(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the Typo3 project. The Typo3 project is
* All rights reserved
*
* This script is part of the Typo3 project. The Typo3 project is
/**
* Default Clean extension for htmlArea RTE
*
/**
* Default Clean extension for htmlArea RTE
*
- * @author Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
+ * @author Stanislas Rolland <typo3(arobas)sjbr.ca>
);
public function main($parentObject) {
);
public function main($parentObject) {
- return parent::main($parentObject) && $this->thisConfig['enableWordClean'];
+ return parent::main($parentObject) && $this->thisConfig['enableWordClean'] && !is_array($this->thisConfig['enableWordClean.']['HTMLparser.']);
return $registerRTEinJavascriptString;
}
return $registerRTEinJavascriptString;
}
+ /**
+ * Return an updated array of toolbar enabled buttons
+ * Force inclusion of hidden button cleanword
+ *
+ * @param array $show: array of toolbar elements that will be enabled, unless modified here
+ *
+ * @return array toolbar button array, possibly updated
+ */
+ public function applyToolbarConstraints($show) {
+ return array_unique(array_merge($show, t3lib_div::trimExplode(',', $this->pluginButtons)));
+ }
} // end of class
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/extensions/DefaultClean/class.tx_rtehtmlarea_defaultclean.php']) {
} // end of class
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/extensions/DefaultClean/class.tx_rtehtmlarea_defaultclean.php']) {
/***************************************************************
* Copyright notice
*
/***************************************************************
* Copyright notice
*
-* (c) 2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
+* (c) 2008-2009 Stanislas Rolland <typo3(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the Typo3 project. The Typo3 project is
* All rights reserved
*
* This script is part of the Typo3 project. The Typo3 project is
/**
* TYPO3 HTML Parser extension for htmlArea RTE
*
/**
* TYPO3 HTML Parser extension for htmlArea RTE
*
- * @author Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
+ * @author Stanislas Rolland <typo3(arobas)sjbr.ca>
}
return $registerRTEinJavascriptString;
}
}
return $registerRTEinJavascriptString;
}
+
+ /**
+ * Return an updated array of toolbar enabled buttons
+ * Force inclusion of hidden button cleanword
+ *
+ * @param array $show: array of toolbar elements that will be enabled, unless modified here
+ *
+ * @return array toolbar button array, possibly updated
+ */
+ public function applyToolbarConstraints($show) {
+ return array_unique(array_merge($show, t3lib_div::trimExplode(',', $this->pluginButtons)));
+ }
while (owner.parentElement) { owner = owner.parentElement; }
}
var editor = RTEarea[owner._editorNo].editor;
while (owner.parentElement) { owner = owner.parentElement; }
}
var editor = RTEarea[owner._editorNo].editor;
// If we dropped an image dragged from the TYPO3 Image plugin, let's close the dialog window
if (typeof(HTMLArea.Dialog) != "undefined" && HTMLArea.Dialog.TYPO3Image) {
HTMLArea.Dialog.TYPO3Image.close();
} else {
// If we dropped an image dragged from the TYPO3 Image plugin, let's close the dialog window
if (typeof(HTMLArea.Dialog) != "undefined" && HTMLArea.Dialog.TYPO3Image) {
HTMLArea.Dialog.TYPO3Image.close();
} else {
- window.setTimeout("DefaultClean.cleanLater(" + editor._editorNumber + ");", 250);
+ window.setTimeout("DefaultClean.cleanLater(\'" + editor._editorNumber + "\');", 250);