Ticket #1707 (closed Bug: fixed)

Opened 19 months ago

Last modified 17 months ago

IE : Loop while formatting Word pasted data

Reported by: oliveira_lcs Owned by: martinkou
Priority: High Milestone: FCKeditor 2.6
Component: General 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

bug_fckeditor.doc (179.5 KB) - added by oliveira_lcs 19 months ago.
Sample Data and Screenshot
1707.patch (1.0 KB) - added by martinkou 18 months ago.
Proposed patch for fixing #1707.
1707_2.patch (0.9 KB) - added by martinkou 18 months ago.
Simplified patch for fixing #1707.

Change History

Changed 19 months ago by oliveira_lcs

Sample Data and Screenshot

  Changed 18 months ago by fredck

  • keywords Confirmed IE added
  • priority changed from Normal to High
  • summary changed from PAGE FREEZES WHILE FORMATTING (JAVASCRIPT ERROR) to IE : Loop while formatting Word pasted data
  • version set to FCKeditor 2.5
  • milestone set to FCKeditor 2.6

Confirmed with IE. No problem with other browsers.

I've reduced the TC for it:

  1. Load the following HTML:
<p><b>SAMPLE DATA<o:p></o:p></b></p>
  1. 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.

follow-up: ↓ 3   Changed 18 months ago by 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. Thanks again, Luís

in reply to: ↑ 2   Changed 18 months ago by fredck

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.

  Changed 18 months ago by oliveira_lcs

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.

  Changed 18 months ago by hespanhol

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.

  Changed 18 months ago by martinkou

  • owner set to martinkou
  • status changed from new to assigned

Changed 18 months ago by martinkou

Proposed patch for fixing #1707.

  Changed 18 months ago by martinkou

  • keywords Review? added; Confirmed IE removed

Changed 18 months ago by martinkou

Simplified patch for fixing #1707.

  Changed 18 months ago by fredck

  • keywords Review+ added; Review? removed

Please include the changelog entry when committing.

  Changed 18 months ago by martinkou

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [1409].

Click here for more info about our SVN system.

  Changed 17 months ago by oliveira_lcs

  • status changed from closed to reopened
  • resolution fixed deleted

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

  Changed 17 months ago by martinkou

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.

  Changed 17 months ago by fredck

You may also try our nightly build.

  Changed 17 months ago by fredck

  • keywords IE added
  • status changed from reopened to closed
  • resolution set to fixed

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.

  Changed 17 months ago by oliveira_lcs

It did work for the nightly build. Thank you!!!

Note: See TracTickets for help on using tickets.