Releases
v8.18.0
New features:
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
Support whole table alignment (#772 ) Experimental feature: TableAlignment
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
Auto change text color when set shade color in table (#806 , #826 )
Bug fix:
Reduce unnecessary undo snapshot from table resize (#781 )
Set table background color using setColor() api to work better with dark mode (#785 )
Fix table selection issue when leaving Shadow Edit (#789 )
Fix Cut failed on Android since we collapse selection range before deleteSelectedContent (#797 #804 )
Fix Bug: Uncaught TypeError: Cannot read properties of null (reading 'y') (#805 , #807 )
Fix: Do not remove cellshade when change table state (#808 )
Interface changes:
New classes/functions/types from roosterjs-react package. Please reference to https://microsoft.github.io/roosterjs/docs/modules/roosterjs_react.html for more details.
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
New interface FormatState members:
isDarkMode: Whether editor is in dark mode
zoomScale: Current zoom scale of editor
New interface ElementBasedFormatState:
isInTable: Whether the cursor is in a table
New interface TableFormat member:
keepCellShade: If true, the new format will not overlay cells that has color applied
New interface for content edit feature:
TextFeatureSettings: Settings for text features
New function setColor parameter:
shouldAdaptFontColor: Whether the font color needs to be adapted to be visible in a dark or bright background color.
New function VTable.writeBack parameter:
skipApplyFormat: Do not reapply table format when write back
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
You can’t perform that action at this time.