Compatibility with themes that put all javascript at the bottom

AlenaSystems - June 14, 2008 - 03:26
Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-1.4
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am using FCKeditor. The editor works well with any other theme but does not show up when using the Blueprint theme.

#1

lyricnz - June 23, 2008 - 14:08

Check your javascript errors. You may find that because Blueprint puts all the javascript at the bottom of the file, inline "Drupal.extend" calls will be broken.

#2

m3avrck - August 27, 2008 - 02:50
Project:Blueprint» FCKeditor - WYSIWYG HTML editor
Version:5.x-1.0» 5.x-2.x-dev

Right that is likely the cause. I think then the issue is with how FCKEditor defines it JS since if it is setup correctly it should still work.

I suggest moving this issue over there...

#3

Jorrit - August 27, 2008 - 09:49
Title:FCKeditor does not show up» Compatibility with themes that put all javascript at the bottom

I will put this at the todo list

#4

wwalc - August 28, 2008 - 09:26

5.x fixed in CVS.

#5

wwalc - August 28, 2008 - 10:32
Status:active» fixed

Fixed in 6--1 and 6--2 as well.

I'm not sure about 6--2 though, in 5--2 and 6--1 I used:
if (Drupal.jsEnabled) {$(document).ready(function() {'. $js .'});}
but in 6--2 I had to remove document.ready call to start FCKeditor. It definitely has something to do with the new loading method of FCKeditor (Drupal.behaviors)... so please correct it Jorrit, if you think it should be done in a different way.

#6

Anonymous (not verified) - September 11, 2008 - 10:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#7

mattez - October 8, 2009 - 09:38
Version:5.x-2.x-dev» 6.x-1.4
Status:closed» active

I use last version of Drupal and FCK. When I move

<?php
print $scripts;
?>

just before tag, how is written here:
http://craigsworks.com/projects/qtip/docs/#installation

It is highly recommended that all JavaScript includes like the one above be placed after all your content at the footer of the page, just before the end tag. This ensures that all content is loaded before manipulation of the DOM occurs.

FCKeditor never render again. When I copy it back to FCKeditor start works again (so I leave it there for the present).
So this issue is not absolutely fixed IMHO.

#8

mattez - October 8, 2009 - 10:45
Component:Code» Documentation
Category:bug report» support request
Status:active» fixed

I found ** solution here **
http://wimleers.com/article/improving-drupals-page-loading-performance#r...
It should be

      ...
      <?php print $scripts ?>
      <?php print $closure ?>
   </body>
</html>

..and FCK works.

#9

Jorrit - October 10, 2009 - 08:38
Status:fixed» closed

This was also mentioned at http://drupal.fckeditor.net/troubleshooting#1.

 
 

Drupal is a registered trademark of Dries Buytaert.