Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
() => withLinks(withHistory(withReact(createEditor()))),
[]
const editor = useMemo(() => withHistory(withReact(createEditor())), [])
const decorate = useCallback(([node, path]) => {
const editor = useMemo(() => withHistory(withReact(createEditor())), [])
return (
() => withLinks(withHistory(withReact(createEditor()))),
[]
const editor = useMemo(() => withHistory(withReact(createEditor())), [])
const decorate = useCallback(
() => withImages(withHistory(withReact(createEditor()))),
[]
() => withTables(withHistory(withReact(createEditor()))),
[]
() => withLayout(withHistory(withReact(createEditor()))),
[]
() => withShortcuts(withReact(withHistory(createEditor()))),
[]
const editor = useMemo(() => withHistory(withReact(createEditor())), [])