You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix bug when pasting from Outlook Win 32 to Rooster (#1857)
Engineering improvement
Make roosterjs work with nodejs 17+ (#1849, #1851)
mprove test running performance, show correct callstack (#1854)
Interface change
New extracted API for copy/paste
handleImagePaste: Handles the content when using the Image Paste Option
handleTextPaste: handle the content when using the text only option
retrieveMetadataFromClipboard: Retrieves the metadata from the content inside of the clipboard
sanitizePasteContent: Sanitize the content from the pasted content
getPasteType: Get the paste type that will be used corresponding to the configuration
New function/interfaces for the "Undo with Entity" feature:
New extracted API for extract snapshot metadata
extractContentMetadata: Extract content metadata from DOM tree
New property of interface EntityPluginState
entityMap: Entities cached for undo snapshot
New enum value of enum EntityOperation
UpdateEntityState: 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
New property of interface EntityOperationEventData
state: For EntityOperation.UpdateEntityState, we use this object to pass the new entity state to plugin. For other operation types, it is not used.
shouldPersist: For EntityOperation.NewEntity, plugin can set this property to true then the entity will be persisted. A persisted entity won't be touched during undo/redo, unless it does not exist after undo/redo. For other operation types, this value will be ignored.
New property of interface ContentChangedData
getEntityState: Get entity states related to the snapshot. If it returns entity states, each state will cause an EntityOperation event with operation = EntityOperation.UpdateEntityState when undo/redo to this snapshot
New property of interface Snapshot
entityStates: Entity states related to this undo snapshots. When undo/redo to this snapshot, each entity state will trigger an EntityOperation event with operation = EntityOperation.UpdateEntityState
New interface
EntityState: State for an entity. This is used for storing entity undo snapshot
KnownEntityItem: Represents all info of a known entity, including its DOM element, whether it is deleted and if it can be persisted