-
#160: Plugin-Block — Bearbeiten-Knopf nach Moduswechsel wieder da
All checks were successfulCI / Lint, typecheck, test (pull_request) Successful in 4m39sCI / Build container images (pull_request) Successful in 1m29sCI / Auth e2e pack (pull_request) Successful in 7m22sCI / Import/export fidelity gate (pull_request) Successful in 55sCD / Build and push images (push) Successful in 18sCD / Deploy to Test (push) Successful in 13sCD / Smoke tests against Test (push) Successful in 1m16sCD / Promote to Int (push) Successful in 11sRelease / Build release images and notes (push) Successful in 1m9sCI / Lint, typecheck, test (push) Successful in 4m48sCI / Build container images (push) Has been skippedRelease / Release-candidate operations QA (push) Successful in 52sProd deploy / Deploy the released images to Prod (push) Successful in 18sCI / Auth e2e pack (push) Successful in 7m2sCI / Import/export fidelity gate (push) Successful in 54sreleased this
2026-07-20 21:54:50 +02:00 | 118 commits to main since this releaseDie NodeView las editor.isEditable nur beim Mount. Die Seite mountet
immer im Lesemodus, und der Moduswechsel läuft über setEditable() —
das emittiert in TipTap nur ein update-Event, aber keine Transaction,
weshalb React-NodeViews nie neu rendern (geprüft in @tiptap/react
3.27.1: updateProps feuert nur bei Node-Änderung und Selektions-
Wechsel). Folge: die Block-Leiste blieb ohne Bearbeiten-Knopf, für
alle Block-Plugins (ChordPro, Mermaid, Excalidraw, draw.io).Fix: useEditorEditable abonniert das update-Event und liest
isEditable reaktiv; verliert die Seite die Editierbarkeit, während
die Editier-UI des Plugins offen ist, fällt der Block auf render
zurück (der Lesemodus blendet die Leiste aus, es gäbe sonst keinen
Weg mehr heraus). Damit stimmt auch die setData-Schreibrecht-Prüfung
(editableRef) wieder.Regressionstest im plugin-blocks-Pack: Block existiert bereits,
Seite lädt im Lesemodus, Wechsel in den Edit-Modus zeigt den Knopf
(fiel ohne Fix reproduzierbar durch); Rückweg Lesemodus→render
mitgeprüft. Die bisherigen Tests fügten Blöcke immer erst nach dem
Moduswechsel ein und konnten den Fall nicht sehen.Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Downloads