Skip to content

Commit 8f96014

Browse files
authored
fix: 🐛 heading id in readonly mode (#1298)
Closes: #1252
1 parent 5cb26c9 commit 8f96014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/preset-commonmark/src/plugin/sync-heading-id-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const syncHeadingIdPlugin = $prose((ctx) => {
1111
const headingIdPluginKey = new PluginKey('MILKDOWN_HEADING_ID')
1212

1313
const updateId = (view: EditorView) => {
14-
if (view.composing || !view.editable)
14+
if (view.composing)
1515
return
1616

1717
const getId = ctx.get(headingIdGenerator.key)

0 commit comments

Comments
 (0)