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>#11223</title> |
---|
10 | <script src="../ckeditor.js"></script> |
---|
11 | <link href="sample.css" rel="stylesheet"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <h1 class="samples"> |
---|
15 | #11223 |
---|
16 | </h1> |
---|
17 | <form action="sample_posteddata.php" method="post"> |
---|
18 | <h1>Case no. 1</h1> |
---|
19 | <textarea cols="80" id="editor0" name="editor0" rows="10"> |
---|
20 | <!DOCTYPE html> |
---|
21 | <html> |
---|
22 | <head> |
---|
23 | <meta charset="utf-8"> |
---|
24 | <title>foo</title> |
---|
25 | </head> |
---|
26 | <body>foo [[xxx]]</body> |
---|
27 | </html> |
---|
28 | </textarea> |
---|
29 | <script> |
---|
30 | |
---|
31 | CKEDITOR.replace( 'editor0', { |
---|
32 | fullPage: true, |
---|
33 | protectedSource: [ ( /\[\[\w+\]\]/g ) ] |
---|
34 | } ); |
---|
35 | |
---|
36 | </script> |
---|
37 | |
---|
38 | <h1>Case no. 2</h1> |
---|
39 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
---|
40 | <!DOCTYPE html> |
---|
41 | <html> |
---|
42 | <head> |
---|
43 | <meta charset="utf-8"> |
---|
44 | <title>foo</title> |
---|
45 | [[xxx]] |
---|
46 | </head> |
---|
47 | <body>foo [[xxx]]</body> |
---|
48 | </html> |
---|
49 | </textarea> |
---|
50 | <script> |
---|
51 | |
---|
52 | CKEDITOR.replace( 'editor1', { |
---|
53 | fullPage: true, |
---|
54 | protectedSource: [ ( /\[\[\w+\]\]/g ) ] |
---|
55 | } ); |
---|
56 | |
---|
57 | </script> |
---|
58 | |
---|
59 | <h1>Case no. 3 (bug #11223)</h1> |
---|
60 | <textarea cols="80" id="editor2" name="editor2" rows="10"> |
---|
61 | <!DOCTYPE html> |
---|
62 | <html> |
---|
63 | <head> |
---|
64 | <meta charset="utf-8"> |
---|
65 | <title>foo [[xxx]] bar</title> |
---|
66 | </head> |
---|
67 | <body>broken title... [[xxx]]</body> |
---|
68 | </html> |
---|
69 | </textarea> |
---|
70 | <script> |
---|
71 | |
---|
72 | CKEDITOR.replace( 'editor2', { |
---|
73 | fullPage: true, |
---|
74 | protectedSource: [ ( /\[\[\w+\]\]/g ) ] |
---|
75 | } ); |
---|
76 | |
---|
77 | </script> |
---|
78 | |
---|
79 | <h1>Case no. 4</h1> |
---|
80 | <textarea cols="80" id="editor3" name="editor3" rows="10"> |
---|
81 | <!DOCTYPE html> |
---|
82 | <html> |
---|
83 | <head> |
---|
84 | <meta charset="utf-8"> |
---|
85 | <title>foo [[xxx]] bar</title> |
---|
86 | [[xxx]] |
---|
87 | </head> |
---|
88 | <body>foo [[xxx]] </body> |
---|
89 | </html> |
---|
90 | </textarea> |
---|
91 | <script> |
---|
92 | |
---|
93 | CKEDITOR.replace( 'editor3', { |
---|
94 | fullPage: true, |
---|
95 | protectedSource: [ ( /\[\[\w+\]\]/g ) ] |
---|
96 | } ); |
---|
97 | |
---|
98 | </script> |
---|
99 | </form> |
---|
100 | </body> |
---|
101 | </html> |
---|