-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathneovim-editor.html
47 lines (46 loc) · 1.03 KB
/
neovim-editor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<dom-module id="neovim-editor">
<template>
<style>
:host {
position: relative;
min-width: 0px;
min-height: 0px;
}
#container {
padding: 0px;
margin: 0px;
width: 100%;
height: 100%;
}
#cursor {
padding: 0px;
margin: 0px;
position: absolute;
}
#input {
width: 1px;
color: transparent;
background-color: transparent;
padding: 0px;
border: 0px;
outline: none;
vertical-align: middle;
position: absolute;
top: 0px;
left: 0px;
}
#preedit {
display: none;
visibility: hidden;
position: fixed;
}
</style>
<div id="container">
<canvas id="screen" width$="[[width]]" height$="[[height]]"></canvas>
<canvas id="cursor"></canvas>
<input id="input" autocomplete="off" autofocus />
<span id="preedit"></span>
</div>
</template>
</dom-module>
<script src="./build/index.js"></script>