Old code that used to work in WYSIWYG doesn't in 6.7

schroeder's Avatar

schroeder

22 Jul, 2010 10:07 PM

The example code below used to have < and >, but when you scan further down, you'll see &lt; and &gt;

So when it comes to previously working pages and someone publishes the page with this code, without editing this specific page, the incorrect code goes through and spits out "#END-CODE-->" instead of a Flash slideshow. I had similar trouble with the comments <!--#START-CODE, #END-CODE--> with some Google Analytics tracking code. Right now, I'm having to pull the comments out, but the users don't know what it is and it appears in the Spell Check as errors.

<!--#START-CODE
<script type="text/javascript" language="JavaScript">   AC_FL_RunContent(

        'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',`

        'width', '731',

        'height', '275',

        'src', 'slideshow',

        'quality', 'high',

        'pluginspage', 'http://www.adobe.com/go/getflashplayer',

        'align', 'middle',

        'play', 'true',

        'loop', 'true',

        'scale', 'showall',

        'wmode', 'window',

        'devicefont', 'false',

        'id', 'slideshow',

        'bgcolor', '#ffffff',

        'name', 'slideshow',

        'menu', 'true',

        'allowFullScreen', 'false',

        'allowScriptAccess','sameDomain',

        'movie', 'slideshow',

        'salign', ''

        ); //end AC code</script>
<noscript><! &lt;span class="mceItemObject"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="731" height="275" id="slideshow" align="middle"&gt;&lt;span  name="allowScriptAccess" value="sameDomain" class="mceItemParam"&gt;&lt;/span&gt; &lt;span  name="allowFullScreen" value="false" class="mceItemParam"&gt;&lt;/span&gt;&lt;span  name="movie" value="slideshow.swf" class="mceItemParam"&gt;&lt;/span&gt;&lt;span  name="quality" value="high" class="mceItemParam"&gt;&lt;/span&gt;&lt;span  name="bgcolor" value="#ffffff" class="mceItemParam"&gt;&lt;/span&gt;&lt;span class="mceItemEmbed"  src="slideshow.swf" quality="high" bgcolor="#ffffff" width="731" height="275" name="slideshow" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" &gt;&lt;/span&gt;&lt;/span&gt;-->
#END-CODE--&gt;<span></span>
  1. 1 Posted by Bradley Wagner on 22 Jul, 2010 10:28 PM

    Bradley Wagner's Avatar

    Could you try attaching that code as a file or indenting every line with 4 spaces to get it to show up correctly. Thanks!

  2. 2 Posted by schroeder on 23 Jul, 2010 01:13 PM

    schroeder's Avatar

    Try this.

  3. Support Staff 3 Posted by Tim on 05 Aug, 2010 02:12 PM

    Tim's Avatar

    Hi,

    I was able to reproduce this using a simple example as well. I've created an issue to address this. You can track the problem here.

    Thanks!

  4. Tim closed this discussion on 05 Aug, 2010 02:12 PM.

  5. Tim re-opened this discussion on 05 Aug, 2010 02:13 PM

  6. Support Staff 4 Posted by Tim on 05 Aug, 2010 02:13 PM

    Tim's Avatar

    In the meantime, I would recommend pasting code like this into XML Blocks whenever possible as that code won't be touched by any formatting routines.

  7. Tim closed this discussion on 05 Aug, 2010 02:13 PM.

  8. schroeder re-opened this discussion on 05 Aug, 2010 02:28 PM

  9. 5 Posted by schroeder on 05 Aug, 2010 02:28 PM

    schroeder's Avatar

    True, however, the areas this is occurring in are DD's. I am working on new blocks and formats, so users don't have to worry about that code in their WYSIWYGs..., but that is further down the road for implementation - and won't solve every code problem. I'll await news of a solution! Thanks!

  10. schroeder closed this discussion on 05 Aug, 2010 02:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac