From 7c8dfc139247c174dc261f81a1fe73e81c162188 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 26 Sep 2025 12:01:43 +0600 Subject: [PATCH] docs(selection): fix className documentation --- .changeset/many-nails-argue.md | 5 +++++ src/content/editor/extensions/functionality/selection.mdx | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/many-nails-argue.md diff --git a/.changeset/many-nails-argue.md b/.changeset/many-nails-argue.md new file mode 100644 index 00000000..7dfc3e20 --- /dev/null +++ b/.changeset/many-nails-argue.md @@ -0,0 +1,5 @@ +--- +'tiptap-docs': patch +--- + +Fix Selection extension className documentation diff --git a/src/content/editor/extensions/functionality/selection.mdx b/src/content/editor/extensions/functionality/selection.mdx index 4ec0a036..b5c99562 100644 --- a/src/content/editor/extensions/functionality/selection.mdx +++ b/src/content/editor/extensions/functionality/selection.mdx @@ -50,13 +50,13 @@ new Editor({ ### className -The class that is applied to the focused element. +The class that is applied to the current selection. -Default: `'has-focus'` +Default: `'selection'` ```js -Focus.configure({ - className: 'focus', +Selection.configure({ + className: 'selection', }) ```