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

Unmaintained How to add some plugins or custom buttons to Redactor 1.2

No permission to download
Two things with this version 1.2:

  1. If you have used the JavaScript Patterns provided with this ressource inside your code, you must update one line to prevent errors with other addons:
    $textarea.data('options', $.extend(redactorOptions, myOptions));
    Replace with:
    $.extend(true, redactorOptions, myOptions);
    The Recursive mode of the jQuery extend function must be activated
  • If you want add buttons and probably addons too @Sonnb provides a better way to do this. This method will be probably used by XenForo later. You need to create a listener of the EditorSetup and specify some json elements for the editor options.

    See his posts here.
Version 1.1 releasedAdd a new method to override buttons layout configuration thanks to @Despair.
There would be a third method by groups, but I'm not fan. It is less flexible.