YUI editor doesn't appear
drgreybow - June 20, 2008 - 04:35
| Project: | YUI Rich Text Editor |
| Version: | 5.x-2.6 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | jeffcd |
| Status: | active |
Jump to:
Description
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

#1
I 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.
#2
I 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!!!
#3
Did 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)?
#4
You 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?
#5
the 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.
#6
I'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.
#7
- 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.
#8
Hi!
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:
<?php print $head ?>
<?php print $styles ?>
if you don´t have
<?phpprint $scripts
?>
Now you see this:
...
<?php print $head ?>
<?php print $styles ?>
<?php print $scripts ?>
...
And on the end of the file, in front of
</body></html>
you must write
<?phpprint $closure
?>
Now you see:
...<?php print $closure ?>
</body>
</html>
Theme developer's guide: http://drupal.org/node/11812
I hope this is helpful for you.Sorry for my english.
hitetlen
#9
Thanks hitetlen - I was having the same problem and that fixed it! I think it was the closure bit.
#10
I 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.
#11
I 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?
#12
Changed 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?
#13
OK, I found the problem... and works fine now. Sorry to bother everyone :)
#14
I'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.
#15
For 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?
#16
This 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.
#17
I 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
#18
Verifying 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.
#19
I 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. :)