setHTML bug in 6.5

  •  02-09-2010, 5:27 AM

    setHTML bug in 6.5

    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:
     
    Message: Permission denied
    Line: 1
    Char: 1
    Code: 0
    URI: http://pathtothefile.asp  
View Complete Thread