Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JiHong88/suneditor
/ functions
Functions
1,891 in github.com/JiHong88/suneditor
⨍
Functions
1,891
◇
Types & classes
460
↓ 5 callers
Method
createNestedNode
* @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 callers
Method
createVideoTag
* @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 callers
Method
emitEventAsync
* @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 callers
Method
findPrev
* @description Navigate to previous match (public for shortcut binding).
src/core/logic/panel/finder.js:203
↓ 5 callers
Method
get
* @description Get a specific plugin instance * @param {string} name * @returns {*}
src/core/logic/shell/pluginManager.js:339
↓ 5 callers
Method
getBrLine
* @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 callers
Method
getItem
* @description Get the index of the selected item * @param {number} index Item index * @returns
src/modules/ui/SelectMenu.js:188
↓ 5 callers
Method
getVisibleFigure
* @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 callers
Method
hoverSelect
* @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 callers
Function
isRtlBidiMismatch
* @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 callers
Method
mergeCells
* @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 callers
Method
offResizeGuide
* @description Hides the resize guide line.
src/plugins/dropdown/table/services/table.resize.js:85
↓ 5 callers
Method
onChangeText
* @description Handles text changes in the document.
src/core/section/documentType.js:474
↓ 5 callers
Method
onMouseMove
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnMouseMove}
src/plugins/dropdown/table/index.js:392
↓ 5 callers
Method
open
* @override * @type {PluginModal['open']}
src/plugins/modal/video/index.js:268
↓ 5 callers
Method
openTableProps
* @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 callers
Method
refresh
* @description Re-run search with current term (debounced 300ms). Called on wysiwyg content change.
src/core/logic/panel/finder.js:256
↓ 5 callers
Method
resetPosition
* @description Reset controller position * @param {Node} [target] * @example * // Reposition using a new target element * this.controller_cell
src/modules/contract/Controller.js:288
↓ 5 callers
Method
resolveSize
* @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 callers
Function
roundtrip
(html)
test/unit/helper/markdown.spec.js:259
↓ 5 callers
Method
setData
(format, data)
test/setup.js:128
↓ 5 callers
Function
setDefaultLine
* @description Execute `eventManager._setDefaultLine` * @param {EventPorts} ports - Reducer ports * @param {string} lineTagName - `line` tag name *
src/core/event/effects/ruleHelpers.js:144
↓ 5 callers
Method
setFigureContainer
* @description Set the active figure element (image, video) being resized. * @param {?HTMLElement} figure
src/core/logic/shell/ui.js:561
↓ 5 callers
Method
setMergeSplitButton
* @description Sets the merge/split button visibility.
src/plugins/dropdown/table/services/table.cell.js:254
↓ 5 callers
Method
setSize
* @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 callers
Method
toggleCaption
* @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 callers
Method
toggleHeader
* @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 callers
Method
toolbarInputChange
* @optional * @description Executes the event function of toolbar's input tag - `change`. * @param {SunEditor.HookParams.ToolbarInputChange} param
src/interfaces/plugins.js:212
↓ 4 callers
Method
#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 callers
Method
#clearDeferredShow
* @description Clear deferred show timer and viewport listener.
src/core/logic/panel/menu.js:320
↓ 4 callers
Method
#clearHighlights
@description Remove all highlights (native + mark).
src/core/logic/panel/finder.js:706
↓ 4 callers
Method
#getFrameWindow
* @returns {SunEditor.GlobalWindow}
src/core/config/instanceCheck.js:54
↓ 4 callers
Method
#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 callers
Method
#getViewportTop
* @description Get the viewport's top offset. * @returns {number}
src/core/logic/panel/toolbar.js:509
↓ 4 callers
Method
#goToMatch
@description Scroll to current match and update active highlight.
src/core/logic/panel/finder.js:741
↓ 4 callers
Method
#init
* @description Initializes state variables. * - called when the popup is closed
src/plugins/popup/anchor.js:168
↓ 4 callers
Method
#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 callers
Method
#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 callers
Method
#onSticky
* @description Enable `sticky` toolbar mode and adjust position.
src/core/logic/panel/toolbar.js:483
↓ 4 callers
Method
#saveCurrentSize
* @description Saves the current size of the figure component.
src/modules/contract/Figure.js:1316
↓ 4 callers
Method
#scrollContainer
* @description Handles the scrolling of the editor container. * - Repositions open controllers if necessary.
src/core/event/eventOrchestrator.js:719
↓ 4 callers
Method
#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 callers
Method
#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 callers
Method
#setLinkPreview
* @description Updates the preview of the anchor link. * @param {string} value - The current URL value.
src/modules/ui/ModalAnchorEditor.js:358
↓ 4 callers
Method
#setMenuPosition
* @description Set the menu position. * @param {Node} element Button element * @param {HTMLElement} menu Menu element
src/core/logic/panel/menu.js:267
↓ 4 callers
Method
#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 callers
Method
#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 callers
Method
#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 callers
Method
#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 callers
Method
#updateCount
@description Update match count display and prev/next button state. Panel-only.
src/core/logic/panel/finder.js:864
↓ 4 callers
Function
CheckCellEdge
(event, tableCell)
src/plugins/dropdown/table/shared/table.utils.js:88
↓ 4 callers
Function
CloneTable
(table, selectedCells)
src/plugins/dropdown/table/shared/table.utils.js:189
↓ 4 callers
Function
CreateBorderFormatMenu
(langs, icons, indideFormats)
src/plugins/dropdown/table/render/table.menu.js:102
↓ 4 callers
Function
CreateCellsHTML
(nodeName)
src/plugins/dropdown/table/shared/table.utils.js:137
↓ 4 callers
Method
CreateInlineContainer
* @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 callers
Function
IsVertical
* @param {Node|number} elementOrDeg Target element * @returns {boolean} Whether to rotate vertically
src/modules/contract/Figure.js:1647
↓ 4 callers
Function
LineDelete_next
* @param {HTMLElement} formatEl - Format element * @returns {Node}
src/core/event/effects/keydown.registry.js:547
↓ 4 callers
Function
LineDelete_prev
* @param {HTMLElement} formatEl - Format element * @returns {{focusNode: Node, focusOffset: number}}
src/core/event/effects/keydown.registry.js:572
↓ 4 callers
Function
SN_StripRemoveNode
* @description Strip remove node * @param {Node} removeNode The remove node
src/core/logic/dom/inline.js:1839
↓ 4 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_resetInfo
* @internal * @description Reset info object and `infoList = []`, `infoIndex = 0`
src/modules/manager/FileManager.js:213
↓ 4 callers
Method
_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 callers
Method
_toggleToolbarBalloon
* @internal * @description Show or hide the toolbar-balloon.
src/core/event/eventOrchestrator.js:160
↓ 4 callers
Function
callRegister
(infoOverrides, resultItems)
test/unit/plugins/modal/image/services/image.upload.spec.js:293
↓ 4 callers
Function
check
()
test/__mocks__/editorMock.js:1466
↓ 4 callers
Method
closeBrowserLoading
* @description Close file browser loading box
src/modules/contract/Browser.js:299
↓ 4 callers
Method
controllerHide
* @description Hide the controller
src/modules/contract/Figure.js:585
↓ 4 callers
Method
controllerOpen
* @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 callers
Method
create
* @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 callers
Method
createIframeTag
* @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 callers
Function
createMockEvent
(type = 'click', customProps = {})
test/__mocks__/editorMock.js:1350
↓ 4 callers
Function
createTableWithPicker
(page, rows = 3, cols = 3)
test/e2e/table.spec.js:4
↓ 4 callers
Method
getInputSize
* @description Gets the current width and height input values. * @returns {{w: string, h: string}}
src/plugins/modal/image/services/image.size.js:71
↓ 4 callers
Function
getNodeDepth
(node)
src/helper/dom/domQuery.js:210
↓ 4 callers
Method
getRects
* @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 callers
Function
getTextContent
* @description Get text content from a JSON node recursively * @param {Object} node * @returns {string}
src/helper/markdown.js:78
↓ 4 callers
Function
getValue
(element)
src/plugins/modal/math.js:551
↓ 4 callers
Method
hide
* @description Hides the toolbar.
src/core/logic/panel/toolbar.js:185
↓ 4 callers
Method
hueSliderCancelAction
* @optional * This method is called when the hue slider is closed. * @returns {void}
types/interfaces/contracts.d.ts:135
↓ 4 callers
Function
indentBlock
* @description Indent each line of a block string * @param {string} str * @param {string} indent * @returns {string}
src/helper/markdown.js:112
↓ 4 callers
Method
init
* @description Saving the range object and the currently selected node of editor
src/core/logic/dom/selection.js:672
↓ 4 callers
Method
init
* @description Initialize the style service (resets properties).
src/plugins/dropdown/table/services/table.style.js:843
↓ 4 callers
Method
isClosureBrLine
* @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 callers
Function
jsonToMarkdown
(jsonNode)
src/helper/markdown.js:496
↓ 4 callers
Function
mockEl
(tag)
test/unit/plugins/modal/video.spec.js:71
↓ 4 callers
Method
on
* @description Highlights the header of the current line. * @param {Node} line - The `line` element to be highlighted.
src/core/section/documentType.js:458
↓ 4 callers
Method
onControllerContext
* @description Set the controller target context to the current top area.
src/core/logic/shell/ui.js:503
↓ 4 callers
Method
open
* @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 callers
Method
open
* @override * @type {PluginModal['open']}
src/plugins/modal/audio.js:141
↓ 4 callers
Method
open
* @override * @type {PluginModal['open']}
src/plugins/modal/embed.js:313
↓ 4 callers
Method
openColorPalette
* @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 callers
Method
replaceAll
* @description Replace all matches (headless API). * @param {string} replaceText Replacement text
src/core/logic/panel/finder.js:241
↓ 4 callers
Method
resetInfo
* @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 callers
Method
resetRangeToTextNode
* @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 callers
Method
resetTargets
()
src/core/logic/shell/commandDispatcher.js:187
↓ 4 callers
Function
roundNumber
(num)
src/modules/contract/HueSlider.js:569
↓ 4 callers
Method
setDir
* @description Set direction to `rtl` or `ltr`. * @param {"rtl"|"ltr"} dir `rtl` or `ltr`
src/core/logic/shell/ui.js:206
← previous
next →
401–500 of 1,891, ranked by callers