I have a strange problem in Firefox. It seems the correct way to get the editor's HTML in Javascript is the GetHTML method.
However in Firefox, when I do this it does not return the XHTML output, even though I have just done a view source and everything there is XHTML compliant!
To reproduce:
1. Start a clean editor in Firefox, click the Source button and enter <hr><hr>, then click OK.
2. View source again ... you'll see the code has been changed to <hr /><hr /> (yay!)
3. Call FCKeditorAPI.GetInstance("editorname").GetHTML() ... it will return the original non-XHTML code of <hr><hr>
However in Firefox, when I do this it does not return the XHTML output, even though I have just done a view source and everything there is XHTML compliant!
To reproduce:
1. Start a clean editor in Firefox, click the Source button and enter <hr><hr>, then click OK.
2. View source again ... you'll see the code has been changed to <hr /><hr /> (yay!)
3. Call FCKeditorAPI.GetInstance("editorname").GetHTML() ... it will return the original non-XHTML code of <hr><hr>
RE: GetHTML in Firefox does not return XHTML code
Have you ever checked the source files?
RE: GetHTML in Firefox does not return XHTML
That does the trick. Thanks.