#2403: When in div mode inside a <p>, a new <p> is created on enter
----------------------------+-----------------------------------------------
Reporter: neilj | Owner:
Type: New Feature | Status: new
Priority: Normal | Milestone:
Component: UI : Enter Key | Version:
Keywords: |
----------------------------+-----------------------------------------------
This is similar to #1464 (possibly a duplicate?).
When the enter mode is set to 'div' and you are inside a preexisting <p>,
hitting enter inserts a new <p> not a <div>. Now I understand that this is
sometimes useful, but I'm currently using FCKeditor for online email
composition, and here our customers expect hitting enter to always give
them one space, and due to wanting to support bi-directional support we
can't use br mode.
The fix for this is very simple - I've added a new preference
FCKEditor.ForceEnterMode which takes a boolean value (and should probably
default to false). When set to true it will always use the given tag, even
if it is splitting the opposite tag.
I've attached a patch.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2403>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac