MCPcopy Index your code

hub / github.com/uiwjs/react-md-editor / functions

Functions66 in github.com/uiwjs/react-md-editor

↓ 45 callersMethodsetSelectionRange
* Selects the specified text range * @param selection
core/src/commands/index.ts:150
↓ 18 callersFunctionexecuteCommand
({ api, selectedText, selection, prefix, suffix = prefix, }: { api: TextAreaTextApi; selectedTex
core/src/utils/markdownUtils.ts:129
↓ 16 callersFunctionselectWord
({ text, selection, prefix, suffix = prefix, }: { text: string; selection: TextRange; prefix: st
core/src/utils/markdownUtils.ts:8
↓ 6 callersFunctionheadingExecute
({ state, api, prefix, suffix = prefix, }: { state: ExecuteState; api: TextAreaTextApi; prefix:
core/src/commands/title.tsx:6
↓ 6 callersFunctioninsertTextAtPosition
(input: HTMLTextAreaElement | HTMLInputElement, text: string)
core/src/utils/InsertTextAtPosition.ts:30
↓ 6 callersMethodreplaceSelection
* 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 callersFunctionselectLine
({ text, selection }: TextSection)
core/src/utils/markdownUtils.ts:32
↓ 4 callersFunctiongetStateFromTextArea
(textArea: HTMLTextAreaElement)
core/src/commands/index.ts:118
↓ 4 callersFunctiongetSurroundingWord
(text: string, position: number)
core/src/utils/markdownUtils.ts:100
↓ 4 callersFunctionstopPropagation
* - `13` - `Enter` * - `9` - `Tab`
core/src/components/TextArea/handleKeyDown.tsx:9
↓ 3 callersFunctioncreateMDEditor
(options: { MarkdownPreview: TMarkdownPreview; TextArea: TTextArea })
core/src/Editor.factory.tsx:20
↓ 3 callersFunctioncreateTextArea
(options?: { Markdown?: MarkdownComponent; useMinHeight?: boolean })
core/src/components/TextArea/factory.tsx:45
↓ 3 callersFunctionhandleClick
(command: ICommand<string>, name?: string)
core/src/components/Toolbar/index.tsx:20
↓ 3 callersFunctioninsertBeforeEachLine
( selectedText: string, insertBefore: string | AlterLineFunction, )
core/src/utils/markdownUtils.ts:160
↓ 3 callersFunctionmakeList
(state: ExecuteState, api: TextAreaTextApi, insertBefore: string | AlterLineFunction)
core/src/commands/list.tsx:11
↓ 2 callersFunctioncanManipulateViaTextNodes
* @param {HTMLElement} input * @return {boolean}
core/src/utils/InsertTextAtPosition.ts:13
↓ 2 callersMethodexecuteCommand
(command: ICommand)
core/src/commands/index.ts:30
↓ 2 callersFunctiongetBreaksNeededForEmptyLineAfter
(text = '', startPosition: number)
core/src/utils/markdownUtils.ts:74
↓ 2 callersFunctiongetBreaksNeededForEmptyLineBefore
(text = '', startPosition: number)
core/src/utils/markdownUtils.ts:45
↓ 2 callersMethodgetState
()
core/src/commands/index.ts:167
↓ 2 callersFunctiongroup
(arr: ICommandChildCommands['children'], options?: GroupOptions)
core/src/commands/group.tsx:8
↓ 2 callersFunctionhandleLineMove
(e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>, direction: number)
core/src/components/TextArea/handleKeyDown.tsx:14
↓ 2 callersFunctionhandleScroll
(e: React.UIEvent<HTMLDivElement>, type: 'text' | 'preview')
core/src/Editor.factory.tsx:166
↓ 2 callersFunctionisWordDelimiter
(c: string)
core/src/utils/markdownUtils.ts:103
↓ 2 callersFunctionupdateHandle
(str: string)
www/src/Example.tsx:27
↓ 1 callersFunctiongetCommands
(data: ICommand[] = [], resulte: Record<string, ICommand> = {})
core/src/components/TextArea/shortcuts.ts:4
↓ 1 callersFunctiongetCommands
()
core/src/commands/index.ts:90
↓ 1 callersFunctiongetExtraCommands
()
core/src/commands/index.ts:116
↓ 1 callersFunctionhandleKeyDown
( e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>, tabSize: number = 2, defaultTabEnable: bo
core/src/components/TextArea/handleKeyDown.tsx:46
↓ 1 callersFunctionhtml2Escape
(sHtml: string)
core/src/components/TextArea/Markdown.tsx:7
↓ 1 callersFunctionhtml2Escape
(sHtml: string)
core/src/components/TextArea/Markdown.common.tsx:7
↓ 1 callersFunctionsetGroupPopFalse
(data: Record<string, boolean> = {})
core/src/Editor.factory.tsx:8
FunctionBadges
()
www/src/Button.tsx:65
FunctionChild
(props: ChildProps)
core/src/components/Toolbar/Child.tsx:11
FunctionDragBar
(props)
core/src/components/DragBar/index.tsx:12
FunctionExample
(props = {} as { mdStr: string })
www/src/Example.tsx:13
FunctionHome
()
example/nextjs/src/app/page.tsx:9
FunctionMarkdown
(props: MarkdownProps)
core/src/components/TextArea/Markdown.tsx:25
FunctionMarkdown
(props: MarkdownProps)
core/src/components/TextArea/Markdown.common.tsx:16
FunctionMyComponent
()
test/editor.test.tsx:37
FunctionMyComponent
()
test/commands.test.tsx:12
FunctionProductHunt
()
www/src/Button.tsx:10
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
example/nextjs/src/app/layout.tsx:20
FunctionTextarea
(props: TextAreaProps)
core/src/components/TextArea/Textarea.tsx:11
FunctionToolbar
(props: IToolbarProps = {})
core/src/components/Toolbar/index.tsx:126
FunctionToolbarItems
(props: IToolbarProps)
core/src/components/Toolbar/index.tsx:15
FunctionToolbarVisibility
(props: ToolbarVisibilityProps)
core/src/components/Toolbar/index.tsx:145
FunctionVersion
()
www/src/Button.tsx:40
FunctionchangeHandle
(evn: React.ChangeEvent<HTMLTextAreaElement>)
core/src/Editor.factory.tsx:216
Methodconstructor
(textArea: HTMLTextAreaElement)
core/src/commands/index.ts:132
Methodconstructor
(textArea: HTMLTextAreaElement)
core/src/commands/index.ts:162
FunctioncontainerClick
()
core/src/Editor.factory.tsx:213
FunctiondragBarChange
(newHeight: number)
core/src/Editor.factory.tsx:214
MethodexecuteCommand
(command: ICommand)
core/commands.d.ts:28
MethodexecuteCommand
( command: ICommand<string>, dispatch?: React.Dispatch<ContextStore>, state?: ExecuteCommandState,
core/src/commands/index.ts:172
FunctiongetCommands
()
core/src/commands/index.cn.ts:130
FunctiongetExtraCommands
()
core/src/commands/index.cn.ts:156
FunctionhandleMouseDown
(event: Event)
core/src/components/DragBar/index.tsx:41
FunctionhandleMouseMove
(event: Event)
core/src/components/DragBar/index.tsx:24
FunctionhandleMouseUp
()
core/src/components/DragBar/index.tsx:34
FunctionhandlePreviewScroll
(e: React.UIEvent<HTMLDivElement, UIEvent>)
core/src/Editor.factory.tsx:194
FunctiononKeyDown
(e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>)
core/src/components/TextArea/Textarea.tsx:60
FunctionopenVersionWebsite
(e: React.ChangeEvent<HTMLSelectElement>)
www/src/Button.tsx:41
Functionreducer
(state: ContextStore, action: ContextStore)
core/src/Context.tsx:34
FunctionshortcutsHandle
( e: KeyboardEvent | React.KeyboardEvent<HTMLTextAreaElement>, commands: ICommand[] = [], commandOrchest
core/src/components/TextArea/shortcuts.ts:15
FunctionupPreview
(e: React.ChangeEvent<HTMLInputElement>)
www/src/Example.tsx:24