From 0ae7a074da0e0911662e6ef05b686899c9a6416c Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 4 Aug 2017 14:24:08 -0400 Subject: [PATCH] Paste: Fix to use getSourcedAttributes export --- blocks/api/paste.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/api/paste.js b/blocks/api/paste.js index 46392f9aec3bb..f78ef18ee094d 100644 --- a/blocks/api/paste.js +++ b/blocks/api/paste.js @@ -13,7 +13,7 @@ import { nodetypes } from '@wordpress/utils'; */ import { createBlock } from './factory'; import { getBlockTypes, getUnknownTypeHandler } from './registration'; -import { getMatcherAttributes } from './parser'; +import { getSourcedAttributes } from './parser'; import stripAttributes from './paste/strip-attributes'; import removeSpans from './paste/remove-spans'; @@ -94,7 +94,7 @@ export default function( nodes ) { return acc; } - const attributes = getMatcherAttributes( + const attributes = getSourcedAttributes( node.outerHTML, transform.attributes, );