1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[XenForo 1.2] Extra parameter to the new editor_setup listener

Discussion in 'Closed Suggestions' started by cclaerhout, Jul 3, 2013.

  1. cclaerhout

    cclaerhout Well-Known Member

    Since Redactor is using the depreciated html tag <font>, it would be appreciated that the new listener "editor_setup" from the beta 4 of XenForo 1.2 could have an extra parameter to modify which parser to call.

    XenForo_CodeEvent::fire('editor_setup', array($view$formCtrlName, &$message, &$editorOptions, &$showWysiwyg, &$wysiwygParser 'Wysiwyg'));
    and a few lines below:
    $bbCodeParser XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create($wysiwygParser, array('view' => $view)));
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You should be able to accomplish this by overriding the Wysiwyg formatter.
  3. cclaerhout

    cclaerhout Well-Known Member

    Workaround found in a very few lines of JS code. This request can be deleted if wanted.

Share This Page