I'm using the .net version of ckeditor (current version).
When I set the contentscss the code doesn't work when the page loads first time. If I click a button on the form and run the exact same code a second time the contentscss does get set. The vb code I am using to set the contectscss is
CKheader.config.contentsCss(0) = "/Websites/_global/style/StyleSheet.css"
I can see that the .net control inserts some javascript in to the bottom of the form. On the first page load the javascript does not contain any reference to the css, on the second load it does (see below)
<script type="text/javascript">CKEDITOR.replace('CKheader',{"contentsCss" : ['//Websites/_global/style/StyleSheet.css']});</script>
Any ideas how I can set the style sheet or the ckedit editor?

I've manage to fix it!
I've manage to fix it!
instead of the code above, I've changed it to
redim preserve CKheader.config.contentsCss(1)
CKheader.config.contentsCss(1) = "/Websites/_global/style/StyleSheet.css"
This ensures that the ckeditor will pick up the stylesheet on the first load of the page.