1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <title>test</title> |
---|
5 | </head> |
---|
6 | <body> |
---|
7 | <script src="ckeditor/ckeditor.js" type="text/javascript"></script> |
---|
8 | <button onclick="document.getElementById('form').style.display='block'; return false;">show ckeditor</button> |
---|
9 | <div id="form" style="display: none;"> |
---|
10 | <form action="" method="post"> |
---|
11 | <textarea class="ckeditor" name="editor1" rows="25" cols="100"></textarea> |
---|
12 | <button onclick="alert(CKEDITOR.instances.editor1.checkDirty()); return false;">checkDirty()</button> |
---|
13 | </form> |
---|
14 | </div> |
---|
15 | </body> |
---|
16 | </html> |
---|