Skip to content

JavaScript public event for customizing codemirror instances #4639

Description

@ssddanbrown

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions