mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-18 09:41:01 +00:00
Merge pull request '[BUG FIX]Make it possible to switch to rich text editor' (#808) from KitaitiMakoto/Plume:richtexteditor into main
Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/808 Reviewed-by: kiwii <kiwii@noreply@joinplu.me>
This commit is contained in:
commit
fc474bf8d1
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ pub fn init() -> Result<(), EditorError> {
|
|||
let editor_button = document().create_element("a")?;
|
||||
js! { @{&editor_button}.href = "#"; }
|
||||
editor_button.add_event_listener(|_: ClickEvent| {
|
||||
window().local_storage().remove("basic-editor");
|
||||
window().local_storage().insert("basic-editor", "false");
|
||||
window().history().go(0).ok(); // refresh
|
||||
});
|
||||
editor_button.append_child(
|
||||
|
|
Loading…
Reference in a new issue