From cb0056b995c7e458d11ef363cb5ef452b214e735 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 4 Oct 2024 19:37:24 +0800 Subject: feat: unicode chars for editor actions --- src/editor.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/editor.mjs b/src/editor.mjs index e9ee84a..e0c90c3 100644 --- a/src/editor.mjs +++ b/src/editor.mjs @@ -59,15 +59,15 @@ const editor = new EasyMDE({ }, toolbar: [ { - name: 'map', - title: 'Toggle Map Generation', - text: '🌏', + name: 'roll', + title: 'Roll a dice', + text: '\u{2684}', action: () => toggleEditing() }, { name: 'debug', title: 'Save content as URL', - text: '🤔', + text: '\u{1F4BE}', action: () => { const state = { content: editor.value() } window.location.hash = encodeURIComponent(JSON.stringify(state)) -- cgit v1.2.3-70-g09d2