when i switch plain text editor for adding last.fm code vs on yui editor, it doesn't add script correctly. yui adds it as normal text.

Comments

deshilachado’s picture

if the code you are trying to add is written in PHP, then you should take a look at #294515: Input filter support

flickerfly’s picture

Title: plain text editor not runnig » YUI Not Using Embed info from last.fm

I suspect this is HTML and javascript from a last.fm widget. More info @ http://www.last.fm/widgets. lne, can you confirm this? Also, what are your results?

Here's an example widget from my own account.

<style type="text/css">table.lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988 tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_red.png) no-repeat 0 0 !important;}table.lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988 tr.lfmEmbed object {float:left;}table.lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/red.png) no-repeat 0px 0 !important;;}table.lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/red.png) no-repeat -85px 0 !important;}table.lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988 tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/red.png) no-repeat -159px 0 !important;}</style>
<table class="lfmWidgetchart_ccb6a28318cb6b64a4d7900e9fb2d988" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="flickerfly: Recently Listened Tracks" href="http://www.last.fm/user/flickerfly" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_red.png) no-repeat 0 -20px;text-decoration:none;border:0;"></a></td></tr><tr class="lfmEmbed"><td><object type="application/x-shockwave-flash" data="http://cdn.last.fm/widgets/chart/friends_6.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="lfmEmbed_1209980742" width="184" height="199"> <param name="movie" value="http://cdn.last.fm/widgets/chart/friends_6.swf" /> <param name="flashvars" value="type=recenttracks&amp;user=flickerfly&amp;theme=red&amp;lang=en&amp;widget_id=chart_ccb6a28318cb6b64a4d7900e9fb2d988" /> <param name="allowScriptAccess" value="always" /> <param name="allowNetworking" value="all" /> <param name="allowFullScreen" value="true" /> <param name="quality" value="high" /> <param name="bgcolor" value="d01f3c" /> <param name="wmode" value="transparent" /> <param name="menu" value="true" /> </object></td></tr><tr class="lfmFoot"><td style="background:url(http://cdn.last.fm/widgets/images/footer_bg/red.png) repeat-x 0 0;text-align:right;"><table cellspacing="0" cellpadding="0" border="0" style="width:184px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?colour=red&amp;chartType=recenttracks&amp;user=flickerfly&amp;chartFriends=1&amp;from=code&amp;widget=chart" title="Get your own widget" target="_blank" style="display:block;overflow:hidden;width:85px;height:20px;float:right;background:url(http://cdn.last.fm/widgets/images/en/footer/red.png) no-repeat 0px -20px;text-decoration:none;border:0;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.last.fm/user/flickerfly" title="View flickerfly's profile" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/red.png) no-repeat -85px -20px;text-decoration:none;border:0;"></a></td><td class="lfmPopup"style="width:25px;"><a href="http://www.last.fm/widgets/popup/?colour=red&amp;chartType=recenttracks&amp;user=flickerfly&amp;chartFriends=1&amp;from=code&amp;widget=chart&amp;resize=1" title="Load this chart in a pop up" target="_blank" style="display:block;overflow:hidden;width:25px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/red.png) no-repeat -159px -20px;text-decoration:none;border:0;" onclick="window.open(this.href + '&amp;resize=0','lfm_popup','height=299,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>
lne’s picture

yes, i confirm it. it seem like normal text. widget don't visible.. that's my widget code:

table.lfmWidgetchart_f7cd8ca15ba3dfc1d85642f537eade81 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetchart_f7cd8ca15ba3dfc1d85642f537eade81 tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/tr/header/chart/recenttracks_regular_red.png) no-repeat 0 0 !important;}table.lfmWidgetchart_f7cd8ca15ba3dfc1d85642f537eade81 tr.lfmEmbed object {float:left;}table.lfmWidgetchart_f7cd8ca15ba3dfc1d85642f537eade81 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/tr/footer/red.png) no-repeat 0px 0 !important;;}table.lfmWidgetchart_f7cd8ca15ba3dfc1d85642f537eade81 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/tr/footer/red.png) no-repeat -85px 0 !important;}table.lfmWidgetchart_f7cd8ca15ba3dfc1d85642f537eade81 tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/tr/footer/red.png) no-repeat -159px 0 !important;}