Skip to content

Commit f4e7732

Browse files
fix: Minor collaboration cursor & docs changes (#1381)
* Small collaboration cursor fixes * Slight edit to dot and label height offsets * Small fix * - Updated collaboration docs with `showCursorLabels` option - Changed `all-blocks` example to `default-blocks`
1 parent 800a1f0 commit f4e7732

File tree

15 files changed

+24
-23
lines changed

15 files changed

+24
-23
lines changed

docs/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ const nextConfig = withAnalyzer(
118118
destination: "/docs/advanced/vanilla-js",
119119
permanent: true,
120120
},
121+
{
122+
source: "/examples/basic/all-blocks",
123+
destination: "/examples/basic/default-blocks",
124+
permanent: true,
125+
},
121126
],
122127
experimental: {
123128
externalDir: true,

docs/pages/docs/advanced/real-time-collaboration.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const editor = useCreateBlockNote({
3838
name: "My Username",
3939
color: "#ff0000",
4040
},
41+
// When to show user labels on the collaboration cursor. Set by default to
42+
// "activity" (show when the cursor moves), but can also be set to "always".
43+
showCursorLabels: "activity"
4144
},
4245
// ...
4346
});

docs/pages/docs/editor-basics/default-schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BlockNote supports a number of built-in blocks, inline content types, and styles
1414

1515
The demo below showcases each of BlockNote's built-in block and inline content types:
1616

17-
<Example name="basic/all-blocks" />
17+
<Example name="basic/default-blocks" />
1818

1919
## Default Blocks
2020

examples/01-basic/04-all-blocks/.bnexample.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"playground": true,
3+
"docs": true,
4+
"author": "yousefed",
5+
"tags": ["Basic", "Blocks", "Inline Content"]
6+
}
File renamed without changes.

examples/01-basic/04-all-blocks/package.json renamed to examples/01-basic/04-default-blocks/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@blocknote/example-all-blocks",
2+
"name": "@blocknote/example-default-blocks",
33
"description": "AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY",
44
"private": true,
55
"version": "0.12.4",
@@ -17,8 +17,7 @@
1717
"@blocknote/mantine": "latest",
1818
"@blocknote/shadcn": "latest",
1919
"react": "^18.3.1",
20-
"react-dom": "^18.3.1",
21-
"@blocknote/xl-multi-column": "latest"
20+
"react-dom": "^18.3.1"
2221
},
2322
"devDependencies": {
2423
"@types/react": "^18.0.25",

0 commit comments

Comments
 (0)