I was having some problems with the Read More button redirecting me to the homepage when creating a new item (in the front and backends) and discovered this problem was due to the jInsertEditorText() JavaScript function being declared twice, (one by WysiwygPro, the other by K2, which is meant to work with TinyMCE).To fix this in the frontend go to:components/com_k2/views/item/tmpl/form.php on line line 197 and wrap this if statement around the jInsertEditorText() function: <?php // Finds the name of Joomla's Default Editor $config = JFactory::getConfig(); $editor = $config->getValue('config.editor'); ?> <?php if ($editor !== 'wysiwygPro3') : ?>the jInsertEditorText function is here <?php endif; ?>You will then need to repeat the above for the following file:administrator/components/com_k2/views/item/tmpl/default.php around line 153.This will allow the Read More button to function properly when using the WysiwygPro editor.
16 years 9 months ago #78446