This event occurs after a document is opened (imported).
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);
editor.setEventListener('afterOpenDocument', function (e) {
}); |
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterOpenDocument(e) {
}
new SynapEditor(editorId, editorConfig, html); |
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterOpenDocument: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
In the form of parameter e delivered through functions
{
editor: SynapEditor,
eventType: 'afterOpenDocument',
cancelable: true,
returnValue: null,
fileType: 'WORD', // File type ('HTML', 'WORD', 'CELL', ...)
path: '/upload/path/filename.docx', // Import path
...... // Data transferred from the server (importPath, serializedData, .....)
} |