Title: [Plugin: Ultimate TinyMCE] Code gets stripped
Last modified: August 20, 2016

---

# [Plugin: Ultimate TinyMCE] Code gets stripped

 *  [pegasso4444](https://wordpress.org/support/users/pegasso4444/)
 * (@pegasso4444)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-code-gets-stripped/)
 * Hi,
    I like this Editor but when I try to insert the following code to embed 
   a SlideshowPro the code gets stripped by WordPress:
 *     ```
       <!-- START EMBED CODE -->
   
       <script type="text/javascript" src="http://localhost:8888/templates/gallery/m/embed.js"></script>
   
       <div id="album-6">
   
       </div>
   
       <script type="text/javascript">
       	SlideShowPro({
       		attributes: {
       			id: "album-6",
       			width: 640,
       			height: 510
       		},
       		mobile: {
       			auto: false
       		},
       		params: {
       			bgcolor: "#000000",
       			allowfullscreen: true
       		},
       		flashvars: {
       			xmlFilePath: "http://localhost:8888/templates/gallery/images.php?album=6",
       			paramXMLPath: "http://localhost:8888/templates/gallery/m/params/diashow.xml"
       		}
       	});
       </script>
   
       <!-- END EMBED CODE -->
       ```
   
 * How can i stop WP from doing this?
    Thanks for your help Peter
 * [http://wordpress.org/extend/plugins/ultimate-tinymce/](http://wordpress.org/extend/plugins/ultimate-tinymce/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-code-gets-stripped/#post-2620767)
 * Hi Peter,
 * WordPress isn’t really designed to handle javascript within the post/page.
 * Instead, it’s best to hook your javascript to your header, and then call it as
   needed.
 * I don’t use the SlideShowPro plugin, so I’m not sure how it’s intended to be 
   used. Are there any help files, or a support forum, explaining how to insert 
   the javascript?
 *  [ronbme](https://wordpress.org/support/users/ronbme/)
 * (@ronbme)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-code-gets-stripped/#post-2620793)
 * I was having the same problem with the “insert/edit embedded media” function 
   in the editor.
 * I can insert most videos by copying the embed code and pasting it in the “Source”
   tab of the “insert/edit embedded media” function. But if it a <script>, it won’t
   let me do it in the Visual editor.
 * I can go into the HTML editor and paste the code, then save the file and it works.
 * Maybe not the best way to handle it, but it works in a pinch.
 * Ron

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Ultimate TinyMCE] Code gets stripped’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-tinymce.svg)
 * [Ultimate TinyMCE](https://wordpress.org/plugins/ultimate-tinymce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-tinymce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-tinymce/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-tinymce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-tinymce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-tinymce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [ronbme](https://wordpress.org/support/users/ronbme/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-code-gets-stripped/#post-2620793)
 * Status: not resolved