File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
docs/.vitepress/theme/components/demo Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 6
6
<div
7
7
class =" w-full border-b border-b-solid border-b-[var(--isle-editor-border-color)] box-border"
8
8
>
9
- <div
9
+ <!-- < div
10
10
class="w-full h-52px px-1rem flex justify-between border-b border-b-solid border-b-[var(-- isle-editor-border-color)] box-border"
11
11
>
12
12
<div></div>
18
18
<span>{{ characters || 0 }} characters</span>
19
19
</div>
20
20
</div>
21
- </div >
21
+ </div> -->
22
22
<IsleEditorToolbar v-if =" editorEl?.editor" :editor =" editorEl?.editor" />
23
23
</div >
24
24
<div class =" w-full flex-1" >
32
32
:locale =" locale"
33
33
:theme =" theme"
34
34
:extensions =" extensions"
35
- @update =" editorUpdate"
36
35
></IsleEditor >
37
36
</div >
38
37
</div >
@@ -76,17 +75,4 @@ const extensions = [
76
75
},
77
76
}),
78
77
];
79
-
80
- const characters = ref (0 );
81
- const words = ref (0 );
82
- function charactersCount (editor ) {
83
- const characterObj = editor .getCharacters ();
84
- characters .value = characterObj .characters ;
85
- words .value = characterObj .words ;
86
- }
87
-
88
- function editorUpdate ({ editor, output }) {
89
- console .log (output);
90
- charactersCount (editor);
91
- }
92
78
</script >
You can’t perform that action at this time.
0 commit comments