| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Noembed plugin | Trumbowyg</title>
- <script src="../js/loader.js"></script>
- <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
- <link rel="stylesheet" href="../../css/main.css">
- </head>
- <body class="documentation-body">
- <div class="main main-demo-inner">
- <section class="wrapper section">
- <h2 class="section-title">Noembed plugin</h2>
- <div class="feature">
- <h3>Basic usage</h3>
- <p>
- You can insert embeded content via an embed proxy.
- Plugin uses <a href="//noembed.com">noembed</a> by default.
- </p>
- <a href="../../documentation/plugins/#plugin-noembed" class="button button-demo">Read noembed plugin documentation</a>
- <div id="editor">
- <h2>Embed Content!</h2>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident
- optio nam reiciendis eius beatae quibusdam!
- </p>
- <iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F342548257&show_artwork=true"></iframe>
- <p>
- The text is derived from Cicero's De Finibus Bonorum et Malorum (On the Ends of Goods and Evils, or
- alternatively [About] The Purposes of Good and Evil ). The original passage began: Neque porro quisquam est
- qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit (Translation: "Neither is there
- anyone who loves grief itself since it is grief and thus wants to obtain it").
- </p>
- </div>
- <h4>The code</h4>
- <pre><code class="js-code-to-eval javascript">
- $('#editor')
- .trumbowyg({
- btns: ['noembed']
- });
- </code></pre>
- </div>
- <div class="feature">
- <h3>Put in dropdown</h3>
- <div id="editor-dropdown">
- <h2>Embed content through image dropdown!</h2>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident
- optio nam reiciendis eius beatae quibusdam!
- </p>
- <p>
- The text is derived from Cicero's De Finibus Bonorum et Malorum (On the Ends of Goods and Evils, or
- alternatively [About] The Purposes of Good and Evil ). The original passage began: Neque porro quisquam est
- qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit (Translation: "Neither is there
- anyone who loves grief itself since it is grief and thus wants to obtain it").
- </p>
- </div>
- <h4>The code</h4>
- <pre><code class="js-code-to-eval javascript">
- $('#editor-dropdown')
- .trumbowyg({
- btnsDef: {
- // Create a new dropdown
- image: {
- dropdown: ['insertImage', 'noembed'],
- ico: 'insertImage'
- }
- },
- // Redefine the button pane
- btns: [
- ['viewHTML'],
- ['formatting'],
- ['strong', 'em', 'del'],
- ['superscript', 'subscript'],
- ['link'],
- ['image'], // Our fresh created dropdown
- ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
- ['unorderedList', 'orderedList'],
- ['horizontalRule'],
- ['removeformat'],
- ['fullscreen']
- ]
- });
- </code></pre>
- </div>
- <div class="feature">
- <h3>Setup</h3>
- <h4>In head tag</h4>
- <pre><code class="html loading-head">
- </code></pre>
- <h4>At the end of body</h4>
- <pre><code class="html loading-body">
- <!-- Import jQuery -->
- <script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
- </code></pre>
- </div>
- </section>
- </div>
- <!-- Import jQuery -->
- <script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="../../js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
- <!-- DO NOT COPY THIS LINES IN YOUR PROJECT, THEY ARE THERE JUST FOR THE EXAMPLE PAGE PRUPOSE -->
- <script src="../js/loader.js"></script>
- <script>
- loadStyle('dist/ui/trumbowyg.css');
- loadScript('dist/trumbowyg.js', 'Import Trumbowyg');
- loadScript('dist/plugins/noembed/trumbowyg.noembed.js', 'Import all plugins you want AFTER importing jQuery and Trumbowyg');
- </script>
- <script src="../js/runExampleCode.js"></script>
- <script src="../js/highlight.js"></script>
- </body>
- </html>
|