[BUGFIX] Fix saving changes in T3editor
authorNicole Cordes <n.cordes@biz-design.biz>
Tue, 28 Aug 2012 22:17:40 +0000 (00:17 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 22 Sep 2012 08:36:55 +0000 (10:36 +0200)
Patch repairs ajax ids and class reference for t3editor so templates can
be saved again.

Change-Id: I730d28e1a4b2291bb6c98ac696b74518e820f206
Fixes: #40359
Relates: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14172
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/t3editor/Classes/T3Editor.php
typo3/sysext/t3editor/Classes/TypoScriptReferenceLoader.php
typo3/sysext/t3editor/ext_tables.php
typo3/sysext/t3editor/res/jslib/t3editor.js

index 1ab1364..d6d910b 100644 (file)
@@ -365,12 +365,12 @@ class T3Editor implements \TYPO3\CMS\Core\SingletonInterface {
         *
         * new Ajax.Request('/dev/t3e/dummy/typo3/ajax.php', {
         * parameters: {
-        * ajaxID: 'T3Editor::saveCode::saveCode',
+        * ajaxID: 'T3Editor::saveCode',
         * t3editor_savetype: 'tx_tstemplateinfo'
         * }
         * });
         *
-        * @param array params Parameters (not used yet)
+        * @param array $params Parameters (not used yet)
         * @param \TYPO3\CMS\Core\Http\AjaxRequestHandler ajaxObj AjaxObject to handle response
         */
        public function ajaxSaveCode($params, $ajaxObj) {
index 7e310fe..7c077aa 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\T3Editor;
 class TypoScriptReferenceLoader {
 
        /**
-        * @var DOMDocument
+        * @var \DOMDocument
         */
        protected $xmlDoc;
 
@@ -128,7 +128,7 @@ class TypoScriptReferenceLoader {
         * Get type
         *
         * @param string $typeId
-        * @return DOMNode
+        * @return \DOMNode
         */
        protected function getType($typeId) {
                $types = $this->xmlDoc->getElementsByTagName('type');
index 50dc425..a4c5f8d 100644 (file)
@@ -6,8 +6,8 @@ if (TYPO3_MODE === 'BE') {
        // Register AJAX handlers:
        $TYPO3_CONF_VARS['BE']['AJAX']['T3Editor::saveCode'] = 'EXT:t3editor/Classes/class.tx_t3editor.php:TYPO3\\CMS\\T3Editor\\T3Editor->ajaxSaveCode';
        $TYPO3_CONF_VARS['BE']['AJAX']['T3Editor::getPlugins'] = 'EXT:t3editor/Classes/class.tx_t3editor.php:TYPO3\\CMS\\T3Editor\\T3Editor->getPlugins';
-       $TYPO3_CONF_VARS['BE']['AJAX']['T3Editor_TSrefLoader::getTypes'] = 'EXT:t3editor/Classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:TYPO3\\CMS\\T3Editor\\T3Editor_TSrefLoader->processAjaxRequest';
-       $TYPO3_CONF_VARS['BE']['AJAX']['T3Editor_TSrefLoader::getDescription'] = 'EXT:t3editor/Classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:TYPO3\\CMS\\T3Editor\\T3Editor_TSrefLoader->processAjaxRequest';
+       $TYPO3_CONF_VARS['BE']['AJAX']['T3Editor_TSrefLoader::getTypes'] = 'EXT:t3editor/Classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:TYPO3\\CMS\\T3Editor\\TypoScriptReferenceLoader->processAjaxRequest';
+       $TYPO3_CONF_VARS['BE']['AJAX']['T3Editor_TSrefLoader::getDescription'] = 'EXT:t3editor/Classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:TYPO3\\CMS\\T3Editor\\TypoScriptReferenceLoader->processAjaxRequest';
        $TYPO3_CONF_VARS['BE']['AJAX']['CodeCompletion::loadTemplates'] = 'EXT:t3editor/Classes/ts_codecompletion/class.tx_t3editor_codecompletion.php:TYPO3\\CMS\\T3Editor\\CodeCompletion->processAjaxRequest';
        \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
        // Add the t3editor wizard on the bodytext field of tt_content
index 295d5db..d72ab12 100644 (file)
@@ -325,7 +325,7 @@ if (!Prototype.Browser.MobileSafari) {
                                Event.observe(document, 't3editor:save',
                                        function(event) {
                                                var params = Object.extend({
-                                                       ajaxID: "T3Editor::saveCode::saveCode",
+                                                       ajaxID: "T3Editor::saveCode",
                                                        t3editor_savetype: T3editor.ajaxSavetype
                                                }, event.memo.parameters);