aboutsummaryrefslogtreecommitdiff
path: root/editor/example.html
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-07-26 23:22:53 +0700
committerShulhan <ms@kilabit.info>2021-07-26 23:22:53 +0700
commit368f58ff4b70d17b1bfc7bc5ced80efc48d0d293 (patch)
treeab675342de7343420cba4d99aa3b10bb1fafe1f6 /editor/example.html
parent765e1f6a9bdac081fee70362542ce72e14a0abb5 (diff)
downloadpakakeh.ts-368f58ff4b70d17b1bfc7bc5ced80efc48d0d293.tar.xz
editor: init the style sheet using javascript and add support for tab
Diffstat (limited to 'editor/example.html')
-rw-r--r--editor/example.html35
1 files changed, 0 insertions, 35 deletions
diff --git a/editor/example.html b/editor/example.html
index 6688435..0d232f3 100644
--- a/editor/example.html
+++ b/editor/example.html
@@ -3,41 +3,6 @@
<head>
<meta charset="UTF-8" />
<title>WUI - editor</title>
- <style>
- [contenteditable] {
- outline: 0px solid transparent;
- }
- .wui-editor {
- background-color: cornsilk;
- font-family: monospace;
- width: 100%;
- }
- .wui-editor-line {
- display: table;
- }
- .wui-line-number:hover {
- background-color: lightsalmon;
- }
- .wui-line-number {
- display: table-cell;
- padding: 4px 1em 4px 4px;
- text-align: right;
- width: 3em;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
- .wui-line-text {
- display: table-cell;
- padding: 4px;
- border-color: lightblue;
- border-width: 0px;
- border-style: solid;
- white-space: pre-wrap;
- }
- </style>
</head>
<body onload="main()">
<div id="editor"></div>