MCPcopy Create free account

hub / github.com/JiHong88/suneditor / functions

Functions1,891 in github.com/JiHong88/suneditor

↓ 1 callersFunctionbuildMockMain
* Build a default mockMain with all dependencies in place. * Individual tests may override specific sub-properties after calling this.
test/unit/plugins/modal/image/services/image.upload.spec.js:30
↓ 1 callersFunctioncheck
()
test/__mocks__/editorIntegration.js:214
↓ 1 callersFunctioncollectRows
(parent, isHead)
src/helper/markdown.js:198
↓ 1 callersMethodcolorPickerHueSliderClose
* @optional * Executes the method called when the `HueSlider` module is closed. * @returns {void}
types/interfaces/contracts.d.ts:116
↓ 1 callersMethodcolorPickerHueSliderOpen
* @optional * Executes the method called when the `HueSlider` module is opened. * @returns {void}
types/interfaces/contracts.d.ts:110
↓ 1 callersMethodcomponentDestroy
* @hook Editor.Component * @type {SunEditor.Hook.Component.Destroy}
src/plugins/modal/audio.js:250
↓ 1 callersMethodcomponentDestroy
* @hook Editor.Component * @type {SunEditor.Hook.Component.Destroy}
src/plugins/modal/math.js:309
↓ 1 callersMethodcomponentDestroy
* @hook Editor.Component * @type {SunEditor.Hook.Component.Destroy}
src/plugins/dropdown/table/index.js:208
↓ 1 callersMethodcomponentSelect
* @hook Editor.Component * @type {SunEditor.Hook.Component.Select}
src/plugins/popup/anchor.js:67
↓ 1 callersMethodcomponentSelect
* @hook Editor.Component * @type {SunEditor.Hook.Component.Select}
src/plugins/modal/image/index.js:321
↓ 1 callersMethodcontainerOn
* @description Opens the menu container for the specified button. * @param {Node} button Container's button element to call
src/core/logic/panel/menu.js:201
↓ 1 callersMethodcontrollerOn
* @optional * This function is called after the `controller` is opened. * @param {HTMLFormElement} form Controller form element * @param {Node|R
types/interfaces/contracts.d.ts:69
↓ 1 callersFunctionconvertClassToInterface
* Converts "class" to "interface" in .d.ts content * NOTE: Only converts contracts.d.ts - plugin.d.ts must remain as class (for extends) * @param {s
scripts/ts-build/interfaces-convert.cjs:92
↓ 1 callersMethodcopy
* @description Copies the specified component node to the clipboard. * - This function is different from the one called when the user presses the `C
src/core/logic/shell/component.js:459
↓ 1 callersMethodcopyFormat
()
src/core/logic/shell/_commandExecutor.js:155
↓ 1 callersFunctioncopyTagAttributes
(originEl, copyEl, blacklist)
src/helper/dom/domUtils.js:235
↓ 1 callersFunctioncreateElement
(elementName, attributes, inner)
src/helper/dom/domUtils.js:76
↓ 1 callersFunctioncreateMockClipboardData
(customProps = {})
test/__mocks__/editorMock.js:1375
↓ 1 callersFunctioncreateMockCommandTargets
* Creates mock command targets
test/__mocks__/editorMock.js:496
↓ 1 callersFunctioncreateMockDOM
* Creates a mock DOM structure for testing
test/__mocks__/editorMock.js:11
↓ 1 callersFunctioncreateMockDeps
* Creates a mock $ deps bag for ColorPicker
test/unit/modules/ColorPicker.spec.js:97
↓ 1 callersFunctioncreateMockFrameContext
* Creates a mock frame context
test/__mocks__/editorMock.js:112
↓ 1 callersFunctioncreateMockFrameRoots
* Creates a mock frame roots map
test/__mocks__/editorMock.js:152
↓ 1 callersFunctioncreateMockInst
* Creates a minimal mock inst (EventManager-like instance) with all kernel modules * needed by makePorts.
test/unit/core/event/ports.spec.js:26
↓ 1 callersFunctioncreateMockKeyboardEvent
(key = 'a', customProps = {})
test/__mocks__/editorMock.js:1392
↓ 1 callersFunctioncreateMockMouseEvent
(type = 'click', customProps = {})
test/__mocks__/editorMock.js:1425
↓ 1 callersFunctioncreateMockOptions
* Creates mock options
test/__mocks__/editorMock.js:159
↓ 1 callersFunctioncreateMockPlugins
* Creates mock plugins
test/__mocks__/editorMock.js:314
↓ 1 callersFunctioncreateRealElement
(tagName, attrs, html)
test/unit/modules/Browser.spec.js:10
↓ 1 callersFunctioncreateTestDOM
* Creates a minimal DOM structure for editor testing
test/__mocks__/editorIntegration.js:11
↓ 1 callersFunctioncreateTextNode
(text)
src/helper/dom/domUtils.js:101
↓ 1 callersFunctioncreateUIKernel
* Helper: creates a minimal mock kernel with real DOM elements so that * `new UIManager(kernel)` can be constructed without errors. * The returned o
test/unit/core/logic/shell/ui.spec.js:13
↓ 1 callersMethodcustomMethod
()
test/unit/core/kernel/kernelInjector.spec.js:231
↓ 1 callersFunctiondebounce
(func, wait)
src/helper/converter.js:148
↓ 1 callersMethoddoSomething
()
test/unit/core/kernel/kernelInjector.spec.js:133
↓ 1 callersFunctiondrawColorWheelToContext
(context)
src/modules/contract/HueSlider.js:465
↓ 1 callersFunctiondrawWheelGradient
()
src/modules/contract/HueSlider.js:456
↓ 1 callersFunctionescapeHtml
* @description Escape HTML special characters * @param {string} str * @returns {string}
src/helper/markdown.js:882
↓ 1 callersMethodexecute
* @description Execute default command of command button
src/core/logic/shell/_commandExecutor.js:61
↓ 1 callersMethodexecute
* @description Executes the default `line` creation logic. * - If no `formatName` is provided, it uses the `defaultLine` option (usually `P`). * -
src/core/event/support/defaultLineManager.js:26
↓ 1 callersFunctionextractCommandButtons
* Extract command button names from _defaultButtons function in constructor.js * @returns {string[]} Array of command button names
scripts/check/gen-button-types.cjs:40
↓ 1 callersFunctionextractLangKeys
* Extract lang object from en.js source file
scripts/ts-build/fix-langs.cjs:13
↓ 1 callersFunctionextractPluginNames
* Extract plugin names from plugins/index.js export statement * @returns {string[]} Array of plugin names
scripts/check/gen-button-types.cjs:12
↓ 1 callersMethodfindMergedCells
* @description Find merged cells * @param {HTMLTableCellElement[]} cells - Cells array
src/plugins/dropdown/table/services/table.cell.js:241
↓ 1 callersFunctionfindPluginOptions
* Find all plugin option types from plugin files * @returns {Array<{name: string, typeName: string, relativePath: string}>}
scripts/check/inject-plugin-jsdoc.cjs:12
↓ 1 callersFunctionfunc
()
test/unit/helper/converter.spec.js:167
↓ 1 callersFunctiongetCacheKey
* @param {HTMLTableCellElement} startCell * @param {HTMLTableCellElement} endCell * @returns {string}
src/plugins/dropdown/table/services/table.selection.js:9
↓ 1 callersMethodgetDeps
()
test/unit/core/kernel/kernelInjector.spec.js:245
↓ 1 callersMethodgetFormat
()
test/unit/core/kernel/kernelInjector.spec.js:164
↓ 1 callersMethodgetHistory
()
test/unit/core/kernel/kernelInjector.spec.js:172
↓ 1 callersMethodgetInputSize
* @description Gets the current width and height input values. * @returns {{w: string, h: string}}
src/plugins/modal/video/services/video.size.js:79
↓ 1 callersMethodgetJson
* @description Gets the current content to JSON data * @param {Object} [options] Options * @param {boolean} [options.withFrame=false] Gets the cur
src/core/logic/dom/html.js:1243
↓ 1 callersFunctiongetListChildNodes
(element, validation, depth)
src/helper/dom/domQuery.js:178
↓ 1 callersFunctiongetOptionalMembers
* Reads the original .js source file and extracts member names marked with @optional * @param {string} dtsFilePath - Path to the .d.ts file * @retur
scripts/ts-build/interfaces-convert.cjs:34
↓ 1 callersFunctiongetType
(element)
src/plugins/modal/math.js:563
↓ 1 callersFunctiongetTypedefImportPath
* Calculate relative path from source file to typedef.d.ts * @param {string} filePath - Path to the .d.ts file * @returns {string} - Relative import
scripts/ts-build/inject-typedef-import.cjs:12
↓ 1 callersFunctiongoogleTranslate
(text, from, to)
scripts/check/langs-sync.cjs:17
↓ 1 callersFunctionhasCorrectTypedefImport
* Check if file already has correct typedef import * @param {string} content - File content * @param {string} expectedPath - Expected import path *
scripts/ts-build/inject-typedef-import.cjs:30
↓ 1 callersFunctionhslToRgb
([h, s, l])
src/modules/contract/HueSlider.js:530
↓ 1 callersMethodinit
* @description Resets the ModalAnchorEditor to its initial state.
src/modules/ui/ModalAnchorEditor.js:246
↓ 1 callersMethodinit
* @description Initializes the size service state.
src/plugins/modal/video/services/video.size.js:181
↓ 1 callersFunctioninjectKeys
(filePath, langCode, baseLangObj)
scripts/check/langs-sync.cjs:50
↓ 1 callersFunctioninjectTypedefImport
()
scripts/ts-build/inject-typedef-import.cjs:45
↓ 1 callersMethodinsert
* @description Inserts an element and returns it. (Used for elements: table, hr, image, video) * - If `element` is `HR`, inserts and returns the new
src/core/logic/shell/component.js:126
↓ 1 callersFunctionisBreak
(node)
src/helper/dom/domCheck.js:132
↓ 1 callersFunctionisEmptyLine
(node)
src/helper/dom/domCheck.js:186
↓ 1 callersFunctionisHexColor
(str)
src/helper/converter.js:341
↓ 1 callersFunctionisImportantDisabled
(node)
src/helper/dom/domCheck.js:297
↓ 1 callersFunctionisTableCell
(node)
src/helper/dom/domCheck.js:114
↓ 1 callersFunctionmain
* Main execution
scripts/check/gen-button-types.cjs:120
↓ 1 callersFunctionmakeDeps
Creates the `$` (deps) argument for the ApiManager constructor.
test/unit/modules/ApiManager.spec.js:56
↓ 1 callersFunctionmakeMethodsOptional
* Converts class members to optional in .d.ts content * @param {string} content - The .d.ts file content * @param {Set<string>} optionalMembers - Se
scripts/ts-build/interfaces-convert.cjs:70
↓ 1 callersFunctionmockCreateModalForm
()
test/unit/plugins/modal/drawing.spec.js:8
↓ 1 callersFunctionmockCreateXhr
()
test/unit/modules/ApiManager.spec.js:13
↓ 1 callersFunctionmockScroll
(el, props)
test/unit/core/logic/dom/offset.numerical.spec.js:146
↓ 1 callersMethodmodalInit
* @hook Modules.Modal * @type {SunEditor.Hook.Modal.Init}
src/plugins/modal/audio.js:206
↓ 1 callersMethodmodalInit
* @hook Modules.Modal * @type {SunEditor.Hook.Modal.Init}
src/plugins/modal/embed.js:375
↓ 1 callersMethodmodalInit
* @hook Modules.Modal * @type {SunEditor.Hook.Modal.Init}
src/plugins/modal/math.js:261
↓ 1 callersMethodmodalInit
* @hook Modules.Modal * @type {SunEditor.Hook.Modal.Init}
src/plugins/modal/image/index.js:293
↓ 1 callersMethodmodalInit
* @hook Modules.Modal * @type {SunEditor.Hook.Modal.Init}
src/plugins/modal/video/index.js:345
↓ 1 callersMethodmodalResize
* @optional * Modal resize callback (optional). * @returns {void}
types/interfaces/contracts.d.ts:47
↓ 1 callersMethodon
* @impl Dropdown * @type {PluginDropdown['on']}
src/plugins/command/codeBlock.js:186
↓ 1 callersMethodon
* @description Called when the modal is opened. Initializes inputs and ratio options. * @param {boolean} isUpdate - Indicates whether the modal is f
src/plugins/modal/video/services/video.size.js:142
↓ 1 callersMethodonKeyUp
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnKeyUp}
src/plugins/dropdown/table/index.js:548
↓ 1 callersMethodonPaste
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnPaste}
src/plugins/dropdown/table/index.js:247
↓ 1 callersMethodonScroll
* @hook Editor.EventManager * @type {SunEditor.Hook.Event.OnScroll}
src/plugins/dropdown/table/index.js:562
↓ 1 callersFunctionparseCdnBuilder
* Parse window.SUNEDITOR properties from cdn-builder.js * Looks for: value: { ...suneditor, plugins, modules, helper, interfaces }
scripts/check/check-exports-sync.cjs:40
↓ 1 callersFunctionparseFormatIndex
* Parse exports from format-index.cjs generated output * Looks for: defaultExportModules array and other export patterns
scripts/check/check-exports-sync.cjs:59
↓ 1 callersFunctionparseSuneditor
* Parse named exports from suneditor.js * Looks for: export { plugins, modules, helper, langs, interfaces };
scripts/check/check-exports-sync.cjs:30
↓ 1 callersFunctionprocessInterfaces
()
scripts/ts-build/interfaces-convert.cjs:108
↓ 1 callersFunctionprocessTypedef
* Process typedef.d.ts
scripts/ts-build/wrap-dts.cjs:9
↓ 1 callersMethodready
* @description Prepares the size inputs and options when a video component is selected. * @param {import('../../../../modules/contract/Figure').Figu
src/plugins/modal/video/services/video.size.js:162
↓ 1 callersFunctionrefreshRoots
* @description Clears future history and reinitializes deleted roots. * @param {Object} root Root stack object.
src/core/logic/shell/history.js:173
↓ 1 callersFunctionremoveTypedefImport
* Remove any existing typedef import (correct or incorrect) * @param {string} content - File content * @returns {string} - Content without typedef i
scripts/ts-build/inject-typedef-import.cjs:41
↓ 1 callersMethodreset
* @description Add or reset option property (Editor is reloaded) * @param {SunEditor.InitOptions} newOptions Options
src/core/config/optionProvider.js:108
↓ 1 callersMethodreset
* @description Resets the toolbar state. * - Deactivates all buttons and clears the effect. * - Equivalent to calling `setKeyEffect([])`.
src/core/event/support/selectionState.js:162
↓ 1 callersMethodresetFrame
* @description Add or reset frame option property (Editor is reloaded) * @param {SunEditor.FrameOptions} newOptions Options
src/core/config/optionProvider.js:304
↓ 1 callersFunctionresetRoot
* @description Resets a root frame's history stack. * @param {*} rootKey Root frame key.
src/core/logic/shell/history.js:147
↓ 1 callersFunctionrgbToHex
({ r, g, b })
src/modules/contract/HueSlider.js:559
↓ 1 callersFunctionrgbToHsl
([r, g, b])
src/modules/contract/HueSlider.js:496
← previousnext →1,001–1,100 of 1,891, ranked by callers