function initPasteEvent(editorInstance) {
	if (editorInstance.addFeature) {
		editorInstance.addFeature({
			allowedContent: 'img[alt,id,!src]{width,height};'
		});
	}

	editorInstance.on('contentDom', function () {
		var editableElement = editorInstance.editable ? editorInstance.editable() : editorInstance.document;
		editableElement.on('paste', onPaste, null, { editor: editorInstance });
	});
}