From a050deb557f71e79c1bd5c98bba28433117c4647 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Thu, 23 Jul 2020 23:36:09 +0900 Subject: [PATCH] [BUG FIX]Make it possible to switch to rich text editor --- plume-front/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-front/src/editor.rs b/plume-front/src/editor.rs index 4dd8e71e..ab211dfd 100644 --- a/plume-front/src/editor.rs +++ b/plume-front/src/editor.rs @@ -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(