Hi,
When I use editor.setData(string); and the click on "Source", ckeditor automatically inserts <p> tags and indentations. I would like to remove that and show the source exactly as when it is, how can I achieve that?
When I use editor.setData(string); and the click on "Source", ckeditor automatically inserts <p> tags and indentations. I would like to remove that and show the source exactly as when it is, how can I achieve that?

Re: Help in removing all source formatting
(I'm subscribing to your thread in case you get luckier than I have been so far -- so please; make sure to post if you do get a solution!)
Re: Help in removing all source formatting
CKEDITOR.on('instanceReady', function(ev) { var dtd = CKEDITOR.dtd; for (var e in CKEDITOR.tools.extend({}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent)) { ev.editor.dataProcessor.writer.setRules(e, { indent: false, breakBeforeOpen: false, breakAfterOpen: false, breakBeforeClose: false, breakAfterClose: false }); } });Please let me know if anyone finds a more elegant solution.
Re: Help in removing all source formatting
Let me know if this happens to you
Re: Help in removing all source formatting
Nope, I just tried it; all works fine for me. I have a virgin extracted copy of ckeditor_3.2.1.tar.gz and have only really added the above js. I haven't included or excluded any plugins either: it's all default here.
Re: Help in removing all source formatting
Re: Help in removing all source formatting
You're right.... seems like a bug to me.