MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 4 callersFunctionsetProp
(el, key, value)
test/unit/core/logic/dom/selection.scrollTo.spec.js:48
↓ 4 callersMethodtoolbarInputKeyDown
* @optional * @description Executes the event function of toolbar's input tag - `keydown`. * @param {SunEditor.HookParams.ToolbarInputKeyDown} par
src/interfaces/plugins.js:202
↓ 4 callersFunctionupdatePointer_bar
(x)
src/modules/contract/HueSlider.js:348
↓ 4 callersFunctionupdatePointer_wheel
(x, y)
src/modules/contract/HueSlider.js:330
↓ 3 callersMethod#activeAsInline
* @description Toggles between `block` and `inline` image format. * @param {boolean} isInline - Whether the image should be `inline`.
src/plugins/modal/image/index.js:612
↓ 3 callersMethod#addResizeGlobalEvents
* @description Adds global event listeners for resizing. * @param {(...args: *) => void} resizeFn The function handling the resize event. * @param
src/plugins/dropdown/table/services/table.resize.js:415
↓ 3 callersMethod#childrenSync
* @description Synchronously all child controllers. * @param {"show"|"hide"|"close"} state - State to apply to child controllers.
src/modules/contract/Controller.js:308
↓ 3 callersMethod#cleanStyle
* @description Cleans the inline style attributes of an HTML element. * - Extracts allowed styles and removes disallowed ones based on editor settin
src/core/logic/dom/html.js:1786
↓ 3 callersMethod#createBookmarkList
* @description Generates a list of bookmark headers within the editor. * @param {string} urlValue - The current URL input value.
src/modules/ui/ModalAnchorEditor.js:332
↓ 3 callersMethod#createDefaultRange
* @description Return the range object of editor's first child node * @returns {Range}
src/core/logic/dom/selection.js:731
↓ 3 callersMethod#deletePercentSize
* @description Deletes percentage-based sizing from the figure element.
src/modules/contract/Figure.js:1274
↓ 3 callersMethod#drawFileList
* @description Fetches the file list from the server. * @param {string} url - The file server URL. * @param {Object<string, string>} headers - The
src/modules/contract/Browser.js:309
↓ 3 callersMethod#escapeBackslashes
* @description Escapes or unescapes backslashes in a given string. * @param {string} str - The input string. * @param {boolean} decode - If `true`
src/plugins/modal/math.js:361
↓ 3 callersMethod#findAllMatches
* @description Find all text matches. Text nodes are concatenated with `\n` between * different line elements to prevent cross-line matching. Single
src/core/logic/panel/finder.js:479
↓ 3 callersMethod#getPreLang
* @description Get the language from a pre element's class. * @param {?Node} preOrChild - The pre element or a node inside it * @returns {string}
src/plugins/command/codeBlock.js:273
↓ 3 callersMethod#initService
* @description Initializes services by calling their init methods.
src/plugins/dropdown/table/index.js:903
↓ 3 callersMethod#offSticky
* @description Disable `sticky` toolbar mode.
src/core/logic/panel/toolbar.js:556
↓ 3 callersMethod#produce
* @description Creates a new image component based on provided parameters. * @param {string} src - The image source URL. * @param {?Node} anchor -
src/plugins/modal/image/services/image.upload.js:72
↓ 3 callersMethod#removeContentInputListener
()
src/core/logic/panel/finder.js:298
↓ 3 callersMethod#removeGlobalCloseEvent
()
src/core/logic/panel/finder.js:286
↓ 3 callersMethod#removeGlobalEvent
* @description Removes global event listeners related to modal resizing.
src/modules/contract/Modal.js:259
↓ 3 callersMethod#removeMarkElements
@description Unwrap all `<mark>` elements and normalize text nodes.
src/core/logic/panel/finder.js:718
↓ 3 callersMethod#renderMathJax
* @param {*} mathjax - The MathJax instance.
src/plugins/modal/math.js:405
↓ 3 callersMethod#renderer
* @description Renders the given math expression using `KaTeX` or `MathJax`. * @param {string} exp - The math expression to render. * @returns {st
src/plugins/modal/math.js:321
↓ 3 callersMethod#replaceOne
* @description Replace current match, then re-search. * @param {string} [replaceText] Falls back to replace input value if omitted.
src/core/logic/panel/finder.js:773
↓ 3 callersMethod#resetTablePicker
* @description Resets the table picker display.
src/plugins/dropdown/table/index.js:816
↓ 3 callersMethod#setCtx
* @description Configures the drawing context (canvas settings like line width, color, etc.).
src/plugins/modal/drawing.js:241
↓ 3 callersMethod#setFrameInfo
* @description Set frameContext, frameOptions * @param {SunEditor.FrameContext} rt Root target[key] FrameContext
src/core/editor.js:124
↓ 3 callersMethod#setOffsetOnRange
* @description Sets the position of an element relative to the selection range in the editor. * - This method calculates the top and left offsets fo
src/core/logic/dom/offset.js:716
↓ 3 callersMethod#setResizeRowPosition
* @description Sets the resize row position. * @param {HTMLElement} figure The table figure element. * @param {HTMLElement} target The target row
src/plugins/dropdown/table/services/table.resize.js:381
↓ 3 callersMethod#updateHoverButtonText
(lang)
src/plugins/command/codeBlock.js:260
↓ 3 callersMethod#updateSrc
* @description Updates the image source URL. * @param {string} src - The new image source. * @param {HTMLImageElement} element - The image element
src/plugins/modal/image/services/image.upload.js:86
↓ 3 callersFunctionCreateHTML_controller_cell
({ lang, icons }, cellControllerTop)
src/plugins/dropdown/table/render/table.html.js:83
↓ 3 callersFunctionCreateHTML_controller_properties
({ lang, icons, options })
src/plugins/dropdown/table/render/table.html.js:160
↓ 3 callersFunctionGetMaxColumns
(table)
src/plugins/dropdown/table/shared/table.utils.js:147
↓ 3 callersFunctionGetRotateValue
* @param {Node} element Target element * @returns {{ r: *, x: *, y: * }} Rotation value
src/modules/contract/Figure.js:1633
↓ 3 callersFunctionRemoveSelectedClass
(container)
src/core/logic/shell/component.js:961
↓ 3 callersFunction__findFirstAndLast
(selectArea)
src/core/logic/shell/_commandExecutor.js:403
↓ 3 callersMethod__removeInput
* @internal * @description Removes input event listeners and resets input-related properties.
src/core/event/eventOrchestrator.js:655
↓ 3 callersMethod__resetMenuPosition
* @internal * @description Reset the menu position. * @param {Node} element Button element * @param {HTMLElement} menu Menu element
src/core/logic/panel/menu.js:247
↓ 3 callersMethod_calcPageBreakTop
* @internal * @description Calculates and compensates for the vertical gap between the rendered content (current page) * - and the mirrored previe
src/core/section/documentType.js:259
↓ 3 callersFunction_cleanClasses
* @description Removes Mso- and xl- class names from an element. Removes class attr if empty. * @param {Element} el
src/helper/msOffice.js:234
↓ 3 callersMethod_copyFormat
()
src/core/logic/shell/commandDispatcher.js:203
↓ 3 callersMethod_getElementAtPosition
* @internal * @description Retrieves the element at a given position. * @param {number} pageTop - The vertical position to check. * @param {HTML
src/core/section/documentType.js:304
↓ 3 callersMethod_init
* @description Initialize eventManager reference after EventManager is created.
src/core/logic/shell/component.js:101
↓ 3 callersMethod_injectActiveEvent
* @internal * @description Gives an active effect when the mouse down event is blocked. (Used when "env.isGecko" is `true`) * @param {Node} target
src/core/config/eventManager.js:165
↓ 3 callersMethod_movePage
* @internal * @description Moves to a specific page and updates the view. * @param {number} pageNum - The target page number.
src/core/section/documentType.js:507
↓ 3 callersMethod_removeAllEvents
* @internal * @description Removes all registered event listeners from the editor. * - Disconnects observers and clears stored event references.
src/core/event/eventOrchestrator.js:536
↓ 3 callersMethod_setBalloonOffset
* @internal * @description Adjust the `balloon` toolbar's position. * @param {boolean} positionTop - Whether the toolbar should be positioned abov
src/core/logic/panel/toolbar.js:389
↓ 3 callersMethodaddQuery
* @description Adds query parameters to a URL. * - If the URL already contains a query string, the provided query is appended with an `"&"`. * @pa
src/plugins/modal/video/index.js:467
↓ 3 callersMethodbringToTop
* @description Sets whether the element (form) should be brought to the top based on `z-index`. * @param {boolean} value - `true`: `'2147483646'`, `
src/modules/contract/Controller.js:273
↓ 3 callersMethodclose
* @description Close a modal plugin * - The plugin's `init` method is called. * @param {boolean} [force] If `true`, parent controllers are forcibl
src/modules/contract/Controller.js:215
↓ 3 callersMethodclose
* @description Close a browser plugin * - The plugin's `init` method is called.
src/modules/contract/Browser.js:218
↓ 3 callersMethodcontrollerShow
* @description Hide the controller
src/modules/contract/Figure.js:592
↓ 3 callersMethodconvertUrlVimeo
* @description Converts a Vimeo URL into an embeddable URL. * - Removes any trailing slash and extracts the video ID from the URL. * @param {strin
src/plugins/modal/video/index.js:452
↓ 3 callersMethodcreate
* @description Creates the select menu items. * @param {Array<string>|SunEditor.NodeCollection} items - Command list of selectable items. * @param
src/modules/ui/SelectMenu.js:90
↓ 3 callersFunctioncreateFrameCtx
* Helper: creates a frame context Map for a given rootKey
test/unit/core/logic/shell/history.spec.js:50
↓ 3 callersFunctioncreateWysiwyg
* Helper: creates a wysiwyg div element with given innerHTML
test/unit/core/logic/shell/history.spec.js:40
↓ 3 callersFunctiondrawColorWheel
()
src/modules/contract/HueSlider.js:445
↓ 3 callersMethoddropdownHide
* @description Temporarily hides the currently active dropdown menu without closing it. * - Unlike `dropdownOff()`, this does not clear the dropdown
src/core/logic/panel/menu.js:191
↓ 3 callersMethodgetCurrentPageNumber
* @description Retrieves the current page number. * @returns {number} The current page number.
src/core/section/documentType.js:405
↓ 3 callersMethodgetData
(format)
test/setup.js:127
↓ 3 callersMethodgetDragEventLocationRange
* @description Get the custom range object of the event. * @param {DragEvent} e Event object * @returns {{sc: Node, so: number, ec: Node, eo: numb
src/core/logic/dom/selection.js:352
↓ 3 callersFunctiongetParentElement
(element, query, depth)
src/helper/dom/domQuery.js:319
↓ 3 callersFunctionhasClass
(element, className)
src/helper/dom/domUtils.js:369
↓ 3 callersFunctionhtmlToEntity
(content)
src/helper/converter.js:120
↓ 3 callersFunctionhue2rgb
(p, q, t)
src/modules/contract/HueSlider.js:536
↓ 3 callersMethodhueSliderClose
* @description Close hue slider
src/modules/contract/ColorPicker.js:187
↓ 3 callersMethodinit
* @description Initializes the size service state.
src/plugins/modal/image/services/image.size.js:142
↓ 3 callersMethodinsertBodyRow
* @description Inserts a new row into the table at the specified index to it. * @param {HTMLTableElement} table The table element to insert the row
src/plugins/dropdown/table/services/table.grid.js:463
↓ 3 callersMethodisResizing
* @description Checks if the table is currently being resized. * @returns {boolean}
src/plugins/dropdown/table/services/table.resize.js:47
↓ 3 callersFunctionisZeroWidth
(text)
src/helper/dom/domCheck.js:10
↓ 3 callersMethodoffControllerContext
* @description Reset the controller target context.
src/core/logic/shell/ui.js:510
↓ 3 callersMethodon
* @description Initializes the select menu and attaches it to a reference element. * @param {Node} referElement - The element that triggers the sele
src/modules/ui/SelectMenu.js:120
↓ 3 callersMethodon
* @description Called when the modal is opened. Resets size inputs to default.
src/plugins/modal/image/services/image.size.js:107
↓ 3 callersMethodonMouseDown
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnMouseDown}
src/plugins/dropdown/table/index.js:412
↓ 3 callersMethodopen
* @description Open a modal plugin * - The plugin's `init` method is called.
src/modules/contract/Modal.js:149
↓ 3 callersMethodopenBorderFormatMenu
* @description Opens the border format menu.
src/plugins/dropdown/table/services/table.style.js:194
↓ 3 callersMethodopenCellProps
* @description Opens the cell properties dialog. * @param {HTMLElement} target - The target element (usually the table cell).
src/plugins/dropdown/table/services/table.style.js:181
↓ 3 callersMethodopenRowMenu
* @description Opens the row menu.
src/plugins/dropdown/table/services/table.grid.js:56
↓ 3 callersFunctionpushStack
* @description Pushes current content to the history stack. * @param {*} rootKey Root frame key. * @param {Range} range Selection range.
src/core/logic/shell/history.js:196
↓ 3 callersMethodrecallStyleSelectedCells
* @description Restores styles for selected table cells.
src/plugins/dropdown/table/services/table.selection.js:342
↓ 3 callersMethodremoveRange
* @description Remove range object and button effect
src/core/logic/dom/selection.js:199
↓ 3 callersMethodresetCaptionButton
* @description Resets the caption button state. * @param {HTMLTableElement} table - The table element.
src/plugins/dropdown/table/services/table.style.js:295
↓ 3 callersMethodresetHeaderButton
* @description Resets the header button state. * @param {HTMLTableElement} table - The table element.
src/plugins/dropdown/table/services/table.style.js:286
↓ 3 callersMethodrevertProps
* @description Reverts the properties to their previous state.
src/plugins/dropdown/table/services/table.style.js:316
↓ 3 callersMethodscrollWindow
* @description Scrolls the window to a specific position.
src/core/section/documentType.js:396
↓ 3 callersMethodsetAlignProps
* @description Sets the alignment properties. * @param {string} value - The alignment value.
src/plugins/dropdown/table/services/table.style.js:343
↓ 3 callersMethodsetBrLine
* @description Replace the br-line tag of the current selection. * @param {Node} element BR-Line element (PRE..) * @example * editor.$.format.se
src/core/logic/dom/format.js:134
↓ 3 callersMethodsetButtons
* @description Reset the buttons on the toolbar. (Editor is not reloaded.) * - You cannot set a new plugin for the button. * @param {Array} button
src/core/logic/panel/toolbar.js:237
↓ 3 callersMethodsetInputSize
* @description Sets the width and height input values. * @param {string} w - Width value * @param {string} h - Height value
src/plugins/modal/video/services/video.size.js:68
↓ 3 callersFunctionsetupInteraction
* Helper to set up an attached HueSlider with mocked bounding rects and handlers.
test/unit/modules/HueSlider.spec.js:1255
↓ 3 callersMethodshowBrowserLoading
* @description Show file browser loading box
src/modules/contract/Browser.js:292
↓ 3 callersFunctiontableToMarkdown
* @description Convert a table JSON node to markdown pipe table * @param {Object} node * @returns {string}
src/helper/markdown.js:193
↓ 3 callersMethodtoggleFontStyle
* @description Toggles the font style. * @param {string} value - The style to toggle (`bold`|`underline`|`italic`|`strike`).
src/plugins/dropdown/table/services/table.style.js:232
↓ 3 callersMethodunmergeCells
* @description Unmerges a table cell that has been merged using rowspan and/or colspan. * @param {HTMLTableCellElement[]} selectedCells - Cells arra
src/plugins/dropdown/table/services/table.cell.js:158
↓ 3 callersMethodurlUpload
* @description Handles image upload via URL. * @param {*} info - Image information.
src/plugins/modal/image/services/image.upload.js:53
↓ 2 callersMethod#CheckResetKeys
(keys, plugins, root)
src/core/config/optionProvider.js:338
↓ 2 callersMethod#PostCloseEvent
* @param {HTMLElement} eventTarget - The target element that triggered the event.
src/modules/contract/Controller.js:622
↓ 2 callersMethod#activeAsInline
* @description Activates either block or inline format mode for inserted drawings. * @param {boolean} isInline - Whether the drawing should be inser
src/plugins/modal/drawing.js:361
← previousnext →501–600 of 1,891, ranked by callers