block.set

Occurs whenever a block selected.

RedactorX('#entry', {
    subscribe: {
        'block.set': function() {
            ...
        }
    }
});

block.unset

Occurs whenever a block unselected.

RedactorX('#entry', {
    subscribe: {
        'block.unset': function() {
            ...
        }
    }
});

block.add

Arguments
instance ObjectInstance of the added block.
type StringBlock adding type 'add' or 'input'
'add' — if the block is added via addbar
'input' — if a block is added by pressing the keys

Occurs whenever a block added into the content.

RedactorX('#entry', {
    subscribe: {
        'block.add': function(event) {
            ...
        }
    }
});

block.change

Arguments
instance ObjectInstance of the changed block.

Occurs whenever a block changed. At the moment works only when the embed or code content is changed.

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

block.format

Arguments
instance ObjectInstance of the formatted block.

Occurs whenever a block formatted.

RedactorX('#entry', {
    subscribe: {
        'block.format': function(event) {
            ...
        }
    }
});

block.remove

Arguments
type StringType of the removed block.

Occurs whenever a block removed.

RedactorX('#entry', {
    subscribe: {
        'block.remove': function(event) {
            ...
        }
    }
});

block.duplicate

Arguments
instance ObjectInstance of the duplicated block.

Occurs whenever a block duplicated.

RedactorX('#entry', {
    subscribe: {
        'block.duplicate': function(event) {
            ...
        }
    }
});