(element)
| 353 | } |
| 354 | |
| 355 | getBlockHTMLAttributes(element) { |
| 356 | const attributes = {} |
| 357 | const blockConfig = Object.values(config.blockAttributes).find(settings => settings.tagName === tagName(element)) |
| 358 | const allowedAttributes = blockConfig?.htmlAttributes || [] |
| 359 | |
| 360 | allowedAttributes.forEach((attribute) => { |
| 361 | if (element.hasAttribute(attribute)) { |
| 362 | attributes[attribute] = element.getAttribute(attribute) |
| 363 | } |
| 364 | }) |
| 365 | |
| 366 | return attributes |
| 367 | } |
| 368 | |
| 369 | findBlockElementAncestors(element) { |
| 370 | const ancestors = [] |
no test coverage detected