Active
Project:
YUI Rich Text Editor
Version:
5.x-2.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
20 Jun 2008 at 04:35 UTC
Updated:
16 Oct 2008 at 12:44 UTC
I have enabled YUI and YUI editor in my 5.x version of Drupal and the editor doesn't display when creating a content page. I've tried both pointing the YUI library to http://yui.yahooapis.com/2.5.2 and a local install folder, but neither work. I'm using a custom theme. Can anybody help explain what is wrong and what I need to do to fix it?
Thanks
Comments
Comment #1
rentex commentedI run Drupal 5.7, but I experienced the same issue.
I was able to fix it by doing the following:
In "YUI Common Settings" I replaced:
http://yui.yahooapis.com/2.3.0 with: http://yui.yahooapis.com/2.5.1
In "YUI editor settings" Paths-field I added: node/*
I checked admin/user/access that my user had permissions to use the YUI Editor.
Then the editor works like a charm. May take some time to load the editor, but you can host the files locally and it will speed up.
Comment #2
drgreybow commentedI followed rentex's suggestions, but I'm still not seeing the editor. I don't get any errors (javascript or others). I've granted access to both the YUI modules for all users. I've tried entering paths and ID's, and leaving the fields blank.....still no editor. Help!!!
Comment #3
rentex commentedDid you test with several browsers?
I tested with Firefox 2.0.0.14
Did you try without entering ID's as per the above instructions?
Also did you try hosting the yui files on your server instead and calling the editor from there? Otherwise it may take a long time to load the editor (does the browser actually stops loading completely?).
Sure you tried YUI version 2.5.1 (library from Yahoo)?
I used the following YUI Module versions:
yui_editor-5.x-2.6-95
yui-5.x-2.3
What module-versions you tested?
Do you have JavaScript blocked in the browser you tested with (JavaScript blocking add-on perhaps)?
Comment #4
jeffcd commentedYou may contact me directly for help with this. Aside from that it would be useful to know which browser/version you are using. Also, do you have any other contributed modules installed?
Comment #5
Goose4all commentedthe url for the yahooapi did change a while ago... i mirrored the lib locally and it works like a charme.
you probably need to do the same.
Comment #6
drgreybow commentedI've tried with Firefox 2.0.0 and IE7, neither work. The browser doesn't take a long time to load, and I'm not getting any errors, so it would appear that it's not even trying to load the editor.
I've tried installing YUI locally in various directories, but that didn't work either. I currently have it at sites/default/yui
Is there some other location I should install at?
I'm about at my wits end with this module. Unless someone has some sort of break through for me in the next day or so, I'm moving on to a different module.
Comment #7
jeffcd commented- Try looking scanning the source to see if there is a call to 'render_editor'.
- Also, try downloading firebug (for Firefox) and under the "script" tab you should be able to view the source for your various YUI files. If it says that the file is not found on any of them then you're probably not entering the right path to your YUI source. Hope this helps.
Comment #8
hitetlen commentedHi!
Steps:
1.->Yui Common Settings
Location of YUI library:http://yui.yahooapis.com/2.5.2
or if you use local library:sites/default/yui
2.->http://yourdrupalpage.com/?q=admin/user/access
check: Access YUI
Access YUI editor rights
3.enable in your browser javascript
4.If you use custom theme:
on the server in the file ../themes/yourcustomtheme/page.tpl.php
you see this:
if you don´t have
print $scriptsthen write it into the file.Now you see this:
And on the end of the file, in front of
you must write
print $closureNow you see:
Theme developer's guide: http://drupal.org/node/11812
I hope this is helpful for you.Sorry for my english.
hitetlen
Comment #9
RainbowDB commentedThanks hitetlen - I was having the same problem and that fixed it! I think it was the closure bit.
Comment #10
jeffcd commentedI think this has been covered fairly well and will create a page with the help information provided here. Hopefully the number of users not able to get the editor working is at or near zero.
Comment #11
Cyberflyer commentedI am having a problem with YUI text editor on Drupal 6.3, the latest modules and Firefox 2.0.0.16 on Mac OS X 10.5.4 on a MacBook Pro with an Intell processor.
The editor loads, but the edit field is not active. Nothing works.
I have configured roles and permissions properly.
It works like a charm in Safari.
Anyone know of any bugs in this configuration and workarounds?
Comment #12
WallyJtD commentedChanged this to active - needs more info (hope that's right)...
Mentioned this on the other thread; I'm having a problem in that the editior works fine on Firefox (currently using 3.0.1 but works with the later v2 too) and the editor displays beautifully - with fully functioning image uploader.
However, on IE6 and IE7, nothing is displayed. When I view the source, there is nothing after the "Body:" textarea block that includes any of the YUI editor code; as though it simply didn't pick up at all. I have the scripts loaded in via the header, and also have the $closure at the bottom of the page.tpl.php file - as mentioned, in Firefox it works fine.
Anyone found a solution for the IE browsers not displaying?
Comment #13
WallyJtD commentedOK, I found the problem... and works fine now. Sorry to bother everyone :)
Comment #14
stinky commentedI'm having the problem of not seeing the editor. I've followed the instructions that hitetlen wrote, but it still doesn't work in Firefox.
Comment #15
fabianome commentedFor me too. Strange because I'm using the editor in other site I made a few weeks ago. So now with this new site it's not working, I dont see the editor.
I've tried to change the location of Location of YUI library but is not working yet.
Please, any help?
Comment #16
jeffcd commentedThis appears to have become the general "YUI doesn't work/appear/sucks/whatever" bug. I will leave it open indefinitely for people to use and reference.
Comment #17
rlnorthcuttI had a similar problem on a site with a subdomain. I found that Javascript caching was the problem (I didn't try to host local files, though).... However, I haven't noticed a problem with JS caching on NON subdomain sites...
When I had the problem, I noticed in FireBug that I got JS errors about "Drupal" not being defined in the YUI script... so perhaps there needs to be an extra bit to "add" the Drupal definition for the YUI if the system doesn't see it? Not sure, but maybe it will help...
Ron
Comment #18
Jonathan.D commentedVerifying that hitetlen's closure fix worked.
I isolated each possibility, and it was the closure that made it work in different scenarios. Not sure about everyone else, but this should at least be set to patched.
Comment #19
dr00b commentedI use the editor on several sites, so was surprised when I was running into this same issue today (editor not displaying at all) when deploying it on another site. Of course it was that darn closure tag missing from an old theme I had designed. I should've learned my lesson with this happened with Google Analytics on another theme I made awhile ago (and didn't update it to the new Drupal theme guidelines.) Still having little issues like the image button ignoring instruction to not appear, but that has been there for as long as I've used this module and is a topic for another thread. (I use #yui-gen23{display: none;} as my workaround, not ideal but works). Btw, wish I could use the image button, but it needs to interface w/ other image handling modules first (for size-limiting reasons among others)... but I digress. Thanks for the reminder about the closure tag hitetlen, that saved me from some serious hair-pulling this afternoon. :)
Comment #20
flickerfly commentedI think I'm running into the same issue (maybe) that rinorthcutt is expressing with the sub-domain and javascript caching. I tried disabling javascript caching though and that didn't help. I'm using a subdomain. I also turned caching down from Aggressive to normal.
I have one profile for everyone with these page options:
node/add/*
node/*/edit
I have no IDs specified. I've also tried adding 'edit-body' in this box, but no good.
I see the YUI stuff load in the head of the page including editor-beta-min.js
If I go to node/add/page it is simply the typical blank drupally goodness.
The page options are being honored. does not have YUI loading for example.
It seems the javascript just isn't grabbing the textarea somehow. What should I look for?
Comment #21
Grayside commentedI also don't see the editor appearing in Drupal 6.5. I've enabled it, granted access to it, and according to firebug am successfully loading the JS libraries from my server (YUI v2.6.0). Do I need to get 2.5.1 for this to work?
Comment #22
eriktoyra commentedActually the page will render faster if you place $script directly above $closeure at the bottom as recommended by Yahoo!'s YSlow http://developer.yahoo.com/performance/rules.html#js_bottom. At first I had problems with the YUI Editor not showing up when I used a local path to the YUI lib with $script printed at the bottom of the page. I then moved it back to and reloaded the page and it worked. Dont ask me why...