Ticket #11223: 11223.html

File 11223.html, 2.1 KB (added by Piotrek Koszuliński, 10 years ago)
Line 
1<!DOCTYPE html>
2<!--
3Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4For 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                        &lt;!DOCTYPE html>
21                        &lt;html>
22                        &lt;head>
23                                &lt;meta charset="utf-8">
24                                &lt;title>foo&lt;/title>
25                        &lt;/head>
26                        &lt;body>foo [[xxx]]&lt;/body>
27                        &lt;/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                        &lt;!DOCTYPE html>
41                        &lt;html>
42                        &lt;head>
43                                &lt;meta charset="utf-8">
44                                &lt;title>foo&lt;/title>
45                                [[xxx]]
46                        &lt;/head>
47                        &lt;body>foo [[xxx]]&lt;/body>
48                        &lt;/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                        &lt;!DOCTYPE html>
62                        &lt;html>
63                        &lt;head>
64                                &lt;meta charset="utf-8">
65                                &lt;title>foo [[xxx]] bar&lt;/title>
66                        &lt;/head>
67                        &lt;body>broken title... [[xxx]]&lt;/body>
68                        &lt;/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                        &lt;!DOCTYPE html>
82                        &lt;html>
83                        &lt;head>
84                                &lt;meta charset="utf-8">
85                                &lt;title>foo [[xxx]] bar&lt;/title>
86                                [[xxx]]
87                        &lt;/head>
88                        &lt;body>foo [[xxx]] &lt;/body>
89                        &lt;/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>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy