Title: javascript inside the tinyMCE iframe
Last modified: August 18, 2016

---

# javascript inside the tinyMCE iframe

 *  [phillipcc](https://wordpress.org/support/users/phillipcc/)
 * (@phillipcc)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/javascript-inside-the-tinymce-iframe/)
 * Hi evryone.
    I’m building a plugin for the tinyMCE witch adds a few buttons to
   it. Once I click does buttons it adds html code into tinyMCE iframe. At this 
   point there’s no problem.
 * The problem is when I add html into tinyMCE it loses the javascript onclick or/
   and onmouseover properties.
    This happens because I’m adding code inside a iframe,
   right? **Is there a way to add code into the tinyMCE iframe preserving the javascript
   properties? **

The topic ‘javascript inside the tinyMCE iframe’ is closed to new replies.

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 0 replies
 * 1 participant
 * Last reply from: [phillipcc](https://wordpress.org/support/users/phillipcc/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/javascript-inside-the-tinymce-iframe/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
