diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-05 00:39:45 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-05 01:45:11 +0700 |
| commit | 65eb8e99d6dfdfdf419254cbb7e26b7afe426691 (patch) | |
| tree | e4585381101d9357e3b84f64e906d93111f10540 /editor/index.html | |
| parent | c60be07a107a655b63dd7aa4a3bc740591f9ca54 (diff) | |
| download | pakakeh.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.html | 5 |
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> |
