MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 1 callersMethod#setNode_oneLine
* @description wraps text nodes of line selected text. * @param {Node} element The node of the line that contains the selected text node. * @param
src/core/logic/dom/inline.js:461
↓ 1 callersMethod#setNode_startLine
* @description wraps first line selected text. * @param {Node} element The node of the line that contains the selected text node. * @param {Node}
src/core/logic/dom/inline.js:928
↓ 1 callersMethod#setPosition
* @description Sets the position of the select menu relative to the reference element. * @param {string} position Menu position (`"left"`|`"right"`)
src/modules/ui/SelectMenu.js:261
↓ 1 callersMethod#showHover
* @description Shows the hover language selector over the given pre element. * @param {HTMLElement} preElement
src/plugins/command/codeBlock.js:200
↓ 1 callersMethod#styleNodeConvertor
* @description Removes attribute values such as style and converts tags that do not conform to the `html5` standard. * @param {string} html HTML str
src/core/logic/dom/html.js:1676
↓ 1 callersMethod#toggleToolbarBalloonDelay
* @description Toggle toolbar-balloon with delay (debounced for selectionchange).
src/core/event/eventOrchestrator.js:144
↓ 1 callersMethod#unwrapPreCode
* @description Input: unwrap `<pre><code class="language-xxx">` → `<pre class="language-xxx">` * @param {HTMLElement} pre
src/core/logic/dom/html.js:2034
↓ 1 callersMethod#updateAnchor
* @description Updates the anchor element with new attributes. * @param {HTMLAnchorElement} anchor - The anchor (`<a>`) element to update. * @para
src/modules/ui/ModalAnchorEditor.js:263
↓ 1 callersMethod#wrapPreCode
* @description Output: wrap `<pre class="language-xxx">` → `<pre><code class="language-xxx">` * @param {HTMLElement} container
src/core/logic/dom/html.js:2056
↓ 1 callersMethod#wrapRangeTextNodes
* @description Wrap each text node segment within a Range with a `<mark>`, without extractContents. * @param {Document} doc * @param {Range} range
src/core/logic/panel/finder.js:614
↓ 1 callersFunctionBuildMatrix
* @description Builds a matrix of logical indices for the table. * @param {HTMLTableElement} table The table element. * @returns {number[][]} A 2D a
src/plugins/dropdown/table/shared/table.utils.js:24
↓ 1 callersFunctionCreateAlertHTML
({ lang, icons })
src/core/logic/shell/ui.js:951
↓ 1 callersFunctionCreateAlign
* @param {Figure} inst - Figure instance * @param {SunEditor.Deps} $ - Kernel dependencies * @param {Element} button - Align button element * @retu
src/modules/contract/Figure.js:1657
↓ 1 callersFunctionCreateAs
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Element} button - As button element * @returns {{html: string[], items: string[]}|null}
src/modules/contract/Figure.js:1684
↓ 1 callersFunctionCreateDropdownHTML
* @param {SunEditor.Deps} $ * @param {string[]} langs * @returns {HTMLElement}
src/plugins/command/codeBlock.js:311
↓ 1 callersFunctionCreateHTML
* @description Create a color picker element * @param {SunEditor.Deps} param0 * @param {*} param1 * @returns
src/modules/contract/ColorPicker.js:298
↓ 1 callersFunctionCreateHTML
* @description Creates the FindFa/Replace panel HTML. * @param {SunEditor.Deps} $ editor deps * @returns {{ * panel: HTMLElement, * findInput: H
src/core/logic/panel/finder.js:915
↓ 1 callersFunctionCreateHTML
* @returns {HTMLElement}
src/plugins/command/list_bulleted.js:122
↓ 1 callersFunctionCreateHTML
* @returns {HTMLElement}
src/plugins/command/list_numbered.js:122
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {{list: Array<number|{title: string, size: string}>, default?: number|string}} unitMap - F
src/plugins/input/fontSize.js:390
↓ 1 callersFunctionCreateHTML
* @returns {HTMLElement}
src/plugins/dropdown/backgroundColor.js:107
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/dropdown/list.js:102
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Array<string|{name: string, class: string, _class?: string}>} [items] - Paragraph style i
src/plugins/dropdown/paragraphStyle.js:93
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {string[]} fontList - Font name list * @returns {HTMLElement}
src/plugins/dropdown/font.js:129
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Array<{name: string, class: string, style?: string}>} [HRItems] - HR style items * @retu
src/plugins/dropdown/hr.js:122
↓ 1 callersFunctionCreateHTML
* @param {Array<{name: string, html: string}>} layoutList - Layout items * @returns {HTMLElement}
src/plugins/dropdown/layout.js:65
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {string[]} [items] - Align items list * @returns {HTMLElement}
src/plugins/dropdown/align.js:144
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Array<{text: string, value: string}>} [items] - Line height items * @returns {HTMLElemen
src/plugins/dropdown/lineHeight.js:115
↓ 1 callersFunctionCreateHTML
* @returns {HTMLElement}
src/plugins/dropdown/fontColor.js:108
↓ 1 callersFunctionCreateHTML
* @param {Array<{name: string, html: string}>} templateList - Template items * @returns {HTMLElement}
src/plugins/dropdown/template.js:65
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Array<string|BlockStyleItem>} [items] - Block style items * @returns {HTMLElement}
src/plugins/dropdown/blockStyle.js:141
↓ 1 callersFunctionCreateHTML
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Array<string|{name: string, class: string, tag?: string}>} [items] - Text style items *
src/plugins/dropdown/textStyle.js:103
↓ 1 callersFunctionCreateHTMLInfos
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {boolean} useSearch - Whether to use the search function * @returns {{ html: HTMLElement,
src/modules/contract/Browser.js:705
↓ 1 callersFunctionCreateHTML_basicControllerForm
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {string} className - Controller CSS class name * @returns {HTMLElement}
src/modules/contract/HueSlider.js:587
↓ 1 callersFunctionCreateHTML_controller
* @param {Figure} inst - Figure instance * @param {SunEditor.Deps} $ - Kernel dependencies * @param {FigureControls} controls - Controller button ar
src/modules/contract/Figure.js:1835
↓ 1 callersFunctionCreateHTML_controller
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/command/fileUpload.js:456
↓ 1 callersFunctionCreateHTML_controller
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/popup/anchor.js:180
↓ 1 callersFunctionCreateHTML_controller
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/modal/audio.js:654
↓ 1 callersFunctionCreateHTML_controller
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/modal/link.js:237
↓ 1 callersFunctionCreateHTML_controller
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/modal/math.js:522
↓ 1 callersFunctionCreateHTML_controller
* @returns {HTMLElement}
src/plugins/field/autocomplete.js:379
↓ 1 callersFunctionCreateHTML_controller_select
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/popup/anchor.js:206
↓ 1 callersFunctionCreateHTML_modal
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {DrawingPluginOptions} pluginOptions - Drawing plugin options * @returns {HTMLElement}
src/plugins/modal/drawing.js:468
↓ 1 callersFunctionCreateHTML_modal
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {import('./audio').AudioPluginOptions} pluginOptions - Audio plugin options * @returns {H
src/plugins/modal/audio.js:603
↓ 1 callersFunctionCreateHTML_modal
* @param {SunEditor.Deps} $ - Kernel dependencies * @returns {HTMLElement}
src/plugins/modal/link.js:213
↓ 1 callersFunctionCreateHTML_modal
* @param {SunEditor.Deps} $ Kernel deps * @param {*} pluginOptions * @returns {{ * html: HTMLElement, * figureAlignBtn: HTMLButtonElement, * file
src/plugins/modal/embed.js:883
↓ 1 callersFunctionCreateHTML_modal
* @param {Math_} inst - Math plugin instance * @returns {HTMLElement}
src/plugins/modal/math.js:469
↓ 1 callersFunctionCreateHTML_modal
({ lang, icons, plugins }, pluginOptions)
src/plugins/modal/video/render/video.html.js:24
↓ 1 callersFunctionCreateHTML_resizeDot
* @returns {HTMLElement}
src/modules/contract/Figure.js:1730
↓ 1 callersFunctionCreateInner
* @returns {HTMLInputElement}
src/plugins/input/pageNavigator.js:69
↓ 1 callersFunctionCreateModalForm
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {ModalAnchorEditorParams} params - ModalAnchorEditor options * @param {Array<string>} rel
src/modules/ui/ModalAnchorEditor.js:610
↓ 1 callersFunctionCreateResize
* @param {SunEditor.Deps} $ - Kernel dependencies * @param {Element} button - Resize button element * @returns {{html: string[], items: string[]}|nu
src/modules/contract/Figure.js:1711
↓ 1 callersFunctionCreateToastHTML
()
src/core/logic/shell/ui.js:956
↓ 1 callersFunctionGET_CONTROLLER_BUTTONS
* @param {string} group - Button group string (e.g. `"resize_100"`, `"rotate_l"`) * @returns {{c: string, v: *, l: string, t: *, i: string}|null}
src/modules/contract/Figure.js:1751
↓ 1 callersFunctionInitFrameOptions
* @description Initialize options. * @param {SunEditor.InitFrameOptions} o - Target options * @param {SunEditor.InitOptions} origin - Full options
src/core/section/constructor.js:871
↓ 1 callersFunctionIsHTMLIFrameElement
* @description iframe-safe: check if element is an `HTMLIFrameElement` * @param {*} element * @returns {element is HTMLIFrameElement}
src/helper/dom/domUtils.js:41
↓ 1 callersFunctionIsHTMLImageElement
* @description iframe-safe: check if element is an `HTMLImageElement` * @param {*} element * @returns {element is HTMLImageElement}
src/helper/dom/domUtils.js:21
↓ 1 callersFunctionIsHTMLMediaElement
* @description iframe-safe: check if element is an `HTMLMediaElement` (video or audio) * @param {*} element * @returns {element is HTMLMediaElement}
src/helper/dom/domUtils.js:31
↓ 1 callersFunctionNodeToJson
(node)
src/helper/converter.js:21
↓ 1 callersFunction_CreateLI
* @param {string[]} types - List style types * @returns {string} HTML string
src/plugins/command/list_bulleted.js:137
↓ 1 callersMethod__init
* @internal * @description Initialize the scroll information when the editor first loads
src/core/logic/dom/selection.js:778
↓ 1 callersMethod_addCommonEvents
* @internal * @description Registers common UI events such as toolbar and menu interactions. * - Adds event listeners for various UI elements, set
src/core/event/eventOrchestrator.js:331
↓ 1 callersMethod_addFrameEvents
* @internal * @description Registers event listeners for the editor's frame, including text `input`, selection, and UI interactions. * - Handles e
src/core/event/eventOrchestrator.js:401
↓ 1 callersFunction_addTooltip
* @description Append tooltip span * @param {Element} tooptipBtn * @param {boolean} shift * @param {string} shortcut
src/core/section/constructor.js:386
↓ 1 callersMethod_applyPageScroll
* @internal * @description Applies smooth scrolling for page navigation.
src/core/section/documentType.js:533
↓ 1 callersFunction_buildListFromGroup
* @description Builds a proper list (ol/ul with li) from a consecutive group of Word list paragraphs. * @param {Array<Object>} group Array of { el, l
src/helper/msOffice.js:335
↓ 1 callersFunction_checkCodeMirror
* @description Check the `CodeMirror` option to apply the `CodeMirror` and return the `CodeMirror` element. * @param {Map<string, *>} options Options
src/core/section/constructor.js:1024
↓ 1 callersFunction_cleanBreaks
* @description Handles Word page breaks, section breaks, and manual line breaks. * - Page breaks (`mso-special-character:line-break` + `page-break-
src/helper/msOffice.js:705
↓ 1 callersFunction_cleanImages
* @description Cleans Word-specific image patterns. * - Removes `v:shapes` attribute * - Removes images with `file:///` src (broken temp file pa
src/helper/msOffice.js:678
↓ 1 callersFunction_cleanLinks
* @description Cleans up Word-specific link patterns. * - Removes `file:///` protocol links (converts to plain text) * - Removes internal bookma
src/helper/msOffice.js:619
↓ 1 callersFunction_cleanTables
* @description Cleans Word/Excel table markup. * - Removes mso-yfti-*, mso-border-*, mso-padding-alt, mso-cellspacing, mso-table-layout-alt. * -
src/helper/msOffice.js:498
↓ 1 callersFunction_cleanTrackChanges
* @description Removes track changes and comment markup. * - `<del>` / `msoDel`: remove entirely (deleted content should not appear) * - `<ins>`
src/helper/msOffice.js:565
↓ 1 callersFunction_convertHeadings
* @description Converts `<p>` elements with `mso-outline-level` to semantic `<h1>`-`<h6>` headings. * Also normalizes existing heading elements tha
src/helper/msOffice.js:454
↓ 1 callersFunction_convertLists
* @description Transforms flat MsoListParagraph paragraphs into nested ol/ul/li structure. * @param {Document} doc Parsed DOM document * @param {Map
src/helper/msOffice.js:273
↓ 1 callersFunction_createBlacklist
* @description Create blacklist * @param {string} blacklist Blacklist * @param {string} defaultLine `options.get('defaultLine')` * @returns {string
src/core/section/constructor.js:1075
↓ 1 callersFunction_createButton
* @description Create a button element * @param {string} className `className` in button * @param {string} title Title in button * @param {string}
src/core/section/constructor.js:1190
↓ 1 callersFunction_createModuleGroup
* @description Create a group div containing each module * @returns {{div: Element, ul: Element}}
src/core/section/constructor.js:1169
↓ 1 callersFunction_createWhitelist
* @description Create whitelist or blacklist. * @param {Map<string, *>} o options * @returns {string} whitelist
src/core/section/constructor.js:1115
↓ 1 callersFunction_defaultButtons
* @description SunEditor's default button list * @param {boolean} isRTL `rtl`
src/core/section/constructor.js:1129
↓ 1 callersFunction_detectListTypeFromText
* @description Detects whether a list item is ordered or unordered by inspecting its marker text content. * @param {string} text The marker text (fro
src/helper/msOffice.js:163
↓ 1 callersFunction_extractListStyles
* @description Extracts `@list` rules from Word's <style> block for list type detection. * @param {string} html Raw Word HTML * @returns {Map<string
src/helper/msOffice.js:112
↓ 1 callersFunction_extractMarkerText
* @description Extracts the marker text from a Word list paragraph (the mso-list:Ignore span content). * @param {Element} el * @returns {string}
src/helper/msOffice.js:436
↓ 1 callersFunction_getPrevSiblingElement
* @description Gets the previous element sibling, skipping text nodes. * @param {Element} el * @returns {Element|null}
src/helper/msOffice.js:320
↓ 1 callersFunction_initTargetElements
* @description Initialize property of `suneditor` elements * @param {string} key - The key of the editor frame * @param {Map<string, *>} options - O
src/core/section/constructor.js:946
↓ 1 callersMethod_isExcludeSelectionElement
* @internal * @description A function that distinguishes areas where `selection` should not be placed * @param {Node} element Element * @returns
src/core/logic/dom/format.js:1011
↓ 1 callersFunction_isSafeAttribute
* @description Checks whether an HTML attribute string is safe from XSS injection. * - Non-URL attributes (anything other than `href` or `src`) are a
src/core/logic/dom/html.js:2159
↓ 1 callersMethod_moreLayerOn
* @internal * @description Show a more options layer for toolbar buttons. * @param {Node} button - Button element * @param {Node} layer - More o
src/core/logic/panel/toolbar.js:460
↓ 1 callersFunction_normalizeURL
* @description Normalize a URL by decoding all HTML entities, URL-encoded characters, * and stripping whitespace/control characters. Used to detect o
src/core/logic/dom/html.js:2114
↓ 1 callersFunction_removeListMarkers
* @description Removes bullet/number marker spans (mso-list:Ignore) and conditional comments from a list item element. * @param {Element} el
src/helper/msOffice.js:176
↓ 1 callersMethod_setComponentLineBreaker
* @internal * @description Set line breaker of component * @param {HTMLElement} element Element tag
src/core/logic/shell/component.js:542
↓ 1 callersMethod_setSelectionSync
* @internal * @description Synchronizes the selection state by resetting it on `mouseup`. * - Ensures selection updates correctly across different
src/core/event/eventOrchestrator.js:584
↓ 1 callersMethod_startCellResizing
* @internal * @description Starts resizing a table cell. * @param {HTMLElement} col The column element. * @param {number} startX The starting X
src/plugins/dropdown/table/services/table.resize.js:197
↓ 1 callersMethod_startFigureResizing
* @internal * @description Starts resizing the table figure. * @param {number} startX The starting X position. * @param {boolean} isLeftEdge Whe
src/plugins/dropdown/table/services/table.resize.js:317
↓ 1 callersMethod_startRowResizing
* @internal * @description Starts resizing a table row. * @param {HTMLElement} row The table row element. * @param {number} startY The starting
src/plugins/dropdown/table/services/table.resize.js:274
↓ 1 callersFunction_unwrapEmptySpans
* @description Unwraps spans that have no attributes left after cleanup. * @param {Element} container
src/helper/msOffice.js:250
↓ 1 callersMethodabort
()
test/setup.js:28
↓ 1 callersMethodapply
* @description Append all selected `line` element to the list and insert. * @param {string} type List type. (ol | ul):[listStyleType] * @param {Ar
src/core/logic/dom/listFormat.js:37
↓ 1 callersFunctionapplyWindowMocks
()
test/unit/core/logic/dom/offset.numerical.spec.js:350
↓ 1 callersMethodbrowserInit
* @optional * Executes the method that is called when a `Browser` module is opened. * @returns {void}
types/interfaces/contracts.d.ts:88
↓ 1 callersFunctionbuildKernel
* Helper: builds a mock kernel suitable for History(kernel)
test/unit/core/logic/shell/history.spec.js:64
← previousnext →901–1,000 of 1,891, ranked by callers