Opened 16 years ago
Closed 16 years ago
#2556 closed Bug (worksforme)
Two paragraph elements added on a single Enter keystroke
Reported by: | Christopher Crook | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | FCKeditor 2.6.3 |
Keywords: | Pending WorksForMe | Cc: |
Description
When hitting the enter key, two paragraph elements are inserted into the text. Also, if you hit delete, both elements are deleted, so you can not get the correct paragraph break unless you go into the source. This happens in FireFox 3 and IE 7.
Example: If I have some text in the editor, and I wish to add a sentence to preface the remarks, when I finish the statement and hit enter, there are 2 <p> </p> elements between the preface remarks and the original text. Hit delete and the original text is butting against my new sentence.
Attachments (5)
Change History (12)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Keywords: | Pending WorksForMe added; paragraph enter removed |
---|
I was unable to reproduce this problem in my FF3 and IE7 on Vista32. Could you write something more?
comment:3 Changed 16 years ago by
I beleive this happens on first load and subsequent loads of the editor. I'll give the exact steps I preformed to have this happen the first time.
I wrote a paragraph within an FCKEditor and saved it. On save, I grab the inner text and save it to my database. Then I decided to title the paragraph, so I reopened the editor and my code set the inner text to what was saved in the database. (I know it was exactly the same because I checked both the database table and the source - but checking the source was on subsequent saves.) I placed the cursor at the first position of the box and typed the title to the article. AS I was typing, it was up against the original start of the text. Once I reached the end of the title, I hit the enter bar to end the line and push the original text down one line. It went down two. I hit delete and both lines disappeared. I hit enter again, and checking the source, I saw my new line was encapsulated within <p> tags and there was a <p> </p> element(s) between the new line of text and the oringal text
Changed 16 years ago by
Attachment: | reload_check.jpg added |
---|
Screen shot of the reloaded text (after a save) to the database - in source for verification
Changed 16 years ago by
Attachment: | before_enter.jpg added |
---|
Screen shot of the added title right before hitting the enter key
Changed 16 years ago by
Attachment: | after_enter_display.jpg added |
---|
Screen shot of the text immediately after hitting the enter key
Changed 16 years ago by
Attachment: | after_enter_source.jpg added |
---|
Screen shot of the source immediately after hitting enter
comment:4 Changed 16 years ago by
The screen shots I've added demonstrate exactly the steps involved. Note: Between the second shot and the third I came back to the page since the behavior is not present if you go into source mode before entering the new text.
comment:5 Changed 16 years ago by
This is still occurring for us. In fact we shall probably reimplement the 2.4.3 version we had been using due to this bug.
Has anyone else experienced this issue?
comment:6 Changed 16 years ago by
@Xitch13, please attach also the HTML you have in the database at your first save. Let us also know which browser you have there.
comment:7 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
expired.
It might be due to some plugin or custom code that you have added to your editor. Reopen if you can provide the steps to reproduce in a clean install.
Addition information: If you go into source mode and then back out, the behavior is correct.
Example - visiting source mode:
Example - without visiting source mode