# Uncategorized

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

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

**Page:** 5

---

## [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…

---

## [Any experience with pm+vitest? ("Adding different instances of a keyed plugin")](https://discuss.prosemirror.net/t/any-experience-with-pm-vitest-adding-different-instances-of-a-keyed-plugin/4740)

<div class="topic-metadata">

**Author:** [@tslocke](https://discuss.prosemirror.net/u/tslocke)\
**Replies:** 3\
**Last updated:** [August 14, 2025, 1:44pm UTC](https://discuss.prosemirror.net/t/any-experience-with-pm-vitest-adding-different-instances-of-a-keyed-plugin/4740 "2025-08-14T13:44:11Z")

</div>

Anyone using vitest? (it runs my test suite /dramatically/ faster, btw) On my first test run, I get a bunch of failures with the PM error “Adding different instances of a keyed plugin”. Oddly, if I re-run the tests they…

---

## [Filter pasted nodes](https://discuss.prosemirror.net/t/filter-pasted-nodes/8517)

<div class="topic-metadata">

**Author:** [@mejo](https://discuss.prosemirror.net/u/mejo)\
**Replies:** 3\
**Last updated:** [August 14, 2025, 9:44am UTC](https://discuss.prosemirror.net/t/filter-pasted-nodes/8517 "2025-08-14T09:44:30Z")

</div>

Dear community, our TableCell node has a hardcoded list of node types it supports as children (text, paragraph, lists, code blocks and images). Now I want to make sure that pasting to the cell doesn’t break the table, …

---

## ["Hydrating" large amount of prosemirror editors](https://discuss.prosemirror.net/t/hydrating-large-amount-of-prosemirror-editors/8515)

<div class="topic-metadata">

**Author:** [@elyalon](https://discuss.prosemirror.net/u/elyalon)\
**Replies:** 0\
**Last updated:** [August 12, 2025, 1:12pm UTC](https://discuss.prosemirror.net/t/hydrating-large-amount-of-prosemirror-editors/8515 "2025-08-12T13:12:56Z")

</div>

I’m making a note-taking / todo application, and I need to be able to have thousands of PM editors in a list. I really don’t want to mess around with virtualization, and I’d really like the DOM to stay unchanged when sc…

---

## [Can widget decorations be influenced by EditorView props?](https://discuss.prosemirror.net/t/can-widget-decorations-be-influenced-by-editorview-props/8510)

<div class="topic-metadata">

**Author:** [@sch](https://discuss.prosemirror.net/u/sch)\
**Replies:** 10\
**Last updated:** [August 11, 2025, 2:51pm UTC](https://discuss.prosemirror.net/t/can-widget-decorations-be-influenced-by-editorview-props/8510 "2025-08-11T14:51:21Z")

</div>

One roadblock I find myself running into pretty frequently is making state outside of a ProseMirror document or plugin available to the view. Using EditorView#setProps works for a lot of cases where we need to trigger an…

---

## [Potential Issue with transform.map in Table Operations](https://discuss.prosemirror.net/t/potential-issue-with-transform-map-in-table-operations/8511)

<div class="topic-metadata">

**Author:** [@zyh961117](https://discuss.prosemirror.net/u/zyh961117)\
**Replies:** 5\
**Last updated:** [August 6, 2025, 9:33pm UTC](https://discuss.prosemirror.net/t/potential-issue-with-transform-map-in-table-operations/8511 "2025-08-06T21:33:59Z")

</div>

Hi Marijn, I’ve encountered what appears to be an issue with transform.map during table operations. Here’s a minimal reproduction: Scenario: Initial document contains a table with two cells Client X performs: Adjusts…

---

## [Need some clarification regarding the getPos() function of a custom view](https://discuss.prosemirror.net/t/need-some-clarification-regarding-the-getpos-function-of-a-custom-view/8512)

<div class="topic-metadata">

**Author:** [@shi-yan](https://discuss.prosemirror.net/u/shi-yan)\
**Replies:** 3\
**Last updated:** [August 6, 2025, 11:36am UTC](https://discuss.prosemirror.net/t/need-some-clarification-regarding-the-getpos-function-of-a-custom-view/8512 "2025-08-06T11:36:46Z")

</div>

Hello, I’m implementing a custom view, but I’m not sure about the behavior of the getPos() function. The document (ProseMirror Guide) doesn’t seem to mention its details. As we know, a node can span multiple positions. …

---

## [Cursor Position Issue During Chinese Text Composition](https://discuss.prosemirror.net/t/cursor-position-issue-during-chinese-text-composition/8503)

<div class="topic-metadata">

**Author:** [@zyh961117](https://discuss.prosemirror.net/u/zyh961117)\
**Replies:** 4\
**Last updated:** [July 28, 2025, 7:10am UTC](https://discuss.prosemirror.net/t/cursor-position-issue-during-chinese-text-composition/8503 "2025-07-28T07:10:41Z")

</div>

Hello! Here’s my demo editor, modified from prosemirror-example-setup, I’ve added a color markSpec import {EditorState} from "prosemirror-state" import {EditorView} from "prosemirror-view" import {Schema, DOMParser} fr…

---

## [Can I make a decoration have a higher rank than a mark in HTML?](https://discuss.prosemirror.net/t/can-i-make-a-decoration-have-a-higher-rank-than-a-mark-in-html/6106)

<div class="topic-metadata">

**Author:** [@kkshinkai](https://discuss.prosemirror.net/u/kkshinkai)\
**Replies:** 5\
**Last updated:** [July 25, 2025, 10:24pm UTC](https://discuss.prosemirror.net/t/can-i-make-a-decoration-have-a-higher-rank-than-a-mark-in-html/6106 "2025-07-25T22:24:04Z")

</div>

I hope my decoration can wrap around my mark during rendering. For example, I want \<span class="my-decoration"\>\<code\>text\</code\>\<span\>, not \<code\>\<span class="my-decoration"\>text\</span\>\</code\>. After reading other discu…

---

## [How to add "Paste-Behaviors" like in Word](https://discuss.prosemirror.net/t/how-to-add-paste-behaviors-like-in-word/8505)

<div class="topic-metadata">

**Author:** [@spaceemotion](https://discuss.prosemirror.net/u/spaceemotion)\
**Replies:** 3\
**Last updated:** [July 25, 2025, 3:21pm UTC](https://discuss.prosemirror.net/t/how-to-add-paste-behaviors-like-in-word/8505 "2025-07-25T15:21:45Z")

</div>

This came up with many customer requests, and as everyone wants different things, pasting becomes a bit of a “how do we do things” question. In Word, Microsoft solves the issue of “when pasting, do we match formatting, …

---

## [Challenges with Using prosemirror-schema-list](https://discuss.prosemirror.net/t/challenges-with-using-prosemirror-schema-list/5848)

<div class="topic-metadata">

**Author:** [@lovepk](https://discuss.prosemirror.net/u/lovepk)\
**Replies:** 7\
**Last updated:** [July 19, 2025, 8:02pm UTC](https://discuss.prosemirror.net/t/challenges-with-using-prosemirror-schema-list/5848 "2025-07-19T20:02:00Z")

</div>

When I use prosemirror-schema-list, the generated list structure always wraps \<li\> with \<p\> tags. I want the generated list structure to have \<li\> directly containing inline elements. Is there any way to achieve this? I…

---

## [plugin.handleClick pos is incorrect when click on merged cell](https://discuss.prosemirror.net/t/plugin-handleclick-pos-is-incorrect-when-click-on-merged-cell/8487)

<div class="topic-metadata">

**Author:** [@zyh961117](https://discuss.prosemirror.net/u/zyh961117)\
**Replies:** 3\
**Last updated:** [July 18, 2025, 11:57am UTC](https://discuss.prosemirror.net/t/plugin-handleclick-pos-is-incorrect-when-click-on-merged-cell/8487 "2025-07-18T11:57:52Z")

</div>

Here is my demo – a table with two merged cells, each containing only one paragraph: The position atfer the text “2” is 10. However when I click on the red area: The plugin.handleClick pos is 18 (atfer the table\_row),…

---

## ["new Transform" with leaf text node](https://discuss.prosemirror.net/t/new-transform-with-leaf-text-node/8488)

<div class="topic-metadata">

**Author:** [@ViktorVaczi](https://discuss.prosemirror.net/u/ViktorVaczi)\
**Replies:** 1\
**Last updated:** [July 18, 2025, 11:34am UTC](https://discuss.prosemirror.net/t/new-transform-with-leaf-text-node/8488 "2025-07-18T11:34:20Z")

</div>

Background: I’m working on improving / fixing bugs in prosemirror-suggest-changes. This is the Slice we’re working with: { "content": \[ { "type": "text", "marks": \[ { "type": "em" …

---

## [Tr.mapping.map value incorrect after replacing content at differing depths](https://discuss.prosemirror.net/t/tr-mapping-map-value-incorrect-after-replacing-content-at-differing-depths/6039)

<div class="topic-metadata">

**Author:** [@prosed](https://discuss.prosemirror.net/u/prosed)\
**Replies:** 4\
**Last updated:** [July 16, 2025, 11:44pm UTC](https://discuss.prosemirror.net/t/tr-mapping-map-value-incorrect-after-replacing-content-at-differing-depths/6039 "2025-07-16T23:44:45Z")

</div>

If I slice content from depth 2 and place it at depth 1 using tr.replace(...) I’m finding that I can’t then rely on tr.mapping.map(from) to provide a proper result. It adds positions equal to the size of the replace cont…

---

## [Pasting Bullet-List from Word](https://discuss.prosemirror.net/t/pasting-bullet-list-from-word/3505)

<div class="topic-metadata">

**Author:** [@OBVIOUSLY](https://discuss.prosemirror.net/u/OBVIOUSLY)\
**Replies:** 2\
**Last updated:** [July 14, 2025, 6:49am UTC](https://discuss.prosemirror.net/t/pasting-bullet-list-from-word/3505 "2025-07-14T06:49:02Z")

</div>

Hi all, is there a way to handle the paste of a bullet list from Word, such that it creates a corresponding list which list items? At the Moment paragraphs with dots as first character are created. I don’t fully underst…

---

## [baseKeymap Backspace inserts new lines instead of merging paragraphs](https://discuss.prosemirror.net/t/basekeymap-backspace-inserts-new-lines-instead-of-merging-paragraphs/8476)

<div class="topic-metadata">

**Author:** [@Playa](https://discuss.prosemirror.net/u/Playa)\
**Replies:** 5\
**Last updated:** [July 10, 2025, 7:41am UTC](https://discuss.prosemirror.net/t/basekeymap-backspace-inserts-new-lines-instead-of-merging-paragraphs/8476 "2025-07-10T07:41:50Z")

</div>

Hello Marijn! I’ve encountered a problem related to Backspace behavior on Android mobile devices when using any on-screen keyboard. When deleting at the start of a line (where a paragraph should normally merge with the …

---

## [How to set the initial text content of a text box through a plugin](https://discuss.prosemirror.net/t/how-to-set-the-initial-text-content-of-a-text-box-through-a-plugin/8481)

<div class="topic-metadata">

**Author:** [@runtianchen](https://discuss.prosemirror.net/u/runtianchen)\
**Replies:** 1\
**Last updated:** [July 9, 2025, 11:23am UTC](https://discuss.prosemirror.net/t/how-to-set-the-initial-text-content-of-a-text-box-through-a-plugin/8481 "2025-07-09T11:23:18Z")

</div>

The official tutorial shows how to set the initial text content of a text box by setting the doc property when creating an EditState. let content = document.getElementById("content") let view = new EditorView(document.b…

---

## [Prosemirror Table with strict schema and copy paste](https://discuss.prosemirror.net/t/prosemirror-table-with-strict-schema-and-copy-paste/8473)

<div class="topic-metadata">

**Author:** [@Mati](https://discuss.prosemirror.net/u/Mati)\
**Replies:** 1\
**Last updated:** [July 7, 2025, 9:49am UTC](https://discuss.prosemirror.net/t/prosemirror-table-with-strict-schema-and-copy-paste/8473 "2025-07-07T09:49:43Z")

</div>

Hello! I’m trying to achieve a table with more stricter schema, ie to have a specific types of nodes in column’s cell. Approach that I have taken was to extend the schema of existing tableNodes to add different kinds o…

---

## [Android Gboard undo mangles contents in certain cases](https://discuss.prosemirror.net/t/android-gboard-undo-mangles-contents-in-certain-cases/8427)

<div class="topic-metadata">

**Author:** [@prosed](https://discuss.prosemirror.net/u/prosed)\
**Replies:** 3\
**Last updated:** [June 27, 2025, 8:13pm UTC](https://discuss.prosemirror.net/t/android-gboard-undo-mangles-contents-in-certain-cases/8427 "2025-06-27T20:13:09Z")

</div>

I’m just wondering if this is known or not and if there’s anything that can theoretically be done to remedy this? I had thought this worked when I did some brief testing several weeks back. I’m not sure if my testing wa…

---

## [How to set custom class to a prosemirror plugin on focused state only](https://discuss.prosemirror.net/t/how-to-set-custom-class-to-a-prosemirror-plugin-on-focused-state-only/8465)

<div class="topic-metadata">

**Author:** [@qubydev](https://discuss.prosemirror.net/u/qubydev)\
**Replies:** 5\
**Last updated:** [June 26, 2025, 12:01pm UTC](https://discuss.prosemirror.net/t/how-to-set-custom-class-to-a-prosemirror-plugin-on-focused-state-only/8465 "2025-06-26T12:01:35Z")

</div>

How to set custom class to a prosemirror plugin on focused state only ? I am using tiptap.dev for creating a custom Mark extension. Now I need to have a class in my custom extension only when it is focused. How to achie…

---

## [Run multiple commands in sequence](https://discuss.prosemirror.net/t/run-multiple-commands-in-sequence/1518)

<div class="topic-metadata">

**Author:** [@philippkuehn](https://discuss.prosemirror.net/u/philippkuehn)\
**Replies:** 11\
**Last updated:** [June 26, 2025, 12:40am UTC](https://discuss.prosemirror.net/t/run-multiple-commands-in-sequence/1518 "2025-06-26T00:40:34Z")

</div>

Is it possible to run multiple commands in sequence? First I thought chainCommands is the solution but this function does another job.

---

## [Prevent deletion](https://discuss.prosemirror.net/t/prevent-deletion/8462)

<div class="topic-metadata">

**Author:** [@jcigar](https://discuss.prosemirror.net/u/jcigar)\
**Replies:** 3\
**Last updated:** [June 24, 2025, 7:19am UTC](https://discuss.prosemirror.net/t/prevent-deletion/8462 "2025-06-24T07:19:24Z")

</div>

Hello, I was wondering what is the best way to prevent deletion of specific node types …? Currently I’m using a filterTransaction plugin with something like: addProseMirrorPlugins() { return \[ n…

---

## [Tables: splitCell command](https://discuss.prosemirror.net/t/tables-splitcell-command/8460)

<div class="topic-metadata">

**Author:** [@artemnistuley](https://discuss.prosemirror.net/u/artemnistuley)\
**Replies:** 1\
**Last updated:** [June 19, 2025, 11:06am UTC](https://discuss.prosemirror.net/t/tables-splitcell-command/8460 "2025-06-19T11:06:10Z")

</div>

The splitCell command only works for table cells with colspan greater than one. Is there a way to make this command work for cells with colspan equal to 1? Like in Word, so that the cell is split into smaller ones.

---

## [view.endOfTextblock("up") returns false when has image node in paragraph node](https://discuss.prosemirror.net/t/view-endoftextblock-up-returns-false-when-has-image-node-in-paragraph-node/8457)

<div class="topic-metadata">

**Author:** [@Xiaoooyooo](https://discuss.prosemirror.net/u/Xiaoooyooo)\
**Replies:** 9\
**Last updated:** [June 18, 2025, 6:32am UTC](https://discuss.prosemirror.net/t/view-endoftextblock-up-returns-false-when-has-image-node-in-paragraph-node/8457 "2025-06-18T06:32:39Z")

</div>

In some cases, I want to use a custom way to control the behavior of arrow key pressing, but when there is an image node in a paragraph node, view.endOfTextblock("up") does not work as I expected. Is there any other way …

---

## [\[Question\] Keep left top fixed when resizing editor](https://discuss.prosemirror.net/t/question-keep-left-top-fixed-when-resizing-editor/8459)

<div class="topic-metadata">

**Author:** [@asking4friend](https://discuss.prosemirror.net/u/asking4friend)\
**Replies:** 1\
**Last updated:** [June 16, 2025, 8:44pm UTC](https://discuss.prosemirror.net/t/question-keep-left-top-fixed-when-resizing-editor/8459 "2025-06-16T20:44:22Z")

</div>

When I resize the browser window, I want prevent the text on the left top from shifting. I have tried some tricks like get the pos and scroll to pos again after resizing, but it doesn’t appears right. Any suggestions? L…

---

## [Example with html](https://discuss.prosemirror.net/t/example-with-html/8453)

<div class="topic-metadata">

**Author:** [@slim2k](https://discuss.prosemirror.net/u/slim2k)\
**Replies:** 4\
**Last updated:** [June 15, 2025, 3:23pm UTC](https://discuss.prosemirror.net/t/example-with-html/8453 "2025-06-15T15:23:31Z")

</div>

Can you please directly me to the code for the “examples”? I’m trying to integrate Prose into an existing component and it would be very helpful to see the full html and JavaScript in the example. Thank you..

---

## [Is there any way using keymap when 'editable' of the view is false](https://discuss.prosemirror.net/t/is-there-any-way-using-keymap-when-editable-of-the-view-is-false/3317)

<div class="topic-metadata">

**Author:** [@zlv-thisF](https://discuss.prosemirror.net/u/zlv-thisF)\
**Replies:** 5\
**Last updated:** [June 12, 2025, 8:29am UTC](https://discuss.prosemirror.net/t/is-there-any-way-using-keymap-when-editable-of-the-view-is-false/3317 "2025-06-12T08:29:48Z")

</div>

hey, guys! I have checked the soucecode, seems key events only works when editorView’s editable is true. However I would like to keep the ‘Mod-A’ shortcut to select the document in readonly mode (editable: false) just…

---

## [Optimizing ProseMirror Custom Style Plugin for Large Documents](https://discuss.prosemirror.net/t/optimizing-prosemirror-custom-style-plugin-for-large-documents/8252)

<div class="topic-metadata">

**Author:** [@ashfaq.b.s](https://discuss.prosemirror.net/u/ashfaq.b.s)\
**Replies:** 1\
**Last updated:** [June 5, 2025, 2:46pm UTC](https://discuss.prosemirror.net/t/optimizing-prosemirror-custom-style-plugin-for-large-documents/8252 "2025-06-05T14:46:05Z")

</div>

Our current ProseMirror editor uses a custom style plugin that manages all style properties and related marks. Each mark includes an ‘override’ flag, allowing users to apply specific style attributes independently. For e…

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

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