edit_in_popup.html 978 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" />
  6. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
  7. <link rel="stylesheet" href="../../css/froala_editor.css">
  8. <link rel="stylesheet" href="../../css/froala_style.css">
  9. <style>
  10. div#editor {
  11. width: 81%;
  12. margin: auto;
  13. text-align: left;
  14. }
  15. #edit {
  16. display: inline-block;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div id="editor">
  22. <div id='edit' style="margin-top: 30px;">Click here to edit this text in a Froala popup.</div>
  23. </div>
  24. <script type="text/javascript" src="../../js/froala_editor.min.js"></script>
  25. <script type="text/javascript" src="../../js/plugins/edit_in_popup.min.js"></script>
  26. <script>
  27. new FroalaEditor("#edit", {
  28. editInPopup: true
  29. })
  30. </script>
  31. </body>
  32. </html>