Embed

This example shows how to add embed code to the content. If it is an iframe, just insert it into the content, in other cases embed code should be wrapped in a figure tag.

    Demo

    Code

    <!DOCTYPE html>
    <html>
    <head>
        <title>Article Editor</title>
        <meta charset="utf-8">
    
        <!-- css -->
        <link rel="stylesheet" href="/your-article-dist-path/article-editor.min.css" />
    </head>
    <body>
        <!-- element -->
        <textarea id="entry">
            // embed in figure
            <figure>
                <blockquote class="twitter-tweet">...</blockquote>
            </figure>
    
            // embed as iframe
            <iframe src="https://www.google.com/maps...."></iframe>
        </textarea>
    
        <!-- js -->
        <script src="/your-article-dist-path/article-editor.min.js"></script>
    
        <!-- call -->
        <script>
        ArticleEditor('#entry', {
            css: '/your-article-dist-path/'
        });
        </script>
    </body>
    </html>