mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
* 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>
18 lines
371 B
Rust
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());
|
|
}
|
|
}
|