[Tickets #4975] Horde_Editor::TinyMCE JS syntax error

bugs@bugs.horde.org bugs at bugs.horde.org
Tue Feb 6 07:22:23 PST 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4975
-----------------------------------------------------------------------
 Ticket             | 4975
 Created By         | mclion at obala.net
 Summary            | Horde_Editor::TinyMCE JS syntax error
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


mclion at obala.net (2007-02-06 07:22) wrote:

/Horde/Editor/tinymce.php

foreach ($params['config'] as $config => $value) {
    $js .= 'tinyMCE.init({' . $config . ' : ' . '"' . $value . '"})';
}

this should be like this:
foreach ($params['config'] as $config => $value) {
    $js .= 'tinyMCE.init({' . $config . ' : ' . '"' . $value .
'"});'."\n";
}

So it's missing the ; or a new line or both...if someone specifies more
than one config value...





More information about the bugs mailing list