#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 | ---------------------------+------------------------------------------------ Description changed by garry.yao:
Old description: > Style detection now seems only concern start boundary instead of the > whole range: > 1. Open an editor instance; > 1. Make selection as follow: > {{{ > This is some sample ^text. You are using^ FCKeditor. > }}} > 1. Check the '''Bold''' style status > * Expected: style should be deactive; > * Actual: style is active; 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''. -- -- Ticket URL: <http://dev.fckeditor.net/ticket/2767#comment:5> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac