Project

General

Profile

Actions

Bug #25586

closed

Template editor does not open settings and constants box with t3 editor installed

Added by Wim no-lastname-given almost 14 years ago. Updated about 9 years ago.

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

0%

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

Description

Is T3 editor installed then the template settings or constants box opens but is immediately closed.
With de-installing t3 editor the problem is solved.

Typo3 4.4.0
PHP 5.2.13
Windows platform
(issue imported from #M14878)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #25602: use t3editor in TCA for e.g. HTML content elementsClosedTobias Liebig2011-03-04

Actions
Actions #1

Updated by Jigal van Hemert almost 14 years ago

Just tested with Firefox 3.6.4 on:
Windows Vista, PHP 5.3 : no problem
CentOS, PHP 5.2.6 : no problem.

Maybe discuss this first on one of the mailing lists/newsgroups to get a good diagnosis?

Actions #2

Updated by Wim no-lastname-given almost 14 years ago

The content of the setup box (f.e) is present in the html. However, the "textarea" tag of the t3editor has the style parameter: "display:none; height: 60%, width: 90%;"
So, the content is not visible.
Why and where is this display:none setting added?

Actions #3

Updated by Wim no-lastname-given almost 14 years ago

Further investigation:
Javascript in "index.php" gives an error "unterminated string literal".
Content:
T3editor.template = '<div class=\"t3e_modalOverlay\"></div>
' + '<div class=\"t3e_iframe_wrap\"></div>
' + '<div class=\"t3e_statusbar_wrap\">
' + ' <span class=\"t3e_statusbar_title\"></span>
' + ' <span class=\"t3e_statusbar_status\"></span>
' + '</div>';

By changing the t3editor.html template with removing linefeed, the javascript error is solved and the setup box is displayed.

The cause of this all is the following code in my opinion:
line 171: $T3Editor_template = str_replace(LF, "' + '", $T3Editor_template);
class: class.tx_t3editor.php.

The linefeed still remains in the templatecode. Don't know why.

Actions #4

Updated by Wim no-lastname-given almost 14 years ago

In Class: class.tx_t3editor.php I added the following statement after line 171:
$T3Editor_template = trim( preg_replace( '/\s+/', ' ', $T3Editor_template ) );

The t3editor works now correct.

Actions #5

Updated by Administrator Admin about 13 years ago

I had the same problem with typo3 4.5.2

I added the code:
$T3Editor_template = trim( preg_replace( '/\s+/', ' ', $T3Editor_template ) );
after line 221:
$T3Editor_template = str_replace(LF, "' + '", $T3Editor_template);

after uploading the changed file it worked correct!

Thanks Wim

Actions #6

Updated by Tobias Liebig almost 13 years ago

  • Assignee changed from Administrator Admin to Tobias Liebig
  • Target version deleted (0)
  • TYPO3 Version set to 4.5
Actions #7

Updated by Michael Stucki over 10 years ago

  • Project changed from 75 to TYPO3 Core
Actions #8

Updated by Michael Stucki over 10 years ago

  • Category set to t3editor
Actions #9

Updated by Mathias Schreiber about 9 years ago

  • Description updated (diff)
  • Status changed from Accepted to Closed
  • Is Regression set to No

cannot reproduce on 4.5, 6.2 or 7

Actions

Also available in: Atom PDF