Opened 13 years ago

Closed 13 years ago

#6478 closed Bug (fixed)

Silently insert an empty paragraph in Chrome

Reported by: Stephane Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4.2
Keywords: Cc:

Description

I just downloaded the latest nightly build revision 5942.

On Chrome 6.0.472.53, when I click in the editor content, with the lick on the FIRST !! line of content, it inserts an empty paragraph.

I do no editing at all. Only one click.

If the click is on the second line of content, or after the existing content, then the problem does not show up.

Before the click, the content is:

<p>
	Un petit essai de nl</p>
<p>
	et de br pour <a href="/engine/modules/template/display.php?pageId=15" target="_self">voir</a></p>

And after the problematic click, the content is:

<p>
	Un petit&nbsp;essai de nl</p>
<p>
	&nbsp;</p>
<p>
	et de br pour <a href="/engine/modules/template/display.php?pageId=15" target="_self">voir</a></p>

I tested it on Firefox version 3.6.8 and the problem did not show up.

I run a Linux Mint machine.

Change History (6)

comment:1 Changed 13 years ago by Stephane

If the content contains several lines, then the problem occurs when clicking on any line except the last one.

comment:2 Changed 13 years ago by Stephane

The problem does not show up on an older release of the editor, the CKEditor 3.4 (revision 5825) does not show the problem.

comment:3 Changed 13 years ago by Stephane

In a related context, when calling an insertHtml() from a plugin, on the same nightly build revision 5942, then the same problem occurs, that is, if inserting the html chunk on any line of the existing content except the last one, then the same empty paragraph is being inserted.

The content before is:

<p>
	Un petit essai de nl</p>
<p>
	et de br</p>
<p>
	pour <a href="/engine/modules/template/display.php?pageId=15" target="_self">voir</a></p>

And the content after inserting the text [MAIL_META_USER_LASTNAME] on the second line is:

<p>
	Un petit essai de nl</p>
<p>
	et [MAIL_META_USER_LASTNAME]de br</p>
<p>
	&nbsp;</p>
<p>
	pour <a href="/engine/modules/template/display.php?pageId=15" target="_self">voir</a></p>

And the problem does not show up on Firefox.

And, contrary to the above problem, this other similar problem also shows up on the CKEditor 3.4 (revision 5825).

comment:4 Changed 13 years ago by Garry Yao

Status: newpending

WFM with Chrome 8.0 dev/Win7.

comment:5 Changed 13 years ago by Stephane

I'm running a Linux Mint Isadora box. I don't have a Windows machine either.

comment:6 Changed 13 years ago by Jakub Ś

Resolution: fixed
Status: pendingclosed

I have tested your issue and from what I see it was fixed in CKEditor 3.5.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy