Title: Code disappeared
Last modified: August 21, 2016

---

# Code disappeared

 *  Resolved [editoronline](https://wordpress.org/support/users/editoronline/)
 * (@editoronline)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/code-disappeared/)
 * At my iframe I inserted
    autoplay=”false” After INSERT AND CLOSE the code is 
   deleted. How can I avoid that ?
 * [https://wordpress.org/plugins/wp-edit/](https://wordpress.org/plugins/wp-edit/)

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

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/code-disappeared/#post-5090780)
 * Is it immediately deleted? Or do you have to either:
    (1) Save the post/page (
   2) Switch between text and visual view … before it is deleted?
 *  Thread Starter [editoronline](https://wordpress.org/support/users/editoronline/)
 * (@editoronline)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/code-disappeared/#post-5090784)
 * Yes you are right.
    Option 1: After Save the nmessage. Nevertheless I do not 
   understand why it is disappearing.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/code-disappeared/#post-5090792)
 * Probably because the “autoplay” attribute of the “iframe” element is not allowed
   using the WP Tinymce editor; by default.
 * You will need to allow this attribute, manually.
 * You can either use a [custom function](http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/);
   or WP Edit Pro has options to easily allow any/other elements and attributes 
   to not be stripped by the editor.
 * The [extended_valid_elements](http://www.tinymce.com/wiki.php/configuration:extended_valid_elements)
   is what you want to adjust.

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

The topic ‘Code disappeared’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-edit_ffffff.svg)
 * [WP Edit](https://wordpress.org/plugins/wp-edit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-edit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-edit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-edit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-edit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-edit/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/code-disappeared/#post-5090792)
 * Status: resolved