1 | <!DOCTYPE html> |
---|
2 | <!-- |
---|
3 | Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. |
---|
4 | For licensing, see LICENSE.html or http://ckeditor.com/license |
---|
5 | --> |
---|
6 | <html> |
---|
7 | <head> |
---|
8 | <title>IE10+ selection change error</title> |
---|
9 | <meta charset="utf-8"> |
---|
10 | <script src="../../ckeditor.js"></script> |
---|
11 | <link href="../sample.css" rel="stylesheet"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <h1 class="samples"> |
---|
15 | <a href="index.html">CKEditor Samples</a> » IE10+ selection change error |
---|
16 | </h1> |
---|
17 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
---|
18 | Moo! |
---|
19 | </textarea> |
---|
20 | <script> |
---|
21 | |
---|
22 | var editor = CKEDITOR.replace( 'editor1', { |
---|
23 | plugins: 'wysiwygarea,toolbar,basicstyles', |
---|
24 | enterMode: CKEDITOR.ENTER_BR, |
---|
25 | } ); |
---|
26 | |
---|
27 | function boo() { |
---|
28 | editor.focus(); |
---|
29 | editor.setData( '<p>hello world</p>' ); |
---|
30 | } |
---|
31 | |
---|
32 | </script> |
---|
33 | <button type="button" onclick="boo()">Boo!</button> |
---|
34 | </body> |
---|
35 | </html> |
---|