How to create module for Jodit Editor

You can write your own module for Jodit. This requires. For example create Dummy module, which will insert some code in editor Create file Dummy.js with this content

(function ($, Jodit) {
    Jodit.modules.Dummy = function (parent) {
        var self,
            insertDummyImage = function (w, h, textcolor, bgcolor) {
                var image = parent.getDocument().createElement('img');
                image.setAttribute('src', 'http://dummyimage.com/' + w + 'x' + h + '/' + (textcolor || '000') + '/' + (bgcolor || 'fff'));
                parent.selection.insertImage(image, 'Dummy image ' + w + 'x' + h);
            };

        // We do it for minification. After Uglify 'insertDummyImage', 'self' will replace to some one char (ex. 'a', 'b')
        self = {
            insertDummyImage: insertDummyImage
        };

        return self;
    };
} (Jodit.modules.Dom, Jodit));

You need include this file after include jquery.jodit.min.js

<link type="text/css" rel="stylesheet" href="build/jodit.min.css">
<script type="text/javascript" src="build/jodit.min.js"></script>
<script type="text/javascript" src="Dummy.js"></script>

No you can use this module. For example will append button in toolbar

new Jodit('#editor', {
    buttons: ['bold', 'italic', {
        // @see button
        iconURL: '../stuf/dummy.png',
        tooltip: 'insert Dummy Image',
        exec: function () {
            this.dummy.insertDummyImage(100, 100, 'f00', '000');
            this.observe();
        }
    }]
});

That's all. You can try this example here