Add LDH integration seams - #23
Merged
Merged
Conversation
…-host - Extract local:init-state and local:init-editor from main; hosts can call init-state from their own entry point and init-editor lazily on first region - Extract local:init-region from init-editing's per-root body; seeds <p><br/> in empty regions so they can hold a caret; callable per-region for hosts that render editable regions after the initial page load - Add local:toolbar-host() seam function (default: ixsl:page()//nav); hosts without a nav element override this to point at their own chrome - Rename breadcrumb ids to rdfa-editor-breadcrumb-* to avoid collisions with host page ids; update CSS and navigate.xsl references accordingly Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
local:init-stateandlocal:init-editorfrommainso hosts can callinit-statefrom their own entry point and deferinit-editoruntil the first editable region appearslocal:init-regionfrominit-editing's per-root body; seeds<p><br/>in empty regions; callable per-region for hosts that render editable regions lazilylocal:toolbar-host()seam function (default:ixsl:page()//nav) so hosts without a<nav>element can override the toolbar mount pointrdfa-editor-breadcrumb-*to avoid collisions with host page ids; update CSS andnavigate.xslaccordinglyTest plan
index.xslentry point) still initializes as before —mainnow delegates tolocal:init-state+local:init-editor<p><br/>and accept a caretfeatures.mjs,hardening.mjs)🤖 Generated with Claude Code