Skip to content

Codemirror version changed to 6.0.2#25358

Open
gizemfirat wants to merge 1 commit into
devfrom
issue-codemirror
Open

Codemirror version changed to 6.0.2#25358
gizemfirat wants to merge 1 commit into
devfrom
issue-codemirror

Conversation

@gizemfirat
Copy link
Copy Markdown
Contributor

@gizemfirat gizemfirat commented May 4, 2026

FIX volosoft/volo#20960

-> codemirror version changed to 6.0.2
cmscode

-> codemirror version changed to 6.0.2
@gizemfirat gizemfirat added this to the 10.4-final milestone May 4, 2026
@gizemfirat gizemfirat self-assigned this May 4, 2026
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 4, 2026

CLA assistant check
All committers have signed the CLA.

@gizemfirat gizemfirat marked this pull request as ready for review May 14, 2026 06:53
Copilot AI review requested due to automatic review settings May 14, 2026 06:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the @abp/codemirror npm pack to use CodeMirror 6 (targeting [email protected]) while keeping existing ABP/CMS Kit integrations working via a small window.CodeMirror.fromTextArea(...) compatibility wrapper and updated static resource mappings.

Changes:

  • Switch @abp/codemirror from CodeMirror 5 assets to a bundled CodeMirror 6 IIFE and add ABP-specific styling (abp-codemirror).
  • Add a compatibility fromTextArea adapter and minimal “mode loaded” stubs for css/javascript.
  • Update ABP resource mappings to serve assets from @abp/codemirror/src/* instead of codemirror v5 folder structure.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
npm/packs/codemirror/src/mode/javascript/javascript.js Adds a lightweight “mode loaded” marker for javascript/js.
npm/packs/codemirror/src/mode/css/css.js Adds a lightweight “mode loaded” marker for css.
npm/packs/codemirror/src/codemirror.css Introduces ABP wrapper styling for CodeMirror 6.
npm/packs/codemirror/scripts/entry.js Implements window.CodeMirror.fromTextArea compatibility adapter on top of CodeMirror 6.
npm/packs/codemirror/scripts/build.js Adds an esbuild bundling step to generate src/codemirror.js.
npm/packs/codemirror/package.json Updates dependencies to CodeMirror 6 + adds build tooling.
npm/packs/codemirror/abp.resourcemapping.js Repoints ABP resource mappings to the pack’s own src outputs.

"@abp/core": "~10.3.0",
"codemirror": "^5.65.1"
"@codemirror/lang-css": "^6.0.0",
"@codemirror/lang-javascript": "^6.0.0",
target: ['es2019'],
sourcemap: false,
minify: false,
legalComments: 'none'
Comment on lines +61 to +64
function createState(textarea, options) {
const extensions = [
basicSetup,
EditorView.updateListener.of(update => {
Comment on lines +24 to +25
.abp-codemirror .cm-focused {
outline: none;
@gizemfirat gizemfirat requested a review from maliming May 14, 2026 08:27
@ebicoglu ebicoglu modified the milestones: 10.4-final, 10.5-preview May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants