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
↓ 7 callers
Method
close
* @description Closes the finder and clears highlights.
src/core/logic/panel/finder.js:169
↓ 7 callers
Method
closeToast
* @description Close toast
src/core/logic/shell/ui.js:475
↓ 7 callers
Method
controllerClose
* @optional * This function is called before the `controller` is closed. * @returns {void}
types/interfaces/contracts.d.ts:75
↓ 7 callers
Function
createMockHost
* Creates a mock host object simulating a plugin instance
test/unit/modules/ColorPicker.spec.js:75
↓ 7 callers
Method
disableBackWrapper
* @description Disabled background `div`
src/core/logic/shell/ui.js:527
↓ 7 callers
Method
disconnect
()
test/setup.js:11
↓ 7 callers
Method
focusCellEdge
* @description Focus cell * @param {HTMLElement} cell Target node
src/plugins/dropdown/table/services/table.selection.js:355
↓ 7 callers
Function
getClientSize
(doc = _d)
src/helper/dom/domUtils.js:455
↓ 7 callers
Method
getNearRange
* @description Returns the range (container and offset) near the given target node. * - If the target node has a next sibling, it returns the next s
src/core/logic/dom/selection.js:217
↓ 7 callers
Method
getRangeAndAddLine
* @description If the `range` object is a non-editable area, add a line at the top of the editor and update the `range` object. * @param {Range} ran
src/core/logic/dom/selection.js:241
↓ 7 callers
Method
isClosureBlock
* @description It is judged whether it is the `closureBlock` element. * - (TH, TD | class=`__se__format__block_closure_xxx`) * - `closureBlock` el
src/core/logic/dom/format.js:872
↓ 7 callers
Function
isElement
(node)
src/helper/dom/domCheck.js:51
↓ 7 callers
Method
modalOff
* @optional * Modal off callback. * @param {boolean} isUpdate - Whether the modal is for editing (`true`) or creating a new one (`false`). * @re
types/interfaces/contracts.d.ts:41
↓ 7 callers
Method
onResizeGuide
* @description Display a guide line during resize operations logic. * @param {MouseEvent} event - Mouse event * @param {HTMLElement} target - Targ
src/plugins/dropdown/table/services/table.resize.js:57
↓ 7 callers
Method
outdent
* @description Indent less the selected lines. * - margin size - `store.get('indentSize')`
src/core/logic/dom/format.js:741
↓ 7 callers
Function
parseInline
* @description Parse inline markdown syntax to HTML * @param {string} text * @returns {string} HTML string
src/helper/markdown.js:512
↓ 7 callers
Method
ready
* @description Prepares the size inputs and proportion state when an image is selected. * @param {SunEditor.Module.Figure.TargetInfo} figureInfo - F
src/plugins/modal/image/services/image.size.js:122
↓ 7 callers
Method
removeNested
* @description Detach Nested all nested lists under the `baseNode`. * - Returns a list with nested removed. * @param {HTMLElement} baseNode Elemen
src/core/logic/dom/listFormat.js:409
↓ 7 callers
Method
resetFileInfo
* @description Initialize the information of the components.
src/core/logic/shell/pluginManager.js:203
↓ 7 callers
Method
resetResponsiveToolbar
* @description Reset buttons of the responsive toolbar.
src/core/logic/panel/toolbar.js:205
↓ 7 callers
Method
scrollPage
* @description Scrolls the document page.
src/core/section/documentType.js:379
↓ 7 callers
Method
set
* @template {keyof ConfigAllBaseOptions} K * @param {K} k * @param {ConfigAllBaseOptions[K]} v
src/core/config/optionProvider.js:372
↓ 7 callers
Method
set
(k, v)
src/core/config/contextProvider.js:184
↓ 7 callers
Method
setEditorStyle
* @description Set editor frame styles. * - Define the style of the edit area * - It can also be defined with the `setOptions` method, but the `se
src/core/logic/shell/ui.js:139
↓ 7 callers
Method
setRelPosition
* @description Sets the relative position of an element * @param {HTMLElement} element Element to position * @param {HTMLElement} e_container Elem
src/core/logic/dom/offset.js:365
↓ 7 callers
Method
setUnMergeButton
* @description Sets the unmerge button visibility.
src/plugins/dropdown/table/services/table.cell.js:267
↓ 7 callers
Method
shortcut
* @hook Editor.Core * @type {SunEditor.Hook.Core.Shortcut}
src/plugins/dropdown/hr.js:87
↓ 7 callers
Method
subscribe
* @description Subscribe to state changes * @template {keyof StoreState} K * @param {K} path - Path to subscribe * @param {(newValue: StoreState
src/core/kernel/store.js:137
↓ 7 callers
Method
upload
* @description Upload the file to the server. * @param {string} uploadUrl Upload server url * @param {?Object<string, string>} uploadHeader Reques
src/modules/manager/FileManager.js:62
↓ 6 callers
Method
#checkContentType
* @description Checks if the given URL matches any of the defined URL patterns. * @param {string} url - The URL to check. * @returns {boolean} `tr
src/plugins/modal/embed.js:130
↓ 6 callers
Method
#draw
* @description Draws the current stroke based on collected points.
src/plugins/modal/drawing.js:250
↓ 6 callers
Method
#setAlignProps
* @description Sets text alignment properties. * @param {Element} el The element to apply alignment to. * @param {string} align The alignment valu
src/plugins/dropdown/table/services/table.style.js:801
↓ 6 callers
Method
#setRel
* @description Updates the `rel` attribute list in the modal and preview. * @param {string} relAttr - The `rel` attribute string to set.
src/modules/ui/ModalAnchorEditor.js:306
↓ 6 callers
Method
CreateFileInput
* @description Create a file input tag in the modal window. * @param {{icons: SunEditor.Deps['icons'], lang: SunEditor.Deps['lang']}} param0 - icons
src/modules/contract/Modal.js:93
↓ 6 callers
Function
GetRegList
* @description Get related list * @param {string} str Regular expression string * @param {string} str2 Regular expression string
src/core/logic/dom/html.js:2174
↓ 6 callers
Function
UpdateStatusbarContext
(statusbar, mapper)
src/core/schema/frameContext.js:168
↓ 6 callers
Method
_OnSplitCells
* @internal * @description Splits a table cell either vertically or horizontally. * @param {"vertical"|"horizontal"} direction The direction to sp
src/plugins/dropdown/table/services/table.cell.js:280
↓ 6 callers
Method
_closeTableSelectInfo
* @description Closes table-related controllers and table figure
src/plugins/dropdown/table/index.js:800
↓ 6 callers
Method
_codeViewAutoHeight
* @internal * @description Adjusts the height of the code view area. * - Ensures the code block `auto`-resizes based on its content. * @param {H
src/core/logic/panel/viewer.js:736
↓ 6 callers
Method
_hideToolbar_sub
* @internal * @description Hide the Sub-Toolbar.
src/core/event/eventOrchestrator.js:188
↓ 6 callers
Method
_initializeCache
* @internal * @description Initializes the cache for document elements. * @param {HTMLCollection} mChr - List of mirrored elements.
src/core/section/documentType.js:277
↓ 6 callers
Method
_isNotTextNode
* @internal * @description Nodes without text * @param {Node|string} element Element to check * @returns {boolean}
src/core/logic/dom/format.js:998
↓ 6 callers
Method
_offControllers
* @internal * @description Closes all open controllers except those marked as `fixed`. * Iterates through `opendControllers`, calls `controllerClo
src/core/logic/shell/ui.js:589
↓ 6 callers
Method
_resetFullScreenHeight
* @internal * @description Resets the full-screen height of the editor. * - Updates the editor's height dynamically when in full-screen mode.
src/core/logic/panel/viewer.js:671
↓ 6 callers
Method
_setCodeView
* @internal * @description Set method in the code view area * @param {string} value HTML string
src/core/logic/panel/viewer.js:708
↓ 6 callers
Method
_setController
* @internal * @description Sets the controller position for a cell. * @param {HTMLTableCellElement} tdElement - The target table cell.
src/plugins/dropdown/table/index.js:752
↓ 6 callers
Function
addClass
(element, className)
src/helper/dom/domUtils.js:383
↓ 6 callers
Function
buildNestedList
* Build a nested list structure inside wysiwyg: * <ul><li>top<ul><li>mid<ul><li>deep</li></ul></li></ul></li></ul> * Returns the deepest text node
test/unit/core/logic/dom/selection.scrollTo.spec.js:122
↓ 6 callers
Method
convertFormat
* @description Convert format to `link` or `block` * @param {HTMLElement} target Target element * @param {string} value `link` or `block`
src/plugins/command/fileUpload.js:310
↓ 6 callers
Method
copy
* @description Call `clipboard.write` to copy the contents and display a success/failure toast message. * @param {Node|Element|Text|string} content
src/core/logic/dom/html.js:1269
↓ 6 callers
Method
getLinesAndComponents
* @description Get lines and components from the selected range. (P, DIV, H[1-6], OL, UL, TABLE..) * - If some of the component are included in the
src/core/logic/dom/format.js:966
↓ 6 callers
Function
hardDelete
* @description Deletes specific elements such as tables in `Firefox` and media elements (image, video, audio) in `Chrome`. * - Handles deletion logic
src/core/event/effects/ruleHelpers.js:28
↓ 6 callers
Method
hide
* @description Hide controller
src/modules/contract/Controller.js:251
↓ 6 callers
Method
initCellSelection
* @description Initializes cell selection state and applies visual styles. * Sets up the fixed cell, selected cells array, and table reference. *
src/plugins/dropdown/table/services/table.selection.js:291
↓ 6 callers
Function
isBlankLine
* @description Check if a string is empty or contains only zero-width characters * @param {string} str * @returns {boolean}
src/helper/markdown.js:29
↓ 6 callers
Method
isButtonDisabled
* @description Check if the button can be executed in the current state (ReadOnly, etc.) * @param {Node} button * @returns {boolean}
src/core/logic/shell/ui.js:792
↓ 6 callers
Method
mergeNestedTags
* @description Remove nested tags without other child nodes. * @param {Node} element Element object * @param {?(((current: Node) => boolean)|strin
src/core/logic/dom/nodeTransform.js:307
↓ 6 callers
Function
nodeToHtmlFallback
* @description Convert a JSON element node to its HTML string (for fallback) * @param {Object} node * @returns {string}
src/helper/markdown.js:90
↓ 6 callers
Function
nodeToMarkdown
* @description Convert a single JSON node to markdown * @param {Object} node JSON node from htmlToJson * @param {string} indent Current indentation
src/helper/markdown.js:294
↓ 6 callers
Method
observe
()
test/setup.js:9
↓ 6 callers
Method
off
* @override * @type {PluginDropdownFree['off']}
src/plugins/dropdown/table/index.js:164
↓ 6 callers
Method
onKeyDown
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnKeyDown}
src/plugins/dropdown/table/index.js:461
↓ 6 callers
Method
open
* @description Opens the finder. With panel: shows UI. Without panel: activates search state only. * @param {boolean} [replaceMode=true] Whether to
src/core/logic/panel/finder.js:119
↓ 6 callers
Method
open
* @override * @type {PluginModal['open']}
src/plugins/modal/image/index.js:219
↓ 6 callers
Method
pageGo
* @description Moves to a specific page. * @param {number} pageNum - The target page number.
src/core/section/documentType.js:447
↓ 6 callers
Method
pageUp
* @description Moves to the previous page.
src/core/section/documentType.js:430
↓ 6 callers
Function
removeClass
(element, className)
src/helper/dom/domUtils.js:405
↓ 6 callers
Method
resizePage
* @description Resizes the document page dynamically.
src/core/section/documentType.js:353
↓ 6 callers
Method
setMany
@param {Map<*, *>} obj
src/core/config/optionProvider.js:387
↓ 6 callers
Method
setOriginSize
* @description Sets the original width and height of the image. * @param {string} w - Original width * @param {string} h - Original height
src/plugins/modal/image/services/image.size.js:83
↓ 6 callers
Method
setState
* @template {keyof ImageState} K * @param {K} key * @param {ImageState[K]} value
src/plugins/modal/image/index.js:211
↓ 6 callers
Method
setState
* @template {keyof VideoState} K * @param {K} key * @param {VideoState[K]} value
src/plugins/modal/video/index.js:260
↓ 6 callers
Method
tagfilter
* @description Filter items by tag * @param {Array<BrowserFile>} items - Items to filter * @returns {Array<BrowserFile>} * @example * // Filte
src/modules/contract/Browser.js:284
↓ 5 callers
Method
#drawListItem
* @description Updates the displayed list of file items. * @param {Array<BrowserFile>} items - The file items to display. * @param {boolean} updat
src/modules/contract/Browser.js:322
↓ 5 callers
Method
#nonFormat
* @description A function that distinguishes non-formatting HTML elements or tags from formatting ones. * @param {Node} element Element * @returns
src/core/logic/dom/format.js:1020
↓ 5 callers
Method
#removeGlobalEvent
* @description Remove global event listeners
src/core/logic/panel/menu.js:368
↓ 5 callers
Method
#removeGlobalEvents
* @description Removes global event listeners and resets resize-related properties.
src/plugins/dropdown/table/services/table.selection.js:450
↓ 5 callers
Method
#setResizeLinePosition
* @description Sets the resize line position. * @param {HTMLElement} figure The table figure element. * @param {HTMLElement} target The target ele
src/plugins/dropdown/table/services/table.resize.js:367
↓ 5 callers
Method
CreateCaption
* @description Return HTML string of caption(`FIGCAPTION`) element * @param {Node} cover Cover element(`FIGURE`). `CreateContainer().cover` * @ret
src/modules/contract/Figure.js:270
↓ 5 callers
Function
CreateCellsString
(nodeName, cnt)
src/plugins/dropdown/table/shared/table.utils.js:127
↓ 5 callers
Function
IsResizeEls
(node)
src/plugins/dropdown/table/shared/table.utils.js:69
↓ 5 callers
Method
__removeGlobalEvent
* @internal * @description Removes global event listeners that were previously added for component interactions.
src/core/logic/shell/component.js:620
↓ 5 callers
Method
_convertToCode
* @internal * @description construct wysiwyg area element to html string * @param {Node|string} html WYSIWYG element (this.#frameContext.get('wysi
src/core/logic/dom/html.js:1322
↓ 5 callers
Function
_createFormatInfo
* @description Create formats regexp object. * @param {string} value value * @param {string} defaultValue default value * @param {string} blacklist
src/core/section/constructor.js:1097
↓ 5 callers
Method
_displayCurrentPage
* @internal * @description Displays the current page number.
src/core/section/documentType.js:487
↓ 5 callers
Method
_displayResizeHandles
* @internal * @description Displays or hides the resize handles of the figure component. * @param {boolean} display Whether to display resize hand
src/modules/contract/Figure.js:1052
↓ 5 callers
Method
_getCodeView
* @internal * @description Get method in the code view area
src/core/logic/panel/viewer.js:720
↓ 5 callers
Method
_getDisplayPage
()
src/core/section/documentType.js:245
↓ 5 callers
Method
_getWWScrollTop
* @internal * @description Retrieves the scroll position in WYSIWYG mode. * @returns {number} The current scroll position.
src/core/section/documentType.js:497
↓ 5 callers
Method
_isNonSplitNode
* @internal * @description Nodes that must remain undetached when changing text nodes (A, Label, Code, Span:font-size) * @param {Node|string} elem
src/core/logic/dom/inline.js:427
↓ 5 callers
Method
_registerShortcuts
* @internal * @description Registers custom shortcut keys (keys starting with `_`) into the shortcut map. * Called during initialization and when
src/core/logic/shell/shortcuts.js:109
↓ 5 callers
Method
_setCellControllerPosition
* @internal * @description Sets the position of the cell controller. * @param {HTMLTableCellElement} tdElement - The target table cell. * @param
src/plugins/dropdown/table/index.js:773
↓ 5 callers
Method
asyncUpload
* @description Upload the file to the server. * @param {string} uploadUrl Upload server url * @param {?Object<string, string>} uploadHeader Reques
src/modules/manager/FileManager.js:92
↓ 5 callers
Function
cleanRemovedTags
* @description Cleans up removed tags and normalizes DOM structure. * Removes orphaned nodes that are outside the format element's valid range. * @p
src/core/event/effects/ruleHelpers.js:68
↓ 5 callers
Method
clear
()
src/core/config/contextProvider.js:199
↓ 5 callers
Method
close
* @description Close the figure's controller
src/modules/contract/Figure.js:383
↓ 5 callers
Method
componentEdit
* @optional * Executes the method that is called when a component is being edited. * @param {HTMLElement} target - Target element * @returns {vo
types/interfaces/contracts.d.ts:169
↓ 5 callers
Method
copySelectedTableCells
* @description Copies the selected table cells to the clipboard. * @param {ClipboardEvent} e - Event object * @param {HTMLElement} container - The
src/plugins/dropdown/table/services/table.clipboard.js:37
↓ 5 callers
Method
createInline
* @description Creates a new inline image component, wraps it in an inline figure container with an optional anchor, * - applies size settings, and
src/plugins/modal/image/index.js:523
↓ 5 callers
Function
createMockThis
(editor = null, customProps = {})
test/__mocks__/editorMock.js:1228
← previous
next →
301–400 of 1,891, ranked by callers