aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-04 19:37:24 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-04 19:37:24 +0800
commitcb0056b995c7e458d11ef363cb5ef452b214e735 (patch)
tree0639f55f1a337f6fa2f41e751d64aed2d03a5e6e
parente4f6b7ecd5872d1ec80d3aa961ffa93708291224 (diff)
feat: unicode chars for editor actions
-rw-r--r--src/editor.mjs8
1 files changed, 4 insertions, 4 deletions
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({
59 }, 59 },
60 toolbar: [ 60 toolbar: [
61 { 61 {
62 name: 'map', 62 name: 'roll',
63 title: 'Toggle Map Generation', 63 title: 'Roll a dice',
64 text: '🌏', 64 text: '\u{2684}',
65 action: () => toggleEditing() 65 action: () => toggleEditing()
66 }, 66 },
67 { 67 {
68 name: 'debug', 68 name: 'debug',
69 title: 'Save content as URL', 69 title: 'Save content as URL',
70 text: '🤔', 70 text: '\u{1F4BE}',
71 action: () => { 71 action: () => {
72 const state = { content: editor.value() } 72 const state = { content: editor.value() }
73 window.location.hash = encodeURIComponent(JSON.stringify(state)) 73 window.location.hash = encodeURIComponent(JSON.stringify(state))