Merge pull request 'Don't fill empty content when switching rich editor' (#1017) from content-placeholder into main

Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/1017
This commit is contained in:
KitaitiMakoto 2022-01-29 17:29:41 +00:00
commit f2df4b7d7d
2 changed files with 8 additions and 5 deletions

View File

@ -6,16 +6,17 @@
### Added ### Added
- Basque language - Basque language (#1013)
### Changed ### Changed
- Bump Rust to nightly 2022-01-26 - Bump Rust to nightly 2022-01-26 (#1015)
### Fixed ### Fixed
- Add explanation of sign-up step at sign-up page when email sign-up mode - Add explanation of sign-up step at sign-up page when email sign-up mode (#1012)
- Add NOT NULL constraint to email_blocklist table fields - Add NOT NULL constraint to email_blocklist table fields (#1016)
- Don't fill empty content when switching rich editor (#1017)
## [[0.7.1]] - 2022-01-12 ## [[0.7.1]] - 2022-01-12

View File

@ -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 |_| {