UNPKG

@atlaskit/editor-plugin-layout

Version:

Layout plugin for @atlaskit/editor-core

23 lines (22 loc) 864 B
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { NodeView } from '@atlaskit/editor-prosemirror/view'; /** * Requires `platform_editor_breakout_resizing` as well as * `platform_editor_vanilla_node_views_phase1`, because it cannot render the * React `<BreakoutResizer>` the old view mounts when that experiment is off. * * Also used for SSR, where it needs no `NodeViewContentHole` / * `data-ssr-content-dom-ref` handling — that exists only because the React * portal overwrites `container.innerHTML`. */ export declare class LayoutSectionView implements NodeView { dom: HTMLElement; contentDOM: HTMLElement; private node; constructor(node: PMNode); update(node: PMNode): boolean; ignoreMutation(mutation: MutationRecord | { target: Node; type: 'selection'; }): boolean; }