How to use the slate-history.withHistory function in slate-history

To help you get started, we’ve selected a few slate-history examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github compute-tooling / compute-studio / src / Simulation / editor.tsx View on Github external
    () => withLinks(withHistory(withReact(createEditor()))),
    []
github ianstormtaylor / slate / site / examples / markdown-preview.js View on Github external
  const editor = useMemo(() => withHistory(withReact(createEditor())), [])
  const decorate = useCallback(([node, path]) => {
github ianstormtaylor / slate / site / examples / plaintext.js View on Github external
  const editor = useMemo(() => withHistory(withReact(createEditor())), [])
  return (
github ianstormtaylor / slate / site / examples / links.js View on Github external
    () => withLinks(withHistory(withReact(createEditor()))),
    []
github ianstormtaylor / slate / site / examples / search-highlighting.js View on Github external
  const editor = useMemo(() => withHistory(withReact(createEditor())), [])
  const decorate = useCallback(
github ianstormtaylor / slate / site / examples / images.js View on Github external
    () => withImages(withHistory(withReact(createEditor()))),
    []
github ianstormtaylor / slate / site / examples / tables.js View on Github external
    () => withTables(withHistory(withReact(createEditor()))),
    []
github ianstormtaylor / slate / site / examples / forced-layout.js View on Github external
    () => withLayout(withHistory(withReact(createEditor()))),
    []
github ianstormtaylor / slate / site / examples / markdown-shortcuts.js View on Github external
    () => withShortcuts(withReact(withHistory(createEditor()))),
    []
github ianstormtaylor / slate / site / examples / hovering-toolbar.js View on Github external
  const editor = useMemo(() => withHistory(withReact(createEditor())), [])

slate-history

An operation-based history implementation for Slate editors.

MIT
Latest version published 2 months ago

Package Health Score

90 / 100
Full package analysis

Popular slate-history functions