# Latest

**URL:** https://discuss.codemirror.net/latest.md?no_subcategories=false&page=3

[Latest](https://discuss.codemirror.net/latest.md) · [Categories](https://discuss.codemirror.net/categories.md)

**Page:** 4

---

## [Assigning CSS variables through \`EditorView.theme()\`](https://discuss.codemirror.net/t/assigning-css-variables-through-editorview-theme/9681)

<div class="topic-metadata">

**Author:** [@benniekiss](https://discuss.codemirror.net/u/benniekiss)\
**Replies:** 2\
**Last updated:** [February 22, 2026, 9:08pm UTC](https://discuss.codemirror.net/t/assigning-css-variables-through-editorview-theme/9681 "2026-02-22T21:08:31Z")

</div>

I’m looking to structure editor theming by locating the styling within variables, which end users can target to provide easier custom styling. I’ve hit a roadblock though when trying to set the variables through EditorVi…

---

## [Hybrid markdown editing (preview for unfocused lines, raw for active line)](https://discuss.codemirror.net/t/hybrid-markdown-editing-preview-for-unfocused-lines-raw-for-active-line/9660)

<div class="topic-metadata">

**Author:** [@tiagosimoes](https://discuss.codemirror.net/u/tiagosimoes)\
**Replies:** 1\
**Last updated:** [February 22, 2026, 10:34am UTC](https://discuss.codemirror.net/t/hybrid-markdown-editing-preview-for-unfocused-lines-raw-for-active-line/9660 "2026-02-22T10:34:59Z")

</div>

Here’s an extension I’ve built for hybrid markdown editing: it renders the preview of unfocused lines while keeping the current line in raw markdown for editing (so you get readability without losing precise control). …

---

## [BlockWrapper doesn't work with composition mode](https://discuss.codemirror.net/t/blockwrapper-doesnt-work-with-composition-mode/9680)

<div class="topic-metadata">

**Author:** [@GnohzGniy](https://discuss.codemirror.net/u/GnohzGniy)\
**Replies:** 2\
**Last updated:** [February 21, 2026, 12:35am UTC](https://discuss.codemirror.net/t/blockwrapper-doesnt-work-with-composition-mode/9680 "2026-02-21T00:35:23Z")

</div>

Hi @marijn, thanks for the great work on block wrappers, I’ve recently tried this out and it works amazingly. However I had to revert the change because I noticed that triggering composition mode inside a block wrapper …

---

## [iOS Safari: Missing selection drag handles](https://discuss.codemirror.net/t/ios-safari-missing-selection-drag-handles/9679)

<div class="topic-metadata">

**Author:** [@shshaw](https://discuss.codemirror.net/u/shshaw)\
**Replies:** 1\
**Last updated:** [February 20, 2026, 7:26am UTC](https://discuss.codemirror.net/t/ios-safari-missing-selection-drag-handles/9679 "2026-02-20T07:26:50Z")

</div>

CodeMirror 6 instances are missing the standard selection drag handles in iOS. I’m not sure why. I’ve replicated this on Try CodeMirror and in other CM6 instances. Standard contenteditable elements still have the han…

---

## [Question on disambiguation with undelimited sequences](https://discuss.codemirror.net/t/question-on-disambiguation-with-undelimited-sequences/9676)

<div class="topic-metadata">

**Author:** [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)\
**Replies:** 6\
**Last updated:** [February 15, 2026, 3:08pm UTC](https://discuss.codemirror.net/t/question-on-disambiguation-with-undelimited-sequences/9676 "2026-02-15T15:08:03Z")

</div>

Hi! I am working on a personal language project with Lezer. While I’ve gotten something to work, it’s hacky and I was wondering about the preferred approach for expressing something like below. variable : type = "value…

---

## [Unable to Select All & Copy with Safari + ShadowDOM Rendering.](https://discuss.codemirror.net/t/unable-to-select-all-copy-with-safari-shadowdom-rendering/9675)

<div class="topic-metadata">

**Author:** [@shshaw](https://discuss.codemirror.net/u/shshaw)\
**Replies:** 3\
**Last updated:** [February 12, 2026, 10:31am UTC](https://discuss.codemirror.net/t/unable-to-select-all-copy-with-safari-shadowdom-rendering/9675 "2026-02-12T10:31:29Z")

</div>

When rendering CodeMirror in a ShadowDOM root, Cmd + A (or Edit \> Select All) and then Copy doesn’t actually select all the contents of the CodeMirror doc. It seems like the way CodeMirror only renders part of the doc to…

---

## [Do transactions dispatched via \`undo\` retain their source's Annotations?](https://discuss.codemirror.net/t/do-transactions-dispatched-via-undo-retain-their-sources-annotations/9674)

<div class="topic-metadata">

**Author:** [@franknoirot2](https://discuss.codemirror.net/u/franknoirot2)\
**Replies:** 2\
**Last updated:** [February 9, 2026, 10:19pm UTC](https://discuss.codemirror.net/t/do-transactions-dispatched-via-undo-retain-their-sources-annotations/9674 "2026-02-09T22:19:30Z")

</div>

Currently I apply some Annotations to transactions to exclude them an “always on” effect running via an UpdateListener extension. I was under the impression that history undo transactions would retain these annotations a…

---

## [Issue with commenting \<script\> tag in HTML](https://discuss.codemirror.net/t/issue-with-commenting-script-tag-in-html/9664)

<div class="topic-metadata">

**Author:** [@shshaw](https://discuss.codemirror.net/u/shshaw)\
**Replies:** 4\
**Last updated:** [February 4, 2026, 6:22pm UTC](https://discuss.codemirror.net/t/issue-with-commenting-script-tag-in-html/9664 "2026-02-04T18:22:31Z")

</div>

When commenting out a tag in HTML, CodeMirror wraps it in /\* and \*/ instead of HTML Comments \<!-- and --\>. I assume the language detection is trying to comment within the script, but doesn’t take into account the cursor…

---

## [Issue with calling runScopeHandlers with ctrl+shift](https://discuss.codemirror.net/t/issue-with-calling-runscopehandlers-with-ctrl-shift/9668)

<div class="topic-metadata">

**Author:** [@lvrpl](https://discuss.codemirror.net/u/lvrpl)\
**Replies:** 3\
**Last updated:** [February 4, 2026, 3:50pm UTC](https://discuss.codemirror.net/t/issue-with-calling-runscopehandlers-with-ctrl-shift/9668 "2026-02-04T15:50:28Z")

</div>

I have created a search panel with an input. I feed the keyboard events from that input into the CodeMirror view with runScopeHandlers. I have key bindings: Mod+Shift+h for replaceAll Mod+h for replaceNext While my s…

---

## [Down arrow navigation interrupted by inline widget on its own line](https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662)

<div class="topic-metadata">

**Author:** [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)\
**Replies:** 2\
**Last updated:** [February 4, 2026, 2:01am UTC](https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662 "2026-02-04T02:01:27Z")

</div>

Hi! I encountered an issue where pressing down arrow doesn’t move the cursor down when the whole inline widget element happens to be on its own line, perhaps due to being wrapped. Curiously, it only happens when the who…

---

## [Partial Readonly editor on the json document node level ](https://discuss.codemirror.net/t/partial-readonly-editor-on-the-json-document-node-level/9667)

<div class="topic-metadata">

**Author:** [@jvo](https://discuss.codemirror.net/u/jvo)\
**Replies:** 0\
**Last updated:** [February 3, 2026, 6:22pm UTC](https://discuss.codemirror.net/t/partial-readonly-editor-on-the-json-document-node-level/9667 "2026-02-03T18:22:54Z")

</div>

Hi guys. I’m pretty new to code mirror being using it just as an editor from the very high level (input =\> result). My case is @uiw/react-codemirror implementation and using it as an json document editor. But now ther…

---

## [Lezer - GLR split not working](https://discuss.codemirror.net/t/lezer-glr-split-not-working/9663)

<div class="topic-metadata">

**Author:** [@fonsp](https://discuss.codemirror.net/u/fonsp)\
**Replies:** 1\
**Last updated:** [February 3, 2026, 6:18pm UTC](https://discuss.codemirror.net/t/lezer-glr-split-not-working/9663 "2026-02-03T18:18:07Z")

</div>

Hi! I am working on the Julia grammar: GitHub - JuliaPluto/lezer-julia: Julia parser for Lezer :slight\_smile: Problem I am struggling to get an ambiguity to work. There are two syntax patterns that I want to support: #…

---

## [Blockquote lines merge due to insertNewLineContinueMarkup on Enter](https://discuss.codemirror.net/t/blockquote-lines-merge-due-to-insertnewlinecontinuemarkup-on-enter/9657)

<div class="topic-metadata">

**Author:** [@ammarsa-4693](https://discuss.codemirror.net/u/ammarsa-4693)\
**Replies:** 2\
**Last updated:** [January 21, 2026, 11:03am UTC](https://discuss.codemirror.net/t/blockquote-lines-merge-due-to-insertnewlinecontinuemarkup-on-enter/9657 "2026-01-21T11:03:44Z")

</div>

Description I’m using CodeMirror (Markdown) along with a ProseMirror-based rich text editor. On Enter key press, CodeMirror uses insertNewLineContinueMarkup for blockquotes and lists. For example: \> line1 Pressing E…

---

## [How to disable virtual scroll in code mirror](https://discuss.codemirror.net/t/how-to-disable-virtual-scroll-in-code-mirror/8339)

<div class="topic-metadata">

**Author:** [@smeetagrawal](https://discuss.codemirror.net/u/smeetagrawal)\
**Replies:** 3\
**Last updated:** [January 21, 2026, 6:43am UTC](https://discuss.codemirror.net/t/how-to-disable-virtual-scroll-in-code-mirror/8339 "2026-01-21T06:43:20Z")

</div>

I am currently using @uiw/react-codemirror to implement key selection functionality in my project. Upon inspecting the elements in the browser’s developer tools, I noticed that virtual scrolling is enabled, which leads t…

---

## [Support \`BlockWrappers\` altering layout](https://discuss.codemirror.net/t/support-blockwrappers-altering-layout/9652)

<div class="topic-metadata">

**Author:** [@benniekiss](https://discuss.codemirror.net/u/benniekiss)\
**Replies:** 2\
**Last updated:** [January 16, 2026, 9:55pm UTC](https://discuss.codemirror.net/t/support-blockwrappers-altering-layout/9652 "2026-01-16T21:55:57Z")

</div>

I’m writing a plugin to render pandoc divs using BlockWrappers. Everything is working quite nicely, and I have not run into any issues so far. However, I was wondering if BlockWrappers which alter the layout should be s…

---

## [Cursor issue in drawSelection after font reflow when using a custom font](https://discuss.codemirror.net/t/cursor-issue-in-drawselection-after-font-reflow-when-using-a-custom-font/9649)

<div class="topic-metadata">

**Author:** [@fervor](https://discuss.codemirror.net/u/fervor)\
**Replies:** 5\
**Last updated:** [January 14, 2026, 1:03am UTC](https://discuss.codemirror.net/t/cursor-issue-in-drawselection-after-font-reflow-when-using-a-custom-font/9649 "2026-01-14T01:03:39Z")

</div>

I’m using a custom font (Open Sans) in CodeMirror 6. When the font finishes loading, the page layout is reflowed. After this reflow, the cursor rendered by drawSelection becomes incorrect (misaligned / visually abnormal…

---

## [BlockWrapper Styling](https://discuss.codemirror.net/t/blockwrapper-styling/9650)

<div class="topic-metadata">

**Author:** [@GnohzGniy](https://discuss.codemirror.net/u/GnohzGniy)\
**Replies:** 2\
**Last updated:** [January 13, 2026, 9:03am UTC](https://discuss.codemirror.net/t/blockwrapper-styling/9650 "2026-01-13T09:03:39Z")

</div>

I was trying out the new BlockWrapper for decorations cross multiple lines, it works great! One minor “issue” I noticed is that it’s quite challenging to add background colors to it, simply adding a background color …

---

## [Recommended approach for storing file operations (create, delete, rename) in history](https://discuss.codemirror.net/t/recommended-approach-for-storing-file-operations-create-delete-rename-in-history/9641)

<div class="topic-metadata">

**Author:** [@franknoirot2](https://discuss.codemirror.net/u/franknoirot2)\
**Replies:** 3\
**Last updated:** [January 12, 2026, 8:35pm UTC](https://discuss.codemirror.net/t/recommended-approach-for-storing-file-operations-create-delete-rename-in-history/9641 "2026-01-12T20:35:13Z")

</div>

I am working on a multi-file editor that uses CodeMirror v6 as the underlying code representation of a GUI editing system. I am interested in making file deletions, renamings, and creations undoable. I have implemented …

---

## [change blink cursor](https://discuss.codemirror.net/t/change-blink-cursor/9646)

<div class="topic-metadata">

**Author:** [@markzzz](https://discuss.codemirror.net/u/markzzz)\
**Replies:** 3\
**Last updated:** [January 12, 2026, 8:28am UTC](https://discuss.codemirror.net/t/change-blink-cursor/9646 "2026-01-12T08:28:02Z")

</div>

Hi, trying to change the color of the cursor within the area, this way: const theme = EditorView.theme({ "&.cm-editor": { fontFamily: "Arial, sans-serif !important", fontWeight: "bold", background: "#2d3748", …

---

## [Possible bug in commands.insertTab when using indentUnits](https://discuss.codemirror.net/t/possible-bug-in-commands-inserttab-when-using-indentunits/9623)

<div class="topic-metadata">

**Author:** [@Pomax](https://discuss.codemirror.net/u/Pomax)\
**Replies:** 6\
**Last updated:** [January 9, 2026, 6:36pm UTC](https://discuss.codemirror.net/t/possible-bug-in-commands-inserttab-when-using-indentunits/9623 "2026-01-09T18:36:52Z")

</div>

I’m using the insertTab and indentLess commands for block intenting, using keymap code: keymap.of(\[ { key: \`Tab\`, preventDefault: true, run: insertTab, }, { key: \`Sh…

---

## [Issue when using mixed languages and backtick \` char](https://discuss.codemirror.net/t/issue-when-using-mixed-languages-and-backtick-char/9645)

<div class="topic-metadata">

**Author:** [@jnavb](https://discuss.codemirror.net/u/jnavb)\
**Replies:** 7\
**Last updated:** [January 9, 2026, 9:00am UTC](https://discuss.codemirror.net/t/issue-when-using-mixed-languages-and-backtick-char/9645 "2026-01-09T09:00:29Z")

</div>

When using mixed languages, typing backtick (\`) before (\[{ inserts all sorts of incorrect values (see gif for more). console.log\<insert backtick here\>(). I think this might be a bug, here is an environment to reproduce …

---

## [syntaxTree update behavior when editing paragraphs under lists](https://discuss.codemirror.net/t/syntaxtree-update-behavior-when-editing-paragraphs-under-lists/9643)

<div class="topic-metadata">

**Author:** [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)\
**Replies:** 6\
**Last updated:** [January 6, 2026, 6:07pm UTC](https://discuss.codemirror.net/t/syntaxtree-update-behavior-when-editing-paragraphs-under-lists/9643 "2026-01-06T18:07:31Z")

</div>

Hi! I was encountering a codemirror view issue that only happened with block wrappers + syntax tree not being available on the current position, but the view issue was resolved by this recent patch, so thank you again t…

---

## [Tooltips when mounting are not positioned correctly when working with React](https://discuss.codemirror.net/t/tooltips-when-mounting-are-not-positioned-correctly-when-working-with-react/9642)

<div class="topic-metadata">

**Author:** [@jnavb](https://discuss.codemirror.net/u/jnavb)\
**Replies:** 4\
**Last updated:** [January 6, 2026, 3:52pm UTC](https://discuss.codemirror.net/t/tooltips-when-mounting-are-not-positioned-correctly-when-working-with-react/9642 "2026-01-06T15:52:12Z")

</div>

I understand that React is completely out of scope for this library. However, for heavy UI extensions, it is the only practical way to integrate with an existing application. The issue is the following: when the tooltip…

---

## [Inline widget.updateDOM not called on specific conditions](https://discuss.codemirror.net/t/inline-widget-updatedom-not-called-on-specific-conditions/9644)

<div class="topic-metadata">

**Author:** [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)\
**Replies:** 2\
**Last updated:** [January 6, 2026, 2:42pm UTC](https://discuss.codemirror.net/t/inline-widget-updatedom-not-called-on-specific-conditions/9644 "2026-01-06T14:42:22Z")

</div>

Hi! This only happens in very specific cases, and to be honest block widgets are probably better for my use case (though I’ve been avoiding moving to them for a separate reason), so I was second guessing whether to repor…

---

## [Syntax highlighting causes codemirror plugin to crash if only not on a specific version of @lezer/highlight](https://discuss.codemirror.net/t/syntax-highlighting-causes-codemirror-plugin-to-crash-if-only-not-on-a-specific-version-of-lezer-highlight/9638)

<div class="topic-metadata">

**Author:** [@ezntek](https://discuss.codemirror.net/u/ezntek)\
**Replies:** 1\
**Last updated:** [January 4, 2026, 4:55pm UTC](https://discuss.codemirror.net/t/syntax-highlighting-causes-codemirror-plugin-to-crash-if-only-not-on-a-specific-version-of-lezer-highlight/9638 "2026-01-04T16:55:31Z")

</div>

When I try to use any language plugin with CodeMirror (let’s say, Python), and load it in EditorState.create, no syntax highlighting actually happens. The plugin in the console simply says: CodeMirror plugin crashed: Ty…

---

## [Folding and widgets at the end of the fold range](https://discuss.codemirror.net/t/folding-and-widgets-at-the-end-of-the-fold-range/9630)

<div class="topic-metadata">

**Author:** [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)\
**Replies:** 2\
**Last updated:** [January 2, 2026, 3:30am UTC](https://discuss.codemirror.net/t/folding-and-widgets-at-the-end-of-the-fold-range/9630 "2026-01-02T03:30:27Z")

</div>

Hi! Just have a quick question. Is there a way to include end-of-range widgets to be hidden when folding? Or is foldedRanges something that should be checked when generating the decorations? Here, for example, the end-of…

---

## [CodeMirror Editon6 chinese character "；" Bug](https://discuss.codemirror.net/t/codemirror-editon6-chinese-character-bug/9637)

<div class="topic-metadata">

**Author:** [@st-ven200](https://discuss.codemirror.net/u/st-ven200)\
**Replies:** 1\
**Last updated:** [December 30, 2025, 4:51am UTC](https://discuss.codemirror.net/t/codemirror-editon6-chinese-character-bug/9637 "2025-12-30T04:51:54Z")

</div>

For example, enter the following text ；；； In; Creation;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; During the process of construction and destruction, ；；； ；； ；；； ；； ； ；；； \`\`\`ctrl Typing the C…

---

## [editor.setHistory(), clearHistory() equivalent in Codemirror #6](https://discuss.codemirror.net/t/editor-sethistory-clearhistory-equivalent-in-codemirror-6/6291)

<div class="topic-metadata">

**Author:** [@PuruVJ](https://discuss.codemirror.net/u/PuruVJ)\
**Replies:** 3\
**Last updated:** [December 29, 2025, 1:32pm UTC](https://discuss.codemirror.net/t/editor-sethistory-clearhistory-equivalent-in-codemirror-6/6291 "2025-12-29T13:32:14Z")

</div>

Hi! I am working on porting the Svelte REPL to Codemirror 6 (Currently CM5). We have many different files and tabs available there, and each file has its own undo-redo history. We store history of each file by calling e…

---

## [Placeholder line cursor.](https://discuss.codemirror.net/t/placeholder-line-cursor/4509)

<div class="topic-metadata">

**Author:** [@vugard](https://discuss.codemirror.net/u/vugard)\
**Replies:** 5\
**Last updated:** [December 29, 2025, 1:32pm UTC](https://discuss.codemirror.net/t/placeholder-line-cursor/4509 "2025-12-29T13:32:10Z")

</div>

Hello. This is my placeholder string placeholder = '{\\n\\t"param1": "value1",\\n\\t"param1": "value1"\\n}' Cursor takes whole lines.

---

## [Highlighting that seems ignored in CM6](https://discuss.codemirror.net/t/highlighting-that-seems-ignored-in-cm6/4320)

<div class="topic-metadata">

**Author:** [@crystalfp](https://discuss.codemirror.net/u/crystalfp)\
**Replies:** 25\
**Last updated:** [December 28, 2025, 9:45am UTC](https://discuss.codemirror.net/t/highlighting-that-seems-ignored-in-cm6/4320 "2025-12-28T09:45:10Z")

</div>

Has I said in another entry, switching to CM6 0.20 lost the highlight for markdown and yaml languages. The editor runs in Chrome on Windows in a Vue 3 application (if this matter). Before, under 0.19 the highlighting wa…

[Previous page](https://discuss.codemirror.net/latest.md?no_subcategories=false&page=2)

[Next page](https://discuss.codemirror.net/latest.md?no_subcategories=false&page=4)
