placeholder.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. body {
  11. text-align: center;
  12. }
  13. section {
  14. width: 81%;
  15. margin: auto;
  16. text-align: left;
  17. }
  18. .class1 {
  19. text-align: center;
  20. color: red;
  21. }
  22. .class2 {
  23. font-weight: 700;
  24. font-size: 14px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <section id="editor">
  30. <div id='edit' style="margin-top: 30px;">
  31. <h1>Placeholder</h1>
  32. <p>The placeholder text can be customized using the <a
  33. href="http://www.froala.dev/wysiwyg-editor/docs/options#placeholderText"
  34. title="placeholderText option">placeholderText</a> option.</p>
  35. </div>
  36. </section>
  37. <script type="text/javascript" src="../../js/froala_editor.min.js"></script>
  38. <script type="text/javascript" src="../../js/plugins/link.min.js"></script>
  39. <script>
  40. (function () {
  41. new FroalaEditor("#edit", {
  42. placeholderText: 'Start typing something...'
  43. })
  44. })()
  45. </script>
  46. </body>
  47. </html>