Skip to content

RoosterJs 8.34.0

Choose a tag to compare

@JiuqingSong JiuqingSong released this 18 Oct 16:25
· 2915 commits to release since this release
e71c96b

Bug fix

  • Image selection: Trigger selection event when click

Improvement

  • Allow insert entity on region root (#1316)

Engineering improvement

  • Finish strict mode change for core package (#1318)
  • Enable strict mode on "roosterjs-editor-plugins" - Phase 1 (#1289)

Interface change

  • New exported API
    • isNodeAfter: Checks if node1 is after node2
  • New parameter of API insertEntity
    • insertToRegionRoot: When pass true, insert the entity at the root level of current region. Parent nodes will be split if need
  • New field of interface InsertOptionBase
    • insertToRegionRoot: Boolean flag for inserting the content onto root node of current region. If current position is not at root of region, break parent node until insert can happen at root of region. This option only takes effect when insertOnNewLine is true, otherwise it will be ignored.