Add support for creating a new file
This commit is contained in:
parent
d75073116f
commit
e784218645
6 changed files with 116 additions and 23 deletions
|
@ -59,7 +59,7 @@ export interface Props {
|
|||
}
|
||||
|
||||
export default ({ style, initialContent, initialModePath, fetchContent, onContentSaved }: Props) => {
|
||||
const [ mode, setMode ] = useState('plain_text');
|
||||
const [ mode, setMode ] = useState('ace/mode/plain_text');
|
||||
|
||||
const [ editor, setEditor ] = useState<Editor>();
|
||||
const ref = useCallback(node => {
|
||||
|
|
Reference in a new issue