UNPKG

688 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5import type { default as Editor } from '../editor.js';
6import type { ElementApi } from './elementapimixin.js';
7/**
8 * Checks if the editor is initialized on a `<textarea>` element that belongs to a form. If yes, it updates the editor's element
9 * content before submitting the form.
10 *
11 * This helper requires the {@link module:core/editor/utils/elementapimixin~ElementApi ElementApi interface}.
12 *
13 * @param editor Editor instance.
14 */
15export default function attachToForm(editor: Editor & ElementApi): void;