Skip to content

[diffs/edit] Update docs#974

Merged
mdo merged 4 commits into
beta-1.3from
editor/update-docs
Jul 13, 2026
Merged

[diffs/edit] Update docs#974
mdo merged 4 commits into
beta-1.3from
editor/update-docs

Conversation

@ije

@ije ije commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator
  • Add "Compared with Monaco Editor and CodeMirror" section
  • Add docs for edit mode on CodeView component

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jul 13, 2026 7:13pm
pierre-docs-diffshub Ready Ready Preview Jul 13, 2026 7:13pm
pierre-docs-trees Ready Ready Preview Jul 13, 2026 7:13pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Skipped Skipped Jul 13, 2026 7:13pm

Request Review

@ije
ije marked this pull request as ready for review July 13, 2026 11:57
@ije
ije requested review from amadeus, mdo and necolas July 13, 2026 11:57
@ije ije changed the title [diffs/edit] Update [diffs/edit] Update docs Jul 13, 2026
@ije

ije commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 1668d8323d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

mdo added 3 commits July 13, 2026 11:44
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.
@vercel
vercel Bot temporarily deployed to Preview – pierrejs-diff-demo July 13, 2026 19:11 Inactive
@mdo
mdo merged commit af686d4 into beta-1.3 Jul 13, 2026
8 checks passed
@mdo
mdo deleted the editor/update-docs branch July 13, 2026 19:38
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants