When using:
var editor1 = document.getElementById('CE_Editor1_ID');
editor1.setHTML(document.getElementById('Content2').value);
The editor resets the EditorWysiwygModeCss, so that the new content don't get styles, the editor also becomes read only.
When using:
var editor1 = document.getElementById('CE_Editor1_ID');
editor1.setHTML(document.getElementById('Content2').value);
editor1.SetActiveTab('Code');
editor1.SetActiveTab('Edit');
The content uses the styles in the css file, and it isn't read only anymore.
But then another error appears, every time i click on the edior i get the JS error: