UNPKG

@ckeditor/ckeditor5-core

Version:

The core architecture of CKEditor 5 – the best browser-based rich text editor.

16 lines (15 loc) 694 B
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ import type { default as Editor } from '../editor.js'; import type { ElementApi } from './elementapimixin.js'; /** * Checks if the editor is initialized on a `<textarea>` element that belongs to a form. If yes, it updates the editor's element * content before submitting the form. * * This helper requires the {@link module:core/editor/utils/elementapimixin~ElementApi ElementApi interface}. * * @param editor Editor instance. */ export default function attachToForm(editor: Editor & ElementApi): void;