FCK Editor does not start

View: New views
3 Messages — Rating Filter:   Alert me  

FCK Editor does not start

by duck-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After update to git version of Horde_Editor, wherever I use FCKeditor it does
not show up. I see that there is no JS pushed by Horde_Notification on the
footer. I tried to debug but seems that the listener status is not being
populated or at least is empty when notify() is called in common-footer.inc

Duck

--
Horde developers mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@...

Re: FCK Editor does not start

by duck-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found the problem. Actually there is a bug in Horde_Editor_Fckeditor
constructor. There is no call to attach the js notification listener.
The below line must be added before pushing the js event to make sure the
Horde_Notification_Listener_Javascript class is registered into the notification
object.

$GLOBALS['notification']->attach('Javascript');

Duck

--
Horde developers mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@...

Re: FCK Editor does not start

by Chuck Hagenbuch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quoting Duck <duck@...>:

> I found the problem. Actually there is a bug in Horde_Editor_Fckeditor
> constructor. There is no call to attach the js notification listener.
> The below line must be added before pushing the js event to make sure the
> Horde_Notification_Listener_Javascript class is registered into the  
> notification
> object.
>
> $GLOBALS['notification']->attach('Javascript');

I'll leave this to Michael S., but can you please put it into bug form  
on bugs.horde.org? Thanks!

-chuck

--
Horde developers mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@...