MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 1 callersMethod#addGlobalEvent
* @description Adds global event listeners. * - When the controller is opened
src/modules/contract/Controller.js:477
↓ 1 callersMethod#addGlobalEvent
* @description Adds a global event listener for closing the browser.
src/modules/contract/Browser.js:373
↓ 1 callersMethod#addGlobalEvent
* @description Adds global event listeners for closing the menu.
src/modules/ui/SelectMenu.js:443
↓ 1 callersMethod#addGlobalEvent
* @description Adds global event listeners for component interactions such as copy, cut, and keydown events.
src/core/logic/shell/component.js:650
↓ 1 callersMethod#addNotFileGlobalEvent
* @description Adds global event listeners for non-file-related interactions such as mouse and touch events.
src/core/logic/shell/component.js:660
↓ 1 callersMethod#addPreLeaveEvent
()
src/plugins/command/codeBlock.js:244
↓ 1 callersMethod#adjustPathsToNewDimensions
* @description Adjusts all stored paths to fit new canvas dimensions after a resize event. * @param {number} prevWidth - The previous width of the c
src/plugins/modal/drawing.js:283
↓ 1 callersMethod#applyMarkFallback
@description Fallback: wrap matches with `<mark>` elements.
src/core/logic/panel/finder.js:589
↓ 1 callersMethod#applyNativeHighlight
@description Apply CSS Custom Highlight API highlights.
src/core/logic/panel/finder.js:570
↓ 1 callersMethod#assignLogicDeps
* @description Deps Phase 2: Add logic entries to the Deps bag (`$`). * Called after all logic instances are registered.
src/core/kernel/coreKernel.js:245
↓ 1 callersMethod#bindEvents
@description Bind panel UI events (input, click delegation, tab navigation, blur prevention). Panel-only.
src/core/logic/panel/finder.js:306
↓ 1 callersMethod#buildConfigDeps
* @description Deps Phase 1: Build Deps bag with config entries only. * Logic constructors can access the Deps bag via `kernel.$`.
src/core/kernel/coreKernel.js:153
↓ 1 callersMethod#calculateRef
* @param {HTMLCollectionOf<HTMLTableRowElement>} rows * @param {Node} startCell * @param {Node} endCell * @returns {{_i: number, cs: number|null
src/plugins/dropdown/table/services/table.selection.js:127
↓ 1 callersMethod#checkDuplicateNode
* @description Recursively checks for duplicate text style nodes within a given parent node. * @param {Node} oNode The node to check for duplicate s
src/core/logic/dom/html.js:1866
↓ 1 callersMethod#checkMoreLayer
* @description Check if the element is part of a more layer * @param {Node} element The element to check * @returns {HTMLElement|null} The more la
src/core/logic/panel/menu.js:336
↓ 1 callersMethod#clearCanvas
* @description Clears the canvas and resets stored drawing paths.
src/plugins/modal/drawing.js:293
↓ 1 callersMethod#closeHover
()
src/plugins/command/codeBlock.js:220
↓ 1 callersMethod#collectAllItems
* @description Collects all file items from every folder in `this.data`. * @returns {Array<BrowserFile>}
src/modules/contract/Browser.js:261
↓ 1 callersMethod#colorName2hex
* @description Converts color values of other formats to hex color values and returns. * @param {string} colorName Color value * @returns {string}
src/modules/contract/ColorPicker.js:241
↓ 1 callersMethod#consistencyCheckOfHTML
* @description Fix tags that do not fit the editor format. * @param {DocumentFragment} documentFragment Document fragment `DOCUMENT_FRAGMENT_NODE` (
src/core/logic/dom/html.js:1500
↓ 1 callersMethod#controllerOff
* @description Hide controller at editor area (link button, image resize button..)
src/modules/contract/Controller.js:397
↓ 1 callersMethod#controllerOn
* @description Show controller at editor area (controller elements, function, `controller target element(@Required)`, `controller name(@Required)`, et
src/modules/contract/Controller.js:360
↓ 1 callersMethod#convertListCell
* @description Converts a list of DOM nodes into an HTML list structure. * - If the node is already a list, its `innerHTML` is used. If it is a bloc
src/core/logic/dom/html.js:1734
↓ 1 callersMethod#copyTextToClipboard
* @description Copies the math expression text to clipboard. * @param {Node} element - The math expression element. * @returns {Promise<void>}
src/plugins/modal/math.js:370
↓ 1 callersMethod#createByServer
* @description Sends the editor content to the server for PDF generation. * @param {HTMLElement} ww - A temporary container holding the formatted ed
src/plugins/command/exportPDF.js:108
↓ 1 callersMethod#createEmbedTag
* @description Creates a `BLOCKQUOTE` element for embedding external content. * @returns {HTMLElement} The created `BLOCKQUOTE` element.
src/plugins/modal/embed.js:586
↓ 1 callersMethod#createFolderList
* @description Creates a nested folder list from parsed data. * @param {BrowserFile[]|BrowserFile} folderData - The structured folder data. * @par
src/modules/contract/Browser.js:473
↓ 1 callersMethod#createList
* @description Generates the autocomplete dropdown list. * @param {Object} ctx - The trigger context. * @param {string} value - The query text aft
src/plugins/field/autocomplete.js:255
↓ 1 callersMethod#createUrl
* @description Constructs the API request URL with the query value. * @param {Object} ctx - The trigger context. * @param {string} key - The query
src/plugins/field/autocomplete.js:315
↓ 1 callersMethod#deleteCaptionPosition
* @description Removes the margin top property from the figure caption. * @param {HTMLElement} element Target element.
src/modules/contract/Figure.js:1353
↓ 1 callersMethod#deleteDisallowedTags
* @description Delete disallowed tags * @param {string} html HTML string * @returns {string}
src/core/logic/dom/html.js:1853
↓ 1 callersMethod#destroyDrawing
* @description Destroys the drawing canvas, removes event listeners, and clears stored drawing data.
src/plugins/modal/drawing.js:217
↓ 1 callersMethod#drawAll
* @description Redraws all stored paths onto the canvas.
src/plugins/modal/drawing.js:266
↓ 1 callersMethod#dupleCheck
* @description Recursively checks for duplicate text style nodes within a given parent node. * - If duplicate styles are found, redundant attributes
src/core/logic/dom/html.js:1884
↓ 1 callersMethod#editFormat
* @description Determines if formatting is required and returns a `domTree` * @param {DocumentFragment} domFrag documentFragment * @returns {Docum
src/core/logic/dom/html.js:1690
↓ 1 callersMethod#editorInit
* @description Initializ editor * @param {SunEditor.InitOptions} options Options
src/core/editor.js:134
↓ 1 callersMethod#error
* @description Handles file upload errors. * @param {Object<string, *>} response - The error response object. * @returns {Promise<void>}
src/modules/ui/ModalAnchorEditor.js:439
↓ 1 callersMethod#error
* @description Handles file upload errors. * - Displays an error message if the upload fails. * @param {Object<string, *>} response - The error re
src/plugins/command/fileUpload.js:418
↓ 1 callersMethod#error
* @description Handles errors that occur during the audio upload process. * - Triggers the `onAudioUploadError` event to allow custom handling of er
src/plugins/modal/audio.js:503
↓ 1 callersMethod#error
* @description Handles errors during image upload and displays appropriate messages. * @param {Object<string, *>} response - The error response from
src/plugins/modal/image/services/image.upload.js:192
↓ 1 callersMethod#error
* @description Handles video upload errors. * @param {Object<string, *>} response - The error response object. * @returns {Promise<void>}
src/plugins/modal/video/services/video.upload.js:68
↓ 1 callersMethod#figureOpen
* @description Opens the figure. * @param {Node} target - The target figure element.
src/plugins/dropdown/table/index.js:809
↓ 1 callersMethod#fileCheck
* @description Validates the image size and applies necessary transformations. * @param {string} width - The width of the image. * @param {string}
src/plugins/modal/image/index.js:731
↓ 1 callersMethod#fixTagStructure
* @description Updates an existing embed component within the editor. * @param {HTMLIFrameElement} oFrame - The existing embed element to be updated
src/plugins/modal/embed.js:732
↓ 1 callersMethod#fixTagStructure
* @description Updates the selected image size, alt text, and caption.
src/plugins/modal/image/index.js:635
↓ 1 callersMethod#fixTagStructure
* @description Updates the video component within the editor. * @param {HTMLIFrameElement|HTMLVideoElement} oFrame - The video element to update.
src/plugins/modal/video/index.js:746
↓ 1 callersMethod#getColorInNode
* @description Gets color value at color property of node * @param {Node} node Selected node * @param {(current: Node) => boolean} stopCondition -
src/modules/contract/ColorPicker.js:224
↓ 1 callersMethod#getDefaultSize
* @description Retrieves the default font size of the editor. * @returns {string} - The computed font size from the editor.
src/plugins/input/fontSize.js:331
↓ 1 callersMethod#getDocument
* @description Get the document object for the current frame (iframe or main document). * @returns {Document}
src/core/logic/panel/finder.js:883
↓ 1 callersMethod#getPageBottomSpace
* @description Get available space from page bottom * @returns {number} Available space
src/core/logic/dom/offset.js:760
↓ 1 callersMethod#getSVG
* @description Generates an SVG representation of the drawn content. * @returns {*} The generated SVG element.
src/plugins/modal/drawing.js:303
↓ 1 callersMethod#getSVGFileList
* @description Converts the SVG element into a downloadable file. * @returns {FileList} A FileList containing the generated SVG file.
src/plugins/modal/drawing.js:330
↓ 1 callersMethod#getWindowScroll
* @description Retrieves the current window scroll position and viewport size. * - Returns an object containing the scroll offsets, viewport dimensi
src/core/logic/dom/offset.js:895
↓ 1 callersMethod#highlightAll
@description Apply highlights to all matches (native API or mark fallback).
src/core/logic/panel/finder.js:556
↓ 1 callersMethod#highlightKeyword
* @description Highlights the search keyword in file name elements. * @param {string} keyword - Lowercase keyword to highlight.
src/modules/contract/Browser.js:662
↓ 1 callersMethod#init
* @description Resets the menu state and removes event listeners.
src/modules/ui/SelectMenu.js:211
↓ 1 callersMethod#init
* @description Initializ core variable * @param {SunEditor.InitOptions} options Options
src/core/editor.js:227
↓ 1 callersMethod#initDrawing
* @description Initializes the drawing canvas, sets up event listeners, and configures resize handling.
src/plugins/modal/drawing.js:172
↓ 1 callersMethod#initLogic
* @description Initialize Logic modules that need `EventManager` reference. * Called after `EventManager` is created.
src/core/kernel/coreKernel.js:233
↓ 1 callersMethod#initState
()
src/plugins/dropdown/table/index.js:156
↓ 1 callersMethod#initWysiwygArea
* @description Initializ wysiwyg area (Only called from core._init) * @param {SunEditor.FrameContext} e frameContext * @param {string} value initi
src/core/editor.js:195
↓ 1 callersMethod#injectHighlightStyles
()
src/core/logic/panel/finder.js:52
↓ 1 callersMethod#isAllTextStyleNodes
* @description Checks if all element descendants are text-style nodes (no focusable non-text elements like br, img, etc.). * @param {Element} el Tar
src/core/logic/dom/html.js:1662
↓ 1 callersMethod#isAllowedScriptSrc
* @description Validate a `<script src>` against the configured whitelist for raw embed HTML. * Inline scripts (no `src`) are always rejected. * @
src/plugins/modal/embed.js:146
↓ 1 callersMethod#isFiles
* @description Checks if the given element is a file component by matching its tag name against the file manager's regular expressions. * - It also
src/core/logic/shell/component.js:702
↓ 1 callersMethod#isHoverOpen
()
src/plugins/command/codeBlock.js:264
↓ 1 callersMethod#isNonFocusNode
* @description Checks if a node is a non-focusable element(`.data-se-non-focus`). (e.g. fileUpload.component > span) * @param {Node} node Node to ch
src/core/event/support/selectionState.js:201
↓ 1 callersMethod#makeLine
* @description Returns HTML string according to tag type and configuration `isExcludeFormat`. * @param {Node} node Node * @param {boolean} forceFo
src/core/logic/dom/html.js:1435
↓ 1 callersMethod#moveItem
* @description Moves the selection up or down by a specified number of items. * @param {number} num - The number of items to move (negative for up,
src/modules/ui/SelectMenu.js:226
↓ 1 callersMethod#nextTextNode
* @description Get the next text node in document order within a boundary. * @param {Node} node * @param {Node} boundary * @returns {Text|null}
src/core/logic/panel/finder.js:673
↓ 1 callersMethod#notify
* @param {keyof StoreState} path * @param {*} newValue * @param {*} oldValue
src/core/kernel/store.js:151
↓ 1 callersMethod#parseFolderData
* @description Parses folder data into a structured format. * @param {BrowserFile} data - The folder data. * @param {string} [path] - The current
src/modules/contract/Browser.js:425
↓ 1 callersMethod#ready
* @description Prepares the component for selection. * - Ensures that the controller is properly positioned and initialized. * - Prevents duplicat
src/plugins/modal/audio.js:428
↓ 1 callersMethod#register
* @description Registers a newly uploaded file and sets its URL in the modal form. * @param {Object<string, *>} response - The response object from
src/modules/ui/ModalAnchorEditor.js:426
↓ 1 callersMethod#register
* @description Processes the server response after file upload. * - Registers the uploaded files in the editor. * @param {Object<string, *>} respo
src/plugins/command/fileUpload.js:399
↓ 1 callersMethod#register
* @description Registers uploaded audio files and creates the corresponding audio elements. * - Iterates through the uploaded files and inserts them
src/plugins/modal/audio.js:440
↓ 1 callersMethod#register
* @description Registers the uploaded image and inserts it into the editor. * @param {SunEditor.EventParams.ImageInfo} info - Image info. * @param
src/plugins/modal/image/services/image.upload.js:97
↓ 1 callersMethod#register
* @description Registers the uploaded video in the editor. * @param {SunEditor.EventParams.VideoInfo} info - Video information object. * @param {O
src/plugins/modal/video/services/video.upload.js:41
↓ 1 callersMethod#registerConfig
* @description L2: Register config instances * @param {ProductType} product - The initial product object. * @param {SunEditor.InitOptions} option
src/core/kernel/coreKernel.js:139
↓ 1 callersMethod#registerLogic
* @description L3: Register logic instances (dom, shell, ui). * @param {ProductType} product - The initial product object.
src/core/kernel/coreKernel.js:179
↓ 1 callersMethod#resetButtonInfo
* @description Reset the common buttons info.
src/core/logic/panel/toolbar.js:312
↓ 1 callersMethod#resetCSSStickyOffset
* @description Adjust CSS sticky toolbar position when the mobile virtual keyboard changes the visual viewport.
src/core/logic/panel/toolbar.js:519
↓ 1 callersMethod#resetFrameStatus
* @description Resets the frame status, adjusting toolbar and UI elements based on the current state. * - Handles `inline` editor adjustments, fulls
src/core/event/eventOrchestrator.js:731
↓ 1 callersMethod#resetLineBreaker
* * @param {number} x * @param {number} y
src/core/logic/shell/ui.js:657
↓ 1 callersMethod#setArrow
* @description Sets the visibility and direction of the arrow element. * - This method applies the appropriate class (`se-arrow-up` or `se-arrow-dow
src/core/logic/dom/offset.js:869
↓ 1 callersMethod#setAsIcon
* @description Updates the figure's block/inline format icon.
src/modules/contract/Figure.js:1308
↓ 1 callersMethod#setBase64
* @description Converts an image file to `Base64` and inserts it into the editor. * @param {SunEditor.EventParams.ImageInfo} info - Image upload inf
src/plugins/modal/image/services/image.upload.js:120
↓ 1 callersMethod#setBorderStyles
* @description Sets border format and styles. * @param {{left: Node[], top: Node[], right: Node[], bottom: Node[], all: Node[]}} cells The table cel
src/plugins/dropdown/table/services/table.style.js:723
↓ 1 callersMethod#setClipboardData
* @internal * @description Processes clipboard data for `paste` and `drop` events, handling text and HTML cleanup. * - Supports specific handling
src/core/event/eventOrchestrator.js:237
↓ 1 callersMethod#setCodeDataToEditor
* @description Convert the data of the code view and put it in the `WYSIWYG` area.
src/core/logic/panel/viewer.js:779
↓ 1 callersMethod#setDragEvent
* @description Sets up drag event handling for the figure component. * @param {Node} figureMain The main figure container element.
src/modules/contract/Figure.js:1385
↓ 1 callersMethod#setEditorDataToCodeView
* @description Convert the data of the `WYSIWYG` area and put it in the code view area.
src/core/logic/panel/viewer.js:827
↓ 1 callersMethod#setEditorDataToMarkdownView
* @description Convert the data of the `WYSIWYG` area and put it in the markdown view area.
src/core/logic/panel/viewer.js:844
↓ 1 callersMethod#setEditorParams
* @description Set the FrameContext parameters and options * @param {SunEditor.FrameContext} e - Frame context object
src/core/config/contextProvider.js:132
↓ 1 callersMethod#setIframeDocument
* @description Configures the document properties of an iframe editor. * @param {HTMLIFrameElement} frame - The editor iframe. * @param {SunEditor
src/core/editor.js:240
↓ 1 callersMethod#setInfo
* @description Create info object of file and add it to `infoList` * @param {HTMLMediaElement} element * @param {{name: string, size: number}|null
src/modules/manager/FileManager.js:249
↓ 1 callersMethod#setIntoFreeFormat
* @description Recursive function when used to place a node in `BrLine` in `html.insertNode` * @param {Node} oNode Node to be inserted * @returns
src/core/logic/dom/html.js:1402
↓ 1 callersMethod#setMarkdownDataToEditor
* @description Convert the data of the markdown view and put it in the `WYSIWYG` area.
src/core/logic/panel/viewer.js:853
↓ 1 callersMethod#setNode_endLine
* @description wraps last line selected text. * @param {Node} element The node of the line that contains the selected text node. * @param {Node} n
src/core/logic/dom/inline.js:1372
↓ 1 callersMethod#setNode_middleLine
* @description wraps mid lines selected text. * @param {HTMLElement} element The node of the line that contains the selected text node. * @param {
src/core/logic/dom/inline.js:1232
← previousnext →801–900 of 1,891, ranked by callers