Opened 17 years ago
Last modified 12 years ago
#325 closed Bug
API: GetXHTML() temporarily distorts rendering — at Version 2
Reported by: | Brian Klug | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | FCKeditor 2.4.2 |
Keywords: | Cc: |
Description (last modified by )
Steps to reproduce:
- Load demo page with Firefox
- Choose "Sample 8: Editor API usage" from the drop down
- Focus before "You are using" and hit enter 5 times
- Click "Get Editor Contents (XHTML)"
The call returns the proper XHTML, but the text in the editor jumps.
We are implementing an autosave feature which periodically calls this function to get the XHTML and send it back to the server using XMLHTTPRequest. It works perfectly except for the dancing text ;)
Change History (2)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Description: | modified (diff) |
---|---|
Keywords: | Confirmed added; API removed |
If you get the contents with body.innerHTML then you'll have very serious trouble when the content has any protected source element (comments, script) that will get lost, in links and anchors you'll get extra attributes, in flash, anchors and other special elements you'll get the fake image instead of the contents...
So that would be a really bad workaround as a general rule.
For anyone else having this problem, I recommend using the following workaround: