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', }) ```