api.getReactiveState()
Description
Returns an object with the reactive properties of RichText
Usage
api.getReactiveState(): object;
Returns
The method returns an object with the following parameters:
{
cursorState: { subscribe: any },
defaultStyles {...},
document {...},
fullscreen {...},
history {...},
layoutMode {...},
popup {...},
selection {...}
}
Example
// initialize RichText
const editor = new richtext.Richtext("#root", {
// configuration properties
});
// get the Reactive State of RichText
const reactive_state = editor.api.getReactiveState();
console.log(reactive_state)
Change log: The method was added in v2.0