marshall-y-slate
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

slate-yjs @worktile/y-slate

中文文档

Thank slate-yjs and @worktile/y-slate

USEAGE

npm i marshall-y-slate

then you can use it like slate-yjs-example

Code snippet

import { toSharedType, useCursors, withCursor, withYjs, withUndoManager } from 'marshall-y-slate';

withReact(withCursor(withUndoManager(withYjs(createEditor(), sharedType)), provider.awareness))

source:

modify:

  • /model/index.ts

    isCaret: boolean;
    
  • /plugin/use-cursors.ts use useCursors.ts in slate-yjs

Package Sidebar

Install

npm i marshall-y-slate

Weekly Downloads

7

Version

1.0.2

License

MIT

Unpacked Size

282 kB

Total Files

152

Last publish

Collaborators

  • marshallchang