Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript public event for customizing codemirror instances #4639

Closed
ssddanbrown opened this issue Oct 31, 2023 · 0 comments
Closed

JavaScript public event for customizing codemirror instances #4639

ssddanbrown opened this issue Oct 31, 2023 · 0 comments

Comments

@ssddanbrown
Copy link
Member

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

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

No branches or pull requests

1 participant