/** * Define possible operations to an entity */ export declare const enum EntityOperation { /** * Notify plugins that there is a new plugin was added into editor. * Plugin can handle this event to entity hydration. * This event will be only fired once for each entity DOM node. * After undo, or copy/paste, since new DOM nodes were added, this event will be fired * for those entities represented by newly added nodes. */ NewEntity = 0, /** * Notify plugins that user is clicking target to an entity */ Click = 1, /** * Notify plugins that user is triggering context menu to an entity */ ContextMenu = 2, /** * Notify plugins that user is escaping from an entity by pressing ESC key */ Escape = 3, /** * Notify plugins that user is removing an entity from its start position using DELETE key */ RemoveFromStart = 4, /** * Notify plugins that user is remove an entity from its end position using BACKSPACE key */ RemoveFromEnd = 5, /** * Notify plugins that an entity is being overwritten. * This can be caused by key in, cut, paste, delete, backspace ... on a selection * which contains some entities. */ Overwrite = 6, /** * Notify plugins that an entity is being partially overwritten. * This happens when user selected part of the entity then do key press, or cut, paste, delete, backspace, ... */ PartialOverwrite = 7, /** * Notify plugins that editor is generating HTML content for save. * Plugin should use this event to remove any temporary content, and only leave DOM nodes that * should be saved as HTML string. * This event will provide a cloned DOM tree for each entity, do NOT compare the DOM nodes with cached nodes * because it will always return false. */ ReplaceTemporaryContent = 8, /** * @deprecated */ AddShadowRoot = 9, /** * @deprecated */ RemoveShadowRoot = 10, /** * Notify plugins that a new entity state need to be updated to an entity. * This is normally happened when user undo/redo the content with an entity snapshot added by a plugin that handles entity */ UpdateEntityState = 11 }