Project

General

Profile

Actions

Bug #75188

closed

no JS in HTML-Content-Element with fluid_styled_content?

Added by Thomas Sperling about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-03-18
Due date:
% Done:

0%

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

Description

I use TYPO3 7.6.4 with fluid_styled_content and gridelements and I want to use some JavaScript in the HTML-Element.

(function ($) {
 ... some code ...
}

The Problem is that everything inside {} is removed. Even <[CDATA[...]]> didn't help.
I assume it is because of fluid which interprets in the end the content:

<f:format.raw>{data.bodytext}</f:format.raw>

But I wonder why I didn't found this really serious issue. Maybe my gridselement interfers too?

Actions #1

Updated by Frank Nägler about 8 years ago

  • Status changed from New to Needs Feedback

I can't reproduce the problem.
I have setup a fresh page with fluid_styled_content. Added one HTML-Content-Element to the page and added this JS-Code:

<script>
  function foo() {
    alert('foo');
  }
  foo();
</script>

The code is not broke, the alert appears. Can you please provide a concrete example?

Actions #2

Updated by Wouter Wolters about 8 years ago

Can't reproduce either..

Actions #3

Updated by Thomas Sperling almost 8 years ago

I don't get it. I have now the same behaviour in a complete different TYPO3 (v6.2.25, fluid powered, no grid elements, ...). No JS is possible.
But suddenly it workes on my first mentioned System (now v7.6.9).

What can it be? Some kind of Typoscript?

Sorry I can't give more hints. Maybe I find some time for further investigations.

Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed

I close it after collecting feedback from the author.

If you think that this is the wrong decision or experience the issue again, please open a new ticket with a reference to this one.

Thank you.

Actions

Also available in: Atom PDF