lexical-ui 0.1.2

A Rust port of Lexical's model and headless packages, at parity with the JS implementation.
Documentation
1
2
3
4
5
6
7
8
9
//! `packages/lexical-text/src/rootTextContent.ts`.

use crate::get_root;

/// `$rootTextContent()`: the root's text content.
pub fn root_text_content() -> String {
    let root = get_root();
    root.get_text_content()
}