Having my own theme for creating and editing Nodes: No WYSIWYG Editor I disabled the option "Use the administration theme when editing or creating content" so I see everything in the default theme.
But now I got a problem: The JS Drupal object is on the bottom of the page (like in a usual page all JS files should be on the bottom).
But CKEditor (which I'm using) needs that object in head.

//update: I checked the scripts and found out, that ckeditor is executed on the very top of all scripts. The Drupal object on the other hand is on the bottom.
I tried to reverse the array, but still the same result. Even jQuery is loaded after CKEditor.

//update2: Okay I changed the order by putting weight on the CKEditor script files and set the scope of every script file to footer, but still the Drupal object is under all files, no matter what weight I give $js['settings']. Maybe that's the wrong item?

Thanks
Since the weight did not work as expected I tried to set the scope for every script to 'header' except for ckeditor files. > Did not work

Because I had no clue I tried the opposite way:

  // Set scope for every script to footer.
  foreach ($js as $index =&gt; $value) {
    $js[$index]['scope'] = 'footer';
  }

  // Except for ckeditor files.
  $js_ckeditor_utils = &amp;$js['sites/all/modules/ckeditor/includes/ckeditor.utils.js'];
  $js_ckeditor_utils['scope'] = 'header';
  $js_ckeditor = &amp;$js['sites/all/libraries/ckeditor/ckeditor.js'];
  $js_ckeditor['scope'] = 'header';


This works - I don't know why, but it works.