MCPcopy Index your code

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 28 callersMethodsetRangePosition
* @description Sets the position of an element relative to a range * @param {HTMLElement} element Element to position * @param {?Range} range Rang
src/core/logic/dom/offset.js:633
↓ 27 callersFunctioncreateButton
(name)
test/__mocks__/editorMock.js:497
↓ 27 callersMethodgetLocal
* @description Gets the position inside the internal editor of the argument. * @param {Node} node Target node. * @returns {OffsetLocalInfo} Positi
src/core/logic/dom/offset.js:123
↓ 27 callersFunctionreduceDeleteDown
(actions, ports, ctx)
src/core/event/rules/keydown.rule.delete.js:19
↓ 26 callersMethod_destroy
()
src/core/kernel/store.js:169
↓ 26 callersMethodcheck
* @description Returns `false` if char count is greater than "frameOptions.get('charCounter_max')" when "html" is added to the current editor. * @pa
src/core/logic/dom/char.js:33
↓ 26 callersMethodcommand
* @description If there is a shortcut function, run it. * @param {KeyboardEvent} event Keyboard event object * @param {boolean} ctrl Whether the C
src/core/logic/shell/shortcuts.js:65
↓ 26 callersMethodenable
* @description Enables the editor. * @param {string} [rootKey] Root key
src/core/logic/shell/ui.js:362
↓ 26 callersMethodserverUpload
* @description Uploads the image to the server. * @param {SunEditor.EventParams.ImageInfo} info - Image upload info.
src/plugins/modal/image/services/image.upload.js:37
↓ 26 callersFunctionsetContent
(html)
test/integration/finder.spec.js:28
↓ 25 callersMethodclear
()
src/core/config/optionProvider.js:397
↓ 25 callersFunctioncreateExternalTarget
* Helper: create an external (non-wysiwyg) target
test/integration/offset.vmargin.spec.js:62
↓ 25 callersMethodgetByteLength
* @descriptionGets Get the length in bytes of a string. * @param {string} text String text * @returns {number} * @example * const bytes = edit
src/core/logic/dom/char.js:68
↓ 25 callersFunctionreduceKeydown
(ports, ctx)
src/core/event/reducers/keydown.reducer.js:42
↓ 25 callersMethodreset
* @param {SunEditor.FrameContext} rt Root target[key] FrameContext
src/core/logic/shell/ui.js:576
↓ 24 callersMethodentries
()
src/core/config/optionProvider.js:400
↓ 24 callersMethodisTextStyleNode
* @description It is judged whether it is a node related to the text style. * @param {Node|string} element The node to check * @returns {element i
src/core/logic/dom/format.js:797
↓ 24 callersFunctionreduceArrowDown
(actions, ports, ctx)
src/core/event/rules/keydown.rule.arrow.js:20
↓ 23 callersMethodfocusEdge
* @description If `focusEl` is a component, then that component is selected; if it is a format element, the last text is selected * - If `focusEl` i
src/core/logic/shell/focusManager.js:68
↓ 23 callersMethodisInline
* @description Checks if the given node is an inline component (class `se-inline-component`). * - If the node is a `FIGURE`, it checks the parent el
src/core/logic/shell/component.js:431
↓ 23 callersFunctionmarkdownToHtml
(md, defaultLine)
src/helper/markdown.js:585
↓ 23 callersMethodopen
* @override * @type {PluginModal['open']}
src/plugins/modal/link.js:114
↓ 23 callersMethodsetTransform
* @description Set the transform style (rotation) of the element. * @param {Node} node Target element * @param {?string|number} width Element's wi
src/modules/contract/Figure.js:990
↓ 23 callersMethodshowToast
* @description Show toast * @param {string} message toast message * @param {number} [duration=1000] duration time(ms) * @param {""|"error"|"succ
src/core/logic/shell/ui.js:453
↓ 22 callersFunctionCreateToolBar
(buttonList, plugins, options, icons, lang, isUpdate)
src/core/section/constructor.js:1311
↓ 22 callersMethodGetContainer
* @description Get the element's container(`.se-component`) info. * @param {Node} element Target element * @returns {FigureInfo} {target, containe
src/modules/contract/Figure.js:281
↓ 22 callersMethodasyncCall
* @description Call Async API * @param {Object} params * @param {string} [params.method] - HTTP method (GET, POST, PUT, DELETE...) * @param {str
src/modules/manager/ApiManager.js:120
↓ 22 callersMethodinitDropdownTarget
* @description Method for managing dropdown element. * - You must add the `dropdown` element using this method at custom plugin. * @param {{key: s
src/core/logic/panel/menu.js:84
↓ 22 callersFunctionmockSize
(el, w, h)
test/unit/core/logic/dom/offset.numerical.spec.js:141
↓ 22 callersMethodmodalInit
* @optional * This function is called before the modal window opens or closes. * @returns {void}
types/interfaces/contracts.d.ts:34
↓ 22 callersMethodremoveEvent
* @description Remove event * @param {SunEditor.Event.Info} params event info = this.addEvent() * @returns {undefined|null} Success: `null`, Not f
src/core/config/eventManager.js:97
↓ 21 callersMethodapplyTargets
* @description It is executed by inserting the button of `commandTargets` as the argument value of the `func` function. * - `func` is called as long
src/core/logic/shell/commandDispatcher.js:163
↓ 21 callersFunctiongetCtx
Helper to get the trigger context for '@'
test/integration/autocomplete.spec.js:43
↓ 21 callersMethodisSelection
* @param {*} obj * @returns {obj is Selection}
src/core/config/instanceCheck.js:46
↓ 21 callersMethodoffCurrentController
* @description Closes the currently active controller by delegating to the component's deselect logic. * Use this method to close a single active co
src/core/logic/shell/ui.js:538
↓ 21 callersMethodrePage
* @description Refresh the document page * @param {boolean} force - Whether to force the page to be re-rendered * @returns {Promise<void>}
src/core/section/documentType.js:147
↓ 21 callersMethodvalues
()
src/core/config/optionProvider.js:406
↓ 20 callersMethodaddLine
* @description Append `line` element to sibling node of argument element. * - If the `lineNode` argument value is present, the tag of that argument
src/core/logic/dom/format.js:229
↓ 20 callersMethodapplyToRoots
* @description Execute a function by traversing all root targets. * @param {(frameContext: SunEditor.FrameContext, rootKey: string|null, frameRoots:
src/core/config/contextProvider.js:124
↓ 20 callersMethoddelete
(k)
src/core/config/contextProvider.js:190
↓ 20 callersMethodreHeader
* @description Refresh the document header area
src/core/section/documentType.js:106
↓ 20 callersMethodremoveBlock
* @description The elements of the `selectedFormats` array are detached from the `blockElement` element. (`LI` tags are converted to `P` tags) * - W
src/core/logic/dom/format.js:479
↓ 20 callersMethodscrollTo
* @description Scroll to the corresponding selection or range position. * @param {Selection|Range|Node} ref selection or range object * @param {Sc
src/core/logic/dom/selection.js:396
↓ 20 callersMethodsubmitSRC
* @description Processes the provided source (URL or embed code) and submits it for embedding. * - It parses the input, triggers any necessary event
src/plugins/modal/embed.js:466
↓ 20 callersMethodsubmitURL
* @description Create an `audio` component using the provided url. * @param {string} url File url * @returns {Promise<boolean>}
src/plugins/modal/audio.js:353
↓ 19 callersMethod_editorEnable
* @description Enables or disables editor mode. * @param {boolean} enabled Whether to enable or disable the editor.
src/plugins/dropdown/table/index.js:782
↓ 19 callersMethod_setRotate
* @internal * @description Applies rotation transformation to the target element. * @param {HTMLElement} element Target element. * @param {numbe
src/modules/contract/Figure.js:1113
↓ 19 callersFunctioncreateMockElement
(id = 'test')
test/unit/modules/Controller.nested.spec.js:49
↓ 19 callersFunctiongetAddEventHandlerForTarget
* Gets a handler registered on a specific target element
test/unit/modules/ColorPicker.spec.js:151
↓ 19 callersMethodhideLoading
* @description Hides the loading spinner. * @param {string} [rootKey] Root key
src/core/logic/shell/ui.js:409
↓ 19 callersMethodhistoryPush
* @description Adds a new entry to the history stack.
src/plugins/dropdown/table/index.js:741
↓ 19 callersMethodinsertNode
* @description Delete selected node and insert argument value node and return. * - If the `afterNode` exists, it is inserted after the `afterNode`
src/core/logic/dom/html.js:455
↓ 19 callersFunctionmockRect
(el, rect)
test/unit/core/logic/dom/offset.numerical.spec.js:133
↓ 19 callersMethodsetAlign
* @description Align the container. * @param {?Node} targetNode Target element * @param {string} align `"none"`|`"left"`|`"center"`|`"right"`
src/modules/contract/Figure.js:695
↓ 19 callersMethodsetCellInfo
* @description Sets various table-related information based on the provided table cell element (`<td>`). This includes updating cell, row, and table a
src/plugins/dropdown/table/index.js:646
↓ 18 callersFunctionCreateShortcuts
(command, button, values, keyMap, rc, reverseKeys)
src/core/section/constructor.js:310
↓ 18 callersMethod_setPercentSize
* @internal * @description Sets the figure element's size in percentage. * @param {string|number} w Width percentage. * @param {string|number} h
src/modules/contract/Figure.js:1237
↓ 18 callersMethodblur
* @description Focusout to wysiwyg area (.blur())
src/core/logic/shell/focusManager.js:103
↓ 18 callersMethoddisplay
* @description Set the char count and word count to counter element textContent. * @param {?SunEditor.FrameContext} [fc] Frame context
src/core/logic/dom/char.js:117
↓ 18 callersMethodfindComponentInfo
* @description Finds component information for the given element. * @param {Node} element The DOM element to check. * @returns {SunEditor.Componen
src/core/logic/shell/pluginManager.js:138
↓ 18 callersMethodget
(k)
src/core/config/contextProvider.js:181
↓ 18 callersFunctiongetHandler
* Helper to get the registered event handler from addGlobalEvent mock calls
test/unit/modules/HueSlider.spec.js:24
↓ 18 callersMethodgetLines
* @description Returns a `line` array from selected range. * @param {?(current: Node) => boolean} [validation] The validation function. (Replaces th
src/core/logic/dom/format.js:901
↓ 18 callersMethodgetSelection
()
test/unit/core/kernel/kernelInjector.spec.js:144
↓ 18 callersMethodisBrLine
* @description It is judged whether it is the `brLine` element. * - (PRE | class=`__se__format__br_line_xxx`) * - `brLine` elements is included in
src/core/logic/dom/format.js:837
↓ 18 callersFunctionreduceTabDown
(actions, _ports, ctx)
src/core/event/rules/keydown.rule.tab.js:18
↓ 17 callersFunctionactionExecutor
(actions, effContext)
src/core/event/executor.js:17
↓ 17 callersMethoddeleteStyleSelectedCells
* @description Deletes styles from selected table cells.
src/plugins/dropdown/table/services/table.selection.js:328
↓ 17 callersMethoddeselect
* @description Deselects the selected component.
src/core/logic/shell/component.js:394
↓ 17 callersMethoddestroy
* @description Destroy the suneditor
src/core/editor.js:93
↓ 17 callersMethodindent
* @description Indent more the selected lines. * - margin size : `store.get('indentSize')`
src/core/logic/dom/format.js:717
↓ 17 callersMethodsetTheme
* @description Set the theme to the editor * @param {string} theme Theme name
src/core/logic/shell/ui.js:178
↓ 16 callersMethod_showBalloon
* @internal * @description Show the `balloon` toolbar based on the current selection. * @param {?Range} [rangeObj] - Selection range
src/core/logic/panel/toolbar.js:358
↓ 16 callersFunctiondispatchKey
(wysiwyg, key, options = {})
test/integration/keyboard.spec.js:9
↓ 16 callersMethodfindProcessUrl
* @description Finds and processes the URL for embedding by matching it against known service patterns. * @param {string} url - The original URL.
src/plugins/modal/embed.js:444
↓ 16 callersMethodgetWWScroll
* @description Get the scroll info of the WYSIWYG area. * @returns {OffsetWWScrollInfo} Scroll information within the editor.
src/core/logic/dom/offset.js:342
↓ 16 callersMethodisBasic
* @description Checks if the specified node qualifies as a basic component within the editor. * - This function verifies whether the node is recogni
src/core/logic/shell/component.js:450
↓ 16 callersFunctionmockBoundingRect
* Mock getBoundingClientRect on an element to return realistic dimensions. * jsdom returns all zeros by default which causes division-by-zero issues.
test/unit/modules/HueSlider.spec.js:33
↓ 16 callersMethodnativeFocus
* @description Focus to wysiwyg area using native focus function
src/core/logic/shell/focusManager.js:95
↓ 16 callersMethodregister
* @description If the plugin is not added, add the plugin and call the `add` function. * - If the plugin is added call `callBack` function. * @par
src/core/logic/shell/pluginManager.js:216
↓ 16 callersMethodset
* @description Initialize. * - Sets the current anchor element to be edited. * @param {Node} element Modal target element
src/modules/ui/ModalAnchorEditor.js:175
↓ 15 callersMethodOnChangeFile
* @description A function called when the contents of `input` have changed and you want to adjust the style. * @param {Element} wrapper - Modal file
src/modules/contract/Modal.js:120
↓ 15 callersMethod_applySize
* @internal * @description Applies size adjustments to the figure element. * @param {string|number} w Width value. * @param {string|number} h He
src/modules/contract/Figure.js:1154
↓ 15 callersMethod_emitResizeEvent
* @internal * @description Emits the `onResizeEditor` event when editor height changes. * Calculates height from `ResizeObserverEntry` if not prov
src/core/logic/shell/ui.js:885
↓ 15 callersMethod_scrollReposition
* @description Reposition controller on scroll event
src/modules/contract/Controller.js:295
↓ 15 callersFunctioncreateClipboardData
(data = {})
test/integration/eventOrchestrator.spec.js:27
↓ 15 callersMethodremoveAllParents
* @description Delete itself and all parent nodes that match the condition. * - Returns an {sc: previousSibling, ec: nextSibling}(the deleted node r
src/core/logic/dom/nodeTransform.js:353
↓ 15 callersMethodretainFigureFormat
* @description Inspect the figure component format and change it to the correct format. * @param {Node} container - The container element of the fig
src/modules/contract/Figure.js:923
↓ 14 callersFunctionUpdateButton
(element, plugin, icons, lang)
src/core/section/constructor.js:1242
↓ 14 callersMethod_iframeAutoHeight
* @internal * @description Adjusts `iframe` height to match content height. * Handles `auto`-height `iframe`s and manages scrolling based on `maxH
src/core/logic/shell/ui.js:846
↓ 14 callersMethodapplyNested
* @description Nest list cells or cancel nested cells. * @param {Array<HTMLElement>} selectedCells List cells. * @param {boolean} nested Nested or
src/core/logic/dom/listFormat.js:313
↓ 14 callersMethodeditTable
* @description Edits the table by adding, removing, or modifying rows and cells, based on the provided options. Supports both single and multi-cell/ro
src/plugins/dropdown/table/services/table.grid.js:66
↓ 14 callersFunctiongetFormEventHandlers
* Extract event handlers bound during construction from eventManager.addEvent.mock.calls
test/unit/modules/Controller.spec.js:74
↓ 14 callersMethodsetControllerOnDisabledButtons
* @description This method disables or enables the toolbar buttons when the `controller` is activated or deactivated. * - When the `controller` is a
src/core/logic/shell/ui.js:489
↓ 14 callersMethodshowLoading
* @description Shows the loading spinner. * @param {string} [rootKey] Root key
src/core/logic/shell/ui.js:399
↓ 13 callersMethodCreateContainer
* @description Create a container for the resizing component and insert the element. * @param {Node} element Target element * @param {string} [cla
src/modules/contract/Figure.js:243
↓ 13 callersMethod_dataTransferAction
* @internal * @description Handles data transfer actions for `paste` and `drop` events. * - It processes clipboard data, triggers relevant events,
src/core/event/eventOrchestrator.js:213
↓ 13 callersMethod_resetSticky
* @internal * @description Reset the sticky toolbar position based on the editor state.
src/core/logic/panel/toolbar.js:258
↓ 13 callersMethod_syncScrollPosition
* @internal * @description Synchronizes floating UI element positions with the current scroll offset. * Called by eventManager when the wysiwyg ar
src/core/logic/shell/ui.js:615
↓ 13 callersMethod_updatePlaceholder
* @internal * @description Updates `placeholder` visibility based on editor state. * Shows `placeholder` when editor is empty, hides it in code vi
src/core/logic/shell/ui.js:805
← previousnext →101–200 of 1,891, ranked by callers