We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f128f78 commit cac2af7Copy full SHA for cac2af7
packages/react-renderer-demo/src/app/src/components/mdx/mdx-components.js
@@ -72,18 +72,20 @@ const MdxComponents = {
72
theme="tomorrow_night"
73
name="UNIQUE_ID_OF_DIV"
74
editorProps={{ $blockScrolling: true }}
75
- value={children}
+ value={children.replace(/\n+$/, '')}
76
fontSize={14}
77
maxLines={Infinity}
78
showPrintMargin={false}
79
- showGutter={true}
+ showGutter={false}
80
highlightActiveLine={false}
81
style={{ width: '80%', margin: 10 }}
82
setOptions={{
83
- showLineNumbers: true
+ showLineNumbers: false,
84
+ readOnly: true
85
}}
86
onLoad={(editor) => {
87
editor.getSession().setUseWorker(false);
88
+ editor.renderer.$cursorLayer.element.style.display = 'none';
89
90
/>
91
</div>
0 commit comments