Advertisement
romancetown

HTML rich text editor 2

Aug 12th, 2013
1,618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1.  
  2. <script type="text/javascript" src="http://www.html.am/html-editors/ckeditor/ckeditor.js"></script>
  3. <script src="http://www.html.am/html-editors/ckeditor/_samples/sample.js" type="text/javascript"></script>
  4. <link href="http://www.html.am/html-editors/ckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
  5. <div id="alerts">
  6. <noscript>
  7. <p>
  8. <strong>This online HTML editor requires JavaScript to run</strong>. Your browser either doesn't support JavaScript, or JavaScript is currently disabled (via preferences or options). Because of this, you will see the raw HTML code instead of the rich text / WYSIWYG editor.
  9. </p>
  10. <p>To view the rich text / WYSIWYG editor, please enable JavaScript (or use a browser that supports JavaScript).</p>
  11. </noscript>
  12. </div>
  13. <div style="width:728px;">
  14. <textarea class="ckeditor" cols="80" id="FullEditor2" name="FullEditor2" rows="10">
  15. <html>
  16. <head>
  17. <title>HTML Editor Sample Page</title>
  18. </head>
  19. <body>
  20. <h2>HTML Editor</h2>
  21. <p>You can use this online HTML editor to generate HTML code for your own website. You can do all sorts of things with this HTML editor, such as:</p>
  22. <ul>
  23. <li>Create <strong>bold</strong> or <em>italic</em> text.</li>
  24. <li>Change the <span style="color:#800000;">text color</span></li>
  25. <li>Change the <span style="font-family:comic sans ms,cursive;">font family</span> or <span style="font-size:12px;">font size</span></li>
  26. <li>Create <a href="http://www.html.am/html-codes/links/">hyperlinks</a></li>
  27. <li>Create a bulleted list...</li>
  28. <li>...and much more!</li>
  29. </ul>
  30. <p>Once you&#39;ve got everything looking the way you want, click on the &quot;Source&quot; button above (on the left) to get the HTML source code.</p>
  31. </body>
  32. </html>
  33. </textarea>
  34. </div>
  35. <script type="text/javascript">
  36. //<![CDATA[
  37. CKEDITOR.replace( 'FullEditor2',
  38. {
  39.  
  40.  
  41. fullPage : true
  42.  
  43. });
  44.  
  45. //]]>
  46. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement