MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 2 callersMethod_getGlobalTop
* @internal * @description Retrieves the global top offset of an element. * @returns {number} The top offset of the element.
src/core/section/documentType.js:553
↓ 2 callersMethod_getHeaders
* @internal * @description Retrieves all headers in the document. * @returns {NodeListOf<Element>} An array of header elements.
src/core/section/documentType.js:606
↓ 2 callersMethod_initCommandButtons
* @internal * @description Caching basic buttons to use
src/core/logic/shell/commandDispatcher.js:196
↓ 2 callersFunction_isSafeURL
* @description Check if a URL is safe (matches the allowed protocol whitelist). * @param {string} url Raw URL string * @returns {boolean}
src/core/logic/dom/html.js:2146
↓ 2 callersFunction_isUneditableNode_getSibling
* @description Retrieves the sibling node of a selected node if it is uneditable. || component node. * - Used only in `_isUneditableNode`. * @param
src/core/event/effects/ruleHelpers.js:124
↓ 2 callersFunction_makeColor
* @param {Array<string|{value: string, name?: string}>} colorList - Color list * @param {number} splitNum - Number of colors per row * @returns {str
src/modules/contract/ColorPicker.js:335
↓ 2 callersFunction_mergeObject
* @description Returns a new object with merge `a` and `b` * @param {Object<*, *>} a object * @param {Object<*, *>} b object * @returns {Object<*,
src/core/section/constructor.js:403
↓ 2 callersFunction_parseErrorResponse
* @description Parses error response from XMLHttpRequest. * Safely handles non-text responseTypes (blob, arraybuffer, etc.) where accessing responseT
src/modules/manager/ApiManager.js:230
↓ 2 callersMethod_setResponsive
* @internal * @description Set up responsive behavior for the toolbar buttons.
src/core/logic/panel/toolbar.js:330
↓ 2 callersMethod_setRevert
* @internal * @description Reverts the figure element to its previously saved size.
src/modules/contract/Figure.js:1293
↓ 2 callersMethod_showToolbarBalloonDelay
* @internal * @description Show toolbar-balloon with delay.
src/core/event/eventOrchestrator.js:128
↓ 2 callersMethod_stopResize
* @internal * @description Stops resizing the table. * @param {HTMLElement} target The target element. * @param {string} prevValue The previous
src/plugins/dropdown/table/services/table.resize.js:397
↓ 2 callersMethodactive
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.Active}
src/plugins/modal/link.js:88
↓ 2 callersFunctionalignAttr
(idx)
src/helper/markdown.js:749
↓ 2 callersMethodapplyColorPicker
* @description Applies the color from the color picker. * @param {any} color - The color string or object.
src/plugins/dropdown/table/services/table.style.js:333
↓ 2 callersMethodapplyInsertBehavior
* @description Handles post-insertion behavior for a newly created component based on the specified mode. * @param {Node} container The inserted com
src/core/logic/shell/component.js:183
↓ 2 callersMethodapplySize
* @description Sets the size of the video element. * @param {string|number} w - The width of the video. * @param {string|number} h - The height of
src/plugins/modal/video/services/video.size.js:101
↓ 2 callersFunctionbuildDOM
()
test/unit/core/logic/dom/offset.numerical.spec.js:155
↓ 2 callersFunctionbuildOuterNestedList
* Build a nested list and return the OUTER <li> and its text node. * The outer <li> has a large offsetHeight (includes nested sub-lists), * but
test/unit/core/logic/dom/selection.scrollTo.spec.js:196
↓ 2 callersFunctionchange
* @description Triggers onChange event and updates UI after history state changes. * @param {SunEditor.FrameContext} fc The frame context. * @para
src/core/logic/shell/history.js:32
↓ 2 callersMethodclose
* @description Close the hue slider. * - Call the instance's `hueSliderCancelAction` method.
src/modules/contract/HueSlider.js:186
↓ 2 callersMethodcloseProps
* @description Closes the properties dialog.
src/plugins/dropdown/table/services/table.style.js:563
↓ 2 callersMethodcomponentCopy
* @optional * Executes the method that is called when a component copy is requested. * @param {SunEditor.HookParams.CopyComponent} params - Copy c
types/interfaces/contracts.d.ts:183
↓ 2 callersMethodcompress
* @description HTML code compression * @param {string} html HTML string * @returns {string} HTML string
src/core/logic/dom/html.js:1311
↓ 2 callersMethodconvertUrlYoutube
* @description Converts a YouTube URL into an embeddable URL. * - If the URL does not start with `"http"`, it prepends `"https://"`. * - It also r
src/plugins/modal/video/index.js:437
↓ 2 callersMethodcreate
* @description Creates an anchor (`<a>`) element with the specified attributes. * @param {boolean} notText - If `true`, the anchor will not contain
src/modules/ui/ModalAnchorEditor.js:230
↓ 2 callersMethodcreate
* @description Create file element * @param {string} url File URL * @param {File|{name: string, size: number}} file File object * @param {boolea
src/plugins/command/fileUpload.js:352
↓ 2 callersMethodcreate
* @description Creates or updates a video embed component. * - When updating, it replaces the existing element if necessary * - and applies the ne
src/plugins/modal/video/index.js:493
↓ 2 callersFunctioncreateGradientBar
(color)
src/modules/contract/HueSlider.js:365
↓ 2 callersFunctiondegreeToRadian
(deg)
src/modules/contract/HueSlider.js:492
↓ 2 callersMethoddropdownShow
* @description Shows a previously hidden dropdown menu that is still in `on` state. * - Only works when a dropdown is active (`currentButton` exists
src/core/logic/panel/menu.js:179
↓ 2 callersFunctionextractInputKeys
* @description Extracts user input option keys (`options.xxx`) from a function body in constructor.js * @param {string} src Full source code * @para
test/unit/core/config/options.spec.js:22
↓ 2 callersMethodfindProcessUrl
* @description Finds and processes the URL for video by matching it against known service patterns. * @param {string} url - The original URL. * @r
src/plugins/modal/video/index.js:414
↓ 2 callersFunctiongetArrayIndex
(array, node)
src/helper/dom/domUtils.js:191
↓ 2 callersFunctiongetDefaultColor
()
src/modules/contract/HueSlider.js:376
↓ 2 callersFunctiongetLangObject
(fileContent)
scripts/check/langs-sync.cjs:44
↓ 2 callersFunctiongetNodeFromPath
(offsets, parentNode)
src/helper/dom/domQuery.js:81
↓ 2 callersFunctiongetNodePath
(node, parentNode, _newOffsets)
src/helper/dom/domQuery.js:29
↓ 2 callersFunctiongetWheelColor
(wCtx)
src/modules/contract/HueSlider.js:389
↓ 2 callersMethodinit
* @description Initialize the hue slider information.
src/modules/contract/HueSlider.js:258
↓ 2 callersFunctioninitRoot
* @description Initializes a root frame's history stack. * @param {*} rootKey Root frame key.
src/core/logic/shell/history.js:164
↓ 2 callersFunctionisContentLess
(node)
src/helper/dom/domCheck.js:177
↓ 2 callersFunctionisList
(node)
src/helper/dom/domCheck.js:78
↓ 2 callersFunctionisTable
(node)
src/helper/dom/domCheck.js:96
↓ 2 callersFunctionlistToMarkdown
* @description Convert a list JSON node (ul/ol) to markdown * @param {Object} node * @param {string} indent Current indentation * @param {boolean}
src/helper/markdown.js:129
↓ 2 callersMethodmarkdownView
* @description Changes to markdown view or wysiwyg view * @param {boolean} [value] `true`/`false`, If `undefined` toggle the `markdownView` mode.
src/core/logic/panel/viewer.js:174
↓ 2 callersMethodon
* @description Opens the anchor editor modal and populates it with data. * @param {boolean} isUpdate - Indicates whether an existing anchor is being
src/modules/ui/ModalAnchorEditor.js:190
↓ 2 callersMethodonMouseLeave
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnMouseLeave}
src/plugins/dropdown/table/index.js:453
↓ 2 callersMethodonMouseUp
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnMouseUp}
src/plugins/dropdown/table/index.js:445
↓ 2 callersMethodopen
* @description Select menu open * @param {?string} [position] `"[left|right]-[middle|top|bottom] | [top|bottom]-[center|left|right]"` * Always spe
src/modules/ui/SelectMenu.js:156
↓ 2 callersMethodopen
* @override * @type {PluginModal['open']}
src/plugins/modal/math.js:143
↓ 2 callersMethodopenBorderStyleMenu
* @description Opens the border style menu.
src/plugins/dropdown/table/services/table.style.js:205
↓ 2 callersMethodopenColumnMenu
* @description Opens the column menu.
src/plugins/dropdown/table/services/table.grid.js:49
↓ 2 callersMethodopenSplitMenu
* @description Opens the split menu.
src/plugins/dropdown/table/services/table.cell.js:49
↓ 2 callersMethodpageDown
* @description Moves to the next page.
src/core/section/documentType.js:438
↓ 2 callersFunctionparseList
* @description Parse markdown list into HTML * @param {string[]} lines * @param {number} startIndex * @param {boolean} ordered * @returns {{ html:
src/helper/markdown.js:785
↓ 2 callersFunctionparseRow
(line)
src/helper/markdown.js:723
↓ 2 callersFunctionparseTable
* @description Parse markdown table lines into HTML table * @param {string[]} tableLines * @returns {string}
src/helper/markdown.js:720
↓ 2 callersMethodresetPropsAlign
* @description Resets the alignment properties for table cells.
src/plugins/dropdown/table/services/table.style.js:303
↓ 2 callersFunctionrestoreWindowMocks
()
test/unit/core/logic/dom/offset.numerical.spec.js:359
↓ 2 callersMethodselectCells
* @description Selects a group of table cells and sets internal state related to multi-cell selection. * @param {HTMLTableCellElement[]} cells - An
src/plugins/dropdown/table/services/table.selection.js:64
↓ 2 callersMethodsend
()
test/setup.js:26
↓ 2 callersFunctionsetContentFromStack
* @description Restores content from the history stack and updates the editor state. * @param {number} increase Direction to move in the stack: -1 f
src/core/logic/shell/history.js:46
↓ 2 callersFunctionsetFinalColor
()
src/modules/contract/HueSlider.js:380
↓ 2 callersFunctionsetHex
(hex)
src/modules/contract/HueSlider.js:385
↓ 2 callersMethodsetOriginSize
* @description Sets the original width and height of the video. * @param {string} w - Original width * @param {string} h - Original height
src/plugins/modal/video/services/video.size.js:91
↓ 2 callersMethodsetRequestHeader
()
test/setup.js:27
↓ 2 callersMethodsetRowInfo
* @description Sets row-related information based on the provided table row element (`<tr>`). This includes updating the row count and the index of th
src/plugins/dropdown/table/index.js:701
↓ 2 callersFunctionsetStack
* @description Saves content and selection to the history stack. * @param {string} content HTML content to save. * @param {Range} range Selection
src/core/logic/shell/history.js:114
↓ 2 callersMethodsetVerticalAlignProps
* @description Sets the vertical alignment properties. * @param {string} value - The vertical alignment value.
src/plugins/dropdown/table/services/table.style.js:351
↓ 2 callersMethodshow
* @description Show controller
src/modules/contract/Controller.js:259
↓ 2 callersMethodstartCellSelection
* @description Starts cell selection with global event listeners for drag/shift selection. * **WARNING**: Registers global events (mousemove/mousedo
src/plugins/dropdown/table/services/table.selection.js:308
↓ 2 callersMethodsubmit
* @description Add a bulleted list * @param {string} [type=""] List type
src/plugins/command/list_bulleted.js:111
↓ 2 callersMethodsubmit
* @description Add a numbered list * @param {string} [type=""] List type
src/plugins/command/list_numbered.js:111
↓ 2 callersMethodsubmitFile
* @description Create a `file` component using the provided files. * @param {File[]|FileList} fileList File object list * @returns {Promise<boolea
src/plugins/command/fileUpload.js:238
↓ 2 callersMethodsubmitFile
* @description Create an `image` component using the provided files. * @param {FileList|File[]} fileList File object list * @returns {Promise<bool
src/plugins/modal/image/index.js:369
↓ 2 callersMethodsubmitFile
* @description Create a `video` component using the provided files. * @param {FileList|File[]} fileList File object list * @returns {Promise<boole
src/plugins/modal/video/index.js:591
↓ 2 callersFunctionwait
(ms = 50)
test/integration/listFormat.extended.spec.js:148
↓ 1 callersMethod#COPY_FORMAT
* @description Copies formatting from selected text. * @param {Node} button - The button triggering the copy format function.
src/core/logic/shell/_commandExecutor.js:328
↓ 1 callersMethod#CheckKatex
* @returns {*} - The `KaTeX` instance or `null` if the instance is invalid.
src/plugins/modal/math.js:413
↓ 1 callersMethod#CheckMathJax
* @returns {*}
src/plugins/modal/math.js:440
↓ 1 callersMethod#Create
* @description Creates the editor instance and initializes components. * @param {SunEditor.InitOptions} originOptions - The initial editor options.
src/core/editor.js:256
↓ 1 callersMethod#CreateContextMap
* @description Creates a utility wrapper for editor base options. * - Provides get, set, has, getAll with internal Map support. * @param {*} _cont
src/core/config/contextProvider.js:177
↓ 1 callersMethod#CreateFrameContextMap
* @description Creates a utility wrapper for editor base options. * - Provides get, set, has, getAll with internal Map support. * @param {{value:
src/core/config/contextProvider.js:211
↓ 1 callersMethod#CreateFrameOptionsMap
* @description Creates a utility wrapper for editor frame options. * Provides get, set, has, getAll, and setMany methods with internal Map support.
src/core/config/optionProvider.js:421
↓ 1 callersMethod#CreateOptionsMap
* @description Creates a utility wrapper for editor base options. * - Provides get, set, has, getAll, and setMany methods with internal Map support.
src/core/config/optionProvider.js:355
↓ 1 callersMethod#FONT_STYLE
* @description Applies font styling to selected text. * @param {string} command - The font style command (e.g., bold, italic, underline).
src/core/logic/shell/_commandExecutor.js:370
↓ 1 callersMethod#GetResetDiffKey
(key)
src/core/config/optionProvider.js:333
↓ 1 callersMethod#OpenTab
* @description Opens a specific tab inside the modal. * @param {MouseEvent|string} e - The event object or tab name. * @returns {boolean} - Whethe
src/plugins/modal/image/index.js:855
↓ 1 callersMethod#PAGE_BREAK
* @description Inserts a page break element into the editor.
src/core/logic/shell/_commandExecutor.js:389
↓ 1 callersMethod#RestoreFrameOptions
(key, option, frameRoots, rootDiff, newRootKeys, newRoots)
src/core/config/optionProvider.js:308
↓ 1 callersMethod#SAVE
* @description Saves the editor content. * @returns {Promise<void>}
src/core/logic/shell/_commandExecutor.js:298
↓ 1 callersMethod#SELECT_ALL
* @description Selects all content in the editor.
src/core/logic/shell/_commandExecutor.js:188
↓ 1 callersMethod#SELECT_ALL_FULL
* @description Selects all content in the entire editor without scope stepping.
src/core/logic/shell/_commandExecutor.js:263
↓ 1 callersMethod#activeDirBtn
* @description Toggles direction button active state. * @param {boolean} rtl - Whether the text direction is right-to-left.
src/core/logic/shell/ui.js:712
↓ 1 callersMethod#addContentInputListener
@description Listen for wysiwyg edits to auto-refresh highlights.
src/core/logic/panel/finder.js:291
↓ 1 callersMethod#addCtrlLeaveEvent
()
src/plugins/command/codeBlock.js:248
↓ 1 callersMethod#addEvents
* @description Adds event listeners for menu interactions.
src/modules/ui/SelectMenu.js:418
↓ 1 callersMethod#addGlobalCloseEvent
@description Register global ESC keydown (capture) to close finder.
src/core/logic/panel/finder.js:271
↓ 1 callersMethod#addGlobalEvent
* @description Adds global event listeners for resizing the modal. * @param {string} dir - The direction in which resizing is occurring.
src/modules/contract/Modal.js:249
← previousnext →701–800 of 1,891, ranked by callers