Bug with Chrome
NRaf - January 29, 2009 - 10:56
| Project: | YUI Rich Text Editor |
| Version: | 6.x-2.33 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hey,
I'm having trouble using this with Chrome. When I try to create a node, instead of creating the node, the page just refreshing and stays at the create page. I disabled the text editor and it worked correctly so it seems to be a problem with YUI.
Looking at the JavaScript Console in Chrome, the only errors appear to be the following:
Uncaught SyntaxError: Unexpected token < site-url/sites/default/files/yui-2.6.0/build/element/element-min.js?l (line 1)
Resource interpreted as script but transferred with MIME type text/html. site-url/sites/default/files/yui-2.6.0/build/element/element-min.js?l
Any ideas on how to fix this?

#1
Having same or similar problem - not working in Google Chrome - neither saving nor previewing possible.
#2
I can confirm that I am having this issue too..
The page simply refreshes when i click save or preview...so there is no way of creating new nodes in Chrome with the YUI text editor installed.
Any fixes yet?
#3
I can confirm that this also happens in Safari 3.2.1 and OmniWeb 5.8, so WebKit seems to be the common theme here.
#4
Through experimentation and code searching, I found that setting the "Location of YUI library" field at "Administer > Site configuration > YUI common settings" to http://yui.yahooapis.com/2.5.0 results in a working YUI Editor in WebKit. Setting it to http://yui.yahooapis.com/2.6.0 introduces the WebKit bug, while http://yui.yahooapis.com/2.7.0 results in a different JavaScript error that prevents the editor from appearing at all either in WebKit or Mozilla.
Both the client and I are satisfied with YUI Editor's simplicity, but it looks like the code quality leaves a lot to be desired…
#5
I'm using YUI through WYSIWYG and have the library installed on the server. Same issue, cannot create a node with YUI in Chrome. Any solutions?
#6
Yes. See post #4 above yours.
#7
Is this a problem with YUI editor for both 2.6 and 2.7? Or is it a combo of this and the yui_editor drupal module? I don't want to have to revert to YUI 2.5.0 just for the few chrome users who are editing pages.
#8
As far as I can tell, it's YUI itself, though it's been a while since I've worked either with this module or YUI.
It might be best then to consider switching to a WYSIWYG editor with a wider range of compatibility, such as FCKeditor. It seems to be the least bad (not *good,* just least bad) in the dire realm of browser-based WYSIWYG editor components.
#9
I have found YUI reasonably good - a few little annoyances like only being able to insert full path URLs (http://domain.com/x) and embedding images. But otherwise not such a bad editor - as you say in the dire-realm of browser-based WYSIWYG editors. Will be good though when YUI works under the WYSIWYG module.
I expect if this is a YUI editor issue (chrome bug) then it will be discussed on the YUI mailing list. Will check it out and report back.
Ben
#10
YUI is available for WYSIWYG now.. problem remains though
Also I really need users to be able to copy and paste from word or a web page into the WYSIWYG editor but it always has disastrous results.
#11
Using http://yui.yahooapis.com/2.5.0 and http://yui.yahooapis.com/2.6.0 didn't resolve the issue in Safari or Camino on my Mac.
Using http://yui.yahooapis.com/2.5.2 did resolve the issue. With 2.5.2 I am able to save and preview nodes in webkit browsers.