Don't fill empty content when switching rich editor
This commit is contained in:
parent
a1045dbce9
commit
8d898ff477
@ -397,7 +397,9 @@ fn init_editor() -> Result<(), EditorError> {
|
|||||||
content_val.clone(),
|
content_val.clone(),
|
||||||
false,
|
false,
|
||||||
)?;
|
)?;
|
||||||
content.set_inner_html(&content_val);
|
if !content_val.is_empty() {
|
||||||
|
content.set_inner_html(&content_val);
|
||||||
|
}
|
||||||
|
|
||||||
// character counter
|
// character counter
|
||||||
let character_counter = Closure::wrap(Box::new(mv!(content => move |_| {
|
let character_counter = Closure::wrap(Box::new(mv!(content => move |_| {
|
||||||
|
Loading…
Reference in New Issue
Block a user