html | String | Source content of the editor. |
Occurs before the editor starts.
Redactor('#entry', {
subscribe: {
'editor.before.load': function(event) {
...
}
}
});
html | String | Source content of the editor. |
Occurs when the editor is started.
Redactor('#entry', {
subscribe: {
'editor.load': function(event) {
...
}
}
});
html | String | Content of the editor. |
Occurs before syncing content with the source textarea.
Redactor('#entry', {
subscribe: {
'editor.before.change': function(event) {
...
}
}
});
html | String | Content of the editor. |
Occurs whenever the editor synchronizes content with the source textarea.
Redactor('#entry', {
subscribe: {
'editor.change': function(event) {
...
}
}
});
inserted | Dom | Inserted instances of elements. |
Occurs when the content is inserted to the editor using the API method editor.insert.
Redactor('#entry', {
subscribe: {
'editor.insert': function(event) {
console.log(event.get('inserted'));
}
}
});
html | String | Content of the editor. |
Occurs before parsing content.
Redactor('#entry', {
subscribe: {
'editor.before.parse': function(event) {
...
}
}
});
html | String | Content of the editor. |
Occurs whenever the content is parsed.
Redactor('#entry', {
subscribe: {
'editor.parse': function(event) {
...
}
}
});
html | String | Content of the editor. |
Occurs before unparsing content.
Redactor('#entry', {
subscribe: {
'editor.before.unparse': function(event) {
...
}
}
});
html | String | Content of the editor. |
Occurs whenever the content is unparsed.
Redactor('#entry', {
subscribe: {
'editor.unparse': function(event) {
...
}
}
});
Occurs whenever the editor gets focus.
Redactor('#entry', {
subscribe: {
'editor.focus': function() {
...
}
}
});
Occurs whenever the editor loses focus.
Redactor('#entry', {
subscribe: {
'editor.blur': function() {
...
}
}
});
e | Object | Event object |
Occurs whenever a block in the editor is clicked.
This event has event.stop method.
Redactor('#entry', {
subscribe: {
'editor.click': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever a block in the editor is hovered.
Redactor('#entry', {
subscribe: {
'editor.mouseover': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a mouseup event
Redactor('#entry', {
subscribe: {
'editor.mouseup': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a mousedown event
Redactor('#entry', {
subscribe: {
'editor.mousedown': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a keydown event.
This event has event.stop method.
Redactor('#entry', {
subscribe: {
'editor.keydown': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a keyup event.
This event has event.stop method.
Redactor('#entry', {
subscribe: {
'editor.keyup': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a drop event.
Redactor('#entry', {
subscribe: {
'editor.drop': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a dragstart event.
Redactor('#entry', {
subscribe: {
'editor.dragstart': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a dragover event.
Redactor('#entry', {
subscribe: {
'editor.dragover': function(event) {
...
}
}
});
e | Object | Event object |
Occurs whenever the editor has a dragleave event.
Redactor('#entry', {
subscribe: {
'editor.dragleave': function(event) {
...
}
}
});
e | Object | Event object |
html | String | Cut content. |
Occurs before the cut event. This event has event.stop
method.
Redactor('#entry', {
subscribe: {
'editor.before.cut': function(event) {
// get cut html
var html = event.get('html');
// return html back
event.set('html', html);
}
}
});
html | String | The cut html code |
Occurs whenever the editor has a cut event.
Redactor('#entry', {
subscribe: {
'editor.cut': function(event) {
...
}
}
});
e | Object | Event object |
html | String | Copied content. |
Occurs before the copy event. This event has event.stop
method.
Redactor('#entry', {
subscribe: {
'editor.before.copy': function(event) {
// get copied html
var html = event.get('html');
// return html back
event.set('html', html);
}
}
});
html | String | The copied html code |
Occurs whenever the editor has a copy event.
Redactor('#entry', {
subscribe: {
'editor.copy': function(event) {
...
}
}
});
e | Object | Event object |
html | String | Pasted content. |
Occurs before the paste event. This event has event.stop
method.
Redactor('#entry', {
subscribe: {
'editor.before.paste': function(event) {
// get pasted html
var html = event.get('html');
// return html back
event.set('html', html);
}
}
});
$nodes | Dom | Inserted Dom elements into editor. |
instances | Array | Array of inserted instances into editor. |
Occurs whenever the editor has a paste event.
Redactor('#entry', {
subscribe: {
'editor.paste': function(event) {
...
}
}
});
Occurs whenever the editor is empty.
Redactor('#entry', {
subscribe: {
'editor.empty': function() {
...
}
}
});