I've searched quite a bit for the answer to this but couldn't find an answer. I am attempting to use the htmldataprocessor plugin and would like to get the instance but I always get undefined. Below is brief example. I successfully get the editor instance, but not the dataprocessor instance.
I am using version 3.6.3.
-------------------------------------------------------------------
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<script src="ckeditor/ckeditor.js" type="text/javascript" />
</head>
<body>
<textarea id="editor1" name="editor1" ><p>Initial value.</p></textarea>
<script type="text/javascript">
var editor = CKEDITOR.replace( 'editor1',
{
extraPlugins : 'htmlwriter,htmldataprocessor',
});
var editor = CKEDITOR.instances['editor1'];
var dp = editor.dataProcessor;
console.log(dp);
</script>
</body>
</html>

At that moment the editor
At that moment the editor still is initializing so the dataProcessor might not be ready.
Check the sample pages, I'm sure that some of them use it so you can check how to do it.
Ah thanks, hadn't occured to
Ah thanks, hadn't occured to me that it needed time to initialize. Thx.
Excessive <br> tags added.
After getting it to work I started experimenting with sending data to the toDataFormat function. I'm gettng an excessive amount of br tags added to the content.
INPUT DATA
<address><table border="0" cellpadding="1" cellspacing="1" summary="" width="100%"><tbody><tr><td><p align="left">thing1<br/>
<span style="font-size: 12px;">thing2<br/>
nothing to worry about</span></p></td><td>g</td></tr><tr><td>g<br/>
g<br/>
g</td><td>g</td></tr></tbody></table><em>testphrase<br/>
Address1<br/>
Address2<br/>
telephone</em><br/>
</address>
OUTPUT DATA
<address><table border="0" cellpadding="1" cellspacing="1" summary="" width="100%"><tbody><tr><td><p align="left">thing1<br/> <span style="font-size: 12px;">thing2<br/> nothing to worry about</br/></span></br/></p></td><td>g</td></tr><tr><td>g<br/><br/><br/> g<br/> g</br/></br/></br/></br/></td><td>g</td></tr></tbody></table><em>testphrase<br/><br/><br/><br/><br/> Address1<br/> Address2<br/> telephone</br/></br/></br/></br/></br/></br/></br/></em><br/><br/><br/><br/><br/><br/><br/><br/> </br/></br/></br/></br/></br/></br/></br/></br/></address>