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 youknowriad committed Jan 29, 2019
1 parent cc421f5 commit e8e9eb9
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 @@ -144,6 +144,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 @@ -227,13 +246,17 @@ export const others = [
patterns: [ /^http:\/\/g?i*\.photobucket\.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 e8e9eb9

Please sign in to comment.