This happens on CuteEditor.net 6.6.
When I set EditCompleteDocument ="false" and set my default style to a customized style. I have following problems:
1) The "HTML" and "PREVIEW" don't have the custom style.
2) When I click "HTML" or "PREVIEW" tab then back to "NORMAL" tab, the custom style in "NORMAL" disappeared as well.
I need to hide the default style in the "HTML" tab so that user cannot change it. Please advice on this issue.
Below is the code:
<CE:Editor ID="editor1" runat="server" allowpastehtml="true" visible="true" editorbodyclass="CE_Body" usestandarddialog="true"
EditCompleteDocument ="false" EnableStripStyleTagsCodeInjection= "false" EnableStripScriptTags="false"
showcodeviewtoolbar="true" resizemode="None" FullPage="false" >
</CE:Editor>
and
function CuteEditor_OnInitialized(editor)
{
var editwin = editor.GetWindow();
var editdoc = editor.GetDocument();
editdoc.body.style.cssText="color:blue;font-family:Comic Sans MS;font-size:24px;";
editdoc.ToggleBorder=false;
}
Thanks, Qian