create a basic Ckeditor


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //include the core lib
  2. <script type="text/javascript" src="ckeditor.js"></script>
  3.  
  4. //declare the text area - name attribute is important
  5. <textarea name="editor1">stuff to edit</textarea>
  6.  
  7. //the magic
  8. <script type="text/javascript">
  9. window.onload = function()
  10. {
  11. CKEDITOR.replace( 'editor1',{
  12. toolbar : 'Basic',
  13. });
  14. };
  15. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.