Nathan.fooo f1a5726fcb
Feat: add appflowy editor in backend (#1320)
* chore: remove update attributes

* chore: format code

* chore: extension for transaction

* refactor: add document editor trait

* chore: add appflowy_document editor

* chore: add document serde

* chore: add new document editor

* chore: add tests

* chore: add more test

* chore: add test

Co-authored-by: nathan <nathan@appflowy.io>
2022-10-20 11:35:11 +08:00

18 lines
371 B
Rust

use lib_ot::text_delta::TextOperations;
#[inline]
pub fn initial_read_me() -> TextOperations {
let json = include_str!("READ_ME.json");
TextOperations::from_json(json).unwrap()
}
#[cfg(test)]
mod tests {
use crate::client_document::default::initial_read_me;
#[test]
fn load_read_me() {
println!("{}", initial_read_me().json_str());
}
}