import React from "react"; import styled from 'styled-components' import CharLimit from "../decorators/CharLimit"; import Editor from 'react-simple-code-editor'; import {Highlighter} from "../renderers/Code"; import {CodeLike, Hover} from "../Form/mixins"; const EditorWrapper = styled(Editor)` overflow: visible !important; & > * { padding: 0 !important; width: 100%; } & pre, & code, & > textarea { ${CodeLike} min-height: 40vh; } & > textarea { ${Hover} padding: 0.6em !important; z-index: 1; outline: none !important; } ` export const Code = ({content, id, readOnly, setContentCallback, ...props}) => { return (