basic.html 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>A tiny, opensource, Bootstrap WYSIWYG rich text editor</title>
  8. <link href="../bower_components/google-code-prettify/src/prettify.css" rel="stylesheet" />
  9. <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
  10. <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css" />
  11. <link href="../css/style.css" rel="stylesheet" />
  12. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  13. <script src="../bower_components/jquery.hotkeys/jquery.hotkeys.js"></script>
  14. <script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  15. <script src="../bower_components/google-code-prettify/src/prettify.js"></script>
  16. <script src="../src/bootstrap-wysiwyg.js"></script>
  17. </head>
  18. <body>
  19. <div class="container">
  20. <h1>Basic editor, no fancy bits.</h1>
  21. <div id="editor" class="lead" data-placeholder="This is a basic example with no toolbars."></div>
  22. <div id="editorPreview"></div>
  23. <p style="text-align: center;">
  24. <a class="btn btn-large btn-default jumbo"
  25. href="#!" onClick="$('#editorPreview').html($('#editor').html());">Submit</a>
  26. </p>
  27. </div>
  28. <script type='text/javascript'>$('#editor').wysiwyg();</script>
  29. </body>
  30. </html>