#3656: CKEDITOR.dom.range::trim() is destroying text ranges. -----------------------+---------------------------------------------------- Reporter: martinkou | Owner: martinkou Type: Bug | Status: new Priority: Normal | Milestone: CKEditor 3.0 Component: General | Version: SVN (CKEditor) Keywords: | -----------------------+---------------------------------------------------- To reproduce: 1. Open replacebyclass.html. 2. Run the following in Firebug console, or any browser console that allows JavaScript execution: {{{ var p = CKEDITOR.dom.element.createFromHtml ('<p>abcdabcd</p>'); var range = new CKEDITOR.dom.range(); range.setStart(p.getFirst(), 2); range.setEnd(p.getFirst(), 6); console.log(range.collapsed); range.trim(); console.log(range.collapsed); }}} 3. range becomes collapsed after running trim() on a non-empty text range, this is wrong.
-- Ticket URL: <http://dev.fckeditor.net/ticket/3656> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac