custom markdown pages - basic concept

This commit is contained in:
Jan Prochazka
2020-12-10 15:12:19 +01:00
parent 7a0883ea03
commit 79ddbd439f
12 changed files with 201 additions and 11 deletions

View File

@@ -12,7 +12,8 @@ const Wrapper = styled.div`
bottom: 0;
`;
export default function JavaScriptEditor({
export default function GenericEditor({
mode,
value = undefined,
readOnly = false,
onChange = undefined,
@@ -52,7 +53,7 @@ export default function JavaScriptEditor({
<Wrapper ref={containerRef}>
<AceEditor
ref={currentEditorRef}
mode="javascript"
mode={mode}
theme={theme.aceEditorTheme}
onChange={onChange}
name="UNIQUE_ID_OF_DIV"