Changes between Initial Version and Version 1 of Ticket #16871, comment 1
- Timestamp:
- Feb 28, 2017, 8:14:01 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16871, comment 1
initial v1 1 {{{ 1 2 CKEDITOR.on('instanceReady', function(ev) { 2 3 ev.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); 3 4 }); 4 5 }}} 5 6 the above one solves the issue, but wanted to know why config.pasteFromWordRemoveFontStyles = true; not solving this issue. 6 7 Also Is this a right approach to solve the issue.