Skip to content

Replace editorState option with inlineEditing#2430

Merged
tf merged 1 commit into
codevise:masterfrom
tf:improve-render-in-ce
May 22, 2026
Merged

Replace editorState option with inlineEditing#2430
tf merged 1 commit into
codevise:masterfrom
tf:improve-render-in-ce

Conversation

@tf
Copy link
Copy Markdown
Member

@tf tf commented May 22, 2026

The previous editorState option in renderInContentElement let specs splat arbitrary keys into the editor state context, and the helper always wrapped its children with inline-editing-only providers (DndProvider, the editor command emitter context) even for frontend- mode tests.

The new inlineEditing option is explicit: when set, inline-editing providers wrap the tree and the editor state context is overridden; when omitted, content elements see the frontend-mode defaults that match production. The value is either true for editable defaults or {isEditable, isSelected, transientState} for granular control, where transientState accepts a jest spy.

[skip percy]

The previous `editorState` option in `renderInContentElement` let specs
splat arbitrary keys into the editor state context, and the helper
always wrapped its children with inline-editing-only providers
(DndProvider, the editor command emitter context) even for frontend-
mode tests.

The new `inlineEditing` option is explicit: when set, inline-editing
providers wrap the tree and the editor state context is overridden;
when omitted, content elements see the frontend-mode defaults that
match production. The value is either `true` for editable defaults or
`{isEditable, isSelected, transientState}` for granular control, where
`transientState` accepts a jest spy.
@tf tf merged commit 5206be7 into codevise:master May 22, 2026
17 checks passed
@tf tf deleted the improve-render-in-ce branch May 22, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant