Ok, I'm starting to get the hang of this ckeditor stuff. I figured out how to properly load a ckeditor instance in a jquery dialog box.
Now, I can also use setData to set a default value,
var defaultMessage = 'Type your message here.';
CKEDITOR.instances.editor.setData( defaultMessage );
The problem comes when I need to getData in order to match it against my default message, so that using the focus() method, I can zero-out the default message:
var defaultMessage = 'Type your message here.';
CKEDITOR.instances.editor.setData( defaultMessage );
CKEDITOR.instances['editor'].on('focus', function(){
if(CKEDITOR.instances.editor.getData() == "<p>Type your message here.</p>"){
CKEDITOR.instances.editor.setData( '' );
}
else{
alert(CKEDITOR.instances.editor.getData());
}
})
Well, when I alert the value of getData, it returns "<p>Type your message here.</p>". So, that's the string I'm comparing my getData value to:
if(CKEDITOR.instances.editor.getData() == "<p>Type your message here.</p>")
Yet, that if statement fails. Any insight into this problem?

A hack answer
Well, it doesn't seem right, but instead of asking if the getcontents is equal to the defaultMessage, I am using the indexOf, like so:
var defaultMessage = 'Type your message here.';
CKEDITOR.instances.editor.setData( defaultMessage );
CKEDITOR.instances['editor'].on('focus', function(){
if( CKEDITOR.instances.editor.getData().indexOf(defaultMessage) > -1 ){
CKEDITOR.instances.editor.setData( '' );
CKEDITOR.instances['editor'].on('focus');
}
})