Update extending.md

This commit is contained in:
Caleb 2017-10-20 18:55:36 -06:00 committed by Shawn Erquhart
parent 884f922e00
commit 75d1663c9b

View File

@ -85,7 +85,7 @@ CMS.registerEditorComponent({
// Fields the user need to fill out when adding an instance of the component // Fields the user need to fill out when adding an instance of the component
fields: [{name: 'id', label: 'Youtube Video ID', widget: 'string'}], fields: [{name: 'id', label: 'Youtube Video ID', widget: 'string'}],
// Pattern to identify a block as being an instance of this component // Pattern to identify a block as being an instance of this component
pattern: /^\s?youtube (\S+)\s?/, pattern: /youtube (\S+)\s/,
// Function to extract data elements from the regexp match // Function to extract data elements from the regexp match
fromBlock: function(match) { fromBlock: function(match) {
return { return {