Showing posts with label WYSIWYG. Show all posts
Showing posts with label WYSIWYG. Show all posts

Monday, July 23, 2012

Simple WYSIWYG HTML Editor Sample

the file structure of the project is:

./project
./project/myWYSIWYGTest.html --- here is the source code of the example
./project/ckeditor --source code of the ckeditor lib, download where http://ckeditor.com/download

the code of the myWYSIWYGTest html page is:

<html>
    <head>
        <script type="text/javascript" src="./ckeditor/ckeditor.js">
        </script>
    </head>
    <body>
        <textarea class="ckeditor" name="editor1"></textarea>
    </body>
</html>

Reference:
http://nightly.ckeditor.com/7582/_samples/replacebyclass.html