Changes between Initial Version and Version 1 of Ticket #16871, comment 1


Ignore:
Timestamp:
Feb 28, 2017, 8:14:01 AM (7 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16871, comment 1

    initial v1  
     1{{{
    12CKEDITOR.on('instanceReady', function(ev) {
    23ev.editor.on('afterPasteFromWord', function(evt) { evt.data.dataValue = evt.data.dataValue.replace(/<span style="([^"]*)">/g,''); evt.data.dataValue = evt.data.dataValue.replace(/<\/span>/g,''); console.log(evt.data.dataValue); }, null, null, 9);
    34});
    4 
     5}}}
    56the above one solves the issue, but wanted to know why config.pasteFromWordRemoveFontStyles = true; not solving this issue.
    67Also Is this a right approach to solve the issue.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy