Ticket #3368: 3368.html

File 3368.html, 901 bytes (added by Artur Formella, 16 years ago)
Line 
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>CKEDITOR.editor</title>
5
6        <script type="text/javascript" src="../ckeditor_source.js"></script>
7</head>
8<body>
9
10        <div id="buttons"></div>
11        <div id="tests"></div>
12
13        <script type="text/javascript">
14
15        var div = document.createElement('div');
16        var div2 = document.createElement('div');
17
18        var editor = CKEDITOR.appendTo( div );
19        document.getElementById('tests').appendChild(div);
20
21        var button = document.createElement('button');
22        button.innerHTML = 'click me';
23        button.onclick = function(){
24                editor.destroy();
25                document.getElementById('tests').appendChild(div2);
26                editor = CKEDITOR.appendTo( div2 );
27        };
28        document.getElementById('buttons').appendChild(button);
29
30        </script>
31
32</body>
33</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy