Documentation

Source

source.before.open

Occurs whenever before opening the editor source code.

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

source.open

Occurs when the editor source code is opened.

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

source.before.close

Occurs whenever before closing the editor source code.

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

source.close

Occurs when the editor source code is closed.

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

source.change

Arguments
e ObjectInput event

Occurs whenever the source code textarea gets an input event.

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