#2767: plug-in:basicstyle AND elementpath incorrect style range detection -------------------------------+-------------------------------------------- Reporter: garry.yao | Owner: garry.yao Type: Bug | Status: assigned Priority: Normal | Milestone: CKEditor 3.0 Component: Core : Styles | Version: SVN Keywords: Confirmed Review? | -------------------------------+--------------------------------------------
Old description: > === Description === > Style and element path detection on certain selection are incorrect. > > === Procedures === > 1. Open an editor instance; > 1. Make selection as follow: [[BR]] > {{{ > > <p> This is some <strong>sample ^text</strong>. You are using^ <a > href="http://www.fckeditor.net/">FCKeditor</a>.</p> > > }}} > 1. Check the '''Bold''' style status > * Expected: style status should be off; > * Actual: style status is on; > > === Test Cases === > Test cases created with : > > 1. Test select start partial in a bold style and end in non-style.[[BR]] > * Original document:[[BR]] > {{{ > > <p> level1<strong>le^vel2</strong>lev^el1</strong></p> > > }}} > * Reference results > * FCKEditor2.6.3 [[BR]] Bold style command status in ''on''. > * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element > path is ''body -> p''. > * Expected Result [[BR]] Bold style command status in ''off'', element > path is ''body -> p''. > 1. Test select start partial in a bold style, select through non-style > texts and end in bold style.[[BR]] > * Original document: [[BR]] > {{{ > > <p> > level1<strong>le^vel2</strong>level1<strong>le^vel2</strong></strong></p> > > }}} > * Reference results > * FCKEditor2.6.3 [[BR]] Bold style command status in ''on''. > * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element > path is ''body -> p''. > * Expected Result [[BR]] Bold style command status in ''off'', element > path is ''body -> p''. > 1. Test select start partial in a bold style which is in a '''td''', > selection goes through some other non-style text in cells, and end > partial in a bold style in a '''td''' again. > * Original document:[[BR]] > {{{ > > <p> > <table> > <tbody> > <tr> > <td><strong>c^ell1</strong></td> > <td>cell2</td> > </tr> > <tr> > <td>cell3</td> > <td><strong>cell^4</strong></td> > </tr> > </tbody> > </table> > </p> > > }}} > * Reference results > * FCKEditor2.6.3 [[BR]] Bold style command status in ''on'. > * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element > path is ''body -> table -> tbody''. > * Expected Result [[BR]] Bold style command status in ''off'', element > path is ''body -> table -> tbody''. New description: === Description === Style and element path detection on certain selection are incorrect. === Procedures === 1. Open an editor instance; 1. Make selection as follow: [[BR]] {{{ <p> This is some <strong>sample ^text</strong>. You are using^ <a href="http://www.fckeditor.net/">FCKeditor</a>.</p> }}} 1. Check the '''Bold''' style status * Expected: style status should be off; * Actual: style status is on; === Test Cases === Test cases created with : 1. Test select start partial in a bold style and end in non-style.[[BR]] * Original document:[[BR]] {{{ <p> level1<strong>le^vel2</strong>lev^el1</strong></p> }}} * Reference results * FCKEditor2.6.3 [[BR]] Bold style command status in ''on''. * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element path is ''body -> p''. * Expected Result [[BR]] Bold style command status in ''off'', element path is ''body -> p''. 1. Test select start partial in a bold style, select through non-style texts and end in bold style.[[BR]] * Original document: [[BR]] {{{ <p> level1<strong>le^vel2</strong>level1<strong>le^vel2</strong></strong></p> }}} * Reference results * FCKEditor2.6.3 [[BR]] Bold style command status in ''on''. * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element path is ''body -> p''. * Expected Result [[BR]] Bold style command status in ''off'', element path is ''body -> p''. 1. Test select start partial in a bold style which is in a '''td''', selection goes through some other non-style text in cells, and end partial in a bold style in a '''td''' again. * Original document:[[BR]] {{{ <p> <table> <tbody> <tr> <td><strong>c^ell1</strong></td> <td>cell2</td> </tr> <tr> <td>cell3</td> <td><strong>cell^4</strong></td> </tr> </tbody> </table> </p> }}} * Reference results * FCKEditor2.6.3 [[BR]] Bold style command status in ''on''. * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element path is ''body -> table -> tbody''. * Expected Result [[BR]] Bold style command status in ''off'', element path is ''body -> table -> tbody''. -- Comment(by martinkou): Tidied up the description such that the italics don't leak into the comments. -- Ticket URL: <http://dev.fckeditor.net/ticket/2767#comment:10> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac