Bug #22023
closedHTML cObject parser in t3editor fails to properly find matching parentheses
0%
Description
In the following code in editing template records, the t3editor fails to realize where the parentheses close, therefore it fails to properly parse the HTML code generating incomplete HTML in previews.
The code is as follows:
page.10 = HTML
page.10.value (
<script language="javascript">
if (AC_FL_RunContent == 0)
etc etc
)
after the 0, it fails to detect that close parenthesis.
I'm running Typo3 version 4.3.0 on wamp server.
The only extra extension I have installed is tempvoila
Here's the whole block I just need to have literally on all my pages.
page.10 = HTML
page.10.value (
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '100%',
'height', '100%',
'src', 'index',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'index',
'bgcolor', '#666666',
'name', 'preview',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'preview',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="preview.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#666666" /> <embed src="preview.swf" quality="high" bgcolor="#666666" width="100%" height="100%" name="preview" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
)
I do realize I am beginner at typo3 but a parser no being able to parse correctly appears to be a major issue to me.
If by chance this is just an error on my part due to my inexperience, I apologize for wasting your time. However I thought I'd report it.
(issue imported from #M13364)
(issue imported from #M13364)
Updated by Tobias Liebig over 13 years ago
- Project changed from TYPO3 Core to 75
- Target version deleted (
0)
Updated by Tobias Liebig over 13 years ago
- Priority changed from Should have to Must have
Updated by Michael Stucki almost 11 years ago
- Project changed from 75 to TYPO3 Core
Updated by Mathias Schreiber almost 10 years ago
- Description updated (diff)
- Target version set to 7.5
- TYPO3 Version set to 4.5
- Is Regression set to No
Updated by Riccardo De Contardi over 9 years ago
- Status changed from New to Needs Feedback
- Assignee set to C
I've made a test with TYPO3 6.2.12;
1) the HTML object is absent in 6.x so I tried with TEXT element
2) It is true the bug is still present in t3editor and the resulting html code is broken, but...
3) I used instead:
page.jsInline { 10 = TEXT 10.value ( if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '100%', 'height', '100%', 'src', 'index', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'index', 'bgcolor', '#666666', 'name', 'preview', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'preview', 'salign', '' ); //end AC code } ) } page.10=TEXT page.10.value( <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="index" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="preview.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#666666" /> <embed src="preview.swf" quality="high" bgcolor="#666666" width="100%" height="100%" name="preview" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript> )
(IMHO it is better than putting a script in the body tag)
and the resulting code is correct. Do you think it is sufficient to consider it solved? Thank you!
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
C) - Target version deleted (
7.5)
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.