#1707 closed Bug (fixed)
IE : Loop while formatting Word pasted data
Reported by: | Luis | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | FCKeditor 2.6 |
Component: | Plugin : Paste from Word | Version: | FCKeditor 2.5 |
Keywords: | IE Review+ | Cc: |
Description
Hi,
I´m getting this bug since release 2.5, aparentely due to a javascript loop on text format commands. The page freezes and returns a message asking me to stop the script that is taking too long to run. That also happens on the demo page for this site when you put a long text (it doesn´t need to be that long), containing paragraphs with different text formats, select it all and try to do any formatting with it, such as right aligning.
I´m using Internet Explorer 6.0 and Windows XP.
Hope you find a solution on that enableing me to upgrade FCKEditor, solving most of the problems I have on the previous versions.
Thanks,
Luís
Attachments (3)
Change History (18)
Changed 17 years ago by
Attachment: | bug_fckeditor.doc added |
---|
comment:1 Changed 17 years ago by
Keywords: | Confirmed IE added |
---|---|
Milestone: | → FCKeditor 2.6 |
Priority: | Normal → High |
Summary: | PAGE FREEZES WHILE FORMATTING (JAVASCRIPT ERROR) → IE : Loop while formatting Word pasted data |
Version: | → FCKeditor 2.5 |
Confirmed with IE. No problem with other browsers.
I've reduced the TC for it:
- Load the following HTML:
<p><b>SAMPLE DATA<o:p></o:p></b></p>
- Align the "SAMPLE DATA" paragraph to right.
The browser will loop.
It works well by removing the <b> or the MS Office <o:p> tags.
comment:2 follow-up: 3 Changed 17 years ago by
Remember that it also happens when you write text with lots of paragraphs, containing different formats, straight on fckeditor. It´s not necessarily a pasted data from word. Thanks again, Luís
comment:3 Changed 17 years ago by
Replying to oliveira_lcs:
Remember that it also happens when you write text with lots of paragraphs, containing different formats, straight on fckeditor. It´s not necessarily a pasted data from word.
For that case Luis, we need the precise steps to reproduce it. We can only work on facts, not theories.
Thanks for the update.
comment:4 Changed 17 years ago by
You´re right. That happened to me on 2.5. I´ve tried to reproduce it on the actual demo page without success, so maybe it´s fixed for 2.5.1. Thank you and I hope you find a solution for the word pasted data soon.
comment:5 Changed 17 years ago by
I found that it get in a loop at "while ( ( block = iterator.GetNextParagraph() ) )" in fckjustifycommands.js.
iterator.GetNextParagraph() keeps returning <B></B> while variable currentnode in function GetNextParagraph() have <B><?xml:namespace prefix = o /><o:p></o:p></B>
I guess it is a matter of deleting the empty tag <B></B> at the end of the function, I just dont know how to do it.
comment:6 Changed 17 years ago by
Owner: | set to Martin Kou |
---|---|
Status: | new → assigned |
comment:7 Changed 17 years ago by
Keywords: | Review? added; Confirmed IE removed |
---|
comment:8 Changed 17 years ago by
Keywords: | Review+ added; Review? removed |
---|
Please include the changelog entry when committing.
comment:9 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed with [1409].
Click here for more info about our SVN system.
comment:10 Changed 17 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I just tested with the changed file and it still freezes while formatting. Guess it needs to be reviwed. Thank you once again, Luís
comment:11 Changed 17 years ago by
Hi Luís,
Did you apply the patch to our released source package or to the SVN source tree? I'm asking this because applying the patch to the release source package has no effect - the source code in the downloadable package is there for viewing purpose only, it is not loaded by the browser. The patch is only effective if you apply it to the SVN source tree.
comment:13 Changed 17 years ago by
Keywords: | IE added |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
I've tested it with both the reported TC as well as with the reduced TC described in comment:1. It works for me on both cases.
Feel free to reopen it if it is still a problem. In that case, please provide the precise instructions to reproduce it.
comment:15 Changed 11 years ago by
Component: | General → Plugin : Paste from Word |
---|
Sample Data and Screenshot