/** * This component is derived from the example found at * https://github.com/outline/rich-markdown-editor/blob/develop/example/src/index.js, * which is released under BSD-3 License, Copyright (c) 2020 General Outline, * Inc (https://www.getoutline.com/) and individual contributors. * This modified version is released under AGPL-3.0 as indicated in the README.md * in the root directory. A copy of AGPL-3.0 is available there. * */ import * as React from 'react'; import debounce from 'lodash/debounce'; import RichMarkdownEditor from 'rich-markdown-editor'; class YouTubeEmbed extends React.Component { render() { const { attrs } = this.props; const videoId = attrs.matches[1]; return (