Changes between Initial Version and Version 1 of Ticket #10204


Ignore:
Timestamp:
Mar 13, 2013, 1:55:36 PM (11 years ago)
Author:
Piotrek Koszuliński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10204 – Description

    initial v1  
    88However, the idea of data processors is to be able to handle different data formats - e.g. markdown and bbcode.
    99
    10 Because of current architecture this is clearly impossible to replace editor.dataProcessor with e.g. markdownDataProcessor, because pasted data will be processed as... markdown input.
     10Because of the current architecture this is clearly impossible to replace editor.dataProcessor with e.g. markdownDataProcessor, because pasted data will be processed as... a markdown input.
    1111
    12 Therefore I'm proposing to introduce second dataProcessor - the editor.htmlProcessor. There will be to properties now:
     12Therefore I'm proposing to introduce second property - the editor.htmlProcessor. There will be two properties now:
    1313
    1414* editor.dataProcessor - used for 1st kind of input (setData()),
    1515* editor.htmlProcessor - used for 2nd kind of input (pasted, inserted HTML).
    1616
    17 It is very simple fix - we need to set {{{editor.htmlProcessor = editor.dataProcessor}}} and use htmlProcessor instead of dataProcessor in editable.setData.
     17This is very simple fix - we need to set {{{editor.htmlProcessor = editor.dataProcessor}}} and use htmlProcessor instead of dataProcessor in editable.setData.
    1818
    19 If one want to handle different input format he has to replace editor.dataProcessor with his own dataProcessor, what will not break pasting like it does now.
     19If one want to handle different input format he has to replace editor.dataProcessor with his own dataProcessor, what will not break pasting/inserting HTML like it does now.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy