Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/uiwjs/react-md-editor
/ functions
Functions
66 in github.com/uiwjs/react-md-editor
⨍
Functions
66
◇
Types & classes
33
↓ 45 callers
Method
setSelectionRange
* Selects the specified text range * @param selection
core/src/commands/index.ts:150
↓ 18 callers
Function
executeCommand
({ api, selectedText, selection, prefix, suffix = prefix, }: { api: TextAreaTextApi; selectedTex
core/src/utils/markdownUtils.ts:129
↓ 16 callers
Function
selectWord
({ text, selection, prefix, suffix = prefix, }: { text: string; selection: TextRange; prefix: st
core/src/utils/markdownUtils.ts:8
↓ 6 callers
Function
headingExecute
({ state, api, prefix, suffix = prefix, }: { state: ExecuteState; api: TextAreaTextApi; prefix:
core/src/commands/title.tsx:6
↓ 6 callers
Function
insertTextAtPosition
(input: HTMLTextAreaElement | HTMLInputElement, text: string)
core/src/utils/InsertTextAtPosition.ts:30
↓ 6 callers
Method
replaceSelection
* Replaces the current selection with the new text. This will make the new selectedText to be empty, the * selection start and selection end will b
core/src/commands/index.ts:141
↓ 5 callers
Function
selectLine
({ text, selection }: TextSection)
core/src/utils/markdownUtils.ts:32
↓ 4 callers
Function
getStateFromTextArea
(textArea: HTMLTextAreaElement)
core/src/commands/index.ts:118
↓ 4 callers
Function
getSurroundingWord
(text: string, position: number)
core/src/utils/markdownUtils.ts:100
↓ 4 callers
Function
stopPropagation
* - `13` - `Enter` * - `9` - `Tab`
core/src/components/TextArea/handleKeyDown.tsx:9
↓ 3 callers
Function
createMDEditor
(options: { MarkdownPreview: TMarkdownPreview; TextArea: TTextArea })
core/src/Editor.factory.tsx:20
↓ 3 callers
Function
createTextArea
(options?: { Markdown?: MarkdownComponent; useMinHeight?: boolean })
core/src/components/TextArea/factory.tsx:45
↓ 3 callers
Function
handleClick
(command: ICommand<string>, name?: string)
core/src/components/Toolbar/index.tsx:20
↓ 3 callers
Function
insertBeforeEachLine
( selectedText: string, insertBefore: string | AlterLineFunction, )
core/src/utils/markdownUtils.ts:160
↓ 3 callers
Function
makeList
(state: ExecuteState, api: TextAreaTextApi, insertBefore: string | AlterLineFunction)
core/src/commands/list.tsx:11
↓ 2 callers
Function
canManipulateViaTextNodes
* @param {HTMLElement} input * @return {boolean}
core/src/utils/InsertTextAtPosition.ts:13
↓ 2 callers
Method
executeCommand
(command: ICommand)
core/src/commands/index.ts:30
↓ 2 callers
Function
getBreaksNeededForEmptyLineAfter
(text = '', startPosition: number)
core/src/utils/markdownUtils.ts:74
↓ 2 callers
Function
getBreaksNeededForEmptyLineBefore
(text = '', startPosition: number)
core/src/utils/markdownUtils.ts:45
↓ 2 callers
Method
getState
()
core/src/commands/index.ts:167
↓ 2 callers
Function
group
(arr: ICommandChildCommands['children'], options?: GroupOptions)
core/src/commands/group.tsx:8
↓ 2 callers
Function
handleLineMove
(e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>, direction: number)
core/src/components/TextArea/handleKeyDown.tsx:14
↓ 2 callers
Function
handleScroll
(e: React.UIEvent<HTMLDivElement>, type: 'text' | 'preview')
core/src/Editor.factory.tsx:166
↓ 2 callers
Function
isWordDelimiter
(c: string)
core/src/utils/markdownUtils.ts:103
↓ 2 callers
Function
updateHandle
(str: string)
www/src/Example.tsx:27
↓ 1 callers
Function
getCommands
(data: ICommand[] = [], resulte: Record<string, ICommand> = {})
core/src/components/TextArea/shortcuts.ts:4
↓ 1 callers
Function
getCommands
()
core/src/commands/index.ts:90
↓ 1 callers
Function
getExtraCommands
()
core/src/commands/index.ts:116
↓ 1 callers
Function
handleKeyDown
( e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>, tabSize: number = 2, defaultTabEnable: bo
core/src/components/TextArea/handleKeyDown.tsx:46
↓ 1 callers
Function
html2Escape
(sHtml: string)
core/src/components/TextArea/Markdown.tsx:7
↓ 1 callers
Function
html2Escape
(sHtml: string)
core/src/components/TextArea/Markdown.common.tsx:7
↓ 1 callers
Function
setGroupPopFalse
(data: Record<string, boolean> = {})
core/src/Editor.factory.tsx:8
Function
Badges
()
www/src/Button.tsx:65
Function
Child
(props: ChildProps)
core/src/components/Toolbar/Child.tsx:11
Function
DragBar
(props)
core/src/components/DragBar/index.tsx:12
Function
Example
(props = {} as { mdStr: string })
www/src/Example.tsx:13
Function
Home
()
example/nextjs/src/app/page.tsx:9
Function
Markdown
(props: MarkdownProps)
core/src/components/TextArea/Markdown.tsx:25
Function
Markdown
(props: MarkdownProps)
core/src/components/TextArea/Markdown.common.tsx:16
Function
MyComponent
()
test/editor.test.tsx:37
Function
MyComponent
()
test/commands.test.tsx:12
Function
ProductHunt
()
www/src/Button.tsx:10
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
example/nextjs/src/app/layout.tsx:20
Function
Textarea
(props: TextAreaProps)
core/src/components/TextArea/Textarea.tsx:11
Function
Toolbar
(props: IToolbarProps = {})
core/src/components/Toolbar/index.tsx:126
Function
ToolbarItems
(props: IToolbarProps)
core/src/components/Toolbar/index.tsx:15
Function
ToolbarVisibility
(props: ToolbarVisibilityProps)
core/src/components/Toolbar/index.tsx:145
Function
Version
()
www/src/Button.tsx:40
Function
changeHandle
(evn: React.ChangeEvent<HTMLTextAreaElement>)
core/src/Editor.factory.tsx:216
Method
constructor
(textArea: HTMLTextAreaElement)
core/src/commands/index.ts:132
Method
constructor
(textArea: HTMLTextAreaElement)
core/src/commands/index.ts:162
Function
containerClick
()
core/src/Editor.factory.tsx:213
Function
dragBarChange
(newHeight: number)
core/src/Editor.factory.tsx:214
Method
executeCommand
(command: ICommand)
core/commands.d.ts:28
Method
executeCommand
( command: ICommand<string>, dispatch?: React.Dispatch<ContextStore>, state?: ExecuteCommandState,
core/src/commands/index.ts:172
Function
getCommands
()
core/src/commands/index.cn.ts:130
Function
getExtraCommands
()
core/src/commands/index.cn.ts:156
Function
handleMouseDown
(event: Event)
core/src/components/DragBar/index.tsx:41
Function
handleMouseMove
(event: Event)
core/src/components/DragBar/index.tsx:24
Function
handleMouseUp
()
core/src/components/DragBar/index.tsx:34
Function
handlePreviewScroll
(e: React.UIEvent<HTMLDivElement, UIEvent>)
core/src/Editor.factory.tsx:194
Function
onKeyDown
(e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>)
core/src/components/TextArea/Textarea.tsx:60
Function
openVersionWebsite
(e: React.ChangeEvent<HTMLSelectElement>)
www/src/Button.tsx:41
Function
reducer
(state: ContextStore, action: ContextStore)
core/src/Context.tsx:34
Function
shortcutsHandle
( e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>, commands: ICommand[] = [], commandOrchest
core/src/components/TextArea/shortcuts.ts:15
Function
upPreview
(e: React.ChangeEvent<HTMLInputElement>)
www/src/Example.tsx:24