mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 11:56:57 +08:00
Markdown-Editor-LineWrapping (#3908)
* Markdown-Editor-LineWrapping * added lineWrapping to js and css editors --------- Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect, useContext, FC } from 'react';
|
||||
import { Typography, Button } from 'antd';
|
||||
import CodeMirror from '@uiw/react-codemirror';
|
||||
import CodeMirror, { EditorView } from '@uiw/react-codemirror';
|
||||
import { bbedit } from '@uiw/codemirror-theme-bbedit';
|
||||
import { javascript } from '@codemirror/lang-javascript';
|
||||
|
||||
@ -98,7 +98,7 @@ export const EditCustomJavascript: FC = () => {
|
||||
placeholder="/* Enter custom Javascript here */"
|
||||
theme={bbedit}
|
||||
height="200px"
|
||||
extensions={[javascript()]}
|
||||
extensions={[javascript(), EditorView.lineWrapping]}
|
||||
onChange={onValueChange}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user