Skip to content

RoosterJs 8.45.0 and RoosterJs Content Model 0.4.0

Compare
Choose a tag to compare
@JiuqingSong JiuqingSong released this 13 Apr 22:06
· 1729 commits to release since this release
4acd03c

New features

  • Add content edit features for code block (#1669)
  • Paste as image feature (#1710)

Improvement

  • Table resize: Fixed plus sign position on table handle (#1657)
  • Fix for pasting an Excel Online table inside RoosterJS table (#1659)
  • Do not apply text and background color when not necessary (#1700)
  • Remove max-width when editing image (#1707)
  • Fix image resize after rotate (#1704)
  • Split IndentWithTab and OutdentWhenShiftTab to be able to disable the Alt+Shift+Arrow hotkey (#1706)

Content Model

  • Handle Delete and Backspace (#1660)
  • Fix Font controls became blank after multiple clicks (#1674)
  • Support "No Color" for table cell shade (#1679)
  • Add "FormatContainer" block group type (#1667, #1668)
  • Merge continuous undo snapshots (#1663)
  • Bug fix: Setting again after clearing bullets and numbering does not respond (#1681)
  • Support shadow edit in Content Model editor (#1693, #1694, #1695, #1696)
  • Prevent content model from acting on undefined cell (#1701)
  • Improve the behavior of deleting general element (#1680)

Bug fix

  • Fix unexpected error in getBlockElementAtNode.ts (#1709)

Engineering improvment

  • Enable Strict Mode in packages\roosterjs-editor-api\lib\format (#1678)
  • Enable Strict Mode in ContentEdit plugin (#1671)
  • Enable Strict Mode in Paste plugin (#1685, #1687)

Interface changes

  • New base class of Editor: EditorBase<TEditorCore, TEditorOptoins>. Now Editor class does not contain too much content, instead it inherits everything from EditorBase, except the way to build editor core. So you create your own Editor class now with your customized editor core and options.
  • New editor customization API and type
    • isFeatureEnabled: Check if an experimental feature is enabled
    • createEditorCore: Create the default editor core instance
    • CoreCoreator: A type for EditorCore creator function
  • New parameter of IEditor/Editor API paste and core API CreatePasteFragment
    • pasteAsImage: Whether we want to paste image only
  • New enum value of ChangeSource:
    • Keyboard: Content is changed using keyboard
  • New core API
    • select: change editor selection using provided information
  • New content edit feature/feature set
    • indentWhenAltShiftRight: indent when press Alt+Shift+Right
    • outdentWhenAltShiftLeft: outdent when press Alt+Shift+Left
    • removeCodeWhenEnterOnEmptyLine: Remove code block when press Enter on empty line within code block
    • removeCodeWhenBackspaceOnEmptyFirstLine: Remove code block when press Backspace on empty first line within code block
    • CodeFeatureSettings: Content Edit feature about Code block
  • New string key for paste option button:
    • pasteOptionPasteAsImage: String key for paste as image