Closed (fixed)
Project:
YUI Rich Text Editor
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2008 at 03:18 UTC
Updated:
22 Apr 2008 at 20:10 UTC
It's a real shame this does not work because the YUI editor looks amazing and I would love to use it on a bunch of my projects. I have followed all the instructions, tried numerous ways of targeting which nodes/IDs it should display on and nothing happens. All the javascript is loading in, I can see it correctly identified in the HTML source, not really sure where this is going wrong.
Comments
Comment #1
softtouch commentedSame issue, the editor just does not show up at all... how bad....
Comment #2
stephencarr commentedHas any one managed to get this to work at all? I am kind of lost as to how to get it to work, still investigating though and will report back if I manage to fix it.
Comment #3
stephencarr commentedOK, I have done a bit of poking around. What I have found is that this part of yui_editor.module does not properly pass variables to the javascript function:
drupal_add_js("render_editor('".$id."', ".variable_get('yui_editor_height', '300').", ".variable_get('yui_editor_width', '500').");", "inline", "footer");render_editor() (which is a function in yui_editor.js) does not seem to recieve the variable $id. If you hard code the textarea ID into yui_editor.js it will then load the texteditor.
EDIT: Seems I forgot to put a useful tag in my page.tpl which makes the above work
<?php print $closure; ?>This needs to go at the end of your page.tpl.
However even if you do do this and get the texteditor to load it will not submit any content from it as the form does not seem to be able to see the content in the YUI enabled textarea. I really am not sure how to overcome this one.
Comment #4
jeffcd commentedI believe this issue has been fixed for the latest releases. Please contact me directly or open a new issue if you are still having problems. Thanks.