Этот пример (в рамке) должны дать вам некоторые идеи (jsFiddle):
CKEDITOR.replace('editor', {
plugins: 'toolbar,wysiwygarea,sourcearea,print,basicstyles',
on: {
// When CKEditor DOM is loaded, append stuff to <head>.
contentDom: function() {
var doc = this.document,
head = doc.getHead();
// Via <link> tag.
doc.createElement('link', {
attributes: {
rel: 'stylesheet',
type: 'text/css',
href: 'print.css',
media: 'print'
}
}).appendTo(head);
// Via <style> tag.
var style = doc.createElement('style', {
attributes: {
type: 'text/css'
}
});
style.setText('@media print { * { color: red } }');
style.appendTo(head);
}
}
});