ea.getStylesToAttributesObject

Description #

Used when creating an attributes object, to load into the styles panel, from HTML styles and classes on an element.

Arguments #

  • attributes – object – attributes object (similar to block attributes)
  • styles – string – the style string from the element
  • classes – string – the class string from the element

Located #

src/lib.js

Example #

addFilter(
    'ea.getStylesToAttributesObject',
    'namespace',
    (attributes, styles, classes) => {...attributes}
);