Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

From CDN

Miguel Michelson Martinez edited this page May 26, 2018 · 1 revision

for static pages , without NPM or ES6 support you may use Dante from the distributed files.

Extample:

<!DOCTYPE html>
  <html>
  <head>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/DanteStyles.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dante-vendors.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Dante2.min.js"></script>
    <script src="/assets/js/editor.js"></script>
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/DanteStyles.min.css">


    <title></title>
  </head>
  <body>

    <div id="editor"></div>

    <script type="text/javascript">
      
        var editor = new Dante({
          el: 'editor',
          spellcheck: true,
          disable_title: true,
          body_placeholder: 'Your Story'
        });

        editor.render()
    </script>

  </body>
</html>
Clone this wiki locally