mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-25 04:51:27 +00:00
Don't fill empty content when switching rich editor
This commit is contained in:
parent
a1045dbce9
commit
8d898ff477
1 changed files with 3 additions and 1 deletions
|
@ -397,7 +397,9 @@ fn init_editor() -> Result<(), EditorError> {
|
|||
content_val.clone(),
|
||||
false,
|
||||
)?;
|
||||
if !content_val.is_empty() {
|
||||
content.set_inner_html(&content_val);
|
||||
}
|
||||
|
||||
// character counter
|
||||
let character_counter = Closure::wrap(Box::new(mv!(content => move |_| {
|
||||
|
|
Loading…
Reference in a new issue