Skip to content

RoosterJs 8.36.0

Compare
Choose a tag to compare
@JiuqingSong JiuqingSong released this 12 Nov 05:57
· 2240 commits to release since this release
6e9d1c2

Improvement

  • Remove empty div Between list when backspacing. (#1365)
  • Allow applying default format on SPAN instead of DIV (Experimental feature: DefaultFormatInSpan) (#1380, #1399)
  • Image selection and editing: Edit image on top of editor DIV to avoid impacting editing DOM structure (#1377, #1383)
  • Move Image Selection plugin into EditorCore

Bug fix

  • Fix a code bug in list metadata hanlding (#1379)
  • Fix changing font size doesn't work for empty selections on Safari (#1384)

Graduate features

  • TableAlignment: Align table elements to left, center and right using setAlignment API
  • AdaptiveHandlesResizer: Provide a circular resize handles that adaptive the number od handles to the size of the image
  • ImageSelection: When a html image is selected, the selected image data will be stored by editor core.

Engineering improvement

  • Change the order of karma plugins to generate more accurate code discover report (#1371)

Interface changes

  • New style API
    • setGlobalCssStyles: Add global css styles
    • removeGlobalCssStyle: Remove a css rule style from a style sheet
  • New parameter of color API getDarkColor
    • baseLValue: The Light value for base dark color in LAB format. Default value is the Light value for #333333
  • New experimental feature
    • DefaultFormatInSpan: When apply default format when initialize or user type, apply the format on a SPAN element rather than the block element (In most case, the DIV element) so keep the block element clean
  • New core plugin
    • imageSelection: Image selection Plugin detects image selection and help highlight the image
  • New parameter of core API EnsureTypeInContainer
    • applyFormatToSpan: When set to true, default format (if any) will be applied to a SPAN element inside the block element instead of the block element itself.
  • New Content Edit Feature
    • mergeListOnBackspaceAfterList: MergeListOnBackspaceAfterList edit feature, provides the ability to merge list on backspace on block after a list