Changes between Version 1 and Version 2 of Ticket #10672, comment 2


Ignore:
Timestamp:
Jul 25, 2013, 6:27:57 PM (11 years ago)
Author:
kevin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10672, comment 2

    v1 v2  
    1 The lists follow proper nesting. Having a list nested within another is perfectly valid. The actual lists coming from the clipboard may not be valid, but one of the objectives of the plugin is to clean-up Word's bad HTML, and it would appear that the plugin is doing this but subsequently breaking the list in the postProcessList function. While doing some troubleshooting I commented out line 1150 dataFilter.addRules( CKEDITOR.plugins.pastefromword.getRules( editor, dataFilter ) ); in the default.js script that resulted in a correctly formatted list. I will try to explain below.
     1The lists follow proper nesting. Having a list nested within another is perfectly valid. The actual lists coming from the clipboard may not be valid, but one of the objectives of the plugin is to clean-up Word's bad HTML, and it would appear that the plugin is doing this but subsequently breaking the list in the postProcessList function. While doing some troubleshooting I commented out line 1150 -- dataFilter.addRules( CKEDITOR.plugins.pastefromword.getRules( editor, dataFilter ) );-- in the default.js script that resulted in a correctly formatted list. I will try to explain below.
    22
    33I captured the following from the clipboard prior to processing by the plugin. as you can see the parent list item of the sub-list is closed off. Word creates separate lists then indents using a style (style="mso-list:l0 level2).
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy