#3010: Enhance testing framework regards 'selection range' testing
-----------------------+----------------------------------------------------
 Reporter:  garry.yao  |       Owner:              
     Type:  Task       |      Status:  new         
 Priority:  Normal     |   Milestone:  CKEditor 3.0
Component:  General    |     Version:  SVN         
 Keywords:             |  
-----------------------+----------------------------------------------------
 1. Document content '''along with''' selection testing regards various
 command execution result could be simplified as comparison based on our
 widely used '''selection description language''', which make test case
 easy to write and understand by people, so a translation API could be
 provided to make the editor understand this language.

   * represent single selection

 {{{
 <p>
         This is some <strong>^sample text^</strong>.</p>
 }}}


   * represent multiple selection

 {{{
 <table>
         <tbody>
                 <tr>
                         <td>
                                 Text1
                         </td>
                         <td>
                                 ^Text2^
                         </td>
                 </tr>
                 <tr>
                         <td>
                                 ^Text3^
                         </td>
                         <td>
                                 Text4
                         </td>
                 </tr>
         </tbody>
 </table>
 <br />

 }}}

   * represent collapsed selection
 {{{
         This is some <strong>sample^ text</strong></p>
 }}}

  2. Secondly, in order to avoid embed html string in JavaScript codes,
 it's more convenient to utilize a <textarea> to hold the actually
 expected/provided descriptive HTML codes( the reason for bypass <pre> is
 because IE's unable to preserve original format when retrieving content
 dynamically). So a cross-browser implementation could be established to
 get pre-formatted content with ease.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3010>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to