Hi! My problem is somewhat related to http://drupal.org/node/708952. FCKeditor toolbar is not showing in edit mode. I've already tried all the fixes stated in the TROUBLESHOOTING.txt and scoured all forums I could find but none seems to work. I maybe missing something but when I changed my theme to Garland, FCKEditor works perfectly as before. But the strange thing is that FECKeditor used to work before in our custom theme. I'm suspecting that this is related to the changes I made in page.tpl.php. Here's the scenario.
I added a new region that will work as a "carousel" (just an HTML embedded in a block) which uses the jquery and js. I've added this jquery-1.4.1.min.js along with two other javascripts and defined a new region in theme.info and the files to its intended folders. I tried to disabled these new addition but the problem is still the same. I don't know what I'm missing here. I've been trying to solve this for days already so any help from you guys will be very much appreciated.
By the way, I can see something like this when I view the source:
var oFCK_1 = new FCKeditor( 'oFCK_1' );
oFCK_1.BasePath = '/modules/fckeditor/fckeditor/';
and a script that calls the /fckeditor/fckeditor.js
Comments
Comment #1
nevets commentedYou should not be "hand adding" js files.
They should be added either through the .info file or in a module using drupal_add_js().
You should not be adding jquery as it is already used by Drupal. The jQuery Update module provides support for jQuery 1.3.x, I am not aware of support for 1.4.x.
Given your problem I would guess you are seeing a javascript error related to using jquery-1.4.1.min.js
Comment #2
lizac commentedI see. thanks for your response. I think I have to look at it and study more.
I just want to ask, do you think that I can just remove the jquery-1.4.1.min.js and use the Drupal default?
I would be glad to know your other suggestions as well. Thanks a lot.
Comment #3
nevets commentedThere are modules that do a "carousel", that is where I would start.
As for the ones you are using, I can't say, a growing number seem to depend on jQuery 1.4
Comment #4
lizac commentedgreat. I'll try to take a look at the proper handling of Js files then see about the carousel module. Thanks thanks a lot. =)
I'll give an update here.
Comment #5
lizac commentedHi! nevets,
I'm not sure if I'm doing this right but my js files are inside my custom theme folder and it has been declared in my theme.info file. Sources said that it will be automatically detected by Drupal 6 so I don't need to add the drupal_add_js(). Am I correct?
I'll try to work on the carousel module next.
When I switch the theme to Garland, FCKEditor still does not load. any other idea?
Comment #6
nevets commentedCorrect, if you declare the js files in your theme's .info file, you do not need to call drupal_add_js().
The thing to do is look at the generated page, are your files be included.
If FCKEditor does not load even in Garland it implies either FCKEditor is not configured correctly or the page has javascript error.
Comment #7
lizac commentedI'm guessing that it's really a java script error. What makes this very difficult to solve is that there's no error log. I'll give an update.
Just for FYI, I have solved this issue in our test site by removing the jquery-1.4.1.min.js in theme.info. I did the same thing in prod but FCKeditor toolbar still does not show in edit mode. Haiz.
Comment #8
lizac commentedSo I uninstalled the FCKeditor and installed CKEditor. I wanted to close this issue. I think everyone's busy and have no time to take a look at this. Thanks Nevets for your inputs. Those were really appreciated.