1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title>CKEDITOR - BUG #1824</title> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
6 | <script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.5.3/ckeditor.js?1304606719"></script> |
---|
7 | <style type="text/css"> |
---|
8 | .editor { |
---|
9 | border: 1px solid #000; |
---|
10 | width: 400px; |
---|
11 | height: 400px; |
---|
12 | float: left; |
---|
13 | margin-right: 10px; |
---|
14 | } |
---|
15 | </style> |
---|
16 | <script type="text/javascript"> |
---|
17 | function replace (replaceEditorName, withEditorName) { |
---|
18 | if(CKEDITOR.instances[replaceEditorName]) { |
---|
19 | CKEDITOR.instances[replaceEditorName].destroy(); |
---|
20 | } |
---|
21 | CKEDITOR.replace(withEditorName); |
---|
22 | } |
---|
23 | </script> |
---|
24 | </head> |
---|
25 | <body> |
---|
26 | <p> |
---|
27 | Steps to reproduce: |
---|
28 | <ol> |
---|
29 | <li> |
---|
30 | Click on Editor1 to start editing it |
---|
31 | </li> |
---|
32 | <li> |
---|
33 | Turn on SCAYT on Editor1 |
---|
34 | </li> |
---|
35 | <li> |
---|
36 | Right click on the text 'Editor1' |
---|
37 | </li> |
---|
38 | <li> |
---|
39 | Left click anywhere else in the editor to close the context menu. It's important to not actually click on the context menu. |
---|
40 | </li> |
---|
41 | <li>Repeat step 3</li> |
---|
42 | <li>Repeat step 4</li> |
---|
43 | <li>Click on Editor2</li> |
---|
44 | </ol> |
---|
45 | </p> |
---|
46 | <div contenteditable="true" id="editor1" class="editor" onClick="replace('editor2', 'editor1')">Editor1</div> |
---|
47 | <div contenteditable="true" id="editor2" class="editor" onClick="replace('editor1', 'editor2')">Editor2</div> |
---|
48 | </body> |
---|
49 | </html> |
---|