Skip to content

Experiment/cm6 - #1

Open
servitantgit wants to merge 2 commits into
mainfrom
experiment/cm6
Open

servitantgit wants to merge 2 commits into
mainfrom
experiment/cm6

Conversation

@servitantgit

Copy link
Copy Markdown
Owner

No description provided.

Introduce a new CodeMirror 6 (CM6) editor engine as an experimental
feature, accessible via the `?editor=cm6` URL parameter. This implementation
moves away from the previous approach of overlaying CM6 on the classic
editor and instead uses a dedicated host element that is only injected
into the DOM when the experiment is explicitly requested.

Key changes:
- Added `editor-engine.js` to handle engine detection and URL parsing.
- Added `editor-cm6.js` to manage the lifecycle and initialization of
  the CM6 instance.
- Modified `app.js` to conditionally load the CM6 engine and its
  dependencies asynchronously.
- Updated CSS to provide a dedicated layout for the CM6 host and an
  experimental status banner.
- Added logic to disable classic editor features (minimap, scroll-sync,
  link-suggest) when the CM6 engine is active to prevent conflicts.
- Created `cm6.html` as a standalone entry point for the experiment.

This branch has not been deployed

No deployments
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.

1 participant