Keyword

WysiwygPro Read More Plugin Problem

  • Omar Ramos
  • Omar Ramos's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 9 months ago #78446 by Omar Ramos
WysiwygPro Read More Plugin Problem was created by Omar Ramos
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.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum