Bug #21351
closedPlugins may not be loaded for multiple RTEs
0%
Description
htmlarea's plugins may not be loaded and thus not be available although configured for follow up RTEs, when more than one RTE is rendered.
Reason: The to be loaded plugins are evaluated based only on the very first htmlarea being generated.
Example: have two RTE fields field_1 and field_2 of table some_table shown within the same TCEform with the following configuration:
RTE.config.some_table {
field_1.showButtons = undo,redo,copy,cut,paste
field_2.showButtons = link,undo,redo,copy,cut,paste
}
Result: field_2 will have no link button, since plugin TYPO3Link is never loaded.
Solution: Load plugins for all htmlareas.
(issue imported from #M12331)
Files
Updated by Ralf Hettinger about 15 years ago
Version 2 loads htmlarea's plugins for all RTE fields just after all of them were rendered by t3lib_TCEforms.
Avoids loading the same JS Plugins multiple times.
Updated by Zach Davis about 15 years ago
I noticed this same bug on Friday last week. I spent a good couple of hours trying to sort through it, and found the problem to be exactly as Ralf describes it.
Updated by Stanislas Rolland about 15 years ago
I think that this is a regression that was introduced by trunk revision 4556 and TYPO3_4-2 branch revision 4670.
I think the first patch is sufficient and will not load the same plugins multiple times.
The RTE may also be used multiple times in a frontend form.
Updated by Stanislas Rolland about 15 years ago
Patch version 2 committed to SVN TYPO3core trunk (revision 6313) and branch TYPO3_4-2 (revision 6314).