One thing that comes to my mind is unsing a template and then replacing the body contents in your template and passing this to FCKeditor.
What i mean is something along those lines (untested, code is just to give you some ideas):
var templateHTML = '<html><head></head><body>%s</body></html>'
//and then later
myHTML = templateHTML.replace('%s', oEditor.GetData());
oEditor.SetData(myHTML);
Re: How to prevent FCKeditor from removing HTML, HEAD and BODY?
What i mean is something along those lines (untested, code is just to give you some ideas):
var templateHTML = '<html><head></head><body>%s</body></html>' //and then later myHTML = templateHTML.replace('%s', oEditor.GetData()); oEditor.SetData(myHTML);Re: How to prevent FCKeditor from removing HTML, HEAD and BODY?
Re: How to prevent FCKeditor from removing HTML, HEAD and BODY?
That did it. Thanks a lot for your help.
Joe