GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Inline math source popup opens in a read-only editor · Issue #3291 · TypeCellOS/BlockNote

Inline math source popup opens in a read-only editor #3291

New issue
Copy link
New issue
Copy link
Open
#3293
Open
Inline math source popup opens in a read-only editor#3291
#3293
Copy link

Description

@AntoLC
AntoLC
opened on Nov 3, 2026
Issue body actions

What's broken?

In a read-only editor (editable: false), clicking an inline math equation opens its source popup (the LaTeX source and the "OK" button), although the preview click handler and open()/close() are already guarded by editor.isEditable.

The popup of inline content is open exactly while the selection is inside its source (isOpen: isSelected). SourceInlineContentWithPreviewExtension sets selected from onSelectionChange without checking editor.isEditable, and ProseMirror still moves the selection on click when the editor is not editable.

  • extension, onSelectionChange
  • hook, isOpen: isSelected

What did you expect to happen?

Nothing opens: the rendered equation stays as is and its source is not exposed.

Steps to reproduce

  1. Render an editor with editable: false and a document containing an inline math equation.
  2. Click the equation.

Suggested fix

Ignore the selection when the editor is not editable, either in the extension (selected: undefined when !editor.isEditable) or in the hook (isOpen: isSelected && editor.isEditable).

BlockNote version

Checked in the source of v0.56.0 and v0.57.0 (same code). Reproduced on 0.56.0.

Additional context

Reported downstream in Docs: suitenumerique/docs#2894
We work around it with CSS for now: .bn-editor:not([contenteditable='true']) .bn-source-block-popup { display: none; }

Activity

  1. nperez0111 commented on Nov 3, 2026

    @nperez0111
    nperez0111
    on Nov 3, 2026
    Contributor
    More actions

    Thanks @AntoLC we will fix this up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.