Opened 13 years ago
Closed 12 years ago
#8229 closed Bug (expired)
Updating data in CKEditor on IE 8 blanks out the data
Reported by: | anandk | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.6 |
Keywords: | Cc: |
Description
The code we have works fine on Firefox. That said, it is weird on IE 8. On IE 9, it simply crashes the browser. Here is what we are doing: On a page with N CKEditor instances, we let the user enter some data in each of the N text areas. After this, the user can choose the kind of alignment she would like to have & it is expected that the data in each of those text areas would align themselves relative to the longest string of data (and some other rules). Hence, it is expected that the CKEditor instances will update themselves & render properly aligned data. Here are the high level steps we are executing:
- Get the CKEditor instances & pass them to the alignment function (JS)
- Remove all custom <span>s that we might have applied on each of the instances & simply work with the data
- Compute the widest data amongst the instances
- Add custom span to each CKEditor instance's data with a padding derived relative to widest piece of data
- Call updateElement()
Typical sequence of functions called:
- var initialHtml = this.getSnapshot();
- Manipulate initialHtml into replacedHtml
- this.loadSnapshot(replacedHtml);
- this.updateElement();
With each of the editors, the sequence of function calls is as follows:
- var html = this.getBody(); & var spanElement = $(html).find('.special_class');
- Compute width & required padding
- spanElement.replaceWith('blah')
- this.updateElement();
Once again, this works fine on FF & then has erratic behaviour on IE 8. Sometimes the alignment goes through fine. Sometimes only some are aligned. Often all data gets cleared/blanked out. On IE 9 it simply crashes.
Change History (2)
comment:1 Changed 13 years ago by
Keywords: | updateElement IE 8 data blanks removed |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
In order to understand your problem we will need a test page. It's almost impossible to create a test just from your description.
You should create a page as simple as possible with easy steps to reproduce and understand what's the probelm.