Skip to content

Commit 7737922

Browse files
committed
fix(docs): remove lock/unlock buttons from interactive demo
Lock mode buttons depend on PR #1939 which isn't published yet. Remove them until lockMode is available in superdoc@latest.
1 parent 218cb0b commit 7737922

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

apps/docs/snippets/extensions/structured-content.mdx

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,6 @@ import { SuperDocEditor } from '/snippets/components/superdoc-editor.jsx'
6767
}
6868
},
6969
],
70-
[
71-
{
72-
label: 'Lock inline (sdtContentLocked)',
73-
onClick: (superdoc) => {
74-
const editor = superdoc?.activeEditor || superdoc?.editor
75-
if (!editor?.commands) return
76-
editor.commands.updateStructuredContentById('1', {
77-
attrs: { lockMode: 'sdtContentLocked' },
78-
});
79-
}
80-
},
81-
{
82-
label: 'Lock block (sdtContentLocked)',
83-
onClick: (superdoc) => {
84-
const editor = superdoc?.activeEditor || superdoc?.editor
85-
if (!editor?.commands) return
86-
editor.commands.updateStructuredContentById('2', {
87-
attrs: { lockMode: 'sdtContentLocked' },
88-
});
89-
}
90-
},
91-
{
92-
label: 'Unlock all',
93-
onClick: (superdoc) => {
94-
const editor = superdoc?.activeEditor || superdoc?.editor
95-
if (!editor?.commands) return
96-
editor.commands.updateStructuredContentById('1', { attrs: { lockMode: 'unlocked' } });
97-
editor.commands.updateStructuredContentById('2', { attrs: { lockMode: 'unlocked' } });
98-
}
99-
},
100-
],
10170
[
10271
{
10372
label: 'Delete all fields',

0 commit comments

Comments
 (0)