Skip to content

RoosterJs 8.18.0

Compare
Choose a tag to compare
@JiuqingSong JiuqingSong released this 18 Mar 17:06
· 2706 commits to master since this release
cd5e836

New features:

  1. Introduce new package roosterjs-react. (#775, #777, #779, #783, #787, #799, #800, #801, #802, #803, #812, #814, #815, #817, #824)
    It is a package of react component for roosterjs. In this version there are 2 components:
    • Rooster: The react wrapper of roosterjs editor
    • Ribbon: The format bar of roosterjs editor
      As well as 2 plugins:
    • UpdateContentPlugin: To help developer get HTML content of editor
    • RibbonPlugin: Work with Ribbon to execute format command in editor and show format state in ribbon
  2. Support whole table alignment (#772) Experimental feature: TableAlignment
  3. Tab key improvement: (#810, #813, #816) Experimental feature: TabKeyTextFeatures
    • Indent whole paragraph when TAB at beginning or select the whole paragraph
    • Outdent whole paragraph when press Shift+TAB in a indented paragraph
    • Insert a TAB space when tab between texts
    • Indent the whole list when tab from the beginning of the first list item
  4. Auto change text color when set shade color in table (#806, #826)

Bug fix:

  1. Reduce unnecessary undo snapshot from table resize (#781)
  2. Set table background color using setColor() api to work better with dark mode (#785)
  3. Fix table selection issue when leaving Shadow Edit (#789)
  4. Fix Cut failed on Android since we collapse selection range before deleteSelectedContent (#797 #804)
  5. Fix Bug: Uncaught TypeError: Cannot read properties of null (reading 'y') (#805, #807)
  6. Fix: Do not remove cellshade when change table state (#808)

Interface changes:

  1. New classes/functions/types from roosterjs-react package. Please reference to https://microsoft.github.io/roosterjs/docs/modules/roosterjs_react.html for more details.
  2. New interface ExperimentalFeatures members:
    • TableAlignment: Align table elements to left, center and right using setAlignment API
    • TabKeyTextFeatures: Provide additional Tab Key Features. Requires Text Features Content Editable Features
  3. New interface FormatState members:
    • isDarkMode: Whether editor is in dark mode
    • zoomScale: Current zoom scale of editor
  4. New interface ElementBasedFormatState:
    • isInTable: Whether the cursor is in a table
  5. New interface TableFormat member:
    • keepCellShade: If true, the new format will not overlay cells that has color applied
  6. New interface for content edit feature:
    • TextFeatureSettings: Settings for text features
  7. New function setColor parameter:
    • shouldAdaptFontColor: Whether the font color needs to be adapted to be visible in a dark or bright background color.
  8. New function VTable.writeBack parameter:
    • skipApplyFormat: Do not reapply table format when write back
  9. New class VList member:
    • rootList: The root list element, can be either OL or UL tag
    • getListItemIndex: Get the index of the List Item in the current List
    • getStart: Get the Start property of the root list of this VList