Skip to content

Commit f8b73bc

Browse files
committed
style: 💄 update docs component style
1 parent d3caa77 commit f8b73bc

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

docs/.vitepress/theme/components/demo/notion-style-editor.vue

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div
77
class="w-full border-b border-b-solid border-b-[var(--isle-editor-border-color)] box-border"
88
>
9-
<div
9+
<!-- <div
1010
class="w-full h-52px px-1rem flex justify-between border-b border-b-solid border-b-[var(--isle-editor-border-color)] box-border"
1111
>
1212
<div></div>
@@ -18,7 +18,7 @@
1818
<span>{{ characters || 0 }} characters</span>
1919
</div>
2020
</div>
21-
</div>
21+
</div> -->
2222
<IsleEditorToolbar v-if="editorEl?.editor" :editor="editorEl?.editor" />
2323
</div>
2424
<div class="w-full flex-1">
@@ -32,7 +32,6 @@
3232
:locale="locale"
3333
:theme="theme"
3434
:extensions="extensions"
35-
@update="editorUpdate"
3635
></IsleEditor>
3736
</div>
3837
</div>
@@ -76,17 +75,4 @@ const extensions = [
7675
},
7776
}),
7877
];
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-
}
9278
</script>

0 commit comments

Comments
 (0)