Resource icon

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:
    Search:
    Code:
    $textarea.data('options', $.extend(redactorOptions, myOptions));

    Replace with:
    Code:
    $.extend(true, redactorOptions, myOptions);

    Explanation:
    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.
Back
Top Bottom