ui: monaco: lazy load resources

This commit is contained in:
undefined committed 2022-01-09 02:25:45 +08:00
1 parent 538862de07
commit f020923d35
8 files changed
+57 -26

No files matched your search

@@ -18,10 +18,9 @@ export default function DataInputComponent(props) {
className="scratchpad__data-input"
style={{ overflowY: 'scroll' }}
wrap="off"
contentEditable
>
{/* eslint-disable-next-line react/no-danger */}
<pre dangerouslySetInnerHTML={{ __html: value }} />
<pre dangerouslySetInnerHTML={{ __html: value }} contentEditable />
</div>
) : (
<textarea