Keyword

[BUG] RokCandy and frontEnd K2 editor JCE problem

  • Marek Tesař
  • Marek Tesař's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #63992 by Marek Tesař
Hi all, i discover big problem with:

joomla! 2.5.3
JCE 2.0.15
Rokcandy 1.3

background:
in older versions of Rokcandy there wasnt support for rokcandy on frond end editor. From new version, i believe v1.2 at least, when user edit k2 item on frontend, rokcandy is run also. User then see translated rokcandy syntax into html. This is UX problem it self. User need to see

problem:
when rokcandy is active, during front end editor loading, it produce JS conflict propably. Switcher for sidebar doesnt work, button under the editor doesnt work, editor end not loaded. It doesnt matter, if it is TinyMCE or Jce. Problem is by both.

part workaround:
In rokcandy file in /plugins/system/rokcandy/rokcandy.php on line: 33 i add this:
if (($_GET['option'] == "com_k2")  && (($_GET['task'] == "edit") or ($_GET['task'] == "add"))) {
      
        return;
        
        }

its in function call on event onAfterRender
function onAfterRoute() {
		$this->_library = RokCandyHelper::getMacros();
	}
    
    // Do BBCode replacements on the whole page
	function onAfterRender() {


        if (($_GET['option'] == "com_k2")  && (($_GET['task'] == "edit") or ($_GET['task'] == "add"))) {
      
        return;
        
        }     

		// don't run if disabled overrides are true
	    if ($this->_shouldProcess()) return;

help
Now there is few question about this.

It is just my problem on this site or is it also problem another users?
Trigerring (running) rokcandy component on k2 front end editor, is it standard behavior of rokcandy or is it a bug in rokcandy -- k2 relationship?
If it a bug, who is it?
This workaround, is it a good workaround?

And ultimate question:

Is there a way to forbidden to triggerind rokcandy on k2 fronend editor?

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


Powered by Kunena Forum