Options
All
  • Public
  • Public/Protected
  • All
Menu

RoosterJs API Reference

Welcome to RoosterJs API References!

Upgrade from RoosterJs 8.*

Please see here.

Content

Rooster contains 6 basic packages.

  1. roosterjs: A facade of all Rooster code for those who want a quick start. Use the createEditor() function in roosterjs to create an editor with default configurations.

  2. roosterjs-content-model-core: Defines the core editor and plugin infrastructure. Use roosterjs-content-model-core instead of roosterjs to build and customize your own editor.

  3. roosterjs-content-model-api: Defines APIs for editor operations. Use these APIs to modify content and formatting in the editor you built using roosterjs-content-model-core.

  4. roosterjs-content-model-dom: Defines APIs for Content Model and DOM operations. This package do conversion between DOM tree and roosterjs Content Model.

  5. roosterjs-content-model-plugins: Defines basic plugins for common features.

  6. roosterjs-content-model-types: Defines public interfaces and enumerations, including Content Model types, API parameters and other types.

There are also some extension packages to provide additional functionalities.

  1. roosterjs-color-utils: Provide color transformation utility to make editor work under dark mode.

To be compatible with old (8.*) versions, you can use EditorAdapter class from the following package which can act as a 8.* Editor:

  1. roosterjs-editor-adapter: Provide a adapter class EditorAdapter to work with Editor (9.*) and legacy plugins (via EditorAdapterOptions.legacyPlugins)

To view references document for legacy (v8.*) packages, please download the doc here

See also

RoosterJs Demo Site.

RoosterJs wiki

Generated using TypeDoc