Bug #68880

Save, save & view, save & close not working in RTE Wizard

Added by Manuel Selbach about 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-08-09
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

The button Save, save & view and save & close donĀ“t work in the RTE wizard (Fullscreen Rich Text Editing).

JavaScript error appears:

Uncaught TypeError: document.getElementsByName(...).submit is not a function

submitForm: function() {
        if (TBE_EDITOR.doSaveFieldName) {
            document[TBE_EDITOR.formname][TBE_EDITOR.doSaveFieldName].value=1;
        }
        // Set a short timeout to allow other JS processes to complete, in particular those from
        // EXT:backend/Resources/Public/JavaScript/FormEngine.js (reference: http://forge.typo3.org/issues/58755).
        // TODO: This should be solved in a better way when this script is refactored.
        window.setTimeout(function() {
            document.getElementsByName(TBE_EDITOR.formname).submit();  <----------------- here the error appears
        }, 10);
    },

Associated revisions

Revision 6f5b9ab1 (diff)
Added by Daniel Goerz about 4 years ago

[BUGFIX] Use first item of HTMLCollection for form reload

Change-Id: Ib2a12b1915421b01084cac44fc4cea2ca978a42c
Resolves: #68880
Releases: master
Reviewed-on: http://review.typo3.org/42489
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>
Reviewed-by: Stefan Neufeind <>
Tested-by: Stefan Neufeind <>

History

#1 Updated by Anja Leichsenring about 4 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint

#2 Updated by Gerrit Code Review about 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42489

#3 Updated by Daniel Goerz about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#4 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF