Skip to content

RoosterJs 8.8.0

Compare
Choose a tag to compare
@JiuqingSong JiuqingSong released this 26 Aug 21:22
· 3093 commits to master since this release
b6a29f0

New features:

  1. New API Editor.getPendableFormatState(), fix the underline state incorrect issue
  2. New EditorOperations to set table alignment
  3. New feature to reset list number

Bug fixes:

  1. Fix a bug in EntityId fixup logic (#606)
  2. Fix a bug in setHtmlWithSelectionPath when DOMPurify is used (#605)
  3. Fix a bug in ImageEdit plugin to show better cursor for resize handle
  4. Fix a bug when paste a whole table as image
  5. Fix a bug when paste HTML with a single image
  6. Fix a bug that getComputedStyles() always returns lowercase font name

Interface changes

  1. New ExperimentalFeatures enum value
    • ExperimentalFeatures.ConvertSingleImageBody: Paste the Html instead of the Img when the Html Body only have one IMG Child node
  2. New TableOperation enum value
    • TableOperation.AlignCenter
    • TableOperation.AlignLeft
    • TableOperation.AlignRight - allow align a table to center/left/right
  3. New ClipboardData interface member
    • ClipboardData.html.FirstLevelChildTags - Array of tag names of the first level child nodes
  4. New Editor API
    • IEditor.getPendableFormatState(forceGetStateFromDOM?: boolean): PendableFormatState - Get the pendable format state from the current selection, incluing formats as underline, bold, italics
  5. New Core API Type and member
    • type GetPendableFormatState = (core: EditorCore, forceGetStateFromDOM: boolean) => PendableFormatState;
    • CoreApiMap.getPendableFormatState: GetPendableFormatState - Get the pendable format such as underline and bold
  6. New VList API
    • VList.split(separator: HTMLElement, startNumber: number): void - Sets the New List Start Property, that is going to be used to create a new List in the WriteBack function
    • VListItem.getNewListStart(): number | undefined - Get the Start Number of the new List
    • VListItem.setNewListStart(startNumber: number): void - Set the start Number of the new list
  7. New Format API
    • setOrderedListNumbering(editor: IEditor, separator: HTMLLIElement, startNumber?: number): void - Resets Ordered List Numbering back to the value of the parameter startNumber
    • blockFormat(editor: IEditor, callback: (region: Region, start: NodePosition, end: NodePosition, chains: VListChain[]) => void, beforeRunCallback?: () => boolean): void - Split selection into regions, and perform a block-wise formatting action for each region.