Hallo liebes Forum,
ich habe folgendes Problem:
Die News werden bei uns aus einer Textdatei importiert.
Sie sollen aber auch über den RTE eingepflegt werden können.
Der Bodytext enthält teilweise eingebettetes Javascript (Videoplayer).
Wie kann ich es erreichen, dass die Tags nicht deaktiviert werden?
Der Inhalt des Feldes bodytext der Tabelle tt_news ist beispielsweise:
<!-- Start of Brightcove Player -->
<div style="display:none">
</div>
<!--
By use of this code snippet, I agree to the Brightcove Publisher T and C
found at http://corp.brightcove.com/legal/terms_publisher.cfm.
-->
<script type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>
<object id="myExperience" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="480" />
<param name="height" value="270" />
<param name="playerID" value="73042955001" />
<param name="publisherID" value="55856293001"/>
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="optimizedContentLoad" value="true" />
<param name="@videoList" value="77389840001" />
</object>
<!--
This script tag will cause the Brightcove Players defined above it to be created as soon
as the line is read by the browser. If you wish to have the player instantiated only after
the rest of the HTML is processed and the page load is complete, remove the line.
-->
<script type="text/javascript">brightcove.createExperiences();</script>
<!-- End of Brightcove Player -->
Dass das Video korrekt angezeigt wird habe ich erreicht, indem ich im SetupTS der Singelansicht-Seite folgende Zeilen eingetragen habe:
plugin.tt_news.displaySingle.content_stdWrap.parseFunc {
nonTypoTagStdWrap.encapsLines.nonWrappedTag >
allowTags = script, param, object, a, abbr, acronym, address, blockquote, b, br, caption, center, cite, code, div, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul
}
Im TSconfig des Sysordners, in welchem sich die News befinden habe ich im Moment diese Einträge:
RTE.default.proc {
dontConvBRtoParagraph = 1
allowTags = script, param, object, a, abbr, acronym, address, blockquote, b, br, caption, center, cite, code, div, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul
denyTags >
entryHTMLparser_db.allowTags < RTE.default.proc.allowTags
entryHTMLparser_db.denyTags >
}
Bin ich damit auf dem Holzweg?
Nachdem ich diesen Datensatz im Backend geöffne und noch nicht gespeichert habe, sehe ich folgenden Bodytext in der HTML-Ansicht des RTE (rtehtmlarea):
<p><b>Konzert 25.Juni 2010, Bogen2</b></p>
<p> </p>
<p></p>
<div style="display: none;"></div>
<p> </p>
<p></p>
<p> </p>
<p></p>
<p><object id="myExperience" class="BrightcoveExperience"></object></p>
<p> </p><param name="bgcolor" value="#FFFFFF" /><p></p>
<p> </p><param name="width" value="480" /><p></p>
<p> </p><param name="height" value="270" /><p></p>
<p> </p><param name="playerID" value="73042955001" /><p></p>
<p> </p><param name="publisherID" value="55856293001" /><p></p>
<p> </p><param name="isVid" value="true" /><p></p>
<p> </p><param name="isUI" value="true" /><p></p>
<p> </p><param name="optimizedContentLoad" value="true" /><p></p>
<p> </p><param name="@videoList" value="85691401001" /><p></p>
<p></p>
<p> </p>
<p></p>
<p></p>
<p> </p>
<p></p>
<div style="display: none;"><p> </p>
<p> </p></div>
Wenn ich diesen Datensatz dann speichere, sehe ich Folgendes in der HTML-Ansicht des RTE:
<p><b>Konzert 25.Juni 2010, Bogen2</b></p>
<p> </p>
<div style="display: none;"></div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><object id="myExperience" class="BrightcoveExperience"></object></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div style="display: none;"><p> </p>
<p> </p></div>
Der Inhalt des Feldes bodytext der Tabelle tt_news ist dann:
<b>Konzert 25.Juni 2010, Bogen2</b>
<div style="display: none;"></div>
<object id="myExperience" class="BrightcoveExperience"></object>
<div style="display: none;">
</div>