[diffs/edit] Update docs#974
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Collaborator
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Load the Editor docs page: the live edit mode demo starts blank and its highlighted code only pops in once the client attaches the editor, so the surface visibly flashes after the page loads. The demo rendered <File> with no prerendered HTML, so the server only emitted an empty container and all highlighting happened client side. Preload the demo file with preloadFile and hydrate <File> from the resulting prerenderedHTML instead. The preload options mirror the state the editor enforces in contentEditable mode (token transformer on; gutter, line selection, and hover off) so the SSR markup matches the post-attach render and doesn't re-highlight. The demo now ships highlighted in the initial HTML.
amadeus
pushed a commit
that referenced
this pull request
Jul 21, 2026
* [diffs/edit] docs: Add "Compared with Monaco Editor and CodeMirror" section * Small content updates * fix(docs): Prerender the edit mode demo on the server Load the Editor docs page: the live edit mode demo starts blank and its highlighted code only pops in once the client attaches the editor, so the surface visibly flashes after the page loads. The demo rendered <File> with no prerendered HTML, so the server only emitted an empty container and all highlighting happened client side. Preload the demo file with preloadFile and hydrate <File> from the resulting prerenderedHTML instead. The preload options mirror the state the editor enforces in contentEditable mode (token transformer on; gutter, line selection, and hover off) so the SSR markup matches the post-attach render and doesn't re-highlight. The demo now ships highlighted in the initial HTML. * Remove comparison, add paragraph near top for purpose --------- Co-authored-by: Mark Otto <markdotto@gmail.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.
CodeViewcomponent