Ticket #9459: operafocus.html

File operafocus.html, 969 bytes (added by Piotrek Koszuliński, 8 years ago)
Line 
1<!DOCTYPE html>
2<html>
3<head>
4        <title></title>
5        <meta charset="utf-8">
6        <script src="../ckeditor.js"></script>
7        <link href="sample.css" rel="stylesheet">
8</head>
9<body>
10        <textarea cols="80" id="editor1" name="editor1" rows="10">
11                &lt;p&gt;
12                        &quot;&lt;b&gt;Little Red Riding Hood&lt;/b&gt;&quot; is a famous &lt;a href="http://en.wikipedia.org/wiki/Fairy_tale" title="Fairy tale"&gt;fairy tale&lt;/a&gt; about a young girl&#39;s encounter with a wolf. The story has been changed considerably in its history and subject to numerous modern adaptations and readings.&lt;/p&gt;
13        </textarea>
14        <script>
15                CKEDITOR.replace( 'editor1', { on: {
16                        instanceReady: function() {
17                                var i = 0, j = 0, k = 0;
18
19                                this.on( 'focus', function() { console.log( 'focus:', i++ ) } );
20                                this.on( 'blur', function() { console.log( 'blur:', j++ ) } );
21                                this.on( 'selectionChange', function() { console.log( 'selectionChange:', k++ ) } );
22                        }
23                } } );
24
25        </script>
26</body>
27</html>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy