3 EditorFormFieldDefinition,
5 EditorSelectFormFieldDefinition
6 } from "../../framework/forms";
7 import {EditorUiContext} from "../../framework/core";
8 import {setEditorContentFromHtml} from "../../../actions";
10 export const cellProperties: EditorFormDefinition = {
12 async action(formData, context: EditorUiContext) {
13 setEditorContentFromHtml(context.editor, formData.get('source')?.toString() || '');
19 const generalFields: EditorFormFieldDefinition[] = [
36 'Header cell': 'header',
38 } as EditorSelectFormFieldDefinition,
40 label: 'Horizontal align',
49 } as EditorSelectFormFieldDefinition,
51 label: 'Vertical align',
60 } as EditorSelectFormFieldDefinition,
63 const advancedFields: EditorFormFieldDefinition[] = [
65 label: 'Border width',
70 label: 'Border style',
86 } as EditorSelectFormFieldDefinition,
88 label: 'Border color',
93 label: 'Background color',
94 name: 'background_color',
99 return new EditorFormTabs([
102 contents: generalFields,
106 contents: advancedFields,