Repository navigation
fix(visual-editing): don’t open admin for portableText; simplify starter PT markup - #40
Conversation
|
|
All contributors have signed the CLA ✍️ ✅ |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/blocks
@emdash-cms/cloudflare
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
What does this PR do?
This PR fixes an issue where PortableText fields incorrectly open the admin panel in edit mode. It ensures inline editing works as expected without triggering the global admin handler. It also simplifies the starter PortableText markup to prevent click interception issues.
Type of change
Checklist
Additional context
<PortableText />in starter templates.Test plan
pnpm typecheckpnpm --silent lint:jsonpnpm --filter emdash exec vitest run tests/unit/visual-editing/toolbar.test.ts