How to use the roosterjs-editor-api.formatTable function in roosterjs-editor-api

To help you get started, we’ve selected a few roosterjs-editor-api examples, based on popular ways it is used in public projects.

github microsoft / roosterjs / publish / samplesite / scripts / controls / ribbon / renderTableOptions.tsx View on Github external
onClick={() => {
                    this.props.onDismiss();
                    formatTable(this.props.editor, format);
                }}>
                {text}
github microsoft / roosterjs / publish / samplesite / scripts / controls / ribbon / renderTableOptions.tsx View on Github external
private onCustomizeFormat = () => {
        this.props.onDismiss();

        let format = createTableFormat(
            this.evenBgColor.current.value || undefined,
            this.oddBgColor.current.value || undefined,
            this.topBorderColor.current.value || undefined,
            this.bottomBorderColor.current.value || undefined,
            this.verticalBorderColor.current.value || undefined
        );

        formatTable(this.props.editor, format);
    };
}
github microsoft / roosterjs / publish / samplesite / scripts / controls / sidePane / tableOptions / TableOptionsPlugin.ts View on Github external
private onFormatTable = (format: Partial<TableFormat>) => {
        formatTable(this.editor, format);
    };