Source

source.before.open#

Occurs whenever before opening the editor source code.

Redactor('#entry', {
    subscribe: {
        'source.before.open': function() {
            ...
        }
    }
});

source.open#

Occurs when the editor source code is opened.

Redactor('#entry', {
    subscribe: {
        'source.open': function() {
            ...
        }
    }
});

source.before.close#

Occurs whenever before closing the editor source code.

Redactor('#entry', {
    subscribe: {
        'source.before.close': function() {
            ...
        }
    }
});

source.close#

Occurs when the editor source code is closed.

Redactor('#entry', {
    subscribe: {
        'source.close': function() {
            ...
        }
    }
});

source.change#

Arguments:

  • e Object
    • Input event

Occurs whenever the source code textarea gets an input event.

Redactor('#entry', {
    subscribe: {
        'source.change': function(event) {
            ...
        }
    }
});