MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 5 callersMethodcreateNestedNode
* @description Creates a nested node structure from the given array of nodes. * @param {SunEditor.NodeCollection} nodeArray An array of nodes to clo
src/core/logic/dom/nodeTransform.js:436
↓ 5 callersMethodcreateVideoTag
* @description Creates a new `VIDEO` element for video embedding. * - Applies any additional properties provided and sets the necessary attributes.
src/plugins/modal/video/index.js:574
↓ 5 callersMethodemitEventAsync
* @description Dispatches an event to all registered plugin handlers asynchronously. * @param {string} name The event name (e.g., 'onKeyDown', 'onPa
src/core/logic/shell/pluginManager.js:182
↓ 5 callersMethodfindPrev
* @description Navigate to previous match (public for shortcut binding).
src/core/logic/panel/finder.js:203
↓ 5 callersMethodget
* @description Get a specific plugin instance * @param {string} name * @returns {*}
src/core/logic/shell/pluginManager.js:339
↓ 5 callersMethodgetBrLine
* @description If a parent node that contains an argument node finds a `brLine` (`format.isBrLine`), it returns that node. * @param {Node} element R
src/core/logic/dom/format.js:206
↓ 5 callersMethodgetItem
* @description Get the index of the selected item * @param {number} index Item index * @returns
src/modules/ui/SelectMenu.js:188
↓ 5 callersMethodgetVisibleFigure
* @description Get the current figure container only if it is visible (active). * @returns {?HTMLElement} The active figure element or `null`.
src/core/logic/shell/ui.js:553
↓ 5 callersMethodhoverSelect
* @description Temporarily selects a component without showing its controller. * This is a lightweight selection mode used for: * - Mouse hover: S
src/core/logic/shell/component.js:484
↓ 5 callersFunctionisRtlBidiMismatch
* @description Detects if a detected logical edge is incorrect due to bidi text direction mismatch in RTL mode. * When LTR text (numbers, Latin) is i
src/core/event/effects/ruleHelpers.js:159
↓ 5 callersMethodmergeCells
* @description Merges the selected table cells into one cell by combining their contents and adjusting their row and column spans. * - This method r
src/plugins/dropdown/table/services/table.cell.js:59
↓ 5 callersMethodoffResizeGuide
* @description Hides the resize guide line.
src/plugins/dropdown/table/services/table.resize.js:85
↓ 5 callersMethodonChangeText
* @description Handles text changes in the document.
src/core/section/documentType.js:474
↓ 5 callersMethodonMouseMove
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnMouseMove}
src/plugins/dropdown/table/index.js:392
↓ 5 callersMethodopen
* @override * @type {PluginModal['open']}
src/plugins/modal/video/index.js:268
↓ 5 callersMethodopenTableProps
* @description Opens the table properties dialog. * @param {HTMLElement} target - The target element (usually the table).
src/plugins/dropdown/table/services/table.style.js:167
↓ 5 callersMethodrefresh
* @description Re-run search with current term (debounced 300ms). Called on wysiwyg content change.
src/core/logic/panel/finder.js:256
↓ 5 callersMethodresetPosition
* @description Reset controller position * @param {Node} [target] * @example * // Reposition using a new target element * this.controller_cell
src/modules/contract/Controller.js:288
↓ 5 callersMethodresolveSize
* @description Resolves the final size of the video element, checking if it has changed from the current size. * @param {string} width - Desired wid
src/plugins/modal/video/services/video.size.js:121
↓ 5 callersFunctionroundtrip
(html)
test/unit/helper/markdown.spec.js:259
↓ 5 callersMethodsetData
(format, data)
test/setup.js:128
↓ 5 callersFunctionsetDefaultLine
* @description Execute `eventManager._setDefaultLine` * @param {EventPorts} ports - Reducer ports * @param {string} lineTagName - `line` tag name *
src/core/event/effects/ruleHelpers.js:144
↓ 5 callersMethodsetFigureContainer
* @description Set the active figure element (image, video) being resized. * @param {?HTMLElement} figure
src/core/logic/shell/ui.js:561
↓ 5 callersMethodsetMergeSplitButton
* @description Sets the merge/split button visibility.
src/plugins/dropdown/table/services/table.cell.js:254
↓ 5 callersMethodsetSize
* @description Set the element's container size from plugins input value * @param {string|number} w Width size * @param {string|number} h Height s
src/modules/contract/Figure.js:631
↓ 5 callersMethodtoggleCaption
* @description Toggles the visibility of the table caption (`<caption>`). If the caption is present, it is removed; if absent, it is added.
src/plugins/dropdown/table/services/table.style.js:265
↓ 5 callersMethodtoggleHeader
* @description Toggles the visibility of the table header (`<thead>`). If the header is present, it is removed; if absent, it is added.
src/plugins/dropdown/table/services/table.style.js:239
↓ 5 callersMethodtoolbarInputChange
* @optional * @description Executes the event function of toolbar's input tag - `change`. * @param {SunEditor.HookParams.ToolbarInputChange} param
src/interfaces/plugins.js:212
↓ 4 callersMethod#calculateShouldBeHidden
* @description Calculate if a child controller should be hidden based on all parent states * @param {Controller} children - The child controller *
src/modules/contract/Controller.js:346
↓ 4 callersMethod#clearDeferredShow
* @description Clear deferred show timer and viewport listener.
src/core/logic/panel/menu.js:320
↓ 4 callersMethod#clearHighlights
@description Remove all highlights (native + mark).
src/core/logic/panel/finder.js:706
↓ 4 callersMethod#getFrameWindow
* @returns {SunEditor.GlobalWindow}
src/core/config/instanceCheck.js:54
↓ 4 callersMethod#getSize
* @description Extracts the font size and unit from the given element or input value. * @param {string|Element} target - The target input or element
src/plugins/input/fontSize.js:342
↓ 4 callersMethod#getViewportTop
* @description Get the viewport's top offset. * @returns {number}
src/core/logic/panel/toolbar.js:509
↓ 4 callersMethod#goToMatch
@description Scroll to current match and update active highlight.
src/core/logic/panel/finder.js:741
↓ 4 callersMethod#init
* @description Initializes state variables. * - called when the popup is closed
src/plugins/popup/anchor.js:168
↓ 4 callersMethod#moveItem
* @description Move the selected item in the dropdown menu * @param {number} num Direction and amount to move (-1 for up, 1 for down)
src/core/logic/panel/menu.js:349
↓ 4 callersMethod#nodeRemoveListItem
* @description Checks whether the given list item node should be removed and handles necessary clean-up. * @param {Node} item The list item node to
src/core/logic/dom/html.js:1382
↓ 4 callersMethod#onSticky
* @description Enable `sticky` toolbar mode and adjust position.
src/core/logic/panel/toolbar.js:483
↓ 4 callersMethod#saveCurrentSize
* @description Saves the current size of the figure component.
src/modules/contract/Figure.js:1316
↓ 4 callersMethod#scrollContainer
* @description Handles the scrolling of the editor container. * - Repositions open controllers if necessary.
src/core/event/eventOrchestrator.js:719
↓ 4 callersMethod#setAnchor
* @description Wraps an image element with an anchor if provided. * @param {Node} imgTag - The image element to be wrapped. * @param {?Node} ancho
src/plugins/modal/image/index.js:840
↓ 4 callersMethod#setControllerPosition
* @description Specify the position of the controller. * @param {HTMLElement} controller Controller element. * @param {Node|Range} refer Element o
src/modules/contract/Controller.js:424
↓ 4 callersMethod#setLinkPreview
* @description Updates the preview of the anchor link. * @param {string} value - The current URL value.
src/modules/ui/ModalAnchorEditor.js:358
↓ 4 callersMethod#setMenuPosition
* @description Set the menu position. * @param {Node} element Button element * @param {HTMLElement} menu Menu element
src/core/logic/panel/menu.js:267
↓ 4 callersMethod#setRatioSelect
* @description Selects a ratio option in the ratio dropdown. * @param {string|number} value - The selected ratio value. * @returns {boolean} Retur
src/plugins/modal/video/services/video.size.js:209
↓ 4 callersMethod#setSize
* @description Sets the font size in the toolbar input field or button label. * @param {HTMLElement} target - The target element in the toolbar. *
src/plugins/input/fontSize.js:371
↓ 4 callersMethod#sn_resetCommonListCell
* @description Watch the applied text nodes and adjust the common styles of the list. * @param {Node} el `LI` element * @param {?Array} styleArray
src/core/logic/dom/inline.js:1770
↓ 4 callersMethod#sn_setCommonListStyle
* @description If certain styles are applied to all child nodes of the list cell, the style of the list cell is also changed. (bold, color, size) *
src/core/logic/dom/inline.js:1720
↓ 4 callersMethod#updateCount
@description Update match count display and prev/next button state. Panel-only.
src/core/logic/panel/finder.js:864
↓ 4 callersFunctionCheckCellEdge
(event, tableCell)
src/plugins/dropdown/table/shared/table.utils.js:88
↓ 4 callersFunctionCloneTable
(table, selectedCells)
src/plugins/dropdown/table/shared/table.utils.js:189
↓ 4 callersFunctionCreateBorderFormatMenu
(langs, icons, indideFormats)
src/plugins/dropdown/table/render/table.menu.js:102
↓ 4 callersFunctionCreateCellsHTML
(nodeName)
src/plugins/dropdown/table/shared/table.utils.js:137
↓ 4 callersMethodCreateInlineContainer
* @description Create a container for the inline resizing component and insert the element. * @param {Node} element Target element * @param {strin
src/modules/contract/Figure.js:260
↓ 4 callersFunctionIsVertical
* @param {Node|number} elementOrDeg Target element * @returns {boolean} Whether to rotate vertically
src/modules/contract/Figure.js:1647
↓ 4 callersFunctionLineDelete_next
* @param {HTMLElement} formatEl - Format element * @returns {Node}
src/core/event/effects/keydown.registry.js:547
↓ 4 callersFunctionLineDelete_prev
* @param {HTMLElement} formatEl - Format element * @returns {{focusNode: Node, focusOffset: number}}
src/core/event/effects/keydown.registry.js:572
↓ 4 callersFunctionSN_StripRemoveNode
* @description Strip remove node * @param {Node} removeNode The remove node
src/core/logic/dom/inline.js:1839
↓ 4 callersMethod_checkInfo
* @internal * @description Checke the file's information and modify the tag that does not fit the format. * @param {boolean} loaded Whether the ed
src/modules/manager/FileManager.js:146
↓ 4 callersMethod_clearRetainStyleNodes
* @internal * @description Clears retained style nodes by replacing content with a single `line` break. * - Resets the selection to the start of t
src/core/event/eventOrchestrator.js:624
↓ 4 callersMethod_findLinesHeader
* @internal * @description Finds the closest header element from a given line. * @param {Node} line - The `line` to check. * @returns {Node|null
src/core/section/documentType.js:580
↓ 4 callersMethod_repositionControllers
* @internal * @description Repositions all currently open controllers after scroll. * Called by eventManager during container scroll events. * -
src/core/logic/shell/ui.js:641
↓ 4 callersMethod_resetInfo
* @internal * @description Reset info object and `infoList = []`, `infoIndex = 0`
src/modules/manager/FileManager.js:213
↓ 4 callersMethod_retainStyleNodes
* @internal * @description Retains the style nodes for formatting consistency when applying styles. * - Preserves nested styling by cloning and re
src/core/event/eventOrchestrator.js:599
↓ 4 callersMethod_toggleToolbarBalloon
* @internal * @description Show or hide the toolbar-balloon.
src/core/event/eventOrchestrator.js:160
↓ 4 callersFunctioncallRegister
(infoOverrides, resultItems)
test/unit/plugins/modal/image/services/image.upload.spec.js:293
↓ 4 callersFunctioncheck
()
test/__mocks__/editorMock.js:1466
↓ 4 callersMethodcloseBrowserLoading
* @description Close file browser loading box
src/modules/contract/Browser.js:299
↓ 4 callersMethodcontrollerHide
* @description Hide the controller
src/modules/contract/Figure.js:585
↓ 4 callersMethodcontrollerOpen
* @description Open the figure's controller * @param {Node} target Target element * @param {Object} [params={}] params * @param {boolean} [param
src/modules/contract/Figure.js:605
↓ 4 callersMethodcreate
* @description Creates a new image component, wraps it in a figure container with an optional anchor, * - applies size and alignment settings, and i
src/plugins/modal/image/index.js:478
↓ 4 callersMethodcreateIframeTag
* @description Creates a new `IFRAME` element for video embedding. * - Applies any additional properties provided and sets the necessary attributes
src/plugins/modal/video/index.js:556
↓ 4 callersFunctioncreateMockEvent
(type = 'click', customProps = {})
test/__mocks__/editorMock.js:1350
↓ 4 callersFunctioncreateTableWithPicker
(page, rows = 3, cols = 3)
test/e2e/table.spec.js:4
↓ 4 callersMethodgetInputSize
* @description Gets the current width and height input values. * @returns {{w: string, h: string}}
src/plugins/modal/image/services/image.size.js:71
↓ 4 callersFunctiongetNodeDepth
(node)
src/helper/dom/domQuery.js:210
↓ 4 callersMethodgetRects
* @description Get the Rects object. * @param {?(Range|Node)} target `Range` | `Node` | `null` * @param {"start"|"end"} position It is based on th
src/core/logic/dom/selection.js:292
↓ 4 callersFunctiongetTextContent
* @description Get text content from a JSON node recursively * @param {Object} node * @returns {string}
src/helper/markdown.js:78
↓ 4 callersFunctiongetValue
(element)
src/plugins/modal/math.js:551
↓ 4 callersMethodhide
* @description Hides the toolbar.
src/core/logic/panel/toolbar.js:185
↓ 4 callersMethodhueSliderCancelAction
* @optional * This method is called when the hue slider is closed. * @returns {void}
types/interfaces/contracts.d.ts:135
↓ 4 callersFunctionindentBlock
* @description Indent each line of a block string * @param {string} str * @param {string} indent * @returns {string}
src/helper/markdown.js:112
↓ 4 callersMethodinit
* @description Saving the range object and the currently selected node of editor
src/core/logic/dom/selection.js:672
↓ 4 callersMethodinit
* @description Initialize the style service (resets properties).
src/plugins/dropdown/table/services/table.style.js:843
↓ 4 callersMethodisClosureBrLine
* @description It is judged whether it is the `closureBrLine` element. * - (class=`__se__format__br_line__closure_xxx`) * - `closureBrLine` elemen
src/core/logic/dom/format.js:888
↓ 4 callersFunctionjsonToMarkdown
(jsonNode)
src/helper/markdown.js:496
↓ 4 callersFunctionmockEl
(tag)
test/unit/plugins/modal/video.spec.js:71
↓ 4 callersMethodon
* @description Highlights the header of the current line. * @param {Node} line - The `line` element to be highlighted.
src/core/section/documentType.js:458
↓ 4 callersMethodonControllerContext
* @description Set the controller target context to the current top area.
src/core/logic/shell/ui.js:503
↓ 4 callersMethodopen
* @description Open the figure's controller * @param {Node} targetNode Target element * @param {Object} params params * @param {boolean} [params
src/modules/contract/Figure.js:415
↓ 4 callersMethodopen
* @override * @type {PluginModal['open']}
src/plugins/modal/audio.js:141
↓ 4 callersMethodopen
* @override * @type {PluginModal['open']}
src/plugins/modal/embed.js:313
↓ 4 callersMethodopenColorPalette
* @description Handles color selection from the color palette. * @param {Node} button The button triggering the color palette. * @param {string} t
src/plugins/dropdown/table/services/table.style.js:214
↓ 4 callersMethodreplaceAll
* @description Replace all matches (headless API). * @param {string} replaceText Replacement text
src/core/logic/panel/finder.js:241
↓ 4 callersMethodresetInfo
* @description Resets the internal state related to table cell selection, * - clearing any selected cells and removing associated styles and event l
src/plugins/dropdown/table/index.js:725
↓ 4 callersMethodresetRangeToTextNode
* @description Normalizes and resets the selection range to properly target text nodes instead of element nodes for accurate text editing. * @return
src/core/logic/dom/selection.js:544
↓ 4 callersMethodresetTargets
()
src/core/logic/shell/commandDispatcher.js:187
↓ 4 callersFunctionroundNumber
(num)
src/modules/contract/HueSlider.js:569
↓ 4 callersMethodsetDir
* @description Set direction to `rtl` or `ltr`. * @param {"rtl"|"ltr"} dir `rtl` or `ltr`
src/core/logic/shell/ui.js:206
← previousnext →401–500 of 1,891, ranked by callers