# Forcing a redraw within a command

**URL:** https://discuss.prosemirror.net/t/forcing-a-redraw-within-a-command/8868
**Category:** Uncategorized
**Created:** [November 25, 2025, 7:32pm UTC](https://discuss.prosemirror.net/t/forcing-a-redraw-within-a-command/8868 "2025-11-25T19:32:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bencahan](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/bencahan/32/4692_2.png) [@bencahan](https://discuss.prosemirror.net/u/bencahan)
#### Post date: [November 25, 2025, 7:32pm UTC](https://discuss.prosemirror.net/t/forcing-a-redraw-within-a-command/8868/1 "2025-11-25T19:32:34Z")

</div>

I have some Prose Mirror commands that change some cosmetic settings (such as changing the editor’s css theme, which would not by itself be a part of a transform), and within those commands I want to trigger a complete redraw of the DOM. Commands that trigger transforms would inherently cause the display to get updated, but without them I want to be able to have PM schedule a complete redraw of the browser contents so that the page gets updated with the new settings having been saved.

I clearly do not want the update to happen during the command execution, I just want to get it scheduled.

Should be simple, but not thinking of an immediate solution. Ideas?
