Skip to main content
added 168 characters in body
Source Link
lumio
  • 491
  • 3
  • 17

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.

How can//update2: Okay I changechanged 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 scriptsfiles, no matter what weight I give $js['settings']. Maybe that's the wrong item?

Thanks

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.

How can I change the order of all scripts?

Thanks

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

Tweeted twitter.com/#!/StackDrupal/status/323751453355294721
added 287 characters in body
Source Link
lumio
  • 491
  • 3
  • 17

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.

How can I fix that problemchange the order of all scripts?

Thanks

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.

How can I fix that problem?

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.

How can I change the order of all scripts?

Thanks

Found out, that the Drupal object exists, but is not declared when using CKEditor.
Source Link
lumio
  • 491
  • 3
  • 17

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 not in my themeon the bottom of the page (I don't know how to generate itlike in a usual page all JS files should be on the bottom) but. But CKEditor (which I'm using) needs that object to functionin head.

How can I fix that problem?

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 not in my theme (I don't know how to generate it) but CKEditor (which I'm using) needs that object to function.

How can I fix that problem?

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.

How can I fix that problem?

Source Link
lumio
  • 491
  • 3
  • 17
Loading