Ticket #9446: displaynone.2.html

File displaynone.2.html, 514 bytes (added by Piotrek Koszuliński, 12 years ago)

Improved sample - it's possible to show hidden editor.

Line 
1<!DOCTYPE html>
2<html>
3<head>
4        <title></title>
5        <meta charset="utf-8">
6        <script src="../ckeditor.js"></script>
7</head>
8<body>
9        <div style="display:none" id="hidden">
10                <textarea cols="80" id="editor1" name="editor1" rows="10">text</textarea>
11                <script>
12                        CKEDITOR.replace( 'editor1', { on: {
13                                instanceReady: function() {
14                                        console.log( 'ready to go!' );
15                                }
16                        } } );
17                </script>
18        </div>
19
20        <button onclick="document.getElementById('hidden').style.display='block';">Show editor</button>
21</body>
22</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy