JavaScript public event for customizing codemirror instances #4287

Closed
opened 2026-02-05 08:26:40 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ssddanbrown on GitHub (Nov 1, 2023).

Similar to existing event:
https://github.com/BookStackApp/BookStack/blob/development/dev/docs/javascript-public-events.md#library-cm6configure-theme

Right now, there's no way to access/customize CM instances since it's fairly deep in the code.
Would be nice to provide a point for high-level hackery.
Would also need to expose some CM objects.
Challenge may be in how it's visible whether an instance is the MD editor, settings option or a view-only block. Need to provide this context.

Enable code wrapping as an example: #3272

Originally created by @ssddanbrown on GitHub (Nov 1, 2023). Similar to existing event: https://github.com/BookStackApp/BookStack/blob/development/dev/docs/javascript-public-events.md#library-cm6configure-theme Right now, there's no way to access/customize CM instances since it's fairly deep in the code. Would be nice to provide a point for high-level hackery. Would also need to expose some CM objects. Challenge may be in how it's visible whether an instance is the MD editor, settings option or a view-only block. Need to provide this context. Enable code wrapping as an example: #3272
OVERLORD added the 🔨 Feature Request💻 Front-End labels 2026-02-05 08:26:40 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4287