Skip to content

RoosterJs 8.43.0 and RoosterJs Content Model 0.2.0

Compare
Choose a tag to compare
@JiuqingSong JiuqingSong released this 28 Feb 04:53
· 1980 commits to release since this release
c41ac57

New feature

  • Add dir and textAlign in FormatState (#1590)

Improvement

  • Inline entity improvement for cursor behavior (part 1) (#1580, #1602)
  • Dark color improvement:
    • Fix color issue with Font tag (#1595)
    • Fix #1585: DarkColorHandler need to remember used color across editor session (#1587)
  • Delete table with backspace, if whole table is selected (#1583)

Bug fix

  • Fix #1586 text-decoration is removed from HtmlSanitizer (#1597)

Content Model

  • Improve PRE tag in model (#1601)
  • Improve pending format behavior (#1598)
  • Improve getFormatState API, return undefined for multiple value styles (#1594)
  • Improve clearFormat API (#1579)
  • Preserve segment format when insert table (#1574)
  • Keep root level entity when format with Content Model (#1573)

Engineering improvement

  • Enabled Strict Mode on Image Edit Plugin (#1596)

Interface changes

  • New entity related type and API
    • enum DelimiterClasses: Class names for entity Delimiter
    • addDelimiters: Adds delimiters to the element provided
    • getDelimiterFromElement: Retrieves Delimiter information from a provided element.
  • New color utility
    • parseColor: Parse color string to r/g/b value.
  • New experimental features
    • DeleteTableWithBackspace: Delete table with Backspace key with the whole was selected with table selector
    • InlineEntityReadOnlyDelimiters: Add entities around a Read Only Inline entity to prevent cursor to be hidden when cursor is next of it
  • New members of interface StyleBasedFormatState and FormatState
    • textAlign: Text Align
    • direction: Direction of the element ('ltr' or 'rtl')
  • New member of interface Snapshot
    • knownColors: Known colors for dark mode
  • New members of interface DarkColorHandler
    • getKnownColorsCopy: Get a copy of known colors
    • findLightColorFromDarkColor: Find related light mode color from dark mode color
  • New Content Edit feature (under TableFeatureSettings interface)
    • deleteTableWithBackspace: Requires ExperimentalFeatures.DeleteTableWithBackspace, delete a table selected with the table selector pressing Backspace key