[BUG FIX]Make it possible to switch to rich text editor

This commit is contained in:
Kitaiti Makoto 2020-07-23 23:36:09 +09:00
parent 6de9a1f1c8
commit a050deb557
1 changed files with 1 additions and 1 deletions

View File

@ -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(