Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11052 closed Task (invalid)

possibility to disable all input-data-manipulation

Reported by: Sebastian Röher Owned by:
Priority: Normal Milestone:
Component: Core : Parser Version: 4.2.2
Keywords: Cc:

Description

Hello ladies and gentlemen,

I wanna implement the possibility to totally disable all filters, transformers and modules, which manipulate / transform the input data, before its loaded in the WYSIWYG-Editor.

Therefore i already wrote my own little data-processor, but my input-data is still getting messed up.

Can you tell where I need to make changes to disable all other filters, transformers and parsers, so that my input data will be sent 1:1 into the WYSIWYG-Editor's-source view (logically the normal user doesn't want to see from the beginning the source).

It would be very nice if you could help me to solve my problem.

Regards Sebastian Röher

Attachments (2)

config.js (438 bytes) - added by Sebastian Röher 10 years ago.
my config.js
plugin.js (770 bytes) - added by Sebastian Röher 10 years ago.
my dataProcessor in plugins/mycoreprocessor/

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Sebastian Röher

Attachment: config.js added

my config.js

Changed 10 years ago by Sebastian Röher

Attachment: plugin.js added

my dataProcessor in plugins/mycoreprocessor/

comment:1 Changed 10 years ago by Jakub Ś

Keywords: dataProcessor htmlParser htmlFilter removed
Resolution: invalid
Status: newclosed

I wanna implement the possibility to totally disable all filters

It is not possible to disable all the filters. If it was possible to paste any invalid HTML CKEditor could became very unpredictable and we won't allow it. In fact I don't think any wysiwyg editor will.

I don't want to be rude or anything but to get unmodified HTML you would have to use textarea. This is the only way to get unmodified HTML.

Please note that in many cases even browser fixes HTML in background if it is invalid.

comment:2 Changed 10 years ago by Sebastian Röher

OK, than can we/I at least modify it so, that unknown tags will be totally ignored by all filters, like it done by browsers too?

comment:3 Changed 10 years ago by Jakub Ś

Please note that CKEditor is HTML editor and not any tags editor. For any non-html tags we recommend using protectedSource: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-protectedSource. You could have your tags starting with some prefix that protected source could check.

If you are going to use any tags you want you should also turn off ACF.
For example below will work when ACF if turned off:

<cube>aaaaa<circle data-someatr="aaa"></circle></cube>

In worst case scenario as mentioned here #10340 you would have to modify CKEditor dtd js file to allow some custom tags.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy