# Uncategorized

**URL:** https://discuss.prosemirror.net/c/uncategorized/1.md?page=3

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

**Page:** 4

---

## [Updating node attributes in a decoration widget plugin](https://discuss.prosemirror.net/t/updating-node-attributes-in-a-decoration-widget-plugin/8852)

<div class="topic-metadata">

**Author:** [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Replies:** 3\
**Last updated:** [November 13, 2025, 4:36pm UTC](https://discuss.prosemirror.net/t/updating-node-attributes-in-a-decoration-widget-plugin/8852 "2025-11-13T16:36:16Z")

</div>

I need to update node attributes within the apply function of a decoration widget plugin (in my case the node’s updated height), but I am wondering about the required process. I have the transform field from the app (ap…

---

## [Plugins when contenteditable false](https://discuss.prosemirror.net/t/plugins-when-contenteditable-false/8849)

<div class="topic-metadata">

**Author:** [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Replies:** 3\
**Last updated:** [November 13, 2025, 7:03am UTC](https://discuss.prosemirror.net/t/plugins-when-contenteditable-false/8849 "2025-11-13T07:03:55Z")

</div>

In implementing the tooltip example in my own code as a test, if I make the ProseMirror class non-editable (for now setting the contenteditable attr to false, although I know that is not the best solution), the tooltip d…

---

## [Getting node DOM rectangles in Decorations Plugin](https://discuss.prosemirror.net/t/getting-node-dom-rectangles-in-decorations-plugin/8851)

<div class="topic-metadata">

**Author:** [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Replies:** 5\
**Last updated:** [November 13, 2025, 12:08am UTC](https://discuss.prosemirror.net/t/getting-node-dom-rectangles-in-decorations-plugin/8851 "2025-11-13T00:08:38Z")

</div>

I am doing my best to find a workable strategy for finding DOM bounding rectangles for nodes within the apply function of a decorations plugin. I have no idea if the DOM itself has been updated prior to the apply functi…

---

## [Widget decoration duplication issue](https://discuss.prosemirror.net/t/widget-decoration-duplication-issue/8850)

<div class="topic-metadata">

**Author:** [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Replies:** 6\
**Last updated:** [November 12, 2025, 3:45pm UTC](https://discuss.prosemirror.net/t/widget-decoration-duplication-issue/8850 "2025-11-12T15:45:29Z")

</div>

In my code, I added a decoration plugin to insert widget decorations (not inline ones) to put some html into the DOM (such as a page break for pagination mimicry). But what happens is that on each click or character entr…

---

## [Positions as numbers is too error-prone](https://discuss.prosemirror.net/t/positions-as-numbers-is-too-error-prone/8808)

<div class="topic-metadata">

**Author:** [@TeemuKoivisto](https://discuss.prosemirror.net/u/TeemuKoivisto)\
**Replies:** 12\
**Last updated:** [November 12, 2025, 3:17pm UTC](https://discuss.prosemirror.net/t/positions-as-numbers-is-too-error-prone/8808 "2025-11-12T15:17:51Z")

</div>

There should be another way of passing positions than numbers within transactions. I can’t count how many times i have caused a bug when a change in tr.doc has caused the position to shift, thus the next use of the posi…

---

## [Responsivness improvements for rendering of a large set of decorations](https://discuss.prosemirror.net/t/responsivness-improvements-for-rendering-of-a-large-set-of-decorations/8834)

<div class="topic-metadata">

**Author:** [@MikeB1](https://discuss.prosemirror.net/u/MikeB1)\
**Replies:** 4\
**Last updated:** [November 11, 2025, 12:13pm UTC](https://discuss.prosemirror.net/t/responsivness-improvements-for-rendering-of-a-large-set-of-decorations/8834 "2025-11-11T12:13:51Z")

</div>

During the implementation of the search & replace functionality, similar to the Ctrl+F feature in many other text editors, I noticed that even a relatively small document (around 30 thousand characters) can become moment…

---

## [Editor selection error caused by Chinese input method deleted](https://discuss.prosemirror.net/t/editor-selection-error-caused-by-chinese-input-method-deleted/8842)

<div class="topic-metadata">

**Author:** [@1730995963](https://discuss.prosemirror.net/u/1730995963)\
**Replies:** 5\
**Last updated:** [November 11, 2025, 7:20am UTC](https://discuss.prosemirror.net/t/editor-selection-error-caused-by-chinese-input-method-deleted/8842 "2025-11-11T07:20:06Z")

</div>

In the client of Electron, opening the ProseMirror webpage may cause issues such as in GIF images, which may be due to the Chinese Pinyin not being in the editor during combined input. How can this be resolved. Browser k…

---

## [ProseMirror examples in Github?](https://discuss.prosemirror.net/t/prosemirror-examples-in-github/8848)

<div class="topic-metadata">

**Author:** [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Replies:** 2\
**Last updated:** [November 10, 2025, 1:22pm UTC](https://discuss.prosemirror.net/t/prosemirror-examples-in-github/8848 "2025-11-10T13:22:50Z")

</div>

It would be great if marjin or someone else could post github libraries with the examples from the PM website so we could learn the complete setup for the various lessons to be learned from each example. The example pag…

---

## [Getting the absolute position of nodes in the toDOM function](https://discuss.prosemirror.net/t/getting-the-absolute-position-of-nodes-in-the-todom-function/8847)

<div class="topic-metadata">

**Author:** [@bencahan](https://discuss.prosemirror.net/u/bencahan)\
**Replies:** 3\
**Last updated:** [November 10, 2025, 8:58am UTC](https://discuss.prosemirror.net/t/getting-the-absolute-position-of-nodes-in-the-todom-function/8847 "2025-11-10T08:58:45Z")

</div>

I am trying to get the position of a node within the toDOM function, in order to create my own pagination feature. I have the view in a variable that is accessible, can I get the node in question from the EditorView and…

---

## [Cannot distinguish paste vs. drag behavior in transformPasted](https://discuss.prosemirror.net/t/cannot-distinguish-paste-vs-drag-behavior-in-transformpasted/8844)

<div class="topic-metadata">

**Author:** [@zyh961117](https://discuss.prosemirror.net/u/zyh961117)\
**Replies:** 3\
**Last updated:** [November 7, 2025, 11:56am UTC](https://discuss.prosemirror.net/t/cannot-distinguish-paste-vs-drag-behavior-in-transformpasted/8844 "2025-11-07T11:56:09Z")

</div>

Hi Marijn, I’ve found that after updating to commit 90a8bfbf3989febaf83dee41b0c089385567a921, drop events now unexpectedly trigger transformPasted in my implementation. To handle this, I need to skip certain transformPa…

---

## [Decoration Mapping Issues After Inline Replacements](https://discuss.prosemirror.net/t/decoration-mapping-issues-after-inline-replacements/8824)

<div class="topic-metadata">

**Author:** [@haitu-philips](https://discuss.prosemirror.net/u/haitu-philips)\
**Replies:** 6\
**Last updated:** [November 5, 2025, 11:40am UTC](https://discuss.prosemirror.net/t/decoration-mapping-issues-after-inline-replacements/8824 "2025-11-05T11:40:28Z")

</div>

After a selection change, I see an extra step in my transaction, which is causing issues with decoration positioning. In the following HTML, I highlighted the "23": \<p\> \<strong\> \<span inputsource="AREA\_TYPED\_TEXT…

---

## [Finding a changed node](https://discuss.prosemirror.net/t/finding-a-changed-node/8833)

<div class="topic-metadata">

**Author:** [@duskox](https://discuss.prosemirror.net/u/duskox)\
**Replies:** 5\
**Last updated:** [November 3, 2025, 6:58pm UTC](https://discuss.prosemirror.net/t/finding-a-changed-node/8833 "2025-11-03T18:58:55Z")

</div>

Hi everyone, I have the following case: Text in my editor (TipTap) goes through processing and is returned to me with some custom tags/Marks around some word. Example: faultyword → faultyword This is a simplification …

---

## [Android + Decoration.inline + GBoard: Selection handles disappear during highlighting](https://discuss.prosemirror.net/t/android-decoration-inline-gboard-selection-handles-disappear-during-highlighting/8463)

<div class="topic-metadata">

**Author:** [@Playa](https://discuss.prosemirror.net/u/Playa)\
**Replies:** 4\
**Last updated:** [October 27, 2025, 7:24am UTC](https://discuss.prosemirror.net/t/android-decoration-inline-gboard-selection-handles-disappear-during-highlighting/8463 "2025-10-27T07:24:16Z")

</div>

Hi everyone! We’ve run into an issue using Decoration.inline on Android in combination with GBoard. The problem occurs when we try to highlight the user’s text selection by applying Decoration.inline to the selected ra…

---

## [How to calculate the changed ranges for transactions](https://discuss.prosemirror.net/t/how-to-calculate-the-changed-ranges-for-transactions/3771)

<div class="topic-metadata">

**Author:** [@philippkuehn](https://discuss.prosemirror.net/u/philippkuehn)\
**Replies:** 4\
**Last updated:** [October 24, 2025, 4:52am UTC](https://discuss.prosemirror.net/t/how-to-calculate-the-changed-ranges-for-transactions/3771 "2025-10-24T04:52:42Z")

</div>

I want to calculate the changed ranges for transactions (even with multiple steps). I’m aware of findDiffStart and findDiffEnd but that’s not enough if a change something at the start and end of the document within one …

---

## [Node extensions which matches the same content](https://discuss.prosemirror.net/t/node-extensions-which-matches-the-same-content/8821)

<div class="topic-metadata">

**Author:** [@jcigar](https://discuss.prosemirror.net/u/jcigar)\
**Replies:** 2\
**Last updated:** [October 2, 2025, 8:31am UTC](https://discuss.prosemirror.net/t/node-extensions-which-matches-the-same-content/8821 "2025-10-02T08:31:43Z")

</div>

Hello, I have a Tiptap-based project with two Node extensions which have a parseHTML that could match the same content: FlexItem extension export const FlexItem = Node.create({ name: 'flexItem', parseHTML() { …

---

## [Custom Node View Unexpectedly Destroyed and Recreated during Reconciliation](https://discuss.prosemirror.net/t/custom-node-view-unexpectedly-destroyed-and-recreated-during-reconciliation/4199)

<div class="topic-metadata">

**Author:** [@akallem](https://discuss.prosemirror.net/u/akallem)\
**Replies:** 15\
**Last updated:** [October 2, 2025, 7:29am UTC](https://discuss.prosemirror.net/t/custom-node-view-unexpectedly-destroyed-and-recreated-during-reconciliation/4199 "2025-10-02T07:29:37Z")

</div>

Summary I’m experiencing an issue where a custom node view is destroyed and recreated when certain edits occur in preceding nodes. I don’t have a self-contained sample reproduction yet, but I have identified the underly…

---

## [Enable cursor to go outside the inline node when clicked at the end/beginning](https://discuss.prosemirror.net/t/enable-cursor-to-go-outside-the-inline-node-when-clicked-at-the-end-beginning/1957)

<div class="topic-metadata">

**Author:** [@kshitizshankar](https://discuss.prosemirror.net/u/kshitizshankar)\
**Replies:** 2\
**Last updated:** [September 23, 2025, 2:49pm UTC](https://discuss.prosemirror.net/t/enable-cursor-to-go-outside-the-inline-node-when-clicked-at-the-end-beginning/1957 "2025-09-23T14:49:46Z")

</div>

How do I enable “Enter” key to create new line for the case where my whole paragraph contains an inline node? My document looks something like this - \<p\> \<span data-custom-id="123"\> some text here... \</sp…

---

## [Multiple events](https://discuss.prosemirror.net/t/multiple-events/8809)

<div class="topic-metadata">

**Author:** [@jcigar](https://discuss.prosemirror.net/u/jcigar)\
**Replies:** 5\
**Last updated:** [September 22, 2025, 12:00pm UTC](https://discuss.prosemirror.net/t/multiple-events/8809 "2025-09-22T12:00:09Z")

</div>

Hello, I have a (Video-like) plugin which render an iframe on which I’d like to prevent click on it if I’m in editable mode. My code looks like: renderHTML({node, HTMLAttributes}) { return \[ …

---

## [Where should \`draggable\` be set?](https://discuss.prosemirror.net/t/where-should-draggable-be-set/8806)

<div class="topic-metadata">

**Author:** [@tilgovi](https://discuss.prosemirror.net/u/tilgovi)\
**Replies:** 7\
**Last updated:** [September 19, 2025, 2:53pm UTC](https://discuss.prosemirror.net/t/where-should-draggable-be-set/8806 "2025-09-19T14:53:11Z")

</div>

I noticed that the static create for NodeViewDesc sets draggable on dom before outer deco is created (effectively nodeDOM). For nodes with contentDOM and no draggable attribute on their node spec, draggable gets managed …

---

## [Choosing a DOM rendering framework](https://discuss.prosemirror.net/t/choosing-a-dom-rendering-framework/4612)

<div class="topic-metadata">

**Author:** [@robpc](https://discuss.prosemirror.net/u/robpc)\
**Replies:** 4\
**Last updated:** [September 13, 2025, 2:48pm UTC](https://discuss.prosemirror.net/t/choosing-a-dom-rendering-framework/4612 "2025-09-13T14:48:41Z")

</div>

I have been researching ProseMirror for a few weeks now and I want to use it in a new project at my office. I was able to get a strong demo with the just the framework and I think it fits very well with our needs. I have…

---

## [Disruptive content "jumps" during collaboration](https://discuss.prosemirror.net/t/disruptive-content-jumps-during-collaboration/5703)

<div class="topic-metadata">

**Author:** [@patq](https://discuss.prosemirror.net/u/patq)\
**Replies:** 10\
**Last updated:** [September 11, 2025, 7:39am UTC](https://discuss.prosemirror.net/t/disruptive-content-jumps-during-collaboration/5703 "2025-09-11T07:39:10Z")

</div>

Problem: I have a collaborative editor using ProseMirror and YJS. When a peer (editor in a different tab) adds content to the top of the document, a user will experience, their content shifting lower in their viewport. I…

---

## [Cannot enter text on paragraphs after a custom node is added](https://discuss.prosemirror.net/t/cannot-enter-text-on-paragraphs-after-a-custom-node-is-added/8802)

<div class="topic-metadata">

**Author:** [@raphaelsantos](https://discuss.prosemirror.net/u/raphaelsantos)\
**Replies:** 0\
**Last updated:** [September 10, 2025, 9:25pm UTC](https://discuss.prosemirror.net/t/cannot-enter-text-on-paragraphs-after-a-custom-node-is-added/8802 "2025-09-10T21:25:16Z")

</div>

I have a number of atomic nodes that are “inline components” and they were working well for years. The original implementation dates from early 2020 and the prosemirror packages had not been updated since then. I starte…

---

## [Regarding the issue of inputting Chinese quotation marks](https://discuss.prosemirror.net/t/regarding-the-issue-of-inputting-chinese-quotation-marks/8793)

<div class="topic-metadata">

**Author:** [@yansylvan](https://discuss.prosemirror.net/u/yansylvan)\
**Replies:** 5\
**Last updated:** [September 9, 2025, 1:56pm UTC](https://discuss.prosemirror.net/t/regarding-the-issue-of-inputting-chinese-quotation-marks/8793 "2025-09-09T13:56:59Z")

</div>

Hello, I found that when I input English quotation marks, they still appear as Chinese quotation marks. Pressing backspace to delete them will turn them into Chinese quotation marks. I would like to know how to handle th…

---

## [Inline Atomic Node Selection Issues - MathLive Integration with draggable Property Conflict](https://discuss.prosemirror.net/t/inline-atomic-node-selection-issues-mathlive-integration-with-draggable-property-conflict/8547)

<div class="topic-metadata">

**Author:** [@ConsecrateHQ](https://discuss.prosemirror.net/u/ConsecrateHQ)\
**Replies:** 4\
**Last updated:** [September 4, 2025, 12:38pm UTC](https://discuss.prosemirror.net/t/inline-atomic-node-selection-issues-mathlive-integration-with-draggable-property-conflict/8547 "2025-09-04T12:38:08Z")

</div>

I’m working on integrating MathLive as inline atomic nodes in ProseMirror and running into a selection/caret placement conflict that I’d love some guidance on. Problem I have mathField nodes defined as inline atomic nod…

---

## [Double-tap SpaceKey selection bug (MAC)](https://discuss.prosemirror.net/t/double-tap-spacekey-selection-bug-mac/1138)

<div class="topic-metadata">

**Author:** [@jstleger0](https://discuss.prosemirror.net/u/jstleger0)\
**Replies:** 4\
**Last updated:** [September 4, 2025, 8:16am UTC](https://discuss.prosemirror.net/t/double-tap-spacekey-selection-bug-mac/1138 "2025-09-04T08:16:57Z")

</div>

Hey If you double tap the spacebar on mac the selection moves 2 spaces to the right and inserts a period. (This also happens in the ProseMirror demos) Is there a way to disable this? We have tried the following: A cu…

---

## [Handling async navigator.clipboard in handlePaste](https://discuss.prosemirror.net/t/handling-async-navigator-clipboard-in-handlepaste/8545)

<div class="topic-metadata">

**Author:** [@haitu-philips](https://discuss.prosemirror.net/u/haitu-philips)\
**Replies:** 2\
**Last updated:** [September 4, 2025, 6:35am UTC](https://discuss.prosemirror.net/t/handling-async-navigator-clipboard-in-handlepaste/8545 "2025-09-04T06:35:39Z")

</div>

hello. i have a plugin where inside the props-\> handleDOMEvents → handlePaste i have the following. handlePaste(view, event, slice) { fieldsPasteData = null; navigator.clipboard.read().then((clipboardItems) =\> { …

---

## [Is there a getting started guide?](https://discuss.prosemirror.net/t/is-there-a-getting-started-guide/8524)

<div class="topic-metadata">

**Author:** [@hallambaker](https://discuss.prosemirror.net/u/hallambaker)\
**Replies:** 3\
**Last updated:** [September 3, 2025, 6:47am UTC](https://discuss.prosemirror.net/t/is-there-a-getting-started-guide/8524 "2025-09-03T06:47:09Z")

</div>

I am trying to find a getting started guide so I can use ProseMirror in my MPlace2.social project. Found the responses to the other requests rather off-putting. I don’t think it insulting or rude to ask for basic informa…

---

## [Dragging whole Paragraphs leaves empty Paragraph](https://discuss.prosemirror.net/t/dragging-whole-paragraphs-leaves-empty-paragraph/8544)

<div class="topic-metadata">

**Author:** [@FlyingMonkey](https://discuss.prosemirror.net/u/FlyingMonkey)\
**Replies:** 1\
**Last updated:** [September 2, 2025, 2:36pm UTC](https://discuss.prosemirror.net/t/dragging-whole-paragraphs-leaves-empty-paragraph/8544 "2025-09-02T14:36:56Z")

</div>

Hey, I’m working on a project where I want to remove a paragraph if the whole content has been selected and moved (eg drag&drop). Currently an empty paragraph, with the standard break for later editing, remains but I wa…

---

## [Clipboard with custom mime](https://discuss.prosemirror.net/t/clipboard-with-custom-mime/8542)

<div class="topic-metadata">

**Author:** [@haitu-philips](https://discuss.prosemirror.net/u/haitu-philips)\
**Replies:** 1\
**Last updated:** [September 1, 2025, 3:50pm UTC](https://discuss.prosemirror.net/t/clipboard-with-custom-mime/8542 "2025-09-01T15:50:25Z")

</div>

hello. I am trying to simulate a copy paste from a popup we have in our product. We have a plugin where in the view part, we define an event lister for the ‘copy’ which sets data in the clipboardData with a custom mime…

---

## [ProseMirror with Shadow DOM: locating style-mod generated stylesheet](https://discuss.prosemirror.net/t/prosemirror-with-shadow-dom-locating-style-mod-generated-stylesheet/8538)

<div class="topic-metadata">

**Author:** [@Ammar](https://discuss.prosemirror.net/u/Ammar)\
**Replies:** 1\
**Last updated:** [August 29, 2025, 3:01pm UTC](https://discuss.prosemirror.net/t/prosemirror-with-shadow-dom-locating-style-mod-generated-stylesheet/8538 "2025-08-29T15:01:53Z")

</div>

I’m working with ProseMirror inside a Shadow DOM, and I noticed that the styles are injected via style-mod. When I inject a stylesheet using style-mod inside the shadow root, the styles are applied correctly. However, t…

[Previous page](https://discuss.prosemirror.net/c/uncategorized/1.md?page=2)

[Next page](https://discuss.prosemirror.net/c/uncategorized/1.md?page=4)
