MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 2 callersMethod#applySelectionStyles
* @param {HTMLCollectionOf<HTMLTableRowElement>} rows * @param {{cs: number|null, ce: number|null, rs: number|null, re: number|null}} ref
src/plugins/dropdown/table/services/table.selection.js:227
↓ 2 callersMethod#applySize
* @description Applies width and height to the embed component. * @param {string|number} w - The width to apply. * @param {string|number} h - The
src/plugins/modal/embed.js:765
↓ 2 callersMethod#asFormatChange
* @description Handles format conversion (`block`/`inline`) for the figure component and applies size changes. * @param {FigureInfo} figureinfo `{ta
src/modules/contract/Figure.js:1076
↓ 2 callersMethod#attachNested
* @description Attaches a nested list structure by merging adjacent lists if applicable. * - Ensures that the nested list is placed correctly in the
src/core/logic/dom/listFormat.js:470
↓ 2 callersMethod#buildHoverMenu
(currentLang)
src/plugins/command/codeBlock.js:252
↓ 2 callersMethod#cancelActiveApi
* @description Cancels the active trigger's in-flight API request.
src/plugins/field/autocomplete.js:190
↓ 2 callersMethod#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/video/index.js:109
↓ 2 callersMethod#checkFixed
* @description Checks if the controller is fixed and should not be closed. * @returns {boolean} `true` if the controller is fixed.
src/modules/contract/Controller.js:497
↓ 2 callersMethod#checkForm
* @description Checks if the given target is within a form or controller. * @param {Element} target The target element. * @returns {boolean} `true
src/modules/contract/Controller.js:514
↓ 2 callersMethod#createAudioTag
* @description Creates a new `AUDIO` element with default attributes. * - Applies width, height, and additional attributes from plugin options. *
src/plugins/modal/audio.js:457
↓ 2 callersMethod#createFormat
* @description Appends a formatted list of items to the menu. * @param {string} html - The HTML string representing the menu items.
src/modules/ui/SelectMenu.js:204
↓ 2 callersMethod#createIframeTag
* @description Creates an `IFRAME` element for embedding external content. * @returns {HTMLIFrameElement} The created `IFRAME` element.
src/plugins/modal/embed.js:575
↓ 2 callersMethod#deferMenuShow
* @description Defer menu display on mobile until viewport settles after keyboard dismiss. * @param {Node} element Button element * @param {HTMLEl
src/core/logic/panel/menu.js:286
↓ 2 callersMethod#detachNested
* @description Detaches a nested list structure by extracting list items from their parent list. * - Ensures proper restructuring of the list elemen
src/core/logic/dom/listFormat.js:528
↓ 2 callersMethod#disableBorderProps
* @description Disables or enables border properties. * @param {boolean} disabled Whether to disable or enable border properties.
src/plugins/dropdown/table/services/table.style.js:780
↓ 2 callersMethod#drowItems
* @description Renders the file items or folder structure from data. * @param {BrowserFile[]|BrowserFile} data - The data representing the file stru
src/modules/contract/Browser.js:390
↓ 2 callersMethod#findDefaultDir
()
src/plugins/dropdown/align.js:132
↓ 2 callersMethod#fixCurrentController
* @description Fixes the current controller's display state when the modal is opened or closed. * @param {boolean} fixed - Whether to fix or unfix t
src/modules/contract/Modal.js:226
↓ 2 callersMethod#getBorderStyle
* @description Gets the border style. * @param {string} borderStyle The border style string. * @returns {{w: string, s: string, c: string}} The pa
src/plugins/dropdown/table/services/table.style.js:688
↓ 2 callersMethod#getCanvasTouchPointer
* @description Retrieves touch coordinates relative to the canvas. * @param {TouchEvent} e - The touch event. * @returns {{x: number, y: number}}
src/plugins/modal/drawing.js:349
↓ 2 callersMethod#getInfo
* @description Retrieves embed component size and alignment information. * @returns {{inputWidth: string, inputHeight: string, align: string, isUpda
src/plugins/modal/embed.js:785
↓ 2 callersMethod#getInfo
* @description Retrieves the current image information. * @returns {*} - The image data.
src/plugins/modal/image/index.js:595
↓ 2 callersMethod#getInfo
* @description Retrieves video information including size and alignment. * @returns {*} Video information object.
src/plugins/modal/video/index.js:731
↓ 2 callersMethod#getVMargin
* @description Calculates the vertical margin offsets for the target element relative to the editor frame. * - This method determines the top and bo
src/core/logic/dom/offset.js:783
↓ 2 callersMethod#hideHover
()
src/plugins/command/codeBlock.js:215
↓ 2 callersMethod#hideResizeLine
* @description Hides the resize line if it is visible.
src/plugins/dropdown/table/services/table.resize.js:445
↓ 2 callersMethod#isFormatData
* @description Checks whether the provided DOM nodes require formatting. * @param {NodeList} domTree List of DOM nodes to check. * @returns {boole
src/core/logic/dom/html.js:1764
↓ 2 callersMethod#isNone
* @description Returns `true` if there is no valid selection. * @param {Range} range selection.getRange() * @returns {boolean}
src/core/logic/dom/selection.js:717
↓ 2 callersMethod#lineWork
* @description Get current selected lines and selected node info. * @returns {{lines: Array<HTMLElement>, firstNode: Node, lastNode: Node, firstPat
src/core/logic/dom/format.js:1028
↓ 2 callersMethod#moveToNextLineOrAdd
* @description * Attempts to move the cursor to a valid line after the given container. * - If a valid next sibling line exists, moves the selecti
src/core/logic/shell/component.js:682
↓ 2 callersMethod#normalizeUrl
* @description Remove unnecessary slashes in API URL. * @param {string} url url * @returns
src/modules/manager/ApiManager.js:182
↓ 2 callersMethod#offResizeEvent
* @description Removes the resize event listeners.
src/modules/contract/Figure.js:1363
↓ 2 callersMethod#rangeInfo
Ï * @description Set `range` and `selection` info. * @param {Range} range range object. * @param {Selection} selection selection object.
src/core/logic/dom/selection.js:698
↓ 2 callersMethod#ready
* @description Prepares the component for selection. * - Ensures that the controller is properly positioned and initialized. * - Prevents duplicat
src/plugins/modal/embed.js:525
↓ 2 callersMethod#ready
* @description Prepares the component for selection. * - Ensures that the controller is properly positioned and initialized. * - Prevents duplicat
src/plugins/modal/image/index.js:555
↓ 2 callersMethod#ready
* @description Prepares the component for selection. * - Ensures that the controller is properly positioned and initialized. * - Prevents duplicat
src/plugins/modal/video/index.js:703
↓ 2 callersMethod#relDelete
* @description Removes the specified `rel` attribute from the current list. * @param {string} relAttr - The `rel` attribute to remove. * @returns
src/modules/ui/ModalAnchorEditor.js:413
↓ 2 callersMethod#relMerge
* @description Merges the given `rel` attribute value with the current list. * @param {string} relAttr - The `rel` attribute to merge. * @returns
src/modules/ui/ModalAnchorEditor.js:390
↓ 2 callersMethod#removeEvents
* @description Removes event listeners for menu interactions.
src/modules/ui/SelectMenu.js:431
↓ 2 callersMethod#removeGlobalEvent
* @description Removes global event listeners. * - When the ESC key is pressed, the controller is closed.
src/modules/contract/Controller.js:487
↓ 2 callersMethod#removeGlobalEvent
* @description Removes the global event listener for closing the browser.
src/modules/contract/Browser.js:381
↓ 2 callersMethod#removeGlobalEvent
* @description Removes global event listeners for closing the menu.
src/modules/ui/SelectMenu.js:452
↓ 2 callersMethod#removeGlobalEvents
* @description Removes global event listeners related to resizing.
src/modules/contract/Figure.js:1375
↓ 2 callersMethod#removeNotFileGlobalEvent
* @internal * @description Removes global event listeners related to non-file interactions.
src/core/logic/shell/component.js:669
↓ 2 callersMethod#replaceAll
* @description Replace all matches in reverse order, then re-search. * @param {string} [replaceText] Falls back to replace input value if omitted.
src/core/logic/panel/finder.js:798
↓ 2 callersMethod#replaceRange
* @description Replace a range's content with text. * For cross-node ranges (e.g. `<b>1</b>23` matching "123"), the replacement text * is inserted
src/core/logic/panel/finder.js:829
↓ 2 callersMethod#resizePercentCol
* @description Converts the width of `<col>` elements to percentages. * @param {HTMLTableElement} target - The target table element.
src/plugins/dropdown/table/services/table.resize.js:174
↓ 2 callersMethod#reverseToolbarButtons
* @description Reverse the order of toolbar button groups (excluding the more-layer). * @param {HTMLElement} buttonTray - The `.se-btn-tray` element
src/core/logic/shell/ui.js:744
↓ 2 callersMethod#saveCommandButtons
* @description Save the current buttons * @param {Map<string, Element>} cmdButtons Command button map * @param {?Element} tray Button tray
src/core/logic/shell/commandDispatcher.js:212
↓ 2 callersMethod#saveOffset
* @description Saves the current offset position of the modal for resizing calculations. * @returns {import('../../core/logic/dom/offset').OffsetGlo
src/modules/contract/Modal.js:238
↓ 2 callersMethod#select
* @description Selects an item and triggers the callback function. * @param {number} index - The index of the item to select.
src/modules/ui/SelectMenu.js:410
↓ 2 callersMethod#selectItem
* @description Highlights and selects an item by index. * @param {number} selectIndex - The index of the item to select.
src/modules/ui/SelectMenu.js:238
↓ 2 callersMethod#setAlignIcon
* @description Updates the figure's alignment icon.
src/modules/contract/Figure.js:1300
↓ 2 callersMethod#setCaptionPosition
* @description Adjusts the position of the caption within the figure. * @param {HTMLElement} element Target element.
src/modules/contract/Figure.js:1337
↓ 2 callersMethod#setCtrlProps
* @description Updates control properties. * @param {string} type The type of control property.
src/plugins/dropdown/table/services/table.style.js:572
↓ 2 callersMethod#setFigureInfo
* @description Sets figure component properties such as cover, container, caption, and alignment. * @param {FigureInfo} figureInfo - `{target, conta
src/modules/contract/Figure.js:1094
↓ 2 callersMethod#setFontStyle
* @description Sets font styles. * @param {CSSStyleDeclaration} styles The style object to modify.
src/plugins/dropdown/table/services/table.style.js:673
↓ 2 callersMethod#setIframeAttrs
* @description Sets default attributes for an `IFRAME` element. * @param {HTMLIFrameElement} element - The `IFRAME` element to modify.
src/plugins/modal/embed.js:799
↓ 2 callersMethod#setIframeAttrs
* @description Sets attributes for the `IFRAME` tag. * @param {HTMLIFrameElement} element - The `IFRAME` element.
src/plugins/modal/video/index.js:807
↓ 2 callersMethod#setInputText
* @description Set color at input element * @param {string} hexColorStr Hax color value
src/modules/contract/ColorPicker.js:212
↓ 2 callersMethod#setKeyEffect
* @description Internal logic to update the visual state of buttons. * - Checks the list of `active` commands and updates the DOM classes (`active`/
src/core/event/support/selectionState.js:171
↓ 2 callersMethod#setLang
* @description Set language class on a pre element. * @param {HTMLElement} pre * @param {string} lang
src/plugins/command/codeBlock.js:284
↓ 2 callersMethod#setTagAttrs
* @description Sets attributes on an `AUDIO` element based on plugin options. * - Adds the `controls` attribute and applies any custom attributes.
src/plugins/modal/audio.js:471
↓ 2 callersMethod#setTagAttrs
* @description Sets attributes for the `VIDEO` tag. * @param {HTMLVideoElement} element - The `VIDEO` element.
src/plugins/modal/video/index.js:792
↓ 2 callersMethod#sn_isSizeNode
* @description Node with `font-size` style * @param {Node} element Element to check * @returns {boolean}
src/core/logic/dom/inline.js:1686
↓ 2 callersMethod#toggleReplace
* @description Toggle replace row visibility. Panel-only. * @param {boolean} show
src/core/logic/panel/finder.js:424
↓ 2 callersMethod#updateCurrentMarkHighlight
@description Update the "current match" mark element class.
src/core/logic/panel/finder.js:692
↓ 2 callersMethod#updateCurrentNativeHighlight
@description Update the "current match" native highlight.
src/core/logic/panel/finder.js:579
↓ 2 callersMethod#updateLineNumbers
* @description Updates the line numbers for the code editor. * - Dynamically adjusts line numbers as content grows. * @param {HTMLTextAreaElement}
src/core/logic/panel/viewer.js:867
↓ 2 callersMethod#updateStickyTop
* @description Updates the finder panel's sticky top position based on toolbar height.
src/core/logic/panel/finder.js:155
↓ 2 callersMethod#wrapTextSegment
* @description Wrap a portion of a text node with a `<mark>`. * @param {Document} doc * @param {Text} textNode * @param {number} start * @para
src/core/logic/panel/finder.js:653
↓ 2 callersFunctionCheckRowEdge
(event, tableCell)
src/plugins/dropdown/table/shared/table.utils.js:109
↓ 2 callersFunctionConstructor
* @description Creates a new SunEditor instance with specified options. * @param {Array<{target: Element, key: *, options: SunEditor.InitFrameOptions
src/core/section/constructor.js:39
↓ 2 callersFunctionCounterBlink
* @description The character counter blinks. * @param {Element} charWrapper this.#frameContext.get('charWrapper')
src/core/logic/dom/char.js:184
↓ 2 callersFunctionCreateBorderMenu
()
src/plugins/dropdown/table/render/table.menu.js:80
↓ 2 callersFunctionCreateColumnMenu
(lang, icons)
src/plugins/dropdown/table/render/table.menu.js:32
↓ 2 callersFunctionCreateHTML
()
src/plugins/dropdown/table/render/table.html.js:10
↓ 2 callersFunctionCreateHTML_controller_table
({ lang, icons })
src/plugins/dropdown/table/render/table.html.js:27
↓ 2 callersFunctionCreateLineNumbers
* @description Create line numbers for the code/markdown view area * @param {SunEditor.FrameContext} fc - Frame context * @param {"code"|"markdown"}
src/core/logic/panel/viewer.js:896
↓ 2 callersFunctionCreateRowMenu
(lang, icons)
src/plugins/dropdown/table/render/table.menu.js:57
↓ 2 callersFunctionCreateSplitMenu
(lang)
src/plugins/dropdown/table/render/table.menu.js:10
↓ 2 callersFunctionDeleteNestedList
* @description Removes nested list structure by unwrapping child list elements and promoting their items to the parent level. * @param {Node} baseNod
src/core/logic/dom/listFormat.js:567
↓ 2 callersFunctionHistory
(kernel)
src/core/logic/shell/history.js:9
↓ 2 callersFunctionInitRender
()
src/modules/contract/HueSlider.js:574
↓ 2 callersFunctionIsElementArray
* @description iframe-safe : Node type [`HTMLCollection`, `NodeList`, `Array`] check. * @param {*} element * @returns {element is HTMLCollection|Nod
src/helper/dom/domUtils.js:11
↓ 2 callersFunctionIsFree
* @param {string} type Type * @returns {boolean}
src/core/logic/panel/menu.js:462
↓ 2 callersFunctionSetClipboardComponent
(e, container, clipboardData)
src/core/logic/shell/component.js:954
↓ 2 callersFunctionSetLineMargin
* @param {Array<HTMLElement>} lines - Line elements * @param {number} size - Margin size * @param {string} dir - Direction * @returns
src/core/logic/dom/format.js:1082
↓ 2 callersFunction_CreateLI
* @param {string[]} types - List style types * @returns {string} HTML string
src/plugins/command/list_numbered.js:140
↓ 2 callersMethod__addStatusbarEvent
* @internal * @description Adds event listeners for resizing the status bar if resizing is enabled. * - If resizing is not enabled, applies a `se-
src/core/event/eventOrchestrator.js:523
↓ 2 callersMethod__focus
* @internal * @description Sets focus to the editor's wysiwyg contenteditable area and restores the last selection range within iframe context.
src/core/logic/dom/selection.js:759
↓ 2 callersMethod__postBlurEvent
* @internal * @description Blur Event Postprocessing * @param {SunEditor.FrameContext} frameContext - frame context object * @param {FocusEvent}
src/core/event/eventOrchestrator.js:688
↓ 2 callersMethod__postFocusEvent
* @internal * @description Focus Event Postprocessing * @param {SunEditor.FrameContext} frameContext - frame context object * @param {FocusEvent
src/core/event/eventOrchestrator.js:669
↓ 2 callersMethod__resetAutoStyleify
* @internal * @description Reset autoStyleify options. * @param {Array.<string>} autoStyleify Styles applied automatically on text input. * - ex
src/core/logic/dom/html.js:1993
↓ 2 callersMethod__resetBrLineBreak
* @internal * @description Reset the line break format. * @param {"line"|"br"} breakFormat `options.get('defaultLineBreakFormat')` * @returns {b
src/core/logic/dom/format.js:1071
↓ 2 callersMethod__restoreMenuPosition
* @internal * @description Restore the last menu position using previously stored button and menu elements.
src/core/logic/panel/menu.js:255
↓ 2 callersMethod__setViewportSize
* @internal * @description Records the current viewport size.
src/core/event/eventOrchestrator.js:711
↓ 2 callersFunction_cleanStyles
* @description Cleans inline style attributes: strips mso-*, tab-stops, converts mso-highlight to background-color. * @param {Element} el
src/helper/msOffice.js:203
↓ 2 callersFunction_createListElement
* @description Creates an <ol> or <ul> element with optional list-style-type and start attributes. * @param {Document} doc * @param {'ol'|'ul'} type
src/helper/msOffice.js:420
↓ 2 callersMethod_findItem
* @internal * @description Finds an header element of innerHeaders element. * @param {Node} header - H tag element to find. * @returns {HTMLElem
src/core/section/documentType.js:563
← previousnext →601–700 of 1,891, ranked by callers