UNPKG

@atlaskit/editor-plugin-layout

Version:

Layout plugin for @atlaskit/editor-core

12 lines (11 loc) 581 B
import type { Transaction } from '@atlaskit/editor-prosemirror/state'; import type { LayoutPlugin } from './layoutPluginType'; /** * This function is used to set the selection into * the first paragraph of the first column of a layout section. * This function is only intended to be used after inserting a new layout section. * @param tr - transaction * @returns - transaction with the selection set to the first paragraph of the first column */ export declare const selectIntoLayoutSection: (tr: Transaction) => Transaction; export declare const layoutPlugin: LayoutPlugin;