Skip to content

Commit

Permalink
style: 💄 update docs component style
Browse files Browse the repository at this point in the history
  • Loading branch information
isboyjc committed Dec 18, 2024
1 parent d3caa77 commit f8b73bc
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docs/.vitepress/theme/components/demo/notion-style-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div
class="w-full border-b border-b-solid border-b-[var(--isle-editor-border-color)] box-border"
>
<div
<!-- <div
class="w-full h-52px px-1rem flex justify-between border-b border-b-solid border-b-[var(--isle-editor-border-color)] box-border"
>
<div></div>
Expand All @@ -18,7 +18,7 @@
<span>{{ characters || 0 }} characters</span>
</div>
</div>
</div>
</div> -->
<IsleEditorToolbar v-if="editorEl?.editor" :editor="editorEl?.editor" />
</div>
<div class="w-full flex-1">
Expand All @@ -32,7 +32,6 @@
:locale="locale"
:theme="theme"
:extensions="extensions"
@update="editorUpdate"
></IsleEditor>
</div>
</div>
Expand Down Expand Up @@ -76,17 +75,4 @@ const extensions = [
},
}),
];
const characters = ref(0);
const words = ref(0);
function charactersCount(editor) {
const characterObj = editor.getCharacters();
characters.value = characterObj.characters;
words.value = characterObj.words;
}
function editorUpdate({ editor, output }) {
console.log(output);
charactersCount(editor);
}
</script>

0 comments on commit f8b73bc

Please sign in to comment.