I am upgrading TinyMCE to version 5.x and running into some compatibility issues. Whereas 4.x worked, I needed to change a few custom buttons is all and everything mostly works. If I add text to the editor and click save it works on one set of pages. On another page I can't seem to get the current contents into the editor, but the code view shows the code. If I then paste that code into a test site (fresh install tiny5) into the code view and save, it shows in the editor just fine. 

I am using 

```
formJson['DESCRIPTION'] = $('iframe').contents().find('body').html();

```

to populate the div - oh yes I am using a div as selector. In this case the editor acts like it is readonly with no contents showing.

and 

```
$('.tox-edit-area').html($('iframe').contents().find('body').html()).show();

```

from within my TinyMCE `init()` function, which shows the contents in the editor, but they are readonly - or so it seems.

There are no errors showing in the console either.

Anyone have any pearls of wisdom to share? Thanks!

**Update**

```
// selector is passed into the function
var html = $(selector).html();//this is successful
tinymce.init({

    selector: selector,
    setup: function(editor) {
        editor.setMode('design');
        editor.setContent(html);//this does not load the code in design mode
        alert(html);// this alerts the expected code

    },

/// could any of this additional code below be causing an issue in tiny5?
    invalid_styles: {
        '*': 'font-size,font-family', // Global invalid styles
        'a': 'background' // Link specific invalid styles
    },
    valid_styles: {
        '*': 'border,font-size',
        'div': 'width,height'
    },
    font_formats: 'Arial=arial, helvetica, sans-serif;',
    toolbar: toolbtns,
    plugins: 'code table lists',
    //~ image_advtab: true,
    menubar: false,
    statusbar: false,
    //~ force_p_newlines : false,
    //~ force_br_newlines : true,
    //~ forced_root_block : '',
    width: '100%',
    height: '500px',
    relative_urls: false,
    content_css: "/include/css/bootstrap.css",
    images_dataimg_filter: function(img) {
        return img.hasAttribute('internal-blob');
    },
});

```

What am I doing wrong? :P