Changes between Initial Version and Version 1 of Ticket #14861, comment 8


Ignore:
Timestamp:
Dec 7, 2016, 3:25:17 PM (7 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14861, comment 8

    initial v1  
    1 It doesn't but perhaps you could. I haven't tried it but you could listen to [http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-key key] event, get data there and try to change HTML:
     1> I thought that maybe CKEDITOR could run the same processing as it does when getData() is called,
     2It doesn't auto do that but perhaps you could. I haven't tried it but you could listen to [http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-key key] event, get data there and try to change HTML:
    23
    34{{{
     
    56        var keyCode = evt.data.keyCode;
    67                if (  keyCode == CKEDITOR.CTRL + 67 ) {// Ctrl+C
    7                         //Change HTMl here...
     8                        //Change HTML here...
    89        }
    910} /*, null, null, 10*/ ); // perhaps some priority adjustents to value below 10 will be needed
     
    1213
    1314
    14 @e.arshinov I think I will discuss it with the team to get all point of views. In general text content is needed in 90% of cases. Users sometimes also paste data form and into editor and in such data should not be cleaned.
     15@e.arshinov I think I will discuss it with the team to get all point of views. In general text content is needed in 90% of cases. Users sometimes also copy data form and paste it into editor and in such cases data should not be cleaned.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy