Module

table/converters/tableproperites

@ckeditor/ckeditor5-table/src/converters/tableproperites

module

Filtering

Functions

  • downcastAttributeToStyle( conversion, options = { options.modelElement, options.modelAttribute, options.styleName } )

    Conversion helper for downcasting an attribute to a style.

    Parameters

    conversion : Conversion
    options : Object
    Properties
    options.modelElement : String
    options.modelAttribute : String
    options.styleName : String
  • downcastTableAttribute( conversion, options = { options.modelAttribute, options.styleName } )

    Conversion helper for downcasting attributes from the model table to a view table (not to <figure>).

    Parameters

    conversion : Conversion
    options : Object
    Properties
    options.modelAttribute : String
    options.styleName : String
  • upcastBorderStyles( conversion, viewElementName, modelAttributes, defaultBorder = { defaultBorder.color, defaultBorder.style, defaultBorder.width } )

    Conversion helper for upcasting border styles for view elements.

    Parameters

    conversion : Conversion
    viewElementName : String
    modelAttributes : Object
    defaultBorder : Object

    The default border values.

    Properties
    defaultBorder.color : String

    The default borderColor value.

    defaultBorder.style : String

    The default borderStyle value.

    defaultBorder.width : String

    The default borderWidth value.

  • upcastStyleToAttribute( conversion, options = { options.modelAttribute, options.styleName, options.viewElement, options.defaultValue, [options.reduceBoxSides] } )

    Conversion helper for upcasting attributes using normalized styles.

    Parameters

    conversion : Conversion
    options : Object
    Properties
    options.modelAttribute : String

    The attribute to set.

    options.styleName : String

    The style name to convert.

    options.viewElement : String

    The view element name that should be converted.

    options.defaultValue : String

    The default value for the specified modelAttribute.

    [ options.reduceBoxSides ] : Boolean

    Defaults to false