inconsistent ENTER key behavior
Reported by Lim Chee Aun | February 8th, 2009 @ 09:05 PM | in 0.5
Originally posted on Google Code Issue tracker by TJLeahy.Jr...
Description:
In IE, pressing ENTER creates a paragraph - but in Firefox and Opera, it creates a break, which, apart from the obvious layout problems, does not carry the same semantic meaning.
It looks like you tried to correct this, but it didn't really work out. In Firefox, sometimes you get a break immidiately - then, when you press ENTER after typing another line of text, these are suddenly transformed into paragraphs. And sometimes even two of them, e.g.
<p>content</p><p></p><p>more content</p>
I know this one's complicated to solve, but it has been done before - FCKEditor, I believe, is one of the only editors that managed to do it properly across most major browsers.
I believe that consistent ENTER key behavior across the major browsers should be a high priority, as you can not produce consistent CSS layout for content with an unpredictable structure.
I have looked into the matter myself many times in relation to other editors, but have been unable to understand the techniques used in FCKEditor... Maybe somebody else gets it??
Comments and changes to this ticket
-
Lim Chee Aun February 8th, 2009 @ 09:05 PM
- State changed from new to open
-
Lim Chee Aun March 29th, 2009 @ 02:31 PM
- Milestone changed from 0.4 to 0.5
-
Ryan Mitchell November 15th, 2009 @ 07:52 PM
This bug should be fixed with the ensureRootElement function?
http://github.com/cheeaun/mooeditable/commit/8f326b61c6302adbc0b764...It might be worth calling that function on enter press within the editor?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A simple web-based WYSIWYG editor, written in Mootools.