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:
commit
f2df4b7d7d
@ -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
|
||||||
|
|
||||||
|
@ -397,7 +397,9 @@ fn init_editor() -> Result<(), EditorError> {
|
|||||||
content_val.clone(),
|
content_val.clone(),
|
||||||
false,
|
false,
|
||||||
)?;
|
)?;
|
||||||
|
if !content_val.is_empty() {
|
||||||
content.set_inner_html(&content_val);
|
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