Skip to content

Commit

Permalink
Pass content as HTML instead of React elements to freeform block
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 26, 2017
1 parent ae91fca commit 2b222e4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions blocks/api/paste.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/**
* External dependencies
*/
import { nodeListToReact } from 'dom-react';
import { find, get } from 'lodash';

/**
* WordPress dependencies
*/
import { createElement } from 'element';

/**
* Internal dependencies
*/
Expand Down Expand Up @@ -100,7 +94,7 @@ export default function( nodes ) {
}

return createBlock( getUnknownTypeHandler(), {
content: nodeListToReact( [ node ], createElement ),
content: node.outerHTML,
} );
} );
}

0 comments on commit 2b222e4

Please sign in to comment.