aboutsummaryrefslogtreecommitdiff
path: root/editor/index.html
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-05 00:39:45 +0700
committerShulhan <ms@kilabit.info>2023-11-05 01:45:11 +0700
commit65eb8e99d6dfdfdf419254cbb7e26b7afe426691 (patch)
treee4585381101d9357e3b84f64e906d93111f10540 /editor/index.html
parentc60be07a107a655b63dd7aa4a3bc740591f9ca54 (diff)
downloadpakakeh.ts-65eb8e99d6dfdfdf419254cbb7e26b7afe426691.tar.xz
editor: simplify using one contenteditable
Using multiple lines of content editable is hard, especially when involving selection, deletion, and managing undo-redo history.
Diffstat (limited to 'editor/index.html')
-rw-r--r--editor/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/index.html b/editor/index.html
index 04a64f5..9c008c7 100644
--- a/editor/index.html
+++ b/editor/index.html
@@ -9,7 +9,10 @@
</head>
<body>
- <div id="editor"></div>
+ <p> Writable editor: </p>
+ <div id="editor" style="height:20em;"></div>
+ <p> Read only editor: </p>
+ <div id="editor-readonly" style="height:20em;"></div>
<script type="module" src="/editor/example.js"></script>
</body>