#3312: It's not possible to remove list on empty <li> ENTER -------------------------------+-------------------------------------------- Reporter: fredck | Owner: garry.yao Type: Bug | Status: assigned Priority: Normal | Milestone: CKEditor 3.0 Component: General | Version: Keywords: Confirmed Review- | -------------------------------+--------------------------------------------
Comment(by garry.yao): Replying to [comment:8 fredck]: > * The range bookmark should be used instead of a custom "marker" system. After agreed with you on this, I found the tiny difference between this and the bookmark nodes:[[BR]] 1. Bookmark nodes are invisible, which will be ingored by domiterator, thus the outdentList will not creating a new paragraph after outdent, which make IE has nowhere to place the carot after the list; 1. The marker node not only record the editing position, it also helps to establish a paragraph after the list; > * There is no need to save a range clone (orginalRange) for every call just for this case. It's enough to create a new range before the outdentList call (reusing the "range" variable). Also, that same range can be used to create the above bookmark and selected it later. The reason for save the range is avoid it been changed when calling 'splitBlock' later, which I comment out, save before 'outdentList' call is too later for us to plant the marker node. Please comment on those two points before my attaching a new patch. -- Ticket URL: <http://dev.fckeditor.net/ticket/3312#comment:9> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac