UNPKG

@progress/kendo-react-editor

Version:

React Editor enables users to create rich text content through a WYSIWYG interface. KendoReact Editor package

60 lines (59 loc) 1.72 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { EditorState, Transaction } from '@progress/kendo-editor-common'; /** * @hidden */ type TablePosition = 'left' | 'right' | 'center' | ''; /** * @hidden */ interface TableData { rows: number; columns: number; width: number | null; widthUnit: string; height: number | null; heightUnit: string; position: TablePosition | null; textAlign: string; cellPadding: number | null; cellSpacing: number | null; backgroundColor: string | undefined; borderWidth: number | null; borderColor: string | undefined; borderStyle: string | null; collapseBorders: boolean; id: string; className: string; caption?: string; captionPosition: string | null; captionAlignment: string | null; headerRows: number; headerColumns: number; associateHeaders: 'none' | 'scope' | 'id'; } /** * @hidden */ declare const initialTableData: TableData; /** * @hidden */ declare const tablePositionStyles: Record<TablePosition, { [styleName: string]: string; }>; /** * @hidden */ declare const tableDefaultData: (state: EditorState) => TableData; /** * @hidden */ declare const applyTableData: (state: EditorState, data: TableData) => Transaction | undefined; export { TableData, initialTableData, tablePositionStyles, TablePosition, tableDefaultData, applyTableData };