Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/editablejs/editable
/ functions
Functions
1,380 in github.com/editablejs/editable
⨍
Functions
1,380
◇
Types & classes
479
↓ 215 callers
Method
get
(query: T)
packages/yjs-websocket/src/server/mongodb/adapter.ts:42
↓ 96 callers
Function
createEditor
()
packages/models/src/interfaces/editor.ts:221
↓ 70 callers
Function
withEditor
( editor: Editor, transform: TextSerializerWithTransform<T>, options: T, )
packages/serializer/src/text.ts:39
↓ 63 callers
Method
on
(type: string | number, listener: Listener, prepend = false)
packages/editor/src/plugin/emitter.ts:56
↓ 45 callers
Function
create
(key: string)
packages/editor/src/utils/hotkeys.ts:64
↓ 45 callers
Method
off
(type: string | number, listener: Listener)
packages/editor/src/plugin/emitter.ts:94
↓ 42 callers
Method
emit
(type: string | number, ...args: any[])
packages/editor/src/plugin/emitter.ts:41
↓ 39 callers
Function
useEditableStatic
()
packages/editor/src/hooks/use-editable.tsx:31
↓ 31 callers
Function
composeEventHandlers
( originalEventHandler?: (event: E) => void, ourEventHandler?: (event: E) => void, { checkForDefaultPrev
packages/ui/src/utils.ts:4
↓ 30 callers
Method
focus
(start?: boolean)
packages/editor/src/plugin/editable.ts:135
↓ 27 callers
Function
setOpen
(editor: Editor, open: boolean)
packages/plugins/mention/src/store.ts:29
↓ 21 callers
Function
useComposedRefs
* A custom hook that composes multiple refs * Accepts callback refs and RefObject(s)
packages/ui/src/compose-refs.ts:29
↓ 19 callers
Function
isDOMHTMLElement
(value: any)
packages/models/src/utils/dom.ts:46
↓ 19 callers
Function
send
(doc: WSSharedDocInterface, conn: WebSocket.WebSocket, m: Uint8Array)
packages/yjs-websocket/src/server/utils.ts:267
↓ 16 callers
Function
useCallbackRef
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a * prop or avoid re-executing effects when passed as
packages/ui/src/hooks/use-callback-ref.ts:7
↓ 15 callers
Function
withEditorPlugin
(editor: Editor, plugin: MarkdownSerializerPlugin)
packages/serializer/src/markdown.ts:102
↓ 12 callers
Function
String
packages/editor/src/components/string.tsx:22
↓ 12 callers
Function
getYTarget
(yRoot: Y.XmlText, editorRoot: Node, path: Path)
packages/yjs-transform/src/location.ts:20
↓ 12 callers
Function
isDOMElement
(value: any)
packages/models/src/utils/dom.ts:42
↓ 12 callers
Function
useScrollAreaContext
()
packages/ui/src/scroll-area.tsx:51
↓ 11 callers
Function
create
(children: Descendant[])
packages/plugins/blockquote/src/interfaces/blockquote.ts:13
↓ 11 callers
Function
onChange
(checked: boolean)
packages/plugins/list/src/task/plugin/with-task-list.tsx:120
↓ 11 callers
Function
withHistoryProtocol
(editor: Editor)
packages/protocols/src/history.ts:52
↓ 10 callers
Function
classNameToken
(name: string)
apps/docs/src/components/mdx/code-block/code-block.tsx:226
↓ 10 callers
Function
getCharFromGraphemeBreaker
(text: string, offset: number, backward = false)
packages/editor/src/utils/text.ts:10
↓ 10 callers
Function
useLocale
( componentName: T, defaultLocale?: L[T] | (() => L[T]), )
packages/editor/src/hooks/use-locale.ts:18
↓ 10 callers
Function
useReadOnly
()
packages/editor/src/hooks/use-read-only.ts:23
↓ 9 callers
Method
toJSON
()
packages/plugins/codeblock/src/plugin/yjs/range.ts:6
↓ 9 callers
Method
update
(_: ViewUpdate)
packages/plugins/codeblock/src/plugin/yjs/extension.ts:102
↓ 9 callers
Function
yTextToInsertDelta
(yText: Y.XmlText)
packages/yjs-transform/src/delta.ts:35
↓ 8 callers
Function
generateRandomKey
()
packages/models/src/utils/key.ts:20
↓ 8 callers
Function
getCapturedData
(editor: Editable)
packages/plugins/toolbar/src/side/weak-map.ts:14
↓ 8 callers
Function
getProperties
( node: TNode, )
packages/yjs-transform/src/editable.ts:4
↓ 8 callers
Method
getStates
()
packages/yjs-protocols/src/awareness.ts:145
↓ 8 callers
Method
onOpenChange
(open: boolean)
packages/ui/src/menu.tsx:61
↓ 8 callers
Function
useNodeFocused
()
packages/editor/src/hooks/use-node-focused.ts:8
↓ 8 callers
Function
usePopoverContext
()
packages/ui/src/popover.tsx:33
↓ 8 callers
Function
withProviderProtocol
(editor: Editor)
packages/protocols/src/provider.ts:55
↓ 7 callers
Function
fn
(data)
packages/ui/src/popper.tsx:423
↓ 7 callers
Function
nextBreak
(string: string, index = 0)
packages/breaker/src/index.ts:181
↓ 7 callers
Function
onSelect
()
apps/docs/src/configs/context-menu-items.tsx:24
↓ 7 callers
Method
redo
()
packages/plugins/codeblock/src/plugin/yjs/undomanager.ts:28
↓ 7 callers
Function
setOpen
(editor: Editable, open: boolean)
packages/plugins/toolbar/src/inline/store.ts:78
↓ 7 callers
Method
undo
()
packages/plugins/codeblock/src/plugin/yjs/undomanager.ts:24
↓ 7 callers
Function
yOffsetToEditorOffsets
( parent: Element, yOffset: number, opts: { assoc?: number; insert?: boolean } = {}, )
packages/yjs-transform/src/location.ts:61
↓ 6 callers
Function
assertDocumentAttachment
( sharedType: T, )
packages/yjs-transform/src/yjs.ts:3
↓ 6 callers
Method
close
* Close connection to MongoDB instance.
packages/yjs-websocket/src/server/mongodb/adapter.ts:76
↓ 6 callers
Function
closeConn
(doc: WSSharedDocInterface, conn: WebSocket.WebSocket)
packages/yjs-websocket/src/server/utils.ts:250
↓ 6 callers
Function
closeMentionDecorate
(editor: Editor)
packages/plugins/mention/src/utils.ts:5
↓ 6 callers
Function
closeSlashDecorate
(editor: Editor)
packages/plugins/toolbar/src/slash/utils.ts:5
↓ 6 callers
Method
connect
()
packages/yjs-websocket/src/index.ts:564
↓ 6 callers
Method
disconnect
()
packages/yjs-websocket/src/index.ts:556
↓ 6 callers
Method
getLocalState
()
packages/yjs-protocols/src/awareness.ts:95
↓ 6 callers
Function
getViewer
(editor: Editable)
packages/plugins/image/src/create-viewer.tsx:88
↓ 6 callers
Function
handleSelect
(color: string, isClose = true)
packages/ui/src/color-picker/index.tsx:79
↓ 6 callers
Function
isDOMNode
(value: any)
packages/models/src/utils/dom.ts:55
↓ 6 callers
Function
isDOMText
(value: any)
packages/models/src/utils/dom.ts:73
↓ 6 callers
Function
isEditableDOMElement
(value: any)
packages/editor/src/utils/dom.ts:112
↓ 6 callers
Function
patch
(context, key, value)
apps/docs/plugins/remark-header-custom-ids.js:12
↓ 6 callers
Function
previousBreak
(string: string, index = string.length)
packages/breaker/src/index.ts:206
↓ 6 callers
Function
setLineIndent
(editor: Editor, blockEntry: NodeEntry<Indent>, size: number)
packages/plugins/indent/src/utils.ts:16
↓ 6 callers
Function
useMenuContext
()
packages/ui/src/menu.tsx:46
↓ 6 callers
Function
useResizeObserver
(element: HTMLElement | null, onResize: () => void)
packages/ui/src/scroll-area.tsx:1056
↓ 5 callers
Method
collection
(name: string)
packages/yjs-websocket/src/server/mongodb/adapter.ts:37
↓ 5 callers
Function
equalOfCharacterType
(char: string, other: string)
packages/editor/src/utils/text.ts:72
↓ 5 callers
Function
getEditorNodeYLength
(node: Node | undefined)
packages/yjs-transform/src/location.ts:6
↓ 5 callers
Function
getViewerStore
(editor: Editor)
packages/plugins/image/src/store/viewer.ts:10
↓ 5 callers
Function
handleChange
()
packages/editor/src/components/content.tsx:483
↓ 5 callers
Function
match
(n: Node)
packages/models/src/interfaces/list.ts:100
↓ 5 callers
Method
setLocalState
(state: Record<string, any> | null)
packages/yjs-protocols/src/awareness.ts:99
↓ 5 callers
Method
toRects
()
packages/plugins/codeblock/src/plugin/yjs/remote-selecton.ts:62
↓ 5 callers
Function
useDragStore
()
packages/editor/src/hooks/use-drag.ts:6
↓ 5 callers
Function
useExtension
( view: EditorView | null, extensionCreator: () => Extension, deps: any[], )
packages/plugins/codeblock/src/hooks/use-extension.ts:5
↓ 5 callers
Function
useSelectionDrawingRects
()
packages/editor/src/hooks/use-selection-drawing.ts:25
↓ 5 callers
Function
useSelectionDrawingSelection
()
packages/editor/src/hooks/use-selection-drawing.ts:20
↓ 5 callers
Function
whenMouse
(handler: React.PointerEventHandler<E>)
packages/ui/src/menu.tsx:1004
↓ 4 callers
Function
addToElements
(node: Node)
packages/editor/src/plugin/editable.ts:532
↓ 4 callers
Function
breaks
(str: string)
packages/breaker/src/index.ts:244
↓ 4 callers
Function
broadcastMessage
(provider: WebsocketProvider, buf: ArrayBuffer)
packages/yjs-websocket/src/index.ts:207
↓ 4 callers
Function
cloneInsertDeltaDeep
(delta: InsertDelta)
packages/yjs-transform/src/clone.ts:5
↓ 4 callers
Function
composeRefs
* A utility to compose multiple refs together * Accepts callback refs and RefObject(s)
packages/ui/src/compose-refs.ts:21
↓ 4 callers
Method
copy
(range?: Range)
packages/editor/src/plugin/editable.ts:136
↓ 4 callers
Function
editorRangeToRelativeRange
( sharedRoot: Y.XmlText, editorRoot: Node, range: BaseRange, )
packages/yjs-transform/src/position.ts:234
↓ 4 callers
Function
getAnimationName
(styles?: CSSStyleDeclaration)
packages/ui/src/presence.tsx:142
↓ 4 callers
Function
getDecorateStore
(editor: Editor)
packages/editor/src/plugin/decorate.ts:44
↓ 4 callers
Function
getMatches
(e: Editable, path: Path)
packages/editor/src/plugin/with-editable.tsx:407
↓ 4 callers
Function
getMentionTriggerData
(editor: Editor)
packages/plugins/mention/src/weak-map.ts:11
↓ 4 callers
Function
getOptions
(editor: Editor)
packages/plugins/heading/src/options.ts:25
↓ 4 callers
Function
getOptions
(editor: Editor)
packages/plugins/codeblock/src/options.ts:22
↓ 4 callers
Function
getRowStore
(element: GridRow)
packages/plugins/table/src/row/store.ts:12
↓ 4 callers
Function
getSlashToolbarStore
(editor: Editor)
packages/plugins/toolbar/src/slash/store.ts:33
↓ 4 callers
Function
getSlashTriggerData
(editor: Editor)
packages/plugins/toolbar/src/slash/weak-map.ts:11
↓ 4 callers
Function
getStore
(editor: Editor)
packages/editor/src/plugin/locale.ts:15
↓ 4 callers
Function
getStore
(editor: Editable)
packages/plugins/toolbar/src/side/store.ts:35
↓ 4 callers
Function
getThumbSize
(sizes: Sizes)
packages/ui/src/scroll-area.tsx:979
↓ 4 callers
Function
handleMouseDown
(event: React.MouseEvent<HTMLDivElement>, holder: ResizerHolder)
packages/ui/src/resizer.tsx:40
↓ 4 callers
Function
readImageElement
(url: string, base64 = false)
packages/plugins/image/src/utils.ts:42
↓ 4 callers
Function
renderButton
()
packages/ui/src/toolbar.tsx:19
↓ 4 callers
Function
setTextIndent
(editor: Editor, blockEntry: NodeEntry<Indent>, size: number)
packages/plugins/indent/src/utils.ts:4
↓ 4 callers
Function
toInt
(value?: string)
packages/ui/src/scroll-area.tsx:970
next →
1–100 of 1,380, ranked by callers