1 | <!DOCTYPE html> |
---|
2 | <!-- |
---|
3 | Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. |
---|
4 | For licensing, see LICENSE.md or http://ckeditor.com/license |
---|
5 | --> |
---|
6 | <html> |
---|
7 | <head> |
---|
8 | <meta charset="utf-8"> |
---|
9 | <title>Ticket #9814</title> |
---|
10 | <script src="../ckeditor/ckeditor.js"></script> |
---|
11 | <link href="../ckeditor/samples/sample.css" rel="stylesheet"> |
---|
12 | <style> |
---|
13 | .hidden { display: none; padding: 1em; outline: 1px solid red; } |
---|
14 | </style> |
---|
15 | </head> |
---|
16 | <body> |
---|
17 | <h1 class="samples"> |
---|
18 | Ticket #9814 |
---|
19 | </h1> |
---|
20 | |
---|
21 | <div class="hidden"> |
---|
22 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
---|
23 | foo |
---|
24 | </textarea> |
---|
25 | </div> |
---|
26 | |
---|
27 | <div class="hidden"> |
---|
28 | <div contenteditable="true" id="editor2"> |
---|
29 | foo |
---|
30 | </div> |
---|
31 | </div> |
---|
32 | |
---|
33 | <div class="hidden"> |
---|
34 | <textarea id="editor3"> |
---|
35 | foo |
---|
36 | </textarea> |
---|
37 | </div> |
---|
38 | |
---|
39 | <script> |
---|
40 | |
---|
41 | CKEDITOR.disableAutoInline = true; |
---|
42 | |
---|
43 | function instanceReady() { |
---|
44 | CKEDITOR.tools.setTimeout( function() { |
---|
45 | this.container.getParent().setStyle( 'display', 'block' ); |
---|
46 | }, 500, this ); |
---|
47 | } |
---|
48 | |
---|
49 | CKEDITOR.replace( 'editor1', { |
---|
50 | on: { |
---|
51 | instanceReady: instanceReady |
---|
52 | } |
---|
53 | } ); |
---|
54 | |
---|
55 | CKEDITOR.inline( 'editor2', { |
---|
56 | on: { |
---|
57 | instanceReady: instanceReady |
---|
58 | } |
---|
59 | } ); |
---|
60 | |
---|
61 | CKEDITOR.replace( 'editor3', { |
---|
62 | extraPlugins: 'divarea', |
---|
63 | on: { |
---|
64 | instanceReady: instanceReady |
---|
65 | } |
---|
66 | } ); |
---|
67 | |
---|
68 | </script> |
---|
69 | </body> |
---|
70 | </html> |
---|