Hi,
TinyMCE Version 3.3.9.3
wysiwyg-6.x-2.2 (but same for 2.3 and 2.x-dev)
Clicking Insert Date or Insert Time buttons does nothing.
This is because wysiwyg/editors/tinymce.inc line 490, 491 should not be arrays, but strings.
'insertdatetime' => array(
'path' => $editor['library path'] . '/plugins/insertdatetime',
'buttons' => array('insertdate' => t('Insert date'), 'inserttime' => t('Insert time')),
'options' => array(
'plugin_insertdate_dateFormat' => array('%Y-%m-%d'), // should be a string
'plugin_insertdate_timeFormat' => array('%H:%M:%S'), // should be a string
),
'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime',
'internal' => TRUE,
'load' => TRUE,
),
Does anyone else have the same problem?
Comments
Comment #1
twodThanks!
It does work a lot better with strings there. ;)
Turned the above into a patch and committed it to all relevant branches. The -dev snapshots will be updated within 12hrs and this fix will be part of the next official releases.