Posted By

thiswayup on 09/15/10


Tagged

ckeditor wysiwig


Versions (?)

create a basic Ckeditor


 / Published in: JavaScript
 

  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  

You need to login to post a comment.