[wpmu-trac] [WordPress MU Trac] #1138: wysiwyg editor and <script> tags

WordPress MU Trac wpmu-trac at lists.automattic.com
Wed Oct 28 08:19:33 UTC 2009


#1138: wysiwyg editor and <script> tags
---------------------+------------------------------------------------------
 Reporter:  dd_lt    |       Owner:  somebody       
     Type:  defect   |      Status:  new            
 Priority:  normal   |   Milestone:                 
Component:  General  |     Version:  2.8            
 Severity:  normal   |    Keywords:  wysiwyg, script
---------------------+------------------------------------------------------
 Hello,

 There is a bug with wysiwyg editor and <script> pasting.
 I have a sample script:

 {{{
 <script src="http://foto.delfi.lt/js/ec/embed.js?v=1.8"
 type="text/javascript"></script><script
 type="text/javascript">_showEmbedAlbum("223")</script>
 }}}
  that's the code for embedding picture album. If I paste it in HTML mode
 and publish/save the post immediately, everything works as expected. If I
 switch to visual mode after I paste the code and save the post in visual
 mode - code gets stripped, what remains is:


 {{{
 <script src="http://foto.delfi.lt/js/ec/embed.js?v=1.8"
 type="text/javascript"></script><script type="text/javascript">//
 <![CDATA[
 //
 // ]]></script>
 }}}
 everything between <script> and </script> is gone.

 WPMU versions tested - 2.8.1 and 2.8.4a.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1138>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list