You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Problem
When I use the code block component codeBlockComponent and the code content is too long, the class .cm-gap hides part of the code block content.
This seems to be a configurable option for the CodeMirror editor, but how can I configure the codeBlockComponent to display the full content of the code block, so that no matter how much content there is, the cm-gap does not hide any content?
Solution
The codeBlockConfig exposes configurable options.
Alternatives
null
The text was updated successfully, but these errors were encountered:
I've already exposed the codeBlockConfig.extensions from code mirror, could you please describe more precisely about how you want to configure codemirror?
https://discuss.codemirror.net/t/improve-scroll-performance-tradeoff/8825
From the above link, it seems that due to performance reasons, the new CodeMirror editor does not provide configuration options. The documentation I looked at some time ago for the older version seemed to offer configurable options, which is a bit awkward now. 😅
Since I want to obtain complete HTML DOM elements after editing multiple lengthy code blocks and display them on a webpage, if class ''.cm-gap'' hides some actual DOM elements, it will not be possible to get the complete HTML.
Initial checklist
Problem
When I use the code block component codeBlockComponent and the code content is too long, the class .cm-gap hides part of the code block content.
This seems to be a configurable option for the CodeMirror editor, but how can I configure the codeBlockComponent to display the full content of the code block, so that no matter how much content there is, the cm-gap does not hide any content?
Solution
The codeBlockConfig exposes configurable options.
Alternatives
null
The text was updated successfully, but these errors were encountered: