jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
16 lines (15 loc) • 647 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import type { ICommitStyle, Nullable } from "../../../../types/index";
/**
* Checks if child elements are suitable for applying styles.
* An element is suitable for us only if it is the only significant child.
* If the child matches then returns it.
* @example
* `<font><strong>selected</strong></font>`
* @private
*/
export declare function getSuitChild(style: ICommitStyle, font: HTMLElement): Nullable<HTMLElement>;