/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:core/create/README.md]] * @packageDocumentation * @module create */ import type { Attributes, CanUndef, Children, ICreate, IDictionary, NodeFunction } from "../../types/index"; export declare class Create implements ICreate { readonly document: Document | (() => Document); readonly createAttributes?: CanUndef>; private get doc(); constructor(document: Document | (() => Document), createAttributes?: CanUndef>); element(tagName: K, children?: Children): HTMLElementTagNameMap[K]; element(tagName: K, attributes?: Attributes, children?: Children): HTMLElementTagNameMap[K]; div(className?: string, childrenOrAttributes?: Children): HTMLDivElement; div(className?: string, childrenOrAttributes?: Attributes, children?: Children): HTMLDivElement; sandbox(): [ HTMLElement, HTMLIFrameElement ]; span(className?: string, childrenOrAttributes?: Children): HTMLSpanElement; span(className?: string, childrenOrAttributes?: Attributes, children?: Children): HTMLSpanElement; a(className?: string, children?: Children): HTMLAnchorElement; a(className?: string, childrenOrAttributes?: Attributes, children?: Children): HTMLAnchorElement; /** * Create text node */ text(value: string): Text; /** * Create invisible text node */ fake(): Text; /** * Create HTML Document fragment element */ fragment(): DocumentFragment; /** * Create a DOM element from HTML text * // eslint-disable-next-line tsdoc/syntax * @param refsToggleElement - State dictionary in which you can set the visibility of some of the elements * ```js * const editor = Jodit.make('#editor'); * editor.createInside.fromHTML(`
* * *
`, { * name: true, * email: false * }); * ``` */ fromHTML(html: string | number, refsToggleElement?: IDictionary): T; /** * Apply to element `createAttributes` options */ applyCreateAttributes(elm: HTMLElement): void; }