How to you use the toHtml function. I have tried it as below. It gives me an object does not support this method error on the "var myHtml" line.
CKEDITOR.on('instanceReady', function (ev) {
// Show the editor name and description in the browser status bar.
document.getElementById('eMessage').innerHTML = 'Instance <code>' + ev.editor.name + '<\/code> loaded.';
var myEditor = CKEDITOR.instances.editor1;
var myProcessor = new CKEDITOR.htmlDataProcessor(myEditor);
var myHtml = myProcessor.toHtml(myEditor.getData());
// Show this sample buttons. document.getElementById('eButtons').style.display = 'block';
});

It depends on what you want
It depends on what you want to do. Basically, it's editor who uses htmlDataProcessor and it does this internally. Developers usually want to change behaviour of the main editor.dataProcessor, rather than use it.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
It depends...
I am trying to store HTML in a database, place it into this editor for editing and save it back.
The only function I see for this is toHtml. The saving to the database part I can do with services.
So you're rather interested
So you're rather interested in the editor#getData method. Check out e.g. this sample: http://ckeditor.com/latest/samples/ajax.html
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
getData (Will be in raw format)
I have the getData function working perfectly, except as the documentation states it is in raw format. I need standard html in order to embed it in an email, styles and all.