enh: note word/char counter

This commit is contained in:
Timothy Jaeryang Baek
2025-07-09 13:38:54 +04:00
parent 6ee4274b3b
commit 3b9f4a6f5e
4 changed files with 38 additions and 1 deletions
@@ -70,6 +70,8 @@
import TaskItem from '@tiptap/extension-task-item';
import TaskList from '@tiptap/extension-task-list';
import CharacterCount from '@tiptap/extension-character-count';
import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight';
import Placeholder from '@tiptap/extension-placeholder';
import StarterKit from '@tiptap/starter-kit';
@@ -92,6 +94,8 @@
// create a lowlight instance with all languages loaded
const lowlight = createLowlight(all);
export let editor = null;
export let className = 'input-prose';
export let placeholder = 'Type here...';
@@ -116,7 +120,6 @@
let floatingMenuElement = null;
let bubbleMenuElement = null;
let element;
let editor;
const options = {
throwOnError: false
@@ -496,6 +499,7 @@
TaskItem.configure({
nested: true
}),
CharacterCount,
...(autocomplete
? [
AIAutocompletion.configure({