Project

General

Profile

Actions

Bug #22991

closed

htmlArea RTE won't load in backend extension

Added by Klaus Hinum over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-06-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The htmlarea RTE wont load any more when called in an own extension with the calls

$field .= $form->getSoloField($this->table,$dataArr[$this->table.'_'.$gpu_uid_GP],$value);
$this->content .= $form->printNeededJSFunctions_top();
$this->content .= $field;
$this->content .= $form->printNeededJSFunctions();

looks like a path issue, as it at least loads with errors when overwriting the BACK_PATH with $BACK_PATH = '../../../../';

Still, it will then load several times and some features wont work because of the wrong path.

(issue imported from #M14859)


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #23353: htmlArea RTE: Using the advanded frontend editing, the editor is not loaded in the text tabClosedStanislas Rolland2010-08-04

Actions
Actions #1

Updated by Klaus Hinum over 14 years ago

Forgot to mention: The RTE worked previous 4.4, but doesn't work in Typo3 4.4 anymore

Actions #2

Updated by Klaus Hinum over 14 years ago

Another addition: TinyRTE_MCE for example works without problems with the same code.

Actions #3

Updated by Stanislas Rolland over 14 years ago

Could you provide a test extension demonstrating this issue, please.

Actions #4

Updated by Klaus Hinum over 14 years ago

I created a simple extension that should show an RTE and display the content of
tt_content -> bodytext
uid: 1

to change the uid to an existing tt_content element, just change
$tableuid = 1;
appropriately.

The extension works in Typo3 4.3.3 but the RTE wont load in 4.4.0.

Cheers, and sorry for the delay
Klaus

Actions #5

Updated by Klaus Hinum over 14 years ago

any update, still have to wait for this issue until I can install 4.4 (or switch to an alternative RTE).

Actions #6

Updated by Stanislas Rolland over 14 years ago

Thanks for the test extension and sorry for the delay.

The attached patch fixes the issue. Please confirm.

Actions #7

Updated by Stanislas Rolland over 14 years ago

Committed to SVN TYPO3core trunk (revision 8305) and branch TYPO3_4-4 (revision 8306) for inclusion in TYPO3 4.4.1.

Actions #8

Updated by Klaus Hinum over 14 years ago

Displaying a single field now works correctly, but when displaying two or more fields on a page, I get a corrupted output (multiple loaded instances as it looks).

Actions #9

Updated by Klaus Hinum over 14 years ago

Uploaded updated test with two instances that wont work with HTMLarea (but works with other editors like TinyRTE).

A similar error was already in an older version, so it may not be related to 4.4 changes.

Actions #10

Updated by Klaus Hinum over 14 years ago

Any update on this - still waiting for the bug to be fixed to switch to 4.4

Actions #11

Updated by Stanislas Rolland over 14 years ago

1. You are inserting the same field from the same record on the same form because $tableuid2 is not used for "Another field"

2. You should invoke t3lib_TCEforms::printNeededJSFunctions_top and t3lib_TCEforms::printNeededJSFunctions only once for a given form.

Uploading corrected user extension.

Actions #12

Updated by Klaus Hinum over 14 years ago

Thanks for the help. I had it this way before, but with the older versions of the RTE it worked only that way to print out the JSFunctions multiple times. Perhaps you should add this to the RTE documentation to help other developers.

Actions #13

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF