table/converters/tableproperties
Constants
DEFAULT_TABLE_ALIGNMENT_OPTIONS: objectmodule:table/converters/tableproperties~DEFAULT_TABLE_ALIGNMENT_OPTIONSDefault table alignment options.
downcastTableAlignmentConfig: Record<TableAlignmentValues, object>module:table/converters/tableproperties~downcastTableAlignmentConfigupcastTableAlignmentConfig: Array<UpcastTableAlignmentConfig>module:table/converters/tableproperties~upcastTableAlignmentConfigConfiguration for upcasting table alignment from view to model.
Interfaces
module:table/converters/tableproperties~StyleValues
Type Definitions
module:table/converters/tableproperties~TableAlignmentValues
Functions
downcastAttributeToStyle( conversion, options = { options.modelAttribute, options.modelElement, options.styleName } ) → voidinternalmodule:table/converters/tableproperties~downcastAttributeToStyleConversion helper for downcasting an attribute to a style.
Parameters
conversion: Conversionoptions: object- Properties
options.modelAttribute: stringoptions.modelElement: stringoptions.styleName: string
Returns
void
downcastTableAttribute( conversion, options = { options.modelAttribute, options.styleName } ) → voidinternalmodule:table/converters/tableproperties~downcastTableAttributeConversion helper for downcasting attributes from the model table to a view table (not to
<figure>).Parameters
conversion: Conversionoptions: object- Properties
options.modelAttribute: stringoptions.styleName: string
Returns
void
getDefaultValueAdjusted( defaultValue, layoutTableDefault, data ) → stringinternalmodule:table/converters/tableproperties~getDefaultValueAdjustedReturns the default value for table or table cell property adjusted for layout tables.
Parameters
defaultValue: stringlayoutTableDefault: stringdata: UpcastConversionData<ViewElement>
Returns
string
upcastBorderStyles( editor, viewElementName, modelAttributes, defaultBorder ) → voidinternalmodule:table/converters/tableproperties~upcastBorderStylesConversion helper for upcasting border styles for view elements.
Parameters
editor: EditorThe editor instance.
viewElementName: stringmodelAttributes: StyleValuesdefaultBorder: StyleValuesThe default border values.
Returns
void
upcastStyleToAttribute( conversion, options = { options.attributeName?, options.attributeType?, options.defaultValue, options.modelAttribute, options.reduceBoxSides?, options.shouldUpcast?, options.styleName, options.viewElement } ) → voidinternalmodule:table/converters/tableproperties~upcastStyleToAttributeConversion helper for upcasting attributes using normalized styles.
Parameters
conversion: Conversionoptions: object- Properties
options.attributeName?: stringThe HTML attribute name to convert.
options.attributeType?: 'length' | 'color'The HTML attribute type for value normalization.
options.defaultValue: stringThe default value for the specified
modelAttribute.options.modelAttribute: stringThe attribute to set.
options.reduceBoxSides?: booleanoptions.shouldUpcast?: ( viewElement: ViewElement ) => booleanThe function which returns
trueif style should be upcasted from this element.options.styleName: stringThe style name to convert.
options.viewElement: string | RegExpThe view element name that should be converted.
Returns
void
upcastTableCellPaddingAttribute( editor, viewElementName, defaultPadding? ) → voidinternalmodule:table/converters/tableproperties~upcastTableCellPaddingAttributeConversion helper for upcasting the
cellpaddingtable attribute.Parameters
editor: EditorThe editor instance.
viewElementName: stringThe view element name that should be converted.
defaultPadding?: stringThe default padding value.
Returns
void