Hi there,
I'm using FCKeditor for internal editing of content pages on our ASP.NET website, and it is great. However there is one thing bugging me. I've noticed that the editor automatically fixes basic XHTML markup errors (e.g. unclosed tags) when the editor is loaded, or when you switch from source mode to WYSIWYG and back.
Is it possible to invoke this formatting/fixing operation from Javascript? I would really like to have the tidying up done just before the form is submitted, so that the fixed markup gets written to our database, without having to reload the content.
This is purely for internal use, so I'm not bothered about security etc. We also have a server-side validation routine that checks the Xhtml submitted against the XHTML transitional DTD, and can fix more troublesome errors manually. So I'm just talking about the markup fixes that the editor already does, but that I can invoke from Javascript before saving the page. Or some other way to achieve the same thing.
Also, if this function isn't available in FCKeditor, is it available in CKeditor?
Thanks for your help
Ed
I'm using FCKeditor for internal editing of content pages on our ASP.NET website, and it is great. However there is one thing bugging me. I've noticed that the editor automatically fixes basic XHTML markup errors (e.g. unclosed tags) when the editor is loaded, or when you switch from source mode to WYSIWYG and back.
Is it possible to invoke this formatting/fixing operation from Javascript? I would really like to have the tidying up done just before the form is submitted, so that the fixed markup gets written to our database, without having to reload the content.
This is purely for internal use, so I'm not bothered about security etc. We also have a server-side validation routine that checks the Xhtml submitted against the XHTML transitional DTD, and can fix more troublesome errors manually. So I'm just talking about the markup fixes that the editor already does, but that I can invoke from Javascript before saving the page. Or some other way to achieve the same thing.
Also, if this function isn't available in FCKeditor, is it available in CKeditor?
Thanks for your help
Ed