Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baskinwind/rich-editor
/ functions
Functions
366 in github.com/baskinwind/rich-editor
⨍
Functions
366
◇
Types & classes
78
↓ 62 callers
Method
add
(index: number, ...blockList: Block[])
src/components/list.ts:68
↓ 40 callers
Method
getSize
()
src/components/media.ts:108
↓ 22 callers
Method
getBlockById
(id: string)
src/editor/manage/store-manage.ts:24
↓ 21 callers
Method
addStyle
(dom: HTMLElement, style?: AnyObject, data?: AnyObject)
src/view/dom-view.ts:17
↓ 21 callers
Method
buildParagraph
( id: string, getChildren: () => string[], style: AnyObject, data: AnyObject, )
src/view/html-view.ts:99
↓ 20 callers
Function
createError
(message: string, block?: any, type?: string)
src/util/index.ts:30
↓ 20 callers
Function
focusAt
(editor: Editor, start?: Cursor, end?: Cursor)
src/selection/focus-at.ts:7
↓ 20 callers
Method
getStyle
(style: AnyObject)
src/view/html-view.ts:12
↓ 19 callers
Function
getSelection
(editor: Editor)
src/selection/get-selection.ts:26
↓ 18 callers
Method
remove
()
src/components/media.ts:59
↓ 16 callers
Function
getChildren
(contentView: AbstractView)
src/components/content-collection.ts:241
↓ 16 callers
Method
getData
(data: AnyObject)
src/view/html-view.ts:20
↓ 13 callers
Method
buildHeading
( id: string, type: HeadingEnum, getChildren: () => string[], style: AnyObject, data: AnyO
src/view/html-view.ts:114
↓ 12 callers
Method
split
(index: number, ...blockList: Block[])
src/components/media.ts:66
↓ 10 callers
Method
buildHtml
( tag: string, className: string, style: AnyObject, children: string, data: AnyObject = {}
src/view/html-view.ts:28
↓ 10 callers
Method
copyData
()
src/decorate/index.ts:42
↓ 10 callers
Method
copyStyle
()
src/decorate/index.ts:17
↓ 9 callers
Function
modifySelectionDecorate
(editor: Editor, style?: AnyObject, data?: AnyObject)
src/selection/modify-selection-decorate.ts:8
↓ 8 callers
Function
getUtf8TextLengthFromJsOffset
( text: string | null | undefined, offset?: number, )
src/util/text-util.ts:9
↓ 8 callers
Method
isEmpty
()
src/components/article.ts:27
↓ 8 callers
Function
nextTick
(func: () => void)
src/util/index.ts:4
↓ 8 callers
Method
render
(contentView: AbstractView)
src/components/list.ts:148
↓ 7 callers
Method
add
(index: number, ...blockList: Block[])
src/components/custom-collection.ts:62
↓ 7 callers
Method
buildInlineImage
(id: string, src: string, style: AnyObject, data: AnyObject)
src/view/html-view.ts:186
↓ 7 callers
Method
buildList
( id: string, listType: ListType, getChildren: () => string[], style: AnyObject, data: Any
src/view/html-view.ts:81
↓ 6 callers
Function
deleteSelection
(editor: Editor, start: Cursor, end?: Cursor)
src/operator/delete-selection.ts:7
↓ 6 callers
Method
getJSON
()
src/components/list.ts:142
↓ 6 callers
Function
getSelectedIdList
( article: Article, startId: string, endId: string = startId, )
src/selection/get-selected-id-list.ts:24
↓ 6 callers
Method
sendTo
(block: Block)
src/components/list.ts:101
↓ 5 callers
Method
removeChildren
(start: number, end: number = -1)
src/components/table.ts:276
↓ 4 callers
Method
$emit
(eventName: string, event?: T, ...rest: any[])
src/editor/event.ts:44
↓ 4 callers
Method
$on
(eventName: string, fn: (event: T, ...rest: any[]) => void)
src/editor/event.ts:8
↓ 4 callers
Method
addEmptyParagraph
(bottom: boolean)
src/components/table.ts:227
↓ 4 callers
Method
buildArticle
(id: string, getChildren: () => string[], style: AnyObject, data: AnyObject)
src/view/html-view.ts:40
↓ 4 callers
Method
buildCode
(content: string = "", language: string = "")
src/factory/index.ts:79
↓ 4 callers
Method
buildCustomCollection
( id: string, tag: string, getChildren: () => string[], style: AnyObject, data: AnyObject,
src/view/html-view.ts:44
↓ 4 callers
Method
buildMedia
(mediaType: MediaType, src: string)
src/factory/index.ts:75
↓ 4 callers
Method
buildTable
(id: string, getChildren: () => string[], style: AnyObject, data: AnyObject)
src/view/html-view.ts:54
↓ 4 callers
Function
exchange
(componentFactory: ComponentFactory, component: Component, args?: any[])
src/components/block.ts:24
↓ 4 callers
Method
modifyContentDecorate
( start: number, end: number, style?: AnyObject, data?: AnyObject, )
src/components/media.ts:46
↓ 3 callers
Method
exchangeTo
(builder: BlockType, args: any[])
src/components/media.ts:42
↓ 3 callers
Function
getCursorElement
(element?: HTMLElement | null)
src/selection/util.ts:12
↓ 3 callers
Function
getCursorPosition
( contentWindow: Window, cursor: Cursor, )
src/selection/util.ts:114
↓ 3 callers
Function
getElememtSize
(element?: HTMLElement)
src/selection/util.ts:52
↓ 3 callers
Function
getWrapDom
(containDocument: Document, id: string)
src/util/update-component.ts:9
↓ 3 callers
Method
init
(article: Article)
src/editor/index.ts:76
↓ 3 callers
Function
insertBlock
(editor: Editor, ...blockList: Block[])
src/selection/insert-block.ts:8
↓ 3 callers
Method
receive
(block: Block)
src/components/list.ts:105
↓ 3 callers
Method
restore
(state: ListSnapshoot)
src/components/list.ts:127
↓ 3 callers
Method
snapshoot
()
src/components/list.ts:121
↓ 2 callers
Function
backspace
( editor: Editor, start: Cursor, end: Cursor = start, event?: KeyboardEvent | CompositionEvent, )
src/operator/backspace.ts:8
↓ 2 callers
Method
buildListItem
(list: string, structureType: StructureType)
src/view/html-view.ts:91
↓ 2 callers
Method
clear
()
src/decorate/index.ts:106
↓ 2 callers
Method
create
(componentFactory: ComponentFactory, json: JSONType)
src/components/list.ts:24
↓ 2 callers
Method
create
(componentFactory: ComponentFactory, json: JSONType)
src/components/table.ts:38
↓ 2 callers
Method
createEmpty
()
src/components/list.ts:132
↓ 2 callers
Method
createEmpty
()
src/editor/manage/article-manage.ts:38
↓ 2 callers
Method
createRecordStack
()
src/editor/manage/history-manage.ts:53
↓ 2 callers
Function
getContainer
(element?: HTMLElement | null)
src/selection/util.ts:35
↓ 2 callers
Function
getJsTextLengthFromUtf8Offset
( text: string | null | undefined, index: number, )
src/util/text-util.ts:1
↓ 2 callers
Function
getOffset
(parent: HTMLElement, wrap: HTMLElement, offset: number)
src/selection/util.ts:139
↓ 2 callers
Function
input
( editor: Editor, charOrInline: string | Inline, start: Cursor, event?: KeyboardEvent | Compositio
src/operator/input.ts:9
↓ 2 callers
Function
insertInline
(editor: Editor, component: string | Inline)
src/selection/insert-inline.ts:8
↓ 2 callers
Function
modifyDecorate
(style?: AnyObject, data?: AnyObject)
src/components/block.ts:61
↓ 2 callers
Function
modifyIndent
(editor: Editor, isOutdent: boolean = false)
src/selection/modify-indent.ts:60
↓ 2 callers
Method
onInput
(text: string, start: Cursor, event: KeyboardEvent | CompositionEvent | InputEvent)
src/operator/index.ts:41
↓ 2 callers
Method
redo
()
src/editor/manage/history-manage.ts:127
↓ 2 callers
Method
render
(contentView: AbstractView)
src/components/table.ts:149
↓ 2 callers
Method
restore
(stepId: number)
src/record/index.ts:16
↓ 2 callers
Method
startUpdate
()
src/editor/manage/article-manage.ts:34
↓ 2 callers
Method
stopUpdate
()
src/editor/manage/article-manage.ts:30
↓ 2 callers
Method
store
(stepId: number)
src/record/index.ts:12
↓ 2 callers
Method
undo
()
src/editor/manage/history-manage.ts:116
↓ 2 callers
Function
walkTree
( structureCollection: StructureCollection<Block>, callback: (block: Block) => boolean | void, )
src/util/index.ts:8
↓ 1 callers
Method
addCell
(index: number)
src/components/table.ts:198
↓ 1 callers
Function
afterCreate
()
dev/index.js:25
↓ 1 callers
Method
buildCharacterList
(id: string, text: string, style: AnyObject, data: AnyObject)
src/view/html-view.ts:162
↓ 1 callers
Method
buildCodeBlock
( id: string, content: string, language: string, style: AnyObject, data: AnyObject, )
src/view/html-view.ts:129
↓ 1 callers
Method
buildTableCell
( id: string, cellType: "th" | "td", getChildren: () => string[], style: AnyObject, data:
src/view/html-view.ts:71
↓ 1 callers
Method
buildTableRow
(id: string, getChildren: () => string[], style: AnyObject, data: AnyObject)
src/view/html-view.ts:67
↓ 1 callers
Method
canRedo
()
src/editor/manage/history-manage.ts:112
↓ 1 callers
Method
canUndo
()
src/editor/manage/history-manage.ts:108
↓ 1 callers
Method
childHeadDelete
(block: Block)
src/components/list.ts:86
↓ 1 callers
Method
clear
(stepId: number)
src/record/index.ts:26
↓ 1 callers
Function
countSize
(parent: HTMLElement, node: HTMLElement)
src/selection/util.ts:140
↓ 1 callers
Function
createArticle
(factory)
dev/article.js:1
↓ 1 callers
Method
createByJSON
(json: JSONType)
src/editor/manage/article-manage.ts:44
↓ 1 callers
Function
createEditor
( root: HTMLElement, editor: Editor, beforeCreate?: (document: Document, window: Window) => void, afte
src/editor/create-editor.ts:10
↓ 1 callers
Method
createRecord
()
src/editor/manage/history-manage.ts:69
↓ 1 callers
Method
dataIsEmpty
()
src/decorate/index.ts:74
↓ 1 callers
Function
enter
(editor: Editor, start: Cursor, end: Cursor = start, event?: KeyboardEvent)
src/operator/enter.ts:7
↓ 1 callers
Method
exchange
(componentFactory: ComponentFactory, block: Block, args: any[] = [])
src/components/list.ts:34
↓ 1 callers
Method
exchange
(componentFactory: ComponentFactory, block: Block, args: any[] = [])
src/components/heading.ts:62
↓ 1 callers
Function
findFocusNode
(element: HTMLElement, index: number)
src/selection/util.ts:76
↓ 1 callers
Method
flush
()
src/editor/manage/article-manage.ts:83
↓ 1 callers
Function
focusNode
(contentWindow: Window, start: FocusNodeType, end: FocusNodeType = start)
src/selection/focus-at.ts:50
↓ 1 callers
Method
formatStyle
(styleName: string)
src/view/html-view.ts:8
↓ 1 callers
Method
getInstance
(editor?: Editor)
src/factory/index.ts:20
↓ 1 callers
Method
getJSON
()
src/components/table.ts:221
↓ 1 callers
Function
getParentDom
(containDocument: Document, id: string)
src/util/update-component.ts:17
next →
1–100 of 366, ranked by callers