Commit a8de0dbb authored by 吕祺's avatar 吕祺 ⛹🏽

change video

parent c9c602ce
......@@ -37,7 +37,7 @@
//
// Additionally, it's recommended that you use non-greedy capturing groups (e.g.
// `(.*?)` vs `(.*)`), especially if matching against newline characters.
pattern: /^<urls>$\s*?<poster>(.*?)<\/poster>\n\n(.*?)\n^<\/urls>$/ms,
pattern: /^<video>$\s*?(.*?)\n^<\/video>$/ms,
// Given a RegExp Match object
// (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match#return_value),
// return an object with one property for each field defined in `fields`.
......@@ -45,7 +45,7 @@
// This is used to populate the custom widget in the markdown editor in the CMS.
fromBlock: function(match) {
return {
summary: match[1],
poster: match[1],
urls: match[2]
};
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment