Skip to content

Commit

Permalink
Replace Polldaddy embed block with Crowdsignal (#12854)
Browse files Browse the repository at this point in the history
* Replace Polldaddy embed block with Crowdsignal

* Remove Polldaddy from the inserter

* Update core-embeds.js

* Update core-embeds.js

* Update core-embeds.js
  • Loading branch information
ice9js authored and gziolo committed Jan 29, 2019
1 parent dc68e4b commit b35774d
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion packages/block-library/src/embed/core-embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,25 @@ export const others = [
},
patterns: [ /^https?:\/\/(www\.)?collegehumor\.com\/.+/i ],
},
{
name: 'core-embed/crowdsignal',
settings: {
title: 'Crowdsignal',
icon: embedContentIcon,
keywords: [ 'polldaddy' ],
transform: [ {
type: 'block',
blocks: [ 'core-embed/polldaddy' ],
transform: ( content ) => {
return createBlock( 'core-embed/crowdsignal', {
content,
} );
},
} ],
description: __( 'Embed Crowdsignal (formerly Polldaddy) content.' ),
},
patterns: [ /^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i ],
},
{
name: 'core-embed/dailymotion',
settings: {
Expand Down Expand Up @@ -210,13 +229,17 @@ export const others = [
patterns: [ /^https?:\/\/(www\.)?mixcloud\.com\/.+/i ],
},
{
// Deprecated in favour of the core-embed/crowdsignal block
name: 'core-embed/polldaddy',
settings: {
title: 'Polldaddy',
icon: embedContentIcon,
description: __( 'Embed Polldaddy content.' ),
supports: {
inserter: false,
},
},
patterns: [ /^https?:\/\/(www\.)?polldaddy\.com\/.+/i ],
patterns: [],
},
{
name: 'core-embed/reddit',
Expand Down

0 comments on commit b35774d

Please sign in to comment.