Changes between Initial Version and Version 1 of Ticket #10204
- Timestamp:
- Mar 13, 2013, 1:55:36 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10204 – Description
initial v1 8 8 However, the idea of data processors is to be able to handle different data formats - e.g. markdown and bbcode. 9 9 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.10 Because 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. 11 11 12 Therefore I'm proposing to introduce second dataProcessor - the editor.htmlProcessor. There will be to properties now:12 Therefore I'm proposing to introduce second property - the editor.htmlProcessor. There will be two properties now: 13 13 14 14 * editor.dataProcessor - used for 1st kind of input (setData()), 15 15 * editor.htmlProcessor - used for 2nd kind of input (pasted, inserted HTML). 16 16 17 Itis very simple fix - we need to set {{{editor.htmlProcessor = editor.dataProcessor}}} and use htmlProcessor instead of dataProcessor in editable.setData.17 This is very simple fix - we need to set {{{editor.htmlProcessor = editor.dataProcessor}}} and use htmlProcessor instead of dataProcessor in editable.setData. 18 18 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.19 If 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.