RoosterJs 8.42.0 and RoosterJs Content Model 0.1.0
Announce RoosterJs Content Model (Preview)
Content Model is a new way to represent content in HTML editor, to help better doing format, and more. It convert HTML content into a JSON object then all other format API will operate on this JSON object then convert it back to HTML.
This is the first preview version of Content Model. Now you can get it from npm with package name and version "[email protected]". Please check out this example of how to use roosterjs Content Model: https://codepen.io/jiuqingsong/pen/rNrXVyB
Note: RoosterJs Content Model is still under development, the public interfaces is still not very stable yet so please expect frequently breaking changes in the future.
New features added to Content Model
- New image edit ability
- Image Border
- Image Shadow
- Change Image
- Paragraph line space settings and API
Bug fix
- Fix list trigger before a paragraph (#1540)
- Dismiss image edit border when focus out of editor (#1558)
- Add filter to client rects (#1560)
- Check if there is rotate handle, before update the rotate handles (#1568)
- Disable list indentation hotkey on mac (#1552)
- Fix a pending format issue in firefox (#1572)
Interface change
- New members of interface StyleBasedFormatState
- lineHeight: Line height of the element
- marginTop: Top margin of the element
- marginBottom: Bottom margin of the element