Ticket #3674: TestDirty.html

File TestDirty.html, 757 bytes (added by Damian, 16 years ago)

Test file

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4<title>Test</title>     
5<script type="text/javascript" src="http://nightly.ckeditor.com/ckeditor/ckeditor_source.js"></script>
6<script type="text/javascript"> 
7function loadEditor() {
8  editor = CKEDITOR.appendTo( 'div1',
9    {
10      on :
11        {
12          instanceReady : function( ev )
13          {
14            ev.editor.setData( '<div><h1>This is some sample data</h1></div>' );
15            ev.editor.resetDirty();
16          }
17        }
18    }); 
19        }
20</script>
21</head>
22  <body onLoad="loadEditor();">
23    <div id="div1"></div>
24    <input type="button" onClick="alert(editor.checkDirty());" value="Test Dirty"/>
25  </body>
26</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy