File tree Expand file tree Collapse file tree 2 files changed +64
-7
lines changed
exampleVault/Input Fields
src/fields/inputFields/fields/Editor Expand file tree Collapse file tree 2 files changed +64
-7
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,63 @@ editor: |-
77 # Heading
88
99 [[Slider]]
10+ editor2 : |-
11+ asd
12+
13+ asd
14+ asd
15+
16+ as
17+ d
18+ asd
19+ as
20+ d
21+ as
22+ da
23+ sd
24+
25+ asd
26+
27+ as
28+ d
29+ as
30+ d
31+ as
32+ d
33+ as
34+ d
35+ as
36+ d
37+ a
38+ d
39+ as
40+ d
41+ as
42+ dasda
43+ \\asd
44+ as
45+ d
46+ a
47+ da
48+ s
49+ da
50+ sd
51+ a
52+ d
53+ a
54+ sd
55+ a
56+ sd
57+
58+ asd
59+
60+ asd
1061---
1162
1263``` meta-bind
1364INPUT[editor(showcase):editor]
65+ ```
66+
67+ ``` meta-bind
68+ INPUT[editor(showcase):editor2]
1469```
Original file line number Diff line number Diff line change 99 let inputEl: HTMLElement ;
1010
1111 onMount (() => {
12- renderEl .toggleVisibility ( true ) ;
13- inputEl .toggleVisibility ( false ) ;
12+ renderEl .style . display = " block " ;
13+ inputEl .style . display = " none " ;
1414 render (renderEl , value );
1515 });
1616
2020 }
2121
2222 function focusOut() {
23- renderEl .toggleVisibility ( true ) ;
24- inputEl .toggleVisibility ( false ) ;
23+ renderEl .style . display = " block " ;
24+ inputEl .style . display = " none " ;
2525 render (renderEl , value );
2626 }
2727
2828 function focusIn() {
29- console .log (' focus in' );
30- renderEl .toggleVisibility ( false ) ;
31- inputEl .toggleVisibility ( true ) ;
29+ // console.log('focus in');
30+ renderEl .style . display = " none " ;
31+ inputEl .style . display = " block " ;
3232 inputEl .focus ();
3333 }
3434
6363 padding : 0 ;
6464 position : relative ;
6565 margin-left : 0 ;
66+ overflow : scroll ;
6667 }
6768
6869 .editor-input > textarea {
7374 position : absolute ;
7475 inset : 0 ;
7576 resize : none ;
77+ border-radius : 0 ;
7678 }
7779
7880 .editor-input > div {
You can’t perform that action at this time.
0 commit comments