I'd like to disable all (extra) whitespace generated by CKEditor; i.e. instead of:
I want:
So I don't want spaces, tabs or newlines being inserted -- I'm reparsing the HTML anyway and have no need for prettiness at this point!
Is there a way to switch it all off in one go?
<p> <b>foo</b> bar </p>
I want:
<p><b>foo</b> bar</p>
So I don't want spaces, tabs or newlines being inserted -- I'm reparsing the HTML anyway and have no need for prettiness at this point!
Is there a way to switch it all off in one go?

Re: Disable Whitespace (pretty printing)
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.