Custom Post Types and Custom Fields creator – WCK - Version 1.1.6

Version Description

  • We now run the Custom Post Type and Custom Taxonomy register function sooner on the init hook
  • Aligned "Help" wit "WCK" in contextual help red button
  • Fixed some issues with translations
Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 Custom Post Types and Custom Fields creator – WCK
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

css/wck-cfc.css CHANGED
@@ -1,58 +1,58 @@
1
- #wck_cfc_fields .row-options, #wck_cfc_fields .row-attach-upload-to-post, #wck_cfc_fields .row-cpt{
2
- display:none;
3
- }
4
-
5
- #container_wck_cfc_fields .row-options,
6
- #container_wck_cfc_fields .row-attach-upload-to-post,
7
- #container_wck_cfc_fields .row-cpt{
8
- display:none;
9
- }
10
-
11
- #container_wck_cfc_fields .element_type_cpt-select .row-cpt,
12
- #container_wck_cfc_fields .element_type_checkbox .row-options,
13
- #container_wck_cfc_fields .element_type_select .row-options,
14
- #container_wck_cfc_fields .element_type_radio .row-options,
15
- #container_wck_cfc_fields .element_type_upload .row-attach-upload-to-post{
16
- display:block;
17
- }
18
-
19
- #edit-slug-box{
20
- display:none;
21
- }
22
-
23
- #minor-publishing-actions{
24
- display:none;
25
- }
26
-
27
- #visibility.misc-pub-section {
28
- display:none;
29
- }
30
-
31
- li.slug-title{
32
- margin-top:-6px;
33
- font-size:10px;
34
- }
35
-
36
- li.slug-title span{
37
- padding:0 3px;
38
- background-color:#FFFBCC;
39
- }
40
-
41
- .cfc-message{
42
- margin: 0 0 15px;
43
- background-color: #FFFFE0;
44
- border-color: #E6DB55;
45
- padding: 0 0.6em;
46
- border-radius: 3px 3px 3px 3px;
47
- border-style: solid;
48
- border-width: 1px;
49
- }
50
-
51
- .cfc-message p{
52
- margin: 0.5em 0;
53
- padding: 2px;
54
- }
55
-
56
- #icon-wck-page{
57
- background:url( ../images/wck-32x32.png ) 0 0 no-repeat;;
58
  }
1
+ #wck_cfc_fields .row-options, #wck_cfc_fields .row-attach-upload-to-post, #wck_cfc_fields .row-cpt{
2
+ display:none;
3
+ }
4
+
5
+ #container_wck_cfc_fields .row-options,
6
+ #container_wck_cfc_fields .row-attach-upload-to-post,
7
+ #container_wck_cfc_fields .row-cpt{
8
+ display:none;
9
+ }
10
+
11
+ #container_wck_cfc_fields .element_type_cpt-select .row-cpt,
12
+ #container_wck_cfc_fields .element_type_checkbox .row-options,
13
+ #container_wck_cfc_fields .element_type_select .row-options,
14
+ #container_wck_cfc_fields .element_type_radio .row-options,
15
+ #container_wck_cfc_fields .element_type_upload .row-attach-upload-to-post{
16
+ display:block;
17
+ }
18
+
19
+ #edit-slug-box{
20
+ display:none;
21
+ }
22
+
23
+ #minor-publishing-actions{
24
+ display:none;
25
+ }
26
+
27
+ #visibility.misc-pub-section {
28
+ display:none;
29
+ }
30
+
31
+ li.slug-title{
32
+ margin-top:-6px;
33
+ font-size:10px;
34
+ }
35
+
36
+ li.slug-title span{
37
+ padding:0 3px;
38
+ background-color:#FFFBCC;
39
+ }
40
+
41
+ .cfc-message{
42
+ margin: 0 0 15px;
43
+ background-color: #FFFFE0;
44
+ border-color: #E6DB55;
45
+ padding: 0 0.6em;
46
+ border-radius: 3px 3px 3px 3px;
47
+ border-style: solid;
48
+ border-width: 1px;
49
+ }
50
+
51
+ .cfc-message p{
52
+ margin: 0.5em 0;
53
+ padding: 2px;
54
+ }
55
+
56
+ #icon-wck-page{
57
+ background:url( ../images/wck-32x32.png ) 0 0 no-repeat;;
58
  }
css/wck-cptc.css CHANGED
@@ -1,12 +1,12 @@
1
- #wck_cptc .row-supports .mb-right-column > div, #container_wck_cptc .row-supports .mb-right-column > div{
2
- width:200px;
3
- }
4
-
5
- #wck_cptc .row-supports .mb-right-column > div:nth-child(2n), #container_wck_cptc .row-supports .mb-right-column > div:nth-child(2n){
6
- float:left;
7
- }
8
-
9
- #wck_cptc .row-supports .mb-right-column > div:nth-child(2n+1), #container_wck_cptc .row-supports .mb-right-column > div:nth-child(2n+1){
10
- float:left;
11
- clear:left;
12
  }
1
+ #wck_cptc .row-supports .mb-right-column > div, #container_wck_cptc .row-supports .mb-right-column > div{
2
+ width:200px;
3
+ }
4
+
5
+ #wck_cptc .row-supports .mb-right-column > div:nth-child(2n), #container_wck_cptc .row-supports .mb-right-column > div:nth-child(2n){
6
+ float:left;
7
+ }
8
+
9
+ #wck_cptc .row-supports .mb-right-column > div:nth-child(2n+1), #container_wck_cptc .row-supports .mb-right-column > div:nth-child(2n+1){
10
+ float:left;
11
+ clear:left;
12
  }
css/wck-free-to-pro.css CHANGED
@@ -1,207 +1,207 @@
1
- .wrap > h2{
2
- display:none;
3
- }
4
-
5
- .stp-logo{
6
- float:right;
7
- }
8
- .wck-wrap{
9
- font-size: 15px;
10
- max-width: 1050px;
11
- }
12
- .wck-info-wrap{
13
- max-width:1050px;
14
- margin:25px 40px 0 20px;
15
- }
16
-
17
- .wck-wrap h1 {
18
- color: #333333;
19
- font-size: 2.8em;
20
- font-weight: 300;
21
- line-height: 1.2em;
22
- margin:0;
23
- padding-top:35px;
24
- }
25
-
26
- .wck-wrap p{
27
- font-size:15px;
28
- }
29
- .wck-wrap .wck-callout{
30
- font-size: 2em;
31
- font-weight: 300;
32
- line-height: 1.3;
33
- margin:1.1em 0 0.2em 0;
34
- }
35
-
36
- .wck-wrap hr{
37
- display:block;
38
- clear:both;
39
- margin:20px 0;
40
- }
41
-
42
- .wck-text{
43
- font-size:1.1em;
44
- margin-top:0;
45
- }
46
- #poststuff .wck-wrap h1,
47
- #poststuff .wck-wrap h2,
48
- #poststuff .wck-wrap h3,
49
- #poststuff .wck-wrap h4,
50
- #poststuff .wck-wrap h5 {
51
- padding: 8px 0;
52
- font-weight:300;
53
- }
54
-
55
- #poststuff .wck-wrap h2{
56
- font-size: 2.2em;
57
- font-weight:300;
58
- line-height:1.3em;
59
- }
60
-
61
- #poststuff .wck-wrap h3{
62
- font-size: 1.3em;
63
- }
64
-
65
- #poststuff .wck-wrap h4{
66
- font-size: 1.2em;
67
- }
68
-
69
- .wck-wrap img{
70
- max-width:100%;
71
- }
72
- .wck-wrap img.screenshot{
73
- padding:10px 0;
74
- }
75
-
76
-
77
- .wck-wrap ul{
78
- list-style-type:circle;
79
- list-style-position:inside;
80
- }
81
-
82
- .wck-wrap li.description{
83
- font-style: italic;
84
- }
85
-
86
- /* Extra Stuff */
87
- .nowrap {
88
- white-space: nowrap;
89
- }
90
-
91
- .wck-fields-image{
92
- margin-top:60px;
93
- }
94
-
95
- /* Columns :) */
96
- .wck-row{
97
- overflow:hidden;
98
- }
99
-
100
- .wck-3-col > div {
101
- float:left;
102
- width:28%;
103
- margin-right:5%;
104
- }
105
-
106
- .wck-2-col > div {
107
- float:left;
108
- width:45%;
109
- margin-right:5%;
110
- }
111
-
112
- .wck-3-col > div:last-child,
113
- .wck-2-col > div:last-child{
114
- margin:0;
115
- }
116
-
117
- /* Extra Form Styles */
118
- .wck-select{
119
- min-width:18em;
120
- }
121
-
122
- .wck-wrap .form-table th {
123
- width:250px;
124
- }
125
-
126
- .wck-metabox label{
127
- display:inline-block;
128
- min-width:15em;
129
- }
130
-
131
- /* Admin Bar Page */
132
- .wck-admin-bar label{
133
- margin-right:30px;
134
- padding:5px;
135
- }
136
-
137
- /* Addons Page */
138
- .wck-addons label{
139
- margin-right:30px;
140
- padding:5px;
141
- }
142
-
143
- /* Metabox Clone. We need this in various places to simulate the css of a normal metabox. */
144
- .wck-side{
145
- width:300px;
146
- float:right;
147
- clear:both;
148
- }
149
-
150
- .wck-metabox h3{
151
- font-size: 14px;
152
- line-height: 1.4;
153
- margin: 0;
154
- padding:8px 12px;
155
- cursor:default !important;
156
- }
157
-
158
- .wck-normal{
159
- margin-right:320px;
160
- }
161
-
162
- .wck-metabox textarea{
163
- resize:vertical;
164
- background-color: #ecf8fd;
165
- font-family: Consolas,Monaco,monospace;
166
- font-size: 13px;
167
- }
168
-
169
- .wck-metabox .inline-wrap{
170
- width:280px;
171
- float:left;
172
- }
173
- .wck-highlight{
174
- background:#333333;
175
- background:#222222;
176
- background:#fff;
177
- padding:20px;
178
- }
179
- .wck-userlisting-slider{
180
- display:block;
181
- padding:10px;
182
- border:1px solid #ccc;
183
- font-family: Consolas,Monaco,monospace;
184
- font-size: 13px;
185
- margin-top:20px;
186
- }
187
- #wck_manage_fields .mb-list-entry-fields .row-field .field-label{
188
- width: 177px;
189
- }
190
-
191
- #container_wck_epf_fields .row-id,
192
- #wck_epf_fields .row-id,
193
- #container_wck_rf_fields .row-id,
194
- #wck_rf_fields .row-id{
195
- display:none;
196
- }
197
-
198
- .wp-core-ui .button-free-to-pro{
199
- font-size:24px;
200
- font-weight:bold;
201
- padding:10px 20px;
202
- height:auto;
203
- margin-top:20px;
204
- }
205
- .wck-free-to-pro-call-to-action {
206
- text-align:center;
207
  }
1
+ .wrap > h2{
2
+ display:none;
3
+ }
4
+
5
+ .stp-logo{
6
+ float:right;
7
+ }
8
+ .wck-wrap{
9
+ font-size: 15px;
10
+ max-width: 1050px;
11
+ }
12
+ .wck-info-wrap{
13
+ max-width:1050px;
14
+ margin:25px 40px 0 20px;
15
+ }
16
+
17
+ .wck-wrap h1 {
18
+ color: #333333;
19
+ font-size: 2.8em;
20
+ font-weight: 300;
21
+ line-height: 1.2em;
22
+ margin:0;
23
+ padding-top:35px;
24
+ }
25
+
26
+ .wck-wrap p{
27
+ font-size:15px;
28
+ }
29
+ .wck-wrap .wck-callout{
30
+ font-size: 2em;
31
+ font-weight: 300;
32
+ line-height: 1.3;
33
+ margin:1.1em 0 0.2em 0;
34
+ }
35
+
36
+ .wck-wrap hr{
37
+ display:block;
38
+ clear:both;
39
+ margin:20px 0;
40
+ }
41
+
42
+ .wck-text{
43
+ font-size:1.1em;
44
+ margin-top:0;
45
+ }
46
+ #poststuff .wck-wrap h1,
47
+ #poststuff .wck-wrap h2,
48
+ #poststuff .wck-wrap h3,
49
+ #poststuff .wck-wrap h4,
50
+ #poststuff .wck-wrap h5 {
51
+ padding: 8px 0;
52
+ font-weight:300;
53
+ }
54
+
55
+ #poststuff .wck-wrap h2{
56
+ font-size: 2.2em;
57
+ font-weight:300;
58
+ line-height:1.3em;
59
+ }
60
+
61
+ #poststuff .wck-wrap h3{
62
+ font-size: 1.3em;
63
+ }
64
+
65
+ #poststuff .wck-wrap h4{
66
+ font-size: 1.2em;
67
+ }
68
+
69
+ .wck-wrap img{
70
+ max-width:100%;
71
+ }
72
+ .wck-wrap img.screenshot{
73
+ padding:10px 0;
74
+ }
75
+
76
+
77
+ .wck-wrap ul{
78
+ list-style-type:circle;
79
+ list-style-position:inside;
80
+ }
81
+
82
+ .wck-wrap li.description{
83
+ font-style: italic;
84
+ }
85
+
86
+ /* Extra Stuff */
87
+ .nowrap {
88
+ white-space: nowrap;
89
+ }
90
+
91
+ .wck-fields-image{
92
+ margin-top:60px;
93
+ }
94
+
95
+ /* Columns :) */
96
+ .wck-row{
97
+ overflow:hidden;
98
+ }
99
+
100
+ .wck-3-col > div {
101
+ float:left;
102
+ width:28%;
103
+ margin-right:5%;
104
+ }
105
+
106
+ .wck-2-col > div {
107
+ float:left;
108
+ width:45%;
109
+ margin-right:5%;
110
+ }
111
+
112
+ .wck-3-col > div:last-child,
113
+ .wck-2-col > div:last-child{
114
+ margin:0;
115
+ }
116
+
117
+ /* Extra Form Styles */
118
+ .wck-select{
119
+ min-width:18em;
120
+ }
121
+
122
+ .wck-wrap .form-table th {
123
+ width:250px;
124
+ }
125
+
126
+ .wck-metabox label{
127
+ display:inline-block;
128
+ min-width:15em;
129
+ }
130
+
131
+ /* Admin Bar Page */
132
+ .wck-admin-bar label{
133
+ margin-right:30px;
134
+ padding:5px;
135
+ }
136
+
137
+ /* Addons Page */
138
+ .wck-addons label{
139
+ margin-right:30px;
140
+ padding:5px;
141
+ }
142
+
143
+ /* Metabox Clone. We need this in various places to simulate the css of a normal metabox. */
144
+ .wck-side{
145
+ width:300px;
146
+ float:right;
147
+ clear:both;
148
+ }
149
+
150
+ .wck-metabox h3{
151
+ font-size: 14px;
152
+ line-height: 1.4;
153
+ margin: 0;
154
+ padding:8px 12px;
155
+ cursor:default !important;
156
+ }
157
+
158
+ .wck-normal{
159
+ margin-right:320px;
160
+ }
161
+
162
+ .wck-metabox textarea{
163
+ resize:vertical;
164
+ background-color: #ecf8fd;
165
+ font-family: Consolas,Monaco,monospace;
166
+ font-size: 13px;
167
+ }
168
+
169
+ .wck-metabox .inline-wrap{
170
+ width:280px;
171
+ float:left;
172
+ }
173
+ .wck-highlight{
174
+ background:#333333;
175
+ background:#222222;
176
+ background:#fff;
177
+ padding:20px;
178
+ }
179
+ .wck-userlisting-slider{
180
+ display:block;
181
+ padding:10px;
182
+ border:1px solid #ccc;
183
+ font-family: Consolas,Monaco,monospace;
184
+ font-size: 13px;
185
+ margin-top:20px;
186
+ }
187
+ #wck_manage_fields .mb-list-entry-fields .row-field .field-label{
188
+ width: 177px;
189
+ }
190
+
191
+ #container_wck_epf_fields .row-id,
192
+ #wck_epf_fields .row-id,
193
+ #container_wck_rf_fields .row-id,
194
+ #wck_rf_fields .row-id{
195
+ display:none;
196
+ }
197
+
198
+ .wp-core-ui .button-free-to-pro{
199
+ font-size:24px;
200
+ font-weight:bold;
201
+ padding:10px 20px;
202
+ height:auto;
203
+ margin-top:20px;
204
+ }
205
+ .wck-free-to-pro-call-to-action {
206
+ text-align:center;
207
  }
css/wck-sas.css CHANGED
@@ -1,28 +1,28 @@
1
- .wck-badge{
2
- background: url(../images/wck-32x32.png) 20px center no-repeat #f1f1f1;
3
- border:1px solid #ccc;
4
- border-radius:3px;
5
- -webkit-box-shadow: inset 1px 1px 0px 0px rgba(255, 255, 255, 1);
6
- box-shadow: inset 1px 1px 0px 0px rgba(255, 255, 255, 1);
7
- padding:20px 20px 20px 70px;
8
- float:left;
9
- margin-bottom:40px;
10
- font-weight:bold;
11
- }
12
- .serial-notification{
13
- padding:10px 20px;
14
- border:1px solid #ccc;
15
- border-radius:3px;
16
- }
17
- .serial-notification.yellow{
18
- background:#FFFFE0;
19
- border-color:#E6DB55;
20
- }
21
- .serial-notification.red{
22
- background:#ffd6d6;
23
- border-color:#cc0000;
24
- }
25
- .serial-notification.green{
26
- background:#eeffe0;
27
- border-color:#4dcc00;
28
- }
1
+ .wck-badge{
2
+ background: url(../images/wck-32x32.png) 20px center no-repeat #f1f1f1;
3
+ border:1px solid #ccc;
4
+ border-radius:3px;
5
+ -webkit-box-shadow: inset 1px 1px 0px 0px rgba(255, 255, 255, 1);
6
+ box-shadow: inset 1px 1px 0px 0px rgba(255, 255, 255, 1);
7
+ padding:20px 20px 20px 70px;
8
+ float:left;
9
+ margin-bottom:40px;
10
+ font-weight:bold;
11
+ }
12
+ .serial-notification{
13
+ padding:10px 20px;
14
+ border:1px solid #ccc;
15
+ border-radius:3px;
16
+ }
17
+ .serial-notification.yellow{
18
+ background:#FFFFE0;
19
+ border-color:#E6DB55;
20
+ }
21
+ .serial-notification.red{
22
+ background:#ffd6d6;
23
+ border-color:#cc0000;
24
+ }
25
+ .serial-notification.green{
26
+ background:#eeffe0;
27
+ border-color:#4dcc00;
28
+ }
languages/wck-es_ES.po CHANGED
@@ -1,1157 +1,1157 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: WCK\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-06-13 16:28+0200\n"
6
- "PO-Revision-Date: 2014-01-24 11:10+0100\n"
7
- "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
8
- "Language-Team: \n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Generator: Poedit 1.5.5\n"
15
- "X-Poedit-SearchPath-0: d:\\!!!!!!!!!\\Free Version\\wck\n"
16
-
17
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:26
18
- msgid "Add New Meta Box"
19
- msgstr "Añadir nueva Meta Box"
20
-
21
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:27
22
- msgid "Edit Meta Box"
23
- msgstr "Editar Meta Box"
24
-
25
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:28
26
- msgid "New Meta Box"
27
- msgstr "Nueva Meta Box"
28
-
29
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:29 Version\wck/wck-sas.php:87
30
- msgid "Custom Fields Creator"
31
- msgstr "Creador de Campos Personalizados"
32
-
33
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:30
34
- msgid "View Meta Box"
35
- msgstr "Ver Meta Box"
36
-
37
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:31
38
- msgid "Search Meta Boxes"
39
- msgstr "Buscar Meta Boxes"
40
-
41
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:32
42
- msgid "No Meta Boxes found"
43
- msgstr "No se encontraron Meta Boxes"
44
-
45
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:33
46
- msgid "No Meta Boxes found in Trash"
47
- msgstr "No se encontraron Meta Boxes en la basura"
48
-
49
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:35
50
- msgid "Custom Meta Boxes"
51
- msgstr "Meta Boxes personalizados"
52
-
53
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:84
54
- msgid "Meta name"
55
- msgstr "Nombre Meta"
56
-
57
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:84
58
- msgid ""
59
- "The name of the meta field. It is the name by which you will query the data "
60
- "in the frontend. Must be unique, only lowercase letters, no spaces and no "
61
- "special characters."
62
- msgstr ""
63
- "El nombre del campo de metadatos. Es el nombre con el que podrás consultar "
64
- "los datos en el frontend. Debe ser único, sólo letras minúsculas, sin "
65
- "espacios ni caracteres especiales."
66
-
67
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:85 Version\wck/wck-cfc.php:442
68
- msgid "Post Type"
69
- msgstr "Tipo de Publicación"
70
-
71
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:85
72
- msgid "What post type the meta box should be attached to"
73
- msgstr "A qué tipo de publicación debe adjuntarse el Meta Box"
74
-
75
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:86
76
- msgid "Repeater"
77
- msgstr "Repetidor"
78
-
79
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:86
80
- msgid ""
81
- "Whether the box supports just one entry or if it is a repeater field. By "
82
- "default it is a single field."
83
- msgstr ""
84
- "Si el cuadro es compatible con una sola entrada o si se trata de un campo "
85
- "repetidor. Por defecto es un solo campo."
86
-
87
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:87
88
- msgid "Sortable"
89
- msgstr "Ordenable"
90
-
91
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:87
92
- msgid ""
93
- "Whether the entries are sortable or not. Thsi is valid for repeater fields."
94
- msgstr ""
95
- "Si las entradas se pueden ordenar o no. Esto es válido para los campos de "
96
- "repetidores."
97
-
98
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:88
99
- msgid "Post ID"
100
- msgstr "Identificación de la publicación"
101
-
102
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:88
103
- msgid "ID of a post on which the meta box should appear."
104
- msgstr "Identificación de una publicación en la que debe aparecer el Meta Box."
105
-
106
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:92 Version\wck/wck-cfc.php:443
107
- msgid "Page Template"
108
- msgstr "Plantilla de Página"
109
-
110
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:92
111
- msgid ""
112
- "If post type is \"page\" you can further select a page templete. The meta "
113
- "box will only appear on the page that has that selected page template."
114
- msgstr ""
115
- "Si el tipo de publicación es \"página\" se puede seleccionar además un "
116
- "templete de página. El Meta Box solo se mostrará en la página que tiene esa "
117
- "plantilla de página seleccionada."
118
-
119
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:97 Version\wck/wck-cfc.php:536
120
- msgid "Meta Box Arguments"
121
- msgstr "Argumentos Meta Box"
122
-
123
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:114
124
- msgid "Field Title"
125
- msgstr "Título Campo"
126
-
127
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:114
128
- msgid "Title of the field. A slug will automatically be generated."
129
- msgstr "Título del Campo. Automáticamente se genera un slug."
130
-
131
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:115
132
- msgid "Field Type"
133
- msgstr "Tipo de Campo"
134
-
135
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:115
136
- msgid "The field type"
137
- msgstr "El tipo de campo"
138
-
139
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:116 Version\wck/wck-cptc.php:48
140
- msgid "Description"
141
- msgstr "Descripción"
142
-
143
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:117
144
- msgid "Required"
145
- msgstr "Requerido"
146
-
147
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:117
148
- msgid "Whether the field is required or not"
149
- msgstr "Si el campo es obligatorio o no"
150
-
151
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:118
152
- msgid "Default Value"
153
- msgstr "Valor predeterminado"
154
-
155
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:118
156
- msgid ""
157
- "Default value of the field. For Checkboxes if there are multiple values "
158
- "separete them with a \",\""
159
- msgstr ""
160
- "Valor predeterminado del campo. Para Casillas de verificación, si hay "
161
- "múltiples valores separarlas con un \",\""
162
-
163
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:119
164
- msgid "Options"
165
- msgstr "Opciones"
166
-
167
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:119
168
- msgid ""
169
- "Options for field types \"select\", \"checkbox\" and \"radio\". For multiple "
170
- "options separete them with a \",\". You can use the following structure if "
171
- "you want the label to be different from the value: %LabelOne%valueone,"
172
- "%LabelTwo%valuetwo,%LabelThree%valuethree"
173
- msgstr ""
174
- "Opciones de tipos de campo \"seleccionar\", \"casilla\" y \" radio\". Para "
175
- "múltiples opciones de ellas separarlas con un \",\". Puede utilizar la "
176
- "siguiente estructura, si desea que la etiqueta sea diferente del valor: "
177
- "%LabelOne%valueone,%LabelTwo%valuetwo,%LabelThree%valuethree"
178
-
179
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:120
180
- msgid "Attach upload to post"
181
- msgstr "Adjuntar carga para publicación"
182
-
183
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:120
184
- msgid "Whether or not the uploads should be attached to the post"
185
- msgstr "Si los archivos a subir deben o no estar adjuntos a la publicación"
186
-
187
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:127 Version\wck/wck-cfc.php:542
188
- msgid "Meta Box Fields"
189
- msgstr "Campos Meta Box"
190
-
191
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:140
192
- msgid "Enter below the arguments for the meta box."
193
- msgstr "Escriba aquí los argumentos para la Meta Box"
194
-
195
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:220
196
- msgid "Slug:"
197
- msgstr "Slug:"
198
-
199
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:220
200
- msgid ""
201
- "(Note:changing the slug when you already have a lot of existing entries may "
202
- "result in unexpected behavior.)"
203
- msgstr ""
204
- "(Nota: cambiar el slug cuando ya tiene una gran cantidad de entradas "
205
- "existentes puede provocar un comportamiento inesperado)"
206
-
207
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:355
208
- msgid "Choose a different Meta Name as this one contains spaces\n"
209
- msgstr "Elija un nombre diferente Meta pues éste contiene espacios\n"
210
-
211
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:357
212
- msgid "Choose a different Meta Name as this one already exists\n"
213
- msgstr "Elija un nombre diferente Meta pues ya existe éste\n"
214
-
215
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:441
216
- msgid "Id"
217
- msgstr "Id"
218
-
219
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:506 Version\wck/wck-cptc.php:257
220
- #: Version\wck/wck-ctc.php:215 Version\wck/wck.php:38
221
- msgid "Wordpress Creation Kit"
222
- msgstr "Wordpress Creación Kit"
223
-
224
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:530 Version\wck/wck-cptc.php:282
225
- #: Version\wck/wck-ctc.php:239
226
- msgid "Overview"
227
- msgstr "Descripción general"
228
-
229
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:531
230
- msgid ""
231
- "WCK Custom Fields Creator allows you to easily create custom meta boxes for "
232
- "Wordpress without any programming knowledge."
233
- msgstr ""
234
- "WCK Custom Fields Creator le permite crear fácilmente Meta Boxes para "
235
- "Wordpress sin ningún conocimiento de programación."
236
-
237
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:537
238
- msgid ""
239
- "Define here the rules for the meta box. This rules are used to set up where "
240
- "the meta box will appear, it's type and also the meta key name stored in the "
241
- "database. The name of the entry (Enter title here) will be used as the meta "
242
- "box title."
243
- msgstr ""
244
- "Defina aquí las reglas para la meta box. Estas reglas se usan para "
245
- "establecer donde aparecerá el Meta Box, su tipo y también el nombre de clave "
246
- "meta almacenada en la base de datos. El nombre de la entrada (Introduzca el "
247
- "título aquí) será utilizado como el título del Meta Box."
248
-
249
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:543
250
- msgid ""
251
- "Define here the fields contained in the meta box. From \"Field Title\" a "
252
- "slug will be automatically generated and you will use this slug to display "
253
- "the data in the frontend."
254
- msgstr ""
255
- "Defina aquí los campos contenidos en la caja de meta. . Desde \"Título de "
256
- "Campo\" un slug se ​​generará automáticamente y usted usará este slug para "
257
- "mostrar los datos en el frontend."
258
-
259
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:548
260
- msgid "CFC Frontend Example"
261
- msgstr "Ejemplo de Frontend CFC"
262
-
263
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
264
- msgid ""
265
- "Let's consider we have a meta box with the following arguments:<br /> - Meta "
266
- "name: books <br /> - Post Type: post <br />And we also have two fields "
267
- "deffined:<br /> - A text field with the Field Title: Book name <br /> - And "
268
- "another text field with the Field Title: Author name "
269
- msgstr ""
270
- "Consideremos que tenemos una meta box con los siguientes argumentos: <br /> "
271
- "- Nombre Meta: libros <br /> - Tipo de Publicación: publicación <br /> Y "
272
- "también tenemos dos campos definidos: <br /> - Otro campo de texto con el "
273
- "Título de Campo: Nombre del Libro <br /> - Y otro campo de texto con el "
274
- "título del campo : Nombre del autor"
275
-
276
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
277
- msgid ""
278
- "You will notice that slugs will automatically be created for the two text "
279
- "fields. For \"Book name\" the slug will be \"book-name\" and for \"Author "
280
- "name\" the slug will be \"author-name\""
281
- msgstr ""
282
- "Usted se dará cuenta de que los slugs se crearán automáticamente para los "
283
- "dos campos de texto. Para \"Book name\" el slug será \"book-name \" y para "
284
- "\"Nombre de autor\" el slug será \"author-name\""
285
-
286
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
287
- msgid ""
288
- "Let's see what the code for displaying the meta box values in single.php of "
289
- "your theme would be:"
290
- msgstr ""
291
- "Vamos a ver cuál es el código para mostrar los valores del Meta Box en una "
292
- "sola . php de su tema:"
293
-
294
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
295
- msgid ""
296
- "So as you can see the Meta Name \"books\" is used as the $key parameter of "
297
- "the funtion <a href=\"http://codex.wordpress.org/Function_Reference/"
298
- "get_post_meta\" target=\"_blank\">get_post_meta()</a> and the slugs of the "
299
- "text fields are used as keys for the resulting array. Basically CFC stores "
300
- "the entries as post meta in a multidimensioanl array. In our case the array "
301
- "would be: <br /><pre>array( array( \"book-name\" => \"The Hitchhiker's Guide "
302
- "To The Galaxy\", \"author-name\" => \"Douglas Adams\" ), array( \"book-name"
303
- "\" => \"Ender's Game\", \"author-name\" => \"Orson Scott Card\" ) );</pre> "
304
- "This is true even for single entries."
305
- msgstr ""
306
- "Así como usted puede ver el Meta Nombre \"libros\" se utiliza como parámetro "
307
- "$ clave de la función <a href=\"http://codex.wordpress.org/"
308
- "Function_Reference/get_post_meta\" target=\"_blank\">get_post_meta()</a> y "
309
- "los slugs de los campos de texto se utilizan como claves para la matriz "
310
- "resultante. Básicamente CFC almacena las entradas como post meta en una "
311
- "matriz multidimensional. En nuestro caso, la matriz sería: <br /><pre>array"
312
- "( array( \"book-name\" => \"The Hitchhiker's Guide To The Galaxy\", \"author-"
313
- "name\" => \"Douglas Adams\" ), array( \"book-name\" => \"Ender's Game\", "
314
- "\"author-name\" => \"Orson Scott Card\" ) );</pre> Esto es cierto incluso "
315
- "para entradas individuales"
316
-
317
- #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:577
318
- msgid "Metabox updated."
319
- msgstr "Metabox actualizada."
320
-
321
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:6
322
- msgid "WCK Post Type Creator"
323
- msgstr "WCK Post Type Creator"
324
-
325
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:7 Version\wck/wck-sas.php:91
326
- msgid "Post Type Creator"
327
- msgstr "Post Type Creator"
328
-
329
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:47
330
- msgid "Post type"
331
- msgstr "Post type"
332
-
333
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:47
334
- msgid ""
335
- "(max. 20 characters, can not contain capital letters, hyphens, or spaces)"
336
- msgstr ""
337
- "(máx. 20 caracteres, no puede contener letras mayúsculas, guiones, ni "
338
- "espacios)"
339
-
340
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:48
341
- msgid "A short descriptive summary of what the post type is."
342
- msgstr "Un resumen descriptivo debajo de lo que el tipo de publicación es."
343
-
344
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:49 Version\wck/wck-ctc.php:36
345
- msgid "Singular Label"
346
- msgstr "Etiqueta Individual"
347
-
348
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:49
349
- msgid "ex. Book"
350
- msgstr "ej. Libro"
351
-
352
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:50 Version\wck/wck-ctc.php:37
353
- msgid "Plural Label"
354
- msgstr "Etiqueta Plural"
355
-
356
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:50
357
- msgid "ex. Books"
358
- msgstr "ej. Libros"
359
-
360
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:51 Version\wck/wck-ctc.php:39
361
- msgid "Hierarchical"
362
- msgstr "Jerárquica"
363
-
364
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:51
365
- msgid "Whether the post type is hierarchical. Allows Parent to be specified."
366
- msgstr ""
367
- "Si el tipo de la publicación es jerárquico. Permite que los padres se "
368
- "determinen."
369
-
370
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:52
371
- msgid "Has Archive"
372
- msgstr "Tiene archivo"
373
-
374
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:52
375
- msgid ""
376
- "Enables post type archives. Will use string as archive slug. Will generate "
377
- "the proper rewrite rules if rewrite is enabled."
378
- msgstr ""
379
- "Permite archivos de tipo de publicación. Utilizará cadena como slug de "
380
- "archivo. Generará las reglas de reescritura adecuadas si reescritura está "
381
- "habilitada."
382
-
383
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:53
384
- msgid "Supports"
385
- msgstr "Soporta"
386
-
387
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:56
388
- msgid "Add New"
389
- msgstr "Añadir Nuevo"
390
-
391
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:56
392
- msgid "ex. Add New"
393
- msgstr "ej. Añadir Nuevo"
394
-
395
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:57 Version\wck/wck-ctc.php:48
396
- msgid "Add New Item"
397
- msgstr "Crear Nuevo Artículo."
398
-
399
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:57
400
- msgid "ex. Add New Book"
401
- msgstr "ej Crear Nuevo Libro"
402
-
403
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:58 Version\wck/wck-ctc.php:46
404
- msgid "Edit Item"
405
- msgstr "Editar Artículo"
406
-
407
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:58
408
- msgid "ex. Edit Book"
409
- msgstr "ej. Editar Libro"
410
-
411
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:59
412
- msgid "New Item"
413
- msgstr "Nuevo Artículo"
414
-
415
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:59
416
- msgid "ex. New Book"
417
- msgstr "ej. Nuevo Libro"
418
-
419
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:60 Version\wck/wck-ctc.php:43
420
- msgid "All Items"
421
- msgstr "Todos los Artículos"
422
-
423
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:60
424
- msgid "ex. All Books"
425
- msgstr "ej. Todos los Libros"
426
-
427
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:61
428
- msgid "View Items"
429
- msgstr "Ver Artículos"
430
-
431
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:61
432
- msgid "ex. View Books"
433
- msgstr "ej. Ver Libros"
434
-
435
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:62 Version\wck/wck-ctc.php:41
436
- msgid "Search Items"
437
- msgstr "Buscar Artículos"
438
-
439
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:62
440
- msgid "ex. Search Books"
441
- msgstr "ej. Buscar Libros"
442
-
443
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:63
444
- msgid "Not Found"
445
- msgstr "No Encontrado"
446
-
447
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:63
448
- msgid "ex. No Books Found"
449
- msgstr "Ej. No hay libros encontrados"
450
-
451
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:64
452
- msgid "Not Found In Trash"
453
- msgstr "No se encuentran en la papelera"
454
-
455
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:64
456
- msgid "ex. No Books found in Trash"
457
- msgstr "ej. No se han encontrado Libros en la basura."
458
-
459
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:65 Version\wck/wck-ctc.php:45
460
- msgid "Parent Item Colon"
461
- msgstr "Colon Artículo Padre"
462
-
463
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:65
464
- msgid ""
465
- "the parent text. This string isn't used on non-hierarchical types. In "
466
- "hierarchical ones the default is Parent Page "
467
- msgstr ""
468
- "el texto padre Esta cadena no se utiliza en los tipos no jerárquicos. En "
469
- "los jerárquicos el valor predeterminado es la Página Padre"
470
-
471
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:66 Version\wck/wck-ctc.php:53
472
- msgid "Menu Name"
473
- msgstr "Nombre Menú"
474
-
475
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:68 Version\wck/wck-ctc.php:55
476
- msgid "Public"
477
- msgstr "Público"
478
-
479
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:68 Version\wck/wck-ctc.php:55
480
- msgid ""
481
- "Meta argument used to define default values for publicly_queriable, show_ui, "
482
- "show_in_nav_menus and exclude_from_search"
483
- msgstr ""
484
- "Meta argumento utilizado para definir valores predeterminados para "
485
- "publicly_queriable, show_ui, show_in_nav_menus y exclude_from_search"
486
-
487
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:69 Version\wck/wck-ctc.php:56
488
- msgid "Show UI"
489
- msgstr "Mostrar la interfaz de usuario"
490
-
491
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:69 Version\wck/wck-ctc.php:56
492
- msgid "Whether to generate a default UI for managing this post type."
493
- msgstr ""
494
- "Si se debe generar una interfaz de usuario predeterminada para gestionar "
495
- "este tipo de publicaciones."
496
-
497
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:70
498
- msgid "Show In Nav Menus"
499
- msgstr "Mostrar En Menús Nav"
500
-
501
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:70
502
- msgid "Whether post_type is available for selection in navigation menus."
503
- msgstr ""
504
- "Si post_type está disponible para la selección en los menús de navegación."
505
-
506
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:71
507
- msgid "Show In Menu"
508
- msgstr "Mostrar En Menú"
509
-
510
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:71
511
- msgid ""
512
- "Whether to show the post type in the admin menu. show_ui must be true. "
513
- "\"false\" - do not display in the admin menu, \"true\" - display as a top "
514
- "level menu, \"some string\" - If an existing top level page such as \"tools."
515
- "php\" or \"edit.php?post_type=page\", the post type will be placed as a sub "
516
- "menu of that."
517
- msgstr ""
518
- "Si debe mostrar el tipo de publicación en el menú de administración. show_ui "
519
- "debe ser cierto. \"false\" - no se muestra en el menú de administración, "
520
- "\"true\" - pantalla como un menú de nivel superior, \"alguna cadena\" - Si "
521
- "una página de nivel superior existente, como \"tools.php\" o \"edit.php? "
522
- "post_type = page\", el tipo de publicación será colocado como un submenú de "
523
- "eso."
524
-
525
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:72
526
- msgid "Menu Position"
527
- msgstr "Posición Menú"
528
-
529
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:72
530
- msgid "The position in the menu order the post type should appear."
531
- msgstr ""
532
- "La posición en el orden de los menús en que el tipo publicación debería "
533
- "aparecer."
534
-
535
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:73
536
- msgid "Menu Icon"
537
- msgstr "Icono Menú"
538
-
539
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:73
540
- msgid "The url to the icon to be used for this menu."
541
- msgstr "La url para el icono que se utilizará para este menú."
542
-
543
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:74
544
- msgid "Capability Type"
545
- msgstr "Tipo de Capacidad"
546
-
547
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:74
548
- msgid "The string to use to build the read, edit, and delete capabilities."
549
- msgstr ""
550
- "La cadena que se utiliza para construir la lectura, editar y eliminar "
551
- "capacidades."
552
-
553
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:75
554
- msgid "Taxonomies"
555
- msgstr "Taxonomías"
556
-
557
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:76
558
- msgid "Rewrite"
559
- msgstr "Reescribir"
560
-
561
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:76
562
- msgid "Rewrite permalinks."
563
- msgstr "Reescribir permalinks."
564
-
565
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:77
566
- msgid "Rewrite Slug"
567
- msgstr "Reescribir Slug"
568
-
569
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:77
570
- msgid "Defaults to post type name."
571
- msgstr "Predeterminados para el nombre del tipo de publicación."
572
-
573
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:83
574
- msgid "Custom Post Type Creation"
575
- msgstr "Creación personalizada Post Type"
576
-
577
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:108 Version\wck/wck-ctc.php:91
578
- msgid "Add New "
579
- msgstr "Añadir Nuevo"
580
-
581
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:109 Version\wck/wck-ctc.php:89
582
- msgid "Edit "
583
- msgstr "Editar"
584
-
585
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:110 Version\wck/wck-ctc.php:92
586
- msgid "New "
587
- msgstr "Nuevo"
588
-
589
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:111 Version\wck/wck-ctc.php:86
590
- msgid "All "
591
- msgstr "Todos"
592
-
593
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:112
594
- msgid "View "
595
- msgstr "Ver"
596
-
597
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:113 Version\wck/wck-ctc.php:84
598
- msgid "Search "
599
- msgstr "Buscar"
600
-
601
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:114 Version\wck/wck-cptc.php:115
602
- msgid "No "
603
- msgstr "No"
604
-
605
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:116
606
- msgid "Parent Page"
607
- msgstr "Página Padre"
608
-
609
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:169 Version\wck/wck-cptc.php:193
610
- #: Version\wck/wck-ctc.php:134 Version\wck/wck-ctc.php:158
611
- msgid "Show Advanced Label Options"
612
- msgstr "Mostrar Opciones Avanzadas de Etiqueta"
613
-
614
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:169 Version\wck/wck-cptc.php:193
615
- #: Version\wck/wck-ctc.php:134 Version\wck/wck-ctc.php:158
616
- msgid "Hide Advanced Label Options"
617
- msgstr "Esconder Opciones Avanzadas de Etiqueta"
618
-
619
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:181 Version\wck/wck-cptc.php:207
620
- #: Version\wck/wck-cptc.php:236 Version\wck/wck-ctc.php:146
621
- #: Version\wck/wck-ctc.php:172 Version\wck/wck-ctc.php:201
622
- msgid "Show Advanced Options"
623
- msgstr "Mostrar opciones avanzadas"
624
-
625
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:181 Version\wck/wck-cptc.php:207
626
- #: Version\wck/wck-cptc.php:236 Version\wck/wck-ctc.php:146
627
- #: Version\wck/wck-ctc.php:172 Version\wck/wck-ctc.php:201
628
- msgid "Hide Advanced Options"
629
- msgstr "Ocultar Opciones Avanzadas"
630
-
631
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:222 Version\wck/wck-ctc.php:187
632
- msgid "Show Advanced Labels"
633
- msgstr "Mostrar Etiquetas Avanzadas"
634
-
635
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:222 Version\wck/wck-ctc.php:187
636
- msgid "Hide Advanced Labels"
637
- msgstr "Ocultar Etiquetas Avanzadas"
638
-
639
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:283
640
- msgid ""
641
- "WCK Custom Post Type Creator allows you to easily create custom post types "
642
- "for Wordpress without any programming knowledge.<br />Most of the common "
643
- "options for creating a post type are displayed by default while the advanced "
644
- "options and label are just one click away."
645
- msgstr ""
646
- "WCK Custom Post Type Creator te permite crear fácilmente los tipos de "
647
- "correos personalizados para Wordpress y sin ningún conocimiento de "
648
- "programación. <br/> La mayoría de las opciones comunes para la creación de "
649
- "un puesto tipo se muestran de forma predeterminada, mientras que las "
650
- "opciones avanzadas y la etiqueta están a sólo un clic de distancia."
651
-
652
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:288 Version\wck/wck-ctc.php:245
653
- msgid "Labels"
654
- msgstr "Etiquetas"
655
-
656
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:289
657
- msgid ""
658
- "For simplicity you are required to introduce only the Singular Label and "
659
- "Plural Label from wchich the rest of the labels will be formed.<br />For a "
660
- "more detailed control of the labels you just have to click the \"Show "
661
- "Advanced Label Options\" link and all the availabel labels will be displayed."
662
- msgstr ""
663
- "Para simplicidad se requiere introducir sólo la etiqueta Singular y Plural "
664
- "desde donde se formará el resto de las etiquetas. <br/> ¡Para un control más "
665
- "detallado de las etiquetas, solo tienes que hacer clic en el enlace "
666
- "\"Mostrar opciones avanzadas etiqueta\" y todas las etiquetas disponibles "
667
- "serán mostradas."
668
-
669
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:294 Version\wck/wck-ctc.php:251
670
- msgid "Advanced Options"
671
- msgstr "Opciones avanzadas"
672
-
673
- #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:295
674
- msgid ""
675
- "The Advanced Options are set to the most common defaults for custom post "
676
- "types. To display them click the \"Show Advanced Options\" link."
677
- msgstr ""
678
- "Las opciones avanzadas se establecen en los valores predeterminados más "
679
- "comunes para este tipo de publicación personalizado. Para visualizarlos, "
680
- "haga clic en el enlace \"Mostrar opciones avanzadas\"."
681
-
682
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:6
683
- msgid "WCK Taxonomy Creator"
684
- msgstr "WCK Taxonomy Creador"
685
-
686
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:7 Version\wck/wck-sas.php:95
687
- msgid "Taxonomy Creator"
688
- msgstr "Creador deTaxonomía"
689
-
690
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:35
691
- msgid "Taxonomy"
692
- msgstr "Taxonomía"
693
-
694
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:35
695
- msgid ""
696
- "(The name of the taxonomy. Name must not contain capital letters or spaces.)"
697
- msgstr ""
698
- "(El nombre de la taxonomía. El nombre no debe contener letras mayúsculas o "
699
- "espacios.)"
700
-
701
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:36
702
- msgid "ex. Writer"
703
- msgstr "ej Escritor"
704
-
705
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:37
706
- msgid "ex. Writers"
707
- msgstr "ej. Escritores"
708
-
709
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:38
710
- msgid "Attach to"
711
- msgstr "Adjuntar a"
712
-
713
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:39
714
- msgid ""
715
- "Is this taxonomy hierarchical (have descendants) like categories or not "
716
- "hierarchical like tags."
717
- msgstr ""
718
- "¿Es esta taxonomía jerárquica (tiene descendientes) como categorías o no "
719
- "jerárquica como las etiquetas?"
720
-
721
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:41
722
- msgid "ex. Search Writers"
723
- msgstr "Ej. Buscar Escritores"
724
-
725
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:42
726
- msgid "Popular Items"
727
- msgstr "Artículos populares"
728
-
729
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:42
730
- msgid "ex. Popular Writers"
731
- msgstr "ej. Escritores populares"
732
-
733
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:43
734
- msgid "ex. All Writers"
735
- msgstr "ej. Todos los Escritores"
736
-
737
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:44
738
- msgid "Parent Item"
739
- msgstr "Artículo Padre"
740
-
741
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:44
742
- msgid "ex. Parent Genre"
743
- msgstr "ej. Género Padre"
744
-
745
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:45
746
- msgid "ex. Parent Genre:"
747
- msgstr "ej. Género Padre"
748
-
749
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:46
750
- msgid "ex. Edit Writer"
751
- msgstr "ej. Editar Escritor"
752
-
753
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:47
754
- msgid "Update Item"
755
- msgstr "Actualizar Artículo"
756
-
757
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:47
758
- msgid "ex. Update Writer"
759
- msgstr "ej. Actualizar Escritor"
760
-
761
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:48
762
- msgid "ex. Add New Writer"
763
- msgstr "ej. Añadir Nuevo Escritor"
764
-
765
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:49
766
- msgid "New Item Name"
767
- msgstr "Nuevo Nombre del elemento"
768
-
769
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:49
770
- msgid "ex. New Writer Name"
771
- msgstr "ej. Nuevo Nombre Escritor"
772
-
773
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:50
774
- msgid "Separate Items With Commas"
775
- msgstr "Separe el Nombre con comas"
776
-
777
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:50
778
- msgid "ex. Separate writers with commas"
779
- msgstr "ej. Separe Escritores con comas"
780
-
781
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:51
782
- msgid "Add Or Remove Items"
783
- msgstr "Añadir o eliminar elementos"
784
-
785
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:51
786
- msgid "ex. Add or remove writers"
787
- msgstr "ej. Añadir o eliminar escritores"
788
-
789
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:52
790
- msgid "Choose From Most Used"
791
- msgstr "Elegir de los más usados."
792
-
793
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:52
794
- msgid "ex. Choose from the most used writers"
795
- msgstr "ej Elija uno de los escritores más utilizados"
796
-
797
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:57
798
- msgid "Show Tagcloud"
799
- msgstr "Muestre Tagcloud"
800
-
801
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:57
802
- msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
803
- msgstr "Si permite que el Tag widget de nube utilice esta taxonomía."
804
-
805
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:62
806
- msgid "Custom Taxonomy Creation"
807
- msgstr "Creación de Taxonomía Personalizada"
808
-
809
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:85
810
- msgid "Popular "
811
- msgstr "Popular"
812
-
813
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:87 Version\wck/wck-ctc.php:88
814
- msgid "Parent "
815
- msgstr "Padre"
816
-
817
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:90
818
- msgid "Update "
819
- msgstr "Actualizar"
820
-
821
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:93
822
- msgid "Separate "
823
- msgstr "Separada"
824
-
825
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:94
826
- msgid "Add or remove "
827
- msgstr "Agregar o quitar"
828
-
829
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:95
830
- msgid "Choose from the most used "
831
- msgstr "Elija entre los más utilizados"
832
-
833
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:240
834
- msgid ""
835
- "WCK Custom Taxonomy Creator allows you to easily create custom taxonomy for "
836
- "Wordpress without any programming knowledge.<br />Most of the common options "
837
- "for creating a taxonomy are displayed by default while the advanced and "
838
- "label options are just one click away."
839
- msgstr ""
840
- "WCK Custom Taxonomy Creador le permite crear fácilmente taxonomía "
841
- "personalizada para Wordpress sin ningún conocimientos de programación. <br /"
842
- "> La mayoría de las opciones comunes para la creación de una taxonomía se "
843
- "muestran por defecto, mientras que las opciones avanzadas y etiquetas están "
844
- "a sólo un clic de distancia."
845
-
846
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:246
847
- msgid ""
848
- "For simplicity you are required to introduce only the Singular Label and "
849
- "Plural Label from wchich the rest of the labels will be formed.<br />For a "
850
- "more detailed control of the labels you just have to click the \"Show "
851
- "Advanced Label Options\" link and all the availabel labels will be displayed"
852
- msgstr ""
853
- "Por simplicidad, usted está obligado a introducir sólo la etiqueta Singular "
854
- "y Plural desde donde el resto de las etiquetas se formará. <br /> ¡Para un "
855
- "control más detallado de las etiquetas, solo tienes que hacer clic en el "
856
- "enlace \"Mostrar opciones avanzadas de etiquetas\" y todas las etiquetas "
857
- "disponibles se mostrarán"
858
-
859
- #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:252
860
- msgid ""
861
- "The Advanced Options are set to the most common defaults for taxonomies. To "
862
- "display them click the \"Show Advanced Options\" link."
863
- msgstr ""
864
- "Las opciones avanzadas están ajustadas a los valores predeterminados comunes "
865
- "para las taxonomías. Para visualizarlos, haga clic en el enlace \"Mostrar "
866
- "opciones avanzadas\"."
867
-
868
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:15
869
- msgid "Start Here & General Settings"
870
- msgstr "Comience aquí y Ajustes generales"
871
-
872
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:16
873
- msgid "Start and Settings"
874
- msgstr "Inicio y Configuración"
875
-
876
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:34
877
- msgid "Serial Number"
878
- msgstr "Número de serie"
879
-
880
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:34
881
- msgid ""
882
- "Please enter your serial number. For example: (e.g. WCKPRO-11-"
883
- "SN-251r55baa4fbe7bf595b2aabb8d72985)"
884
- msgstr ""
885
- "Introduzca su número de serie. Por ejemplo: (por ejemplo WCKPRO-11-"
886
- "SN-251r55baa4fbe7bf595b2aabb8d72985)"
887
-
888
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:40
889
- msgid "Register Your Version"
890
- msgstr "Registre su Versión"
891
-
892
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:67
893
- #, php-format
894
- msgid "Welcome to %s"
895
- msgstr "Bienvenido a %s"
896
-
897
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:68
898
- msgid ""
899
- "WCK helps you to improve the usability of the sites you build, making them "
900
- "manageable by your clients. Your very own repeater custom fields and groups, "
901
- "custom post type and taxonomy creator with front-end posting."
902
- msgstr ""
903
- "WCK le ayuda a mejorar la usabilidad de los sitios que usted construye, "
904
- "haciéndolos manejables por sus clientes. . Sus propios campos y grupos "
905
- "personalizados repetidor, el tipo de publicación personalizada y creador de "
906
- "taxonomía con fijación frontal"
907
-
908
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:69
909
- #, php-format
910
- msgid "Version %s"
911
- msgstr "Versión %s"
912
-
913
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:83
914
- msgid "Quick Start-Up Guide"
915
- msgstr "Quía Rápida de Inicio"
916
-
917
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:88
918
- msgid ""
919
- "WordPress Creation Kit Pro has support for a wide list of custom fields: "
920
- "WYSIWYG Editor, Upload Field, Date, User, Country, Text Input, Textarea, "
921
- "Drop-Down, Select, Checkboxes, Radio Buttons"
922
- msgstr ""
923
- "WordPress Creación Kit Pro tiene soporte para una amplia lista de campos "
924
- "personalizados: Editor WYSIWYG, Subi campo, Fecha , Usuario, país, entrada "
925
- "de texto, Área de texto, desplegable, Seleccionar, casillas de verificación, "
926
- "botones de radio"
927
-
928
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:89
929
- msgid ""
930
- "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
931
- "kit/custom-fields-creator/\" target=\"_blank\">here</a> about how to display "
932
- "them in your templates."
933
- msgstr ""
934
- "Documentación de Access <a href = \"http://www.cozmoslabs.com/wordpress-"
935
- "creation-kit/custom-fields-creator/ \"target=\"_blank\"> aquí </a> sobre "
936
- "cómo mostrarlos en sus plantillas."
937
-
938
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:92
939
- msgid "Create & manage all your custom content types"
940
- msgstr "Crear y gestionar todos los tipos de contenido personalizado"
941
-
942
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:93
943
- msgid ""
944
- "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
945
- "kit/custom-post-type-creator/\" target=\"_blank\">here</a> about how to "
946
- "display them in your templates."
947
- msgstr ""
948
- "Documentación de acceso<a href=\"http://www.cozmoslabs.com/ wordpress-"
949
- "creation-kit/custom-post-type-creator/\"target=\" _blank\"> aquí </a> sobre "
950
- "cómo mostrarlos en sus plantillas."
951
-
952
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:96
953
- msgid "Create new taxonomies for filtering your content"
954
- msgstr "Crear nuevas taxonomías para el filtrado de su contenido"
955
-
956
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:97
957
- msgid ""
958
- "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
959
- "kit/custom-taxonomy-creator/\" target=\"_blank\">here</a> about how to "
960
- "display them in your templates."
961
- msgstr ""
962
- "Documentación de acceso a<a href=\"http://www.cozmoslabs.com/wordpress-"
963
- "creation-kit/custom-taxonomy-creator/\" target=\"_blank\"> aquí </a> sobre "
964
- "cómo mostrarlos en sus plantillas"
965
-
966
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:99
967
- msgid "Front-End Posting (available in the Pro version)"
968
- msgstr "Publicación Front-End (disponible en la versión Pro)"
969
-
970
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:100
971
- msgid ""
972
- "Create and edit posts/pages or custom posts directly from the front-end."
973
- msgstr ""
974
- "Crear y editar publicaciones / páginas o publicaciones personalizadas "
975
- "directamente desde el front-end."
976
-
977
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:101
978
- msgid "Available shortcodes:"
979
- msgstr "Códigos cortos disponibles:"
980
-
981
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:103
982
- msgid ""
983
- "[fep form_name=\"front-end-post-name\"] - displayes your form in the front-"
984
- "end"
985
- msgstr ""
986
- "[fep form_name=\"front-end-post-name\"] - muestra su formulario en el front-"
987
- "end"
988
-
989
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:104
990
- msgid ""
991
- "[fep-dashboard] - the quick-dashboard allows: simple profile updates, "
992
- "editing/deletion of posts, pages and custom post types."
993
- msgstr ""
994
- "[fep-dashboard] - el tablero rápido permite: actualizaciones de perfiles "
995
- "simples, edición / borrado de publicaciones, páginas y tipos de publicación "
996
- "personalizados"
997
-
998
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:105
999
- msgid ""
1000
- "[fep-lilo] - login/logout/register widget with the simple usage of a "
1001
- "shortcode. Can be added in a page or text widget."
1002
- msgstr ""
1003
- "[fep-lilo] – widget login/logout/register con el simple uso de un shortcode. "
1004
- "Se puede añadir en una página o widget de texto."
1005
-
1006
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:107
1007
- msgid ""
1008
- "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
1009
- "kit/frontend-posting/\" target=\"_blank\">here</a> about how to display them "
1010
- "in your templates."
1011
- msgstr ""
1012
- "Documentación de Acceso <a href=\"http://www.cozmoslabs.com/wordpress-"
1013
- "creation-kit/frontend-posting/\" target=\"_blank\"> aquí </a> sobre cómo "
1014
- "mostrarlos en sus plantillas."
1015
-
1016
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:109
1017
- msgid "Option Pages (available in the Pro version)"
1018
- msgstr "Páginas de opción (disponible en la versión Pro)"
1019
-
1020
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:110
1021
- msgid ""
1022
- "The Options Page Creator Allows you to create a new menu item called "
1023
- "\"Options\"(for example) which can hold advanced custom field groups. "
1024
- "Perfect for theme options or a simple UI for your custom plugin (like a "
1025
- "simple testimonials section in the front-end)."
1026
- msgstr ""
1027
- "El Options Page Creator Permite crear un nuevo elemento del menú llamado "
1028
- "\"Opciones\" (por ejemplo) que puede albergar grupos de campos "
1029
- "personalizados avanzados. Perfecto para las opciones del tema o una interfaz "
1030
- "de usuario simple para su complemento personalizado (como una sección de "
1031
- "testimonios simple en el front-end)."
1032
-
1033
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:137
1034
- msgid ""
1035
- "Please enter your serial number to get access to automatic updates. If you "
1036
- "do not have one, you can <a href=\"http://www.cozmoslabs.com/wordpress-"
1037
- "creation-kit/\" target=\"_blank\">Get One Here</a>."
1038
- msgstr ""
1039
- "Introduzca, por favor su número de serie para tener acceso a las "
1040
- "actualizaciones automáticas. Si usted no tiene uno, puede <a href=\"http://"
1041
- "www.cozmoslabs.com/wordpress-creation-kit/\" target=\"_blank\"> conseguir "
1042
- "uno aquí </a>."
1043
-
1044
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:139
1045
- msgid "Oups! Our serial verification server is down. Please try again later."
1046
- msgstr ""
1047
- "¡Ups ! Nuestro servidor de verificación de serie se encuentra abajo. Por "
1048
- "favor, inténtelo de nuevo más tarde."
1049
-
1050
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:141
1051
- msgid ""
1052
- "Oups! It seems the serial number you entered was not found in our database. "
1053
- "To find out what's your serial number log-in to <a href=\"http://www."
1054
- "cozmoslabs.com/account/\" target=\"_blank\">your account page</a> over at "
1055
- "Cozmoslabs.com"
1056
- msgstr ""
1057
- "¡Ups! Al parecer, el número de serie que ha puesto no se encuentra en "
1058
- "nuestra base de datos. Para saber cuál es el número de serie ingrese a <a "
1059
- "href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\"> página de su "
1060
- "cuenta </a> sobre al Cozmoslabs.com"
1061
-
1062
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:143
1063
- msgid ""
1064
- "Wohoo! Your serial number is valid and you have access to automatic updates."
1065
- msgstr ""
1066
- "Wohoo! Su número de serie es válido y tiene acceso a las actualizaciones "
1067
- "automáticas."
1068
-
1069
- #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:145
1070
- msgid ""
1071
- "It seems your serial number has <strong>expired</strong>. You'll continue to "
1072
- "get automatic updates if update your serial number for another year from <a "
1073
- "href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\"><strong>your "
1074
- "account page</strong></a>."
1075
- msgstr ""
1076
- "Parece que su número de serie <strong> ha expirado </ strong>. Tendrá que "
1077
- "continuar para obtener actualizaciones automáticas si actualizar su número "
1078
- "de serie para otro año de <a href=\"http://www.cozmoslabs.com/account/\" "
1079
- "target=\"_blank\"> <strong> su página de cuenta </ strong> </a>."
1080
-
1081
- #: d:\!!!!!!!!!\Free
1082
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:282
1083
- msgid "Add Entry"
1084
- msgstr "Añadir entrada"
1085
-
1086
- #: d:\!!!!!!!!!\Free
1087
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:332
1088
- msgid "Save Changes"
1089
- msgstr "Guardar cambios"
1090
-
1091
- #: d:\!!!!!!!!!\Free
1092
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:333
1093
- msgid "Cancel"
1094
- msgstr "Cancelar"
1095
-
1096
- #: d:\!!!!!!!!!\Free
1097
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1098
- msgid "Content"
1099
- msgstr "Contenido"
1100
-
1101
- #: d:\!!!!!!!!!\Free
1102
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1103
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1104
- msgid "Edit"
1105
- msgstr "Editar"
1106
-
1107
- #: d:\!!!!!!!!!\Free
1108
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1109
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1110
- msgid "Delete"
1111
- msgstr "Borrar"
1112
-
1113
- #: d:\!!!!!!!!!\Free
1114
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1115
- msgid "Edit this item"
1116
- msgstr "Editar este artículo"
1117
-
1118
- #: d:\!!!!!!!!!\Free
1119
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1120
- msgid "Delete this item"
1121
- msgstr "Borrar este artículo"
1122
-
1123
- #: d:\!!!!!!!!!\Free
1124
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:506
1125
- msgid "Please enter a value for the required field "
1126
- msgstr "Por favor, introduzca un valor para el campo requerido"
1127
-
1128
- #: d:\!!!!!!!!!\Free
1129
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:788
1130
- msgid "Select File"
1131
- msgstr "Seleccione Archivo"
1132
-
1133
- #: d:\!!!!!!!!!\Free
1134
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:828
1135
- #: Version\wck/wordpress-creation-kit-api/fields/upload.php:28
1136
- msgid "Remove"
1137
- msgstr "Eliminar"
1138
-
1139
- #: d:\!!!!!!!!!\Free
1140
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:866
1141
- msgid "Syncronize WCK"
1142
- msgstr "Syncronizar WCK"
1143
-
1144
- #: d:\!!!!!!!!!\Free
1145
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:878
1146
- msgid "Syncronize WCK Translation"
1147
- msgstr "Traducción Syncronizar WCK"
1148
-
1149
- #: d:\!!!!!!!!!\Free
1150
- #: Version\wck/wordpress-creation-kit-api/fields/select.php:11
1151
- msgid "...Chose"
1152
- msgstr "... Elija"
1153
-
1154
- #: d:\!!!!!!!!!\Free
1155
- #: Version\wck/wordpress-creation-kit-api/fields/upload.php:40
1156
- msgid "Upload "
1157
- msgstr "Subir"
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WCK\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-06-13 16:28+0200\n"
6
+ "PO-Revision-Date: 2014-01-24 11:10+0100\n"
7
+ "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
+ "X-Poedit-SearchPath-0: d:\\!!!!!!!!!\\Free Version\\wck\n"
16
+
17
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:26
18
+ msgid "Add New Meta Box"
19
+ msgstr "Añadir nueva Meta Box"
20
+
21
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:27
22
+ msgid "Edit Meta Box"
23
+ msgstr "Editar Meta Box"
24
+
25
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:28
26
+ msgid "New Meta Box"
27
+ msgstr "Nueva Meta Box"
28
+
29
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:29 Version\wck/wck-sas.php:87
30
+ msgid "Custom Fields Creator"
31
+ msgstr "Creador de Campos Personalizados"
32
+
33
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:30
34
+ msgid "View Meta Box"
35
+ msgstr "Ver Meta Box"
36
+
37
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:31
38
+ msgid "Search Meta Boxes"
39
+ msgstr "Buscar Meta Boxes"
40
+
41
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:32
42
+ msgid "No Meta Boxes found"
43
+ msgstr "No se encontraron Meta Boxes"
44
+
45
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:33
46
+ msgid "No Meta Boxes found in Trash"
47
+ msgstr "No se encontraron Meta Boxes en la basura"
48
+
49
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:35
50
+ msgid "Custom Meta Boxes"
51
+ msgstr "Meta Boxes personalizados"
52
+
53
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:84
54
+ msgid "Meta name"
55
+ msgstr "Nombre Meta"
56
+
57
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:84
58
+ msgid ""
59
+ "The name of the meta field. It is the name by which you will query the data "
60
+ "in the frontend. Must be unique, only lowercase letters, no spaces and no "
61
+ "special characters."
62
+ msgstr ""
63
+ "El nombre del campo de metadatos. Es el nombre con el que podrás consultar "
64
+ "los datos en el frontend. Debe ser único, sólo letras minúsculas, sin "
65
+ "espacios ni caracteres especiales."
66
+
67
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:85 Version\wck/wck-cfc.php:442
68
+ msgid "Post Type"
69
+ msgstr "Tipo de Publicación"
70
+
71
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:85
72
+ msgid "What post type the meta box should be attached to"
73
+ msgstr "A qué tipo de publicación debe adjuntarse el Meta Box"
74
+
75
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:86
76
+ msgid "Repeater"
77
+ msgstr "Repetidor"
78
+
79
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:86
80
+ msgid ""
81
+ "Whether the box supports just one entry or if it is a repeater field. By "
82
+ "default it is a single field."
83
+ msgstr ""
84
+ "Si el cuadro es compatible con una sola entrada o si se trata de un campo "
85
+ "repetidor. Por defecto es un solo campo."
86
+
87
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:87
88
+ msgid "Sortable"
89
+ msgstr "Ordenable"
90
+
91
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:87
92
+ msgid ""
93
+ "Whether the entries are sortable or not. Thsi is valid for repeater fields."
94
+ msgstr ""
95
+ "Si las entradas se pueden ordenar o no. Esto es válido para los campos de "
96
+ "repetidores."
97
+
98
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:88
99
+ msgid "Post ID"
100
+ msgstr "Identificación de la publicación"
101
+
102
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:88
103
+ msgid "ID of a post on which the meta box should appear."
104
+ msgstr "Identificación de una publicación en la que debe aparecer el Meta Box."
105
+
106
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:92 Version\wck/wck-cfc.php:443
107
+ msgid "Page Template"
108
+ msgstr "Plantilla de Página"
109
+
110
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:92
111
+ msgid ""
112
+ "If post type is \"page\" you can further select a page templete. The meta "
113
+ "box will only appear on the page that has that selected page template."
114
+ msgstr ""
115
+ "Si el tipo de publicación es \"página\" se puede seleccionar además un "
116
+ "templete de página. El Meta Box solo se mostrará en la página que tiene esa "
117
+ "plantilla de página seleccionada."
118
+
119
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:97 Version\wck/wck-cfc.php:536
120
+ msgid "Meta Box Arguments"
121
+ msgstr "Argumentos Meta Box"
122
+
123
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:114
124
+ msgid "Field Title"
125
+ msgstr "Título Campo"
126
+
127
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:114
128
+ msgid "Title of the field. A slug will automatically be generated."
129
+ msgstr "Título del Campo. Automáticamente se genera un slug."
130
+
131
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:115
132
+ msgid "Field Type"
133
+ msgstr "Tipo de Campo"
134
+
135
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:115
136
+ msgid "The field type"
137
+ msgstr "El tipo de campo"
138
+
139
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:116 Version\wck/wck-cptc.php:48
140
+ msgid "Description"
141
+ msgstr "Descripción"
142
+
143
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:117
144
+ msgid "Required"
145
+ msgstr "Requerido"
146
+
147
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:117
148
+ msgid "Whether the field is required or not"
149
+ msgstr "Si el campo es obligatorio o no"
150
+
151
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:118
152
+ msgid "Default Value"
153
+ msgstr "Valor predeterminado"
154
+
155
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:118
156
+ msgid ""
157
+ "Default value of the field. For Checkboxes if there are multiple values "
158
+ "separete them with a \",\""
159
+ msgstr ""
160
+ "Valor predeterminado del campo. Para Casillas de verificación, si hay "
161
+ "múltiples valores separarlas con un \",\""
162
+
163
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:119
164
+ msgid "Options"
165
+ msgstr "Opciones"
166
+
167
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:119
168
+ msgid ""
169
+ "Options for field types \"select\", \"checkbox\" and \"radio\". For multiple "
170
+ "options separete them with a \",\". You can use the following structure if "
171
+ "you want the label to be different from the value: %LabelOne%valueone,"
172
+ "%LabelTwo%valuetwo,%LabelThree%valuethree"
173
+ msgstr ""
174
+ "Opciones de tipos de campo \"seleccionar\", \"casilla\" y \" radio\". Para "
175
+ "múltiples opciones de ellas separarlas con un \",\". Puede utilizar la "
176
+ "siguiente estructura, si desea que la etiqueta sea diferente del valor: "
177
+ "%LabelOne%valueone,%LabelTwo%valuetwo,%LabelThree%valuethree"
178
+
179
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:120
180
+ msgid "Attach upload to post"
181
+ msgstr "Adjuntar carga para publicación"
182
+
183
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:120
184
+ msgid "Whether or not the uploads should be attached to the post"
185
+ msgstr "Si los archivos a subir deben o no estar adjuntos a la publicación"
186
+
187
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:127 Version\wck/wck-cfc.php:542
188
+ msgid "Meta Box Fields"
189
+ msgstr "Campos Meta Box"
190
+
191
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:140
192
+ msgid "Enter below the arguments for the meta box."
193
+ msgstr "Escriba aquí los argumentos para la Meta Box"
194
+
195
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:220
196
+ msgid "Slug:"
197
+ msgstr "Slug:"
198
+
199
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:220
200
+ msgid ""
201
+ "(Note:changing the slug when you already have a lot of existing entries may "
202
+ "result in unexpected behavior.)"
203
+ msgstr ""
204
+ "(Nota: cambiar el slug cuando ya tiene una gran cantidad de entradas "
205
+ "existentes puede provocar un comportamiento inesperado)"
206
+
207
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:355
208
+ msgid "Choose a different Meta Name as this one contains spaces\n"
209
+ msgstr "Elija un nombre diferente Meta pues éste contiene espacios\n"
210
+
211
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:357
212
+ msgid "Choose a different Meta Name as this one already exists\n"
213
+ msgstr "Elija un nombre diferente Meta pues ya existe éste\n"
214
+
215
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:441
216
+ msgid "Id"
217
+ msgstr "Id"
218
+
219
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:506 Version\wck/wck-cptc.php:257
220
+ #: Version\wck/wck-ctc.php:215 Version\wck/wck.php:38
221
+ msgid "Wordpress Creation Kit"
222
+ msgstr "Wordpress Creación Kit"
223
+
224
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:530 Version\wck/wck-cptc.php:282
225
+ #: Version\wck/wck-ctc.php:239
226
+ msgid "Overview"
227
+ msgstr "Descripción general"
228
+
229
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:531
230
+ msgid ""
231
+ "WCK Custom Fields Creator allows you to easily create custom meta boxes for "
232
+ "Wordpress without any programming knowledge."
233
+ msgstr ""
234
+ "WCK Custom Fields Creator le permite crear fácilmente Meta Boxes para "
235
+ "Wordpress sin ningún conocimiento de programación."
236
+
237
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:537
238
+ msgid ""
239
+ "Define here the rules for the meta box. This rules are used to set up where "
240
+ "the meta box will appear, it's type and also the meta key name stored in the "
241
+ "database. The name of the entry (Enter title here) will be used as the meta "
242
+ "box title."
243
+ msgstr ""
244
+ "Defina aquí las reglas para la meta box. Estas reglas se usan para "
245
+ "establecer donde aparecerá el Meta Box, su tipo y también el nombre de clave "
246
+ "meta almacenada en la base de datos. El nombre de la entrada (Introduzca el "
247
+ "título aquí) será utilizado como el título del Meta Box."
248
+
249
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:543
250
+ msgid ""
251
+ "Define here the fields contained in the meta box. From \"Field Title\" a "
252
+ "slug will be automatically generated and you will use this slug to display "
253
+ "the data in the frontend."
254
+ msgstr ""
255
+ "Defina aquí los campos contenidos en la caja de meta. . Desde \"Título de "
256
+ "Campo\" un slug se ​​generará automáticamente y usted usará este slug para "
257
+ "mostrar los datos en el frontend."
258
+
259
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:548
260
+ msgid "CFC Frontend Example"
261
+ msgstr "Ejemplo de Frontend CFC"
262
+
263
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
264
+ msgid ""
265
+ "Let's consider we have a meta box with the following arguments:<br /> - Meta "
266
+ "name: books <br /> - Post Type: post <br />And we also have two fields "
267
+ "deffined:<br /> - A text field with the Field Title: Book name <br /> - And "
268
+ "another text field with the Field Title: Author name "
269
+ msgstr ""
270
+ "Consideremos que tenemos una meta box con los siguientes argumentos: <br /> "
271
+ "- Nombre Meta: libros <br /> - Tipo de Publicación: publicación <br /> Y "
272
+ "también tenemos dos campos definidos: <br /> - Otro campo de texto con el "
273
+ "Título de Campo: Nombre del Libro <br /> - Y otro campo de texto con el "
274
+ "título del campo : Nombre del autor"
275
+
276
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
277
+ msgid ""
278
+ "You will notice that slugs will automatically be created for the two text "
279
+ "fields. For \"Book name\" the slug will be \"book-name\" and for \"Author "
280
+ "name\" the slug will be \"author-name\""
281
+ msgstr ""
282
+ "Usted se dará cuenta de que los slugs se crearán automáticamente para los "
283
+ "dos campos de texto. Para \"Book name\" el slug será \"book-name \" y para "
284
+ "\"Nombre de autor\" el slug será \"author-name\""
285
+
286
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
287
+ msgid ""
288
+ "Let's see what the code for displaying the meta box values in single.php of "
289
+ "your theme would be:"
290
+ msgstr ""
291
+ "Vamos a ver cuál es el código para mostrar los valores del Meta Box en una "
292
+ "sola . php de su tema:"
293
+
294
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:549
295
+ msgid ""
296
+ "So as you can see the Meta Name \"books\" is used as the $key parameter of "
297
+ "the funtion <a href=\"http://codex.wordpress.org/Function_Reference/"
298
+ "get_post_meta\" target=\"_blank\">get_post_meta()</a> and the slugs of the "
299
+ "text fields are used as keys for the resulting array. Basically CFC stores "
300
+ "the entries as post meta in a multidimensioanl array. In our case the array "
301
+ "would be: <br /><pre>array( array( \"book-name\" => \"The Hitchhiker's Guide "
302
+ "To The Galaxy\", \"author-name\" => \"Douglas Adams\" ), array( \"book-name"
303
+ "\" => \"Ender's Game\", \"author-name\" => \"Orson Scott Card\" ) );</pre> "
304
+ "This is true even for single entries."
305
+ msgstr ""
306
+ "Así como usted puede ver el Meta Nombre \"libros\" se utiliza como parámetro "
307
+ "$ clave de la función <a href=\"http://codex.wordpress.org/"
308
+ "Function_Reference/get_post_meta\" target=\"_blank\">get_post_meta()</a> y "
309
+ "los slugs de los campos de texto se utilizan como claves para la matriz "
310
+ "resultante. Básicamente CFC almacena las entradas como post meta en una "
311
+ "matriz multidimensional. En nuestro caso, la matriz sería: <br /><pre>array"
312
+ "( array( \"book-name\" => \"The Hitchhiker's Guide To The Galaxy\", \"author-"
313
+ "name\" => \"Douglas Adams\" ), array( \"book-name\" => \"Ender's Game\", "
314
+ "\"author-name\" => \"Orson Scott Card\" ) );</pre> Esto es cierto incluso "
315
+ "para entradas individuales"
316
+
317
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cfc.php:577
318
+ msgid "Metabox updated."
319
+ msgstr "Metabox actualizada."
320
+
321
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:6
322
+ msgid "WCK Post Type Creator"
323
+ msgstr "WCK Post Type Creator"
324
+
325
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:7 Version\wck/wck-sas.php:91
326
+ msgid "Post Type Creator"
327
+ msgstr "Post Type Creator"
328
+
329
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:47
330
+ msgid "Post type"
331
+ msgstr "Post type"
332
+
333
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:47
334
+ msgid ""
335
+ "(max. 20 characters, can not contain capital letters, hyphens, or spaces)"
336
+ msgstr ""
337
+ "(máx. 20 caracteres, no puede contener letras mayúsculas, guiones, ni "
338
+ "espacios)"
339
+
340
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:48
341
+ msgid "A short descriptive summary of what the post type is."
342
+ msgstr "Un resumen descriptivo debajo de lo que el tipo de publicación es."
343
+
344
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:49 Version\wck/wck-ctc.php:36
345
+ msgid "Singular Label"
346
+ msgstr "Etiqueta Individual"
347
+
348
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:49
349
+ msgid "ex. Book"
350
+ msgstr "ej. Libro"
351
+
352
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:50 Version\wck/wck-ctc.php:37
353
+ msgid "Plural Label"
354
+ msgstr "Etiqueta Plural"
355
+
356
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:50
357
+ msgid "ex. Books"
358
+ msgstr "ej. Libros"
359
+
360
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:51 Version\wck/wck-ctc.php:39
361
+ msgid "Hierarchical"
362
+ msgstr "Jerárquica"
363
+
364
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:51
365
+ msgid "Whether the post type is hierarchical. Allows Parent to be specified."
366
+ msgstr ""
367
+ "Si el tipo de la publicación es jerárquico. Permite que los padres se "
368
+ "determinen."
369
+
370
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:52
371
+ msgid "Has Archive"
372
+ msgstr "Tiene archivo"
373
+
374
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:52
375
+ msgid ""
376
+ "Enables post type archives. Will use string as archive slug. Will generate "
377
+ "the proper rewrite rules if rewrite is enabled."
378
+ msgstr ""
379
+ "Permite archivos de tipo de publicación. Utilizará cadena como slug de "
380
+ "archivo. Generará las reglas de reescritura adecuadas si reescritura está "
381
+ "habilitada."
382
+
383
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:53
384
+ msgid "Supports"
385
+ msgstr "Soporta"
386
+
387
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:56
388
+ msgid "Add New"
389
+ msgstr "Añadir Nuevo"
390
+
391
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:56
392
+ msgid "ex. Add New"
393
+ msgstr "ej. Añadir Nuevo"
394
+
395
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:57 Version\wck/wck-ctc.php:48
396
+ msgid "Add New Item"
397
+ msgstr "Crear Nuevo Artículo."
398
+
399
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:57
400
+ msgid "ex. Add New Book"
401
+ msgstr "ej Crear Nuevo Libro"
402
+
403
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:58 Version\wck/wck-ctc.php:46
404
+ msgid "Edit Item"
405
+ msgstr "Editar Artículo"
406
+
407
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:58
408
+ msgid "ex. Edit Book"
409
+ msgstr "ej. Editar Libro"
410
+
411
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:59
412
+ msgid "New Item"
413
+ msgstr "Nuevo Artículo"
414
+
415
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:59
416
+ msgid "ex. New Book"
417
+ msgstr "ej. Nuevo Libro"
418
+
419
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:60 Version\wck/wck-ctc.php:43
420
+ msgid "All Items"
421
+ msgstr "Todos los Artículos"
422
+
423
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:60
424
+ msgid "ex. All Books"
425
+ msgstr "ej. Todos los Libros"
426
+
427
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:61
428
+ msgid "View Items"
429
+ msgstr "Ver Artículos"
430
+
431
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:61
432
+ msgid "ex. View Books"
433
+ msgstr "ej. Ver Libros"
434
+
435
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:62 Version\wck/wck-ctc.php:41
436
+ msgid "Search Items"
437
+ msgstr "Buscar Artículos"
438
+
439
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:62
440
+ msgid "ex. Search Books"
441
+ msgstr "ej. Buscar Libros"
442
+
443
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:63
444
+ msgid "Not Found"
445
+ msgstr "No Encontrado"
446
+
447
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:63
448
+ msgid "ex. No Books Found"
449
+ msgstr "Ej. No hay libros encontrados"
450
+
451
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:64
452
+ msgid "Not Found In Trash"
453
+ msgstr "No se encuentran en la papelera"
454
+
455
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:64
456
+ msgid "ex. No Books found in Trash"
457
+ msgstr "ej. No se han encontrado Libros en la basura."
458
+
459
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:65 Version\wck/wck-ctc.php:45
460
+ msgid "Parent Item Colon"
461
+ msgstr "Colon Artículo Padre"
462
+
463
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:65
464
+ msgid ""
465
+ "the parent text. This string isn't used on non-hierarchical types. In "
466
+ "hierarchical ones the default is Parent Page "
467
+ msgstr ""
468
+ "el texto padre Esta cadena no se utiliza en los tipos no jerárquicos. En "
469
+ "los jerárquicos el valor predeterminado es la Página Padre"
470
+
471
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:66 Version\wck/wck-ctc.php:53
472
+ msgid "Menu Name"
473
+ msgstr "Nombre Menú"
474
+
475
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:68 Version\wck/wck-ctc.php:55
476
+ msgid "Public"
477
+ msgstr "Público"
478
+
479
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:68 Version\wck/wck-ctc.php:55
480
+ msgid ""
481
+ "Meta argument used to define default values for publicly_queriable, show_ui, "
482
+ "show_in_nav_menus and exclude_from_search"
483
+ msgstr ""
484
+ "Meta argumento utilizado para definir valores predeterminados para "
485
+ "publicly_queriable, show_ui, show_in_nav_menus y exclude_from_search"
486
+
487
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:69 Version\wck/wck-ctc.php:56
488
+ msgid "Show UI"
489
+ msgstr "Mostrar la interfaz de usuario"
490
+
491
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:69 Version\wck/wck-ctc.php:56
492
+ msgid "Whether to generate a default UI for managing this post type."
493
+ msgstr ""
494
+ "Si se debe generar una interfaz de usuario predeterminada para gestionar "
495
+ "este tipo de publicaciones."
496
+
497
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:70
498
+ msgid "Show In Nav Menus"
499
+ msgstr "Mostrar En Menús Nav"
500
+
501
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:70
502
+ msgid "Whether post_type is available for selection in navigation menus."
503
+ msgstr ""
504
+ "Si post_type está disponible para la selección en los menús de navegación."
505
+
506
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:71
507
+ msgid "Show In Menu"
508
+ msgstr "Mostrar En Menú"
509
+
510
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:71
511
+ msgid ""
512
+ "Whether to show the post type in the admin menu. show_ui must be true. "
513
+ "\"false\" - do not display in the admin menu, \"true\" - display as a top "
514
+ "level menu, \"some string\" - If an existing top level page such as \"tools."
515
+ "php\" or \"edit.php?post_type=page\", the post type will be placed as a sub "
516
+ "menu of that."
517
+ msgstr ""
518
+ "Si debe mostrar el tipo de publicación en el menú de administración. show_ui "
519
+ "debe ser cierto. \"false\" - no se muestra en el menú de administración, "
520
+ "\"true\" - pantalla como un menú de nivel superior, \"alguna cadena\" - Si "
521
+ "una página de nivel superior existente, como \"tools.php\" o \"edit.php? "
522
+ "post_type = page\", el tipo de publicación será colocado como un submenú de "
523
+ "eso."
524
+
525
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:72
526
+ msgid "Menu Position"
527
+ msgstr "Posición Menú"
528
+
529
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:72
530
+ msgid "The position in the menu order the post type should appear."
531
+ msgstr ""
532
+ "La posición en el orden de los menús en que el tipo publicación debería "
533
+ "aparecer."
534
+
535
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:73
536
+ msgid "Menu Icon"
537
+ msgstr "Icono Menú"
538
+
539
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:73
540
+ msgid "The url to the icon to be used for this menu."
541
+ msgstr "La url para el icono que se utilizará para este menú."
542
+
543
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:74
544
+ msgid "Capability Type"
545
+ msgstr "Tipo de Capacidad"
546
+
547
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:74
548
+ msgid "The string to use to build the read, edit, and delete capabilities."
549
+ msgstr ""
550
+ "La cadena que se utiliza para construir la lectura, editar y eliminar "
551
+ "capacidades."
552
+
553
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:75
554
+ msgid "Taxonomies"
555
+ msgstr "Taxonomías"
556
+
557
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:76
558
+ msgid "Rewrite"
559
+ msgstr "Reescribir"
560
+
561
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:76
562
+ msgid "Rewrite permalinks."
563
+ msgstr "Reescribir permalinks."
564
+
565
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:77
566
+ msgid "Rewrite Slug"
567
+ msgstr "Reescribir Slug"
568
+
569
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:77
570
+ msgid "Defaults to post type name."
571
+ msgstr "Predeterminados para el nombre del tipo de publicación."
572
+
573
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:83
574
+ msgid "Custom Post Type Creation"
575
+ msgstr "Creación personalizada Post Type"
576
+
577
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:108 Version\wck/wck-ctc.php:91
578
+ msgid "Add New "
579
+ msgstr "Añadir Nuevo"
580
+
581
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:109 Version\wck/wck-ctc.php:89
582
+ msgid "Edit "
583
+ msgstr "Editar"
584
+
585
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:110 Version\wck/wck-ctc.php:92
586
+ msgid "New "
587
+ msgstr "Nuevo"
588
+
589
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:111 Version\wck/wck-ctc.php:86
590
+ msgid "All "
591
+ msgstr "Todos"
592
+
593
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:112
594
+ msgid "View "
595
+ msgstr "Ver"
596
+
597
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:113 Version\wck/wck-ctc.php:84
598
+ msgid "Search "
599
+ msgstr "Buscar"
600
+
601
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:114 Version\wck/wck-cptc.php:115
602
+ msgid "No "
603
+ msgstr "No"
604
+
605
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:116
606
+ msgid "Parent Page"
607
+ msgstr "Página Padre"
608
+
609
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:169 Version\wck/wck-cptc.php:193
610
+ #: Version\wck/wck-ctc.php:134 Version\wck/wck-ctc.php:158
611
+ msgid "Show Advanced Label Options"
612
+ msgstr "Mostrar Opciones Avanzadas de Etiqueta"
613
+
614
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:169 Version\wck/wck-cptc.php:193
615
+ #: Version\wck/wck-ctc.php:134 Version\wck/wck-ctc.php:158
616
+ msgid "Hide Advanced Label Options"
617
+ msgstr "Esconder Opciones Avanzadas de Etiqueta"
618
+
619
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:181 Version\wck/wck-cptc.php:207
620
+ #: Version\wck/wck-cptc.php:236 Version\wck/wck-ctc.php:146
621
+ #: Version\wck/wck-ctc.php:172 Version\wck/wck-ctc.php:201
622
+ msgid "Show Advanced Options"
623
+ msgstr "Mostrar opciones avanzadas"
624
+
625
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:181 Version\wck/wck-cptc.php:207
626
+ #: Version\wck/wck-cptc.php:236 Version\wck/wck-ctc.php:146
627
+ #: Version\wck/wck-ctc.php:172 Version\wck/wck-ctc.php:201
628
+ msgid "Hide Advanced Options"
629
+ msgstr "Ocultar Opciones Avanzadas"
630
+
631
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:222 Version\wck/wck-ctc.php:187
632
+ msgid "Show Advanced Labels"
633
+ msgstr "Mostrar Etiquetas Avanzadas"
634
+
635
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:222 Version\wck/wck-ctc.php:187
636
+ msgid "Hide Advanced Labels"
637
+ msgstr "Ocultar Etiquetas Avanzadas"
638
+
639
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:283
640
+ msgid ""
641
+ "WCK Custom Post Type Creator allows you to easily create custom post types "
642
+ "for Wordpress without any programming knowledge.<br />Most of the common "
643
+ "options for creating a post type are displayed by default while the advanced "
644
+ "options and label are just one click away."
645
+ msgstr ""
646
+ "WCK Custom Post Type Creator te permite crear fácilmente los tipos de "
647
+ "correos personalizados para Wordpress y sin ningún conocimiento de "
648
+ "programación. <br/> La mayoría de las opciones comunes para la creación de "
649
+ "un puesto tipo se muestran de forma predeterminada, mientras que las "
650
+ "opciones avanzadas y la etiqueta están a sólo un clic de distancia."
651
+
652
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:288 Version\wck/wck-ctc.php:245
653
+ msgid "Labels"
654
+ msgstr "Etiquetas"
655
+
656
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:289
657
+ msgid ""
658
+ "For simplicity you are required to introduce only the Singular Label and "
659
+ "Plural Label from wchich the rest of the labels will be formed.<br />For a "
660
+ "more detailed control of the labels you just have to click the \"Show "
661
+ "Advanced Label Options\" link and all the availabel labels will be displayed."
662
+ msgstr ""
663
+ "Para simplicidad se requiere introducir sólo la etiqueta Singular y Plural "
664
+ "desde donde se formará el resto de las etiquetas. <br/> ¡Para un control más "
665
+ "detallado de las etiquetas, solo tienes que hacer clic en el enlace "
666
+ "\"Mostrar opciones avanzadas etiqueta\" y todas las etiquetas disponibles "
667
+ "serán mostradas."
668
+
669
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:294 Version\wck/wck-ctc.php:251
670
+ msgid "Advanced Options"
671
+ msgstr "Opciones avanzadas"
672
+
673
+ #: d:\!!!!!!!!!\Free Version\wck/wck-cptc.php:295
674
+ msgid ""
675
+ "The Advanced Options are set to the most common defaults for custom post "
676
+ "types. To display them click the \"Show Advanced Options\" link."
677
+ msgstr ""
678
+ "Las opciones avanzadas se establecen en los valores predeterminados más "
679
+ "comunes para este tipo de publicación personalizado. Para visualizarlos, "
680
+ "haga clic en el enlace \"Mostrar opciones avanzadas\"."
681
+
682
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:6
683
+ msgid "WCK Taxonomy Creator"
684
+ msgstr "WCK Taxonomy Creador"
685
+
686
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:7 Version\wck/wck-sas.php:95
687
+ msgid "Taxonomy Creator"
688
+ msgstr "Creador deTaxonomía"
689
+
690
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:35
691
+ msgid "Taxonomy"
692
+ msgstr "Taxonomía"
693
+
694
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:35
695
+ msgid ""
696
+ "(The name of the taxonomy. Name must not contain capital letters or spaces.)"
697
+ msgstr ""
698
+ "(El nombre de la taxonomía. El nombre no debe contener letras mayúsculas o "
699
+ "espacios.)"
700
+
701
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:36
702
+ msgid "ex. Writer"
703
+ msgstr "ej Escritor"
704
+
705
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:37
706
+ msgid "ex. Writers"
707
+ msgstr "ej. Escritores"
708
+
709
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:38
710
+ msgid "Attach to"
711
+ msgstr "Adjuntar a"
712
+
713
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:39
714
+ msgid ""
715
+ "Is this taxonomy hierarchical (have descendants) like categories or not "
716
+ "hierarchical like tags."
717
+ msgstr ""
718
+ "¿Es esta taxonomía jerárquica (tiene descendientes) como categorías o no "
719
+ "jerárquica como las etiquetas?"
720
+
721
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:41
722
+ msgid "ex. Search Writers"
723
+ msgstr "Ej. Buscar Escritores"
724
+
725
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:42
726
+ msgid "Popular Items"
727
+ msgstr "Artículos populares"
728
+
729
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:42
730
+ msgid "ex. Popular Writers"
731
+ msgstr "ej. Escritores populares"
732
+
733
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:43
734
+ msgid "ex. All Writers"
735
+ msgstr "ej. Todos los Escritores"
736
+
737
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:44
738
+ msgid "Parent Item"
739
+ msgstr "Artículo Padre"
740
+
741
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:44
742
+ msgid "ex. Parent Genre"
743
+ msgstr "ej. Género Padre"
744
+
745
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:45
746
+ msgid "ex. Parent Genre:"
747
+ msgstr "ej. Género Padre"
748
+
749
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:46
750
+ msgid "ex. Edit Writer"
751
+ msgstr "ej. Editar Escritor"
752
+
753
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:47
754
+ msgid "Update Item"
755
+ msgstr "Actualizar Artículo"
756
+
757
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:47
758
+ msgid "ex. Update Writer"
759
+ msgstr "ej. Actualizar Escritor"
760
+
761
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:48
762
+ msgid "ex. Add New Writer"
763
+ msgstr "ej. Añadir Nuevo Escritor"
764
+
765
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:49
766
+ msgid "New Item Name"
767
+ msgstr "Nuevo Nombre del elemento"
768
+
769
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:49
770
+ msgid "ex. New Writer Name"
771
+ msgstr "ej. Nuevo Nombre Escritor"
772
+
773
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:50
774
+ msgid "Separate Items With Commas"
775
+ msgstr "Separe el Nombre con comas"
776
+
777
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:50
778
+ msgid "ex. Separate writers with commas"
779
+ msgstr "ej. Separe Escritores con comas"
780
+
781
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:51
782
+ msgid "Add Or Remove Items"
783
+ msgstr "Añadir o eliminar elementos"
784
+
785
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:51
786
+ msgid "ex. Add or remove writers"
787
+ msgstr "ej. Añadir o eliminar escritores"
788
+
789
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:52
790
+ msgid "Choose From Most Used"
791
+ msgstr "Elegir de los más usados."
792
+
793
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:52
794
+ msgid "ex. Choose from the most used writers"
795
+ msgstr "ej Elija uno de los escritores más utilizados"
796
+
797
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:57
798
+ msgid "Show Tagcloud"
799
+ msgstr "Muestre Tagcloud"
800
+
801
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:57
802
+ msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
803
+ msgstr "Si permite que el Tag widget de nube utilice esta taxonomía."
804
+
805
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:62
806
+ msgid "Custom Taxonomy Creation"
807
+ msgstr "Creación de Taxonomía Personalizada"
808
+
809
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:85
810
+ msgid "Popular "
811
+ msgstr "Popular"
812
+
813
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:87 Version\wck/wck-ctc.php:88
814
+ msgid "Parent "
815
+ msgstr "Padre"
816
+
817
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:90
818
+ msgid "Update "
819
+ msgstr "Actualizar"
820
+
821
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:93
822
+ msgid "Separate "
823
+ msgstr "Separada"
824
+
825
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:94
826
+ msgid "Add or remove "
827
+ msgstr "Agregar o quitar"
828
+
829
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:95
830
+ msgid "Choose from the most used "
831
+ msgstr "Elija entre los más utilizados"
832
+
833
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:240
834
+ msgid ""
835
+ "WCK Custom Taxonomy Creator allows you to easily create custom taxonomy for "
836
+ "Wordpress without any programming knowledge.<br />Most of the common options "
837
+ "for creating a taxonomy are displayed by default while the advanced and "
838
+ "label options are just one click away."
839
+ msgstr ""
840
+ "WCK Custom Taxonomy Creador le permite crear fácilmente taxonomía "
841
+ "personalizada para Wordpress sin ningún conocimientos de programación. <br /"
842
+ "> La mayoría de las opciones comunes para la creación de una taxonomía se "
843
+ "muestran por defecto, mientras que las opciones avanzadas y etiquetas están "
844
+ "a sólo un clic de distancia."
845
+
846
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:246
847
+ msgid ""
848
+ "For simplicity you are required to introduce only the Singular Label and "
849
+ "Plural Label from wchich the rest of the labels will be formed.<br />For a "
850
+ "more detailed control of the labels you just have to click the \"Show "
851
+ "Advanced Label Options\" link and all the availabel labels will be displayed"
852
+ msgstr ""
853
+ "Por simplicidad, usted está obligado a introducir sólo la etiqueta Singular "
854
+ "y Plural desde donde el resto de las etiquetas se formará. <br /> ¡Para un "
855
+ "control más detallado de las etiquetas, solo tienes que hacer clic en el "
856
+ "enlace \"Mostrar opciones avanzadas de etiquetas\" y todas las etiquetas "
857
+ "disponibles se mostrarán"
858
+
859
+ #: d:\!!!!!!!!!\Free Version\wck/wck-ctc.php:252
860
+ msgid ""
861
+ "The Advanced Options are set to the most common defaults for taxonomies. To "
862
+ "display them click the \"Show Advanced Options\" link."
863
+ msgstr ""
864
+ "Las opciones avanzadas están ajustadas a los valores predeterminados comunes "
865
+ "para las taxonomías. Para visualizarlos, haga clic en el enlace \"Mostrar "
866
+ "opciones avanzadas\"."
867
+
868
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:15
869
+ msgid "Start Here & General Settings"
870
+ msgstr "Comience aquí y Ajustes generales"
871
+
872
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:16
873
+ msgid "Start and Settings"
874
+ msgstr "Inicio y Configuración"
875
+
876
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:34
877
+ msgid "Serial Number"
878
+ msgstr "Número de serie"
879
+
880
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:34
881
+ msgid ""
882
+ "Please enter your serial number. For example: (e.g. WCKPRO-11-"
883
+ "SN-251r55baa4fbe7bf595b2aabb8d72985)"
884
+ msgstr ""
885
+ "Introduzca su número de serie. Por ejemplo: (por ejemplo WCKPRO-11-"
886
+ "SN-251r55baa4fbe7bf595b2aabb8d72985)"
887
+
888
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:40
889
+ msgid "Register Your Version"
890
+ msgstr "Registre su Versión"
891
+
892
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:67
893
+ #, php-format
894
+ msgid "Welcome to %s"
895
+ msgstr "Bienvenido a %s"
896
+
897
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:68
898
+ msgid ""
899
+ "WCK helps you to improve the usability of the sites you build, making them "
900
+ "manageable by your clients. Your very own repeater custom fields and groups, "
901
+ "custom post type and taxonomy creator with front-end posting."
902
+ msgstr ""
903
+ "WCK le ayuda a mejorar la usabilidad de los sitios que usted construye, "
904
+ "haciéndolos manejables por sus clientes. . Sus propios campos y grupos "
905
+ "personalizados repetidor, el tipo de publicación personalizada y creador de "
906
+ "taxonomía con fijación frontal"
907
+
908
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:69
909
+ #, php-format
910
+ msgid "Version %s"
911
+ msgstr "Versión %s"
912
+
913
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:83
914
+ msgid "Quick Start-Up Guide"
915
+ msgstr "Quía Rápida de Inicio"
916
+
917
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:88
918
+ msgid ""
919
+ "WordPress Creation Kit Pro has support for a wide list of custom fields: "
920
+ "WYSIWYG Editor, Upload Field, Date, User, Country, Text Input, Textarea, "
921
+ "Drop-Down, Select, Checkboxes, Radio Buttons"
922
+ msgstr ""
923
+ "WordPress Creación Kit Pro tiene soporte para una amplia lista de campos "
924
+ "personalizados: Editor WYSIWYG, Subi campo, Fecha , Usuario, país, entrada "
925
+ "de texto, Área de texto, desplegable, Seleccionar, casillas de verificación, "
926
+ "botones de radio"
927
+
928
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:89
929
+ msgid ""
930
+ "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
931
+ "kit/custom-fields-creator/\" target=\"_blank\">here</a> about how to display "
932
+ "them in your templates."
933
+ msgstr ""
934
+ "Documentación de Access <a href = \"http://www.cozmoslabs.com/wordpress-"
935
+ "creation-kit/custom-fields-creator/ \"target=\"_blank\"> aquí </a> sobre "
936
+ "cómo mostrarlos en sus plantillas."
937
+
938
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:92
939
+ msgid "Create & manage all your custom content types"
940
+ msgstr "Crear y gestionar todos los tipos de contenido personalizado"
941
+
942
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:93
943
+ msgid ""
944
+ "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
945
+ "kit/custom-post-type-creator/\" target=\"_blank\">here</a> about how to "
946
+ "display them in your templates."
947
+ msgstr ""
948
+ "Documentación de acceso<a href=\"http://www.cozmoslabs.com/ wordpress-"
949
+ "creation-kit/custom-post-type-creator/\"target=\" _blank\"> aquí </a> sobre "
950
+ "cómo mostrarlos en sus plantillas."
951
+
952
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:96
953
+ msgid "Create new taxonomies for filtering your content"
954
+ msgstr "Crear nuevas taxonomías para el filtrado de su contenido"
955
+
956
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:97
957
+ msgid ""
958
+ "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
959
+ "kit/custom-taxonomy-creator/\" target=\"_blank\">here</a> about how to "
960
+ "display them in your templates."
961
+ msgstr ""
962
+ "Documentación de acceso a<a href=\"http://www.cozmoslabs.com/wordpress-"
963
+ "creation-kit/custom-taxonomy-creator/\" target=\"_blank\"> aquí </a> sobre "
964
+ "cómo mostrarlos en sus plantillas"
965
+
966
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:99
967
+ msgid "Front-End Posting (available in the Pro version)"
968
+ msgstr "Publicación Front-End (disponible en la versión Pro)"
969
+
970
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:100
971
+ msgid ""
972
+ "Create and edit posts/pages or custom posts directly from the front-end."
973
+ msgstr ""
974
+ "Crear y editar publicaciones / páginas o publicaciones personalizadas "
975
+ "directamente desde el front-end."
976
+
977
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:101
978
+ msgid "Available shortcodes:"
979
+ msgstr "Códigos cortos disponibles:"
980
+
981
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:103
982
+ msgid ""
983
+ "[fep form_name=\"front-end-post-name\"] - displayes your form in the front-"
984
+ "end"
985
+ msgstr ""
986
+ "[fep form_name=\"front-end-post-name\"] - muestra su formulario en el front-"
987
+ "end"
988
+
989
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:104
990
+ msgid ""
991
+ "[fep-dashboard] - the quick-dashboard allows: simple profile updates, "
992
+ "editing/deletion of posts, pages and custom post types."
993
+ msgstr ""
994
+ "[fep-dashboard] - el tablero rápido permite: actualizaciones de perfiles "
995
+ "simples, edición / borrado de publicaciones, páginas y tipos de publicación "
996
+ "personalizados"
997
+
998
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:105
999
+ msgid ""
1000
+ "[fep-lilo] - login/logout/register widget with the simple usage of a "
1001
+ "shortcode. Can be added in a page or text widget."
1002
+ msgstr ""
1003
+ "[fep-lilo] – widget login/logout/register con el simple uso de un shortcode. "
1004
+ "Se puede añadir en una página o widget de texto."
1005
+
1006
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:107
1007
+ msgid ""
1008
+ "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-"
1009
+ "kit/frontend-posting/\" target=\"_blank\">here</a> about how to display them "
1010
+ "in your templates."
1011
+ msgstr ""
1012
+ "Documentación de Acceso <a href=\"http://www.cozmoslabs.com/wordpress-"
1013
+ "creation-kit/frontend-posting/\" target=\"_blank\"> aquí </a> sobre cómo "
1014
+ "mostrarlos en sus plantillas."
1015
+
1016
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:109
1017
+ msgid "Option Pages (available in the Pro version)"
1018
+ msgstr "Páginas de opción (disponible en la versión Pro)"
1019
+
1020
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:110
1021
+ msgid ""
1022
+ "The Options Page Creator Allows you to create a new menu item called "
1023
+ "\"Options\"(for example) which can hold advanced custom field groups. "
1024
+ "Perfect for theme options or a simple UI for your custom plugin (like a "
1025
+ "simple testimonials section in the front-end)."
1026
+ msgstr ""
1027
+ "El Options Page Creator Permite crear un nuevo elemento del menú llamado "
1028
+ "\"Opciones\" (por ejemplo) que puede albergar grupos de campos "
1029
+ "personalizados avanzados. Perfecto para las opciones del tema o una interfaz "
1030
+ "de usuario simple para su complemento personalizado (como una sección de "
1031
+ "testimonios simple en el front-end)."
1032
+
1033
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:137
1034
+ msgid ""
1035
+ "Please enter your serial number to get access to automatic updates. If you "
1036
+ "do not have one, you can <a href=\"http://www.cozmoslabs.com/wordpress-"
1037
+ "creation-kit/\" target=\"_blank\">Get One Here</a>."
1038
+ msgstr ""
1039
+ "Introduzca, por favor su número de serie para tener acceso a las "
1040
+ "actualizaciones automáticas. Si usted no tiene uno, puede <a href=\"http://"
1041
+ "www.cozmoslabs.com/wordpress-creation-kit/\" target=\"_blank\"> conseguir "
1042
+ "uno aquí </a>."
1043
+
1044
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:139
1045
+ msgid "Oups! Our serial verification server is down. Please try again later."
1046
+ msgstr ""
1047
+ "¡Ups ! Nuestro servidor de verificación de serie se encuentra abajo. Por "
1048
+ "favor, inténtelo de nuevo más tarde."
1049
+
1050
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:141
1051
+ msgid ""
1052
+ "Oups! It seems the serial number you entered was not found in our database. "
1053
+ "To find out what's your serial number log-in to <a href=\"http://www."
1054
+ "cozmoslabs.com/account/\" target=\"_blank\">your account page</a> over at "
1055
+ "Cozmoslabs.com"
1056
+ msgstr ""
1057
+ "¡Ups! Al parecer, el número de serie que ha puesto no se encuentra en "
1058
+ "nuestra base de datos. Para saber cuál es el número de serie ingrese a <a "
1059
+ "href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\"> página de su "
1060
+ "cuenta </a> sobre al Cozmoslabs.com"
1061
+
1062
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:143
1063
+ msgid ""
1064
+ "Wohoo! Your serial number is valid and you have access to automatic updates."
1065
+ msgstr ""
1066
+ "Wohoo! Su número de serie es válido y tiene acceso a las actualizaciones "
1067
+ "automáticas."
1068
+
1069
+ #: d:\!!!!!!!!!\Free Version\wck/wck-sas.php:145
1070
+ msgid ""
1071
+ "It seems your serial number has <strong>expired</strong>. You'll continue to "
1072
+ "get automatic updates if update your serial number for another year from <a "
1073
+ "href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\"><strong>your "
1074
+ "account page</strong></a>."
1075
+ msgstr ""
1076
+ "Parece que su número de serie <strong> ha expirado </ strong>. Tendrá que "
1077
+ "continuar para obtener actualizaciones automáticas si actualizar su número "
1078
+ "de serie para otro año de <a href=\"http://www.cozmoslabs.com/account/\" "
1079
+ "target=\"_blank\"> <strong> su página de cuenta </ strong> </a>."
1080
+
1081
+ #: d:\!!!!!!!!!\Free
1082
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:282
1083
+ msgid "Add Entry"
1084
+ msgstr "Añadir entrada"
1085
+
1086
+ #: d:\!!!!!!!!!\Free
1087
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:332
1088
+ msgid "Save Changes"
1089
+ msgstr "Guardar cambios"
1090
+
1091
+ #: d:\!!!!!!!!!\Free
1092
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:333
1093
+ msgid "Cancel"
1094
+ msgstr "Cancelar"
1095
+
1096
+ #: d:\!!!!!!!!!\Free
1097
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1098
+ msgid "Content"
1099
+ msgstr "Contenido"
1100
+
1101
+ #: d:\!!!!!!!!!\Free
1102
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1103
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1104
+ msgid "Edit"
1105
+ msgstr "Editar"
1106
+
1107
+ #: d:\!!!!!!!!!\Free
1108
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1109
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1110
+ msgid "Delete"
1111
+ msgstr "Borrar"
1112
+
1113
+ #: d:\!!!!!!!!!\Free
1114
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1115
+ msgid "Edit this item"
1116
+ msgstr "Editar este artículo"
1117
+
1118
+ #: d:\!!!!!!!!!\Free
1119
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1120
+ msgid "Delete this item"
1121
+ msgstr "Borrar este artículo"
1122
+
1123
+ #: d:\!!!!!!!!!\Free
1124
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:506
1125
+ msgid "Please enter a value for the required field "
1126
+ msgstr "Por favor, introduzca un valor para el campo requerido"
1127
+
1128
+ #: d:\!!!!!!!!!\Free
1129
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:788
1130
+ msgid "Select File"
1131
+ msgstr "Seleccione Archivo"
1132
+
1133
+ #: d:\!!!!!!!!!\Free
1134
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:828
1135
+ #: Version\wck/wordpress-creation-kit-api/fields/upload.php:28
1136
+ msgid "Remove"
1137
+ msgstr "Eliminar"
1138
+
1139
+ #: d:\!!!!!!!!!\Free
1140
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:866
1141
+ msgid "Syncronize WCK"
1142
+ msgstr "Syncronizar WCK"
1143
+
1144
+ #: d:\!!!!!!!!!\Free
1145
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:878
1146
+ msgid "Syncronize WCK Translation"
1147
+ msgstr "Traducción Syncronizar WCK"
1148
+
1149
+ #: d:\!!!!!!!!!\Free
1150
+ #: Version\wck/wordpress-creation-kit-api/fields/select.php:11
1151
+ msgid "...Chose"
1152
+ msgstr "... Elija"
1153
+
1154
+ #: d:\!!!!!!!!!\Free
1155
+ #: Version\wck/wordpress-creation-kit-api/fields/upload.php:40
1156
+ msgid "Upload "
1157
+ msgstr "Subir"
languages/wck.pot CHANGED
@@ -1,1123 +1,1123 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: WCK\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-06-13 16:28+0200\n"
6
- "PO-Revision-Date: 2013-06-13 16:28+0200\n"
7
- "Last-Translator: \n"
8
- "Language-Team: \n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Poedit-SearchPath-0: d:\\!!!!!!!!!\\Free Version\\wck\n"
15
-
16
- #: d:\!!!!!!!!!\Free
17
- #: Version\wck/wck-cfc.php:26
18
- msgid "Add New Meta Box"
19
- msgstr ""
20
-
21
- #: d:\!!!!!!!!!\Free
22
- #: Version\wck/wck-cfc.php:27
23
- msgid "Edit Meta Box"
24
- msgstr ""
25
-
26
- #: d:\!!!!!!!!!\Free
27
- #: Version\wck/wck-cfc.php:28
28
- msgid "New Meta Box"
29
- msgstr ""
30
-
31
- #: d:\!!!!!!!!!\Free
32
- #: Version\wck/wck-cfc.php:29
33
- #: Version\wck/wck-sas.php:87
34
- msgid "Custom Fields Creator"
35
- msgstr ""
36
-
37
- #: d:\!!!!!!!!!\Free
38
- #: Version\wck/wck-cfc.php:30
39
- msgid "View Meta Box"
40
- msgstr ""
41
-
42
- #: d:\!!!!!!!!!\Free
43
- #: Version\wck/wck-cfc.php:31
44
- msgid "Search Meta Boxes"
45
- msgstr ""
46
-
47
- #: d:\!!!!!!!!!\Free
48
- #: Version\wck/wck-cfc.php:32
49
- msgid "No Meta Boxes found"
50
- msgstr ""
51
-
52
- #: d:\!!!!!!!!!\Free
53
- #: Version\wck/wck-cfc.php:33
54
- msgid "No Meta Boxes found in Trash"
55
- msgstr ""
56
-
57
- #: d:\!!!!!!!!!\Free
58
- #: Version\wck/wck-cfc.php:35
59
- msgid "Custom Meta Boxes"
60
- msgstr ""
61
-
62
- #: d:\!!!!!!!!!\Free
63
- #: Version\wck/wck-cfc.php:84
64
- msgid "Meta name"
65
- msgstr ""
66
-
67
- #: d:\!!!!!!!!!\Free
68
- #: Version\wck/wck-cfc.php:84
69
- msgid "The name of the meta field. It is the name by which you will query the data in the frontend. Must be unique, only lowercase letters, no spaces and no special characters."
70
- msgstr ""
71
-
72
- #: d:\!!!!!!!!!\Free
73
- #: Version\wck/wck-cfc.php:85
74
- #: Version\wck/wck-cfc.php:442
75
- msgid "Post Type"
76
- msgstr ""
77
-
78
- #: d:\!!!!!!!!!\Free
79
- #: Version\wck/wck-cfc.php:85
80
- msgid "What post type the meta box should be attached to"
81
- msgstr ""
82
-
83
- #: d:\!!!!!!!!!\Free
84
- #: Version\wck/wck-cfc.php:86
85
- msgid "Repeater"
86
- msgstr ""
87
-
88
- #: d:\!!!!!!!!!\Free
89
- #: Version\wck/wck-cfc.php:86
90
- msgid "Whether the box supports just one entry or if it is a repeater field. By default it is a single field."
91
- msgstr ""
92
-
93
- #: d:\!!!!!!!!!\Free
94
- #: Version\wck/wck-cfc.php:87
95
- msgid "Sortable"
96
- msgstr ""
97
-
98
- #: d:\!!!!!!!!!\Free
99
- #: Version\wck/wck-cfc.php:87
100
- msgid "Whether the entries are sortable or not. Thsi is valid for repeater fields."
101
- msgstr ""
102
-
103
- #: d:\!!!!!!!!!\Free
104
- #: Version\wck/wck-cfc.php:88
105
- msgid "Post ID"
106
- msgstr ""
107
-
108
- #: d:\!!!!!!!!!\Free
109
- #: Version\wck/wck-cfc.php:88
110
- msgid "ID of a post on which the meta box should appear."
111
- msgstr ""
112
-
113
- #: d:\!!!!!!!!!\Free
114
- #: Version\wck/wck-cfc.php:92
115
- #: Version\wck/wck-cfc.php:443
116
- msgid "Page Template"
117
- msgstr ""
118
-
119
- #: d:\!!!!!!!!!\Free
120
- #: Version\wck/wck-cfc.php:92
121
- msgid "If post type is \"page\" you can further select a page templete. The meta box will only appear on the page that has that selected page template."
122
- msgstr ""
123
-
124
- #: d:\!!!!!!!!!\Free
125
- #: Version\wck/wck-cfc.php:97
126
- #: Version\wck/wck-cfc.php:536
127
- msgid "Meta Box Arguments"
128
- msgstr ""
129
-
130
- #: d:\!!!!!!!!!\Free
131
- #: Version\wck/wck-cfc.php:114
132
- msgid "Field Title"
133
- msgstr ""
134
-
135
- #: d:\!!!!!!!!!\Free
136
- #: Version\wck/wck-cfc.php:114
137
- msgid "Title of the field. A slug will automatically be generated."
138
- msgstr ""
139
-
140
- #: d:\!!!!!!!!!\Free
141
- #: Version\wck/wck-cfc.php:115
142
- msgid "Field Type"
143
- msgstr ""
144
-
145
- #: d:\!!!!!!!!!\Free
146
- #: Version\wck/wck-cfc.php:115
147
- msgid "The field type"
148
- msgstr ""
149
-
150
- #: d:\!!!!!!!!!\Free
151
- #: Version\wck/wck-cfc.php:116
152
- #: Version\wck/wck-cptc.php:48
153
- msgid "Description"
154
- msgstr ""
155
-
156
- #: d:\!!!!!!!!!\Free
157
- #: Version\wck/wck-cfc.php:117
158
- msgid "Required"
159
- msgstr ""
160
-
161
- #: d:\!!!!!!!!!\Free
162
- #: Version\wck/wck-cfc.php:117
163
- msgid "Whether the field is required or not"
164
- msgstr ""
165
-
166
- #: d:\!!!!!!!!!\Free
167
- #: Version\wck/wck-cfc.php:118
168
- msgid "Default Value"
169
- msgstr ""
170
-
171
- #: d:\!!!!!!!!!\Free
172
- #: Version\wck/wck-cfc.php:118
173
- msgid "Default value of the field. For Checkboxes if there are multiple values separete them with a \",\""
174
- msgstr ""
175
-
176
- #: d:\!!!!!!!!!\Free
177
- #: Version\wck/wck-cfc.php:119
178
- msgid "Options"
179
- msgstr ""
180
-
181
- #: d:\!!!!!!!!!\Free
182
- #: Version\wck/wck-cfc.php:119
183
- msgid "Options for field types \"select\", \"checkbox\" and \"radio\". For multiple options separete them with a \",\". You can use the following structure if you want the label to be different from the value: %LabelOne%valueone,%LabelTwo%valuetwo,%LabelThree%valuethree"
184
- msgstr ""
185
-
186
- #: d:\!!!!!!!!!\Free
187
- #: Version\wck/wck-cfc.php:120
188
- msgid "Attach upload to post"
189
- msgstr ""
190
-
191
- #: d:\!!!!!!!!!\Free
192
- #: Version\wck/wck-cfc.php:120
193
- msgid "Whether or not the uploads should be attached to the post"
194
- msgstr ""
195
-
196
- #: d:\!!!!!!!!!\Free
197
- #: Version\wck/wck-cfc.php:127
198
- #: Version\wck/wck-cfc.php:542
199
- msgid "Meta Box Fields"
200
- msgstr ""
201
-
202
- #: d:\!!!!!!!!!\Free
203
- #: Version\wck/wck-cfc.php:140
204
- msgid "Enter below the arguments for the meta box."
205
- msgstr ""
206
-
207
- #: d:\!!!!!!!!!\Free
208
- #: Version\wck/wck-cfc.php:220
209
- msgid "Slug:"
210
- msgstr ""
211
-
212
- #: d:\!!!!!!!!!\Free
213
- #: Version\wck/wck-cfc.php:220
214
- msgid "(Note:changing the slug when you already have a lot of existing entries may result in unexpected behavior.)"
215
- msgstr ""
216
-
217
- #: d:\!!!!!!!!!\Free
218
- #: Version\wck/wck-cfc.php:355
219
- msgid "Choose a different Meta Name as this one contains spaces\n"
220
- msgstr ""
221
-
222
- #: d:\!!!!!!!!!\Free
223
- #: Version\wck/wck-cfc.php:357
224
- msgid "Choose a different Meta Name as this one already exists\n"
225
- msgstr ""
226
-
227
- #: d:\!!!!!!!!!\Free
228
- #: Version\wck/wck-cfc.php:441
229
- msgid "Id"
230
- msgstr ""
231
-
232
- #: d:\!!!!!!!!!\Free
233
- #: Version\wck/wck-cfc.php:506
234
- #: Version\wck/wck-cptc.php:257
235
- #: Version\wck/wck-ctc.php:215
236
- #: Version\wck/wck.php:38
237
- msgid "Wordpress Creation Kit"
238
- msgstr ""
239
-
240
- #: d:\!!!!!!!!!\Free
241
- #: Version\wck/wck-cfc.php:530
242
- #: Version\wck/wck-cptc.php:282
243
- #: Version\wck/wck-ctc.php:239
244
- msgid "Overview"
245
- msgstr ""
246
-
247
- #: d:\!!!!!!!!!\Free
248
- #: Version\wck/wck-cfc.php:531
249
- msgid "WCK Custom Fields Creator allows you to easily create custom meta boxes for Wordpress without any programming knowledge."
250
- msgstr ""
251
-
252
- #: d:\!!!!!!!!!\Free
253
- #: Version\wck/wck-cfc.php:537
254
- msgid "Define here the rules for the meta box. This rules are used to set up where the meta box will appear, it's type and also the meta key name stored in the database. The name of the entry (Enter title here) will be used as the meta box title."
255
- msgstr ""
256
-
257
- #: d:\!!!!!!!!!\Free
258
- #: Version\wck/wck-cfc.php:543
259
- msgid "Define here the fields contained in the meta box. From \"Field Title\" a slug will be automatically generated and you will use this slug to display the data in the frontend."
260
- msgstr ""
261
-
262
- #: d:\!!!!!!!!!\Free
263
- #: Version\wck/wck-cfc.php:548
264
- msgid "CFC Frontend Example"
265
- msgstr ""
266
-
267
- #: d:\!!!!!!!!!\Free
268
- #: Version\wck/wck-cfc.php:549
269
- msgid "Let's consider we have a meta box with the following arguments:<br /> - Meta name: books <br /> - Post Type: post <br />And we also have two fields deffined:<br /> - A text field with the Field Title: Book name <br /> - And another text field with the Field Title: Author name "
270
- msgstr ""
271
-
272
- #: d:\!!!!!!!!!\Free
273
- #: Version\wck/wck-cfc.php:549
274
- msgid "You will notice that slugs will automatically be created for the two text fields. For \"Book name\" the slug will be \"book-name\" and for \"Author name\" the slug will be \"author-name\""
275
- msgstr ""
276
-
277
- #: d:\!!!!!!!!!\Free
278
- #: Version\wck/wck-cfc.php:549
279
- msgid "Let's see what the code for displaying the meta box values in single.php of your theme would be:"
280
- msgstr ""
281
-
282
- #: d:\!!!!!!!!!\Free
283
- #: Version\wck/wck-cfc.php:549
284
- msgid "So as you can see the Meta Name \"books\" is used as the $key parameter of the funtion <a href=\"http://codex.wordpress.org/Function_Reference/get_post_meta\" target=\"_blank\">get_post_meta()</a> and the slugs of the text fields are used as keys for the resulting array. Basically CFC stores the entries as post meta in a multidimensioanl array. In our case the array would be: <br /><pre>array( array( \"book-name\" => \"The Hitchhiker's Guide To The Galaxy\", \"author-name\" => \"Douglas Adams\" ), array( \"book-name\" => \"Ender's Game\", \"author-name\" => \"Orson Scott Card\" ) );</pre> This is true even for single entries."
285
- msgstr ""
286
-
287
- #: d:\!!!!!!!!!\Free
288
- #: Version\wck/wck-cfc.php:577
289
- msgid "Metabox updated."
290
- msgstr ""
291
-
292
- #: d:\!!!!!!!!!\Free
293
- #: Version\wck/wck-cptc.php:6
294
- msgid "WCK Post Type Creator"
295
- msgstr ""
296
-
297
- #: d:\!!!!!!!!!\Free
298
- #: Version\wck/wck-cptc.php:7
299
- #: Version\wck/wck-sas.php:91
300
- msgid "Post Type Creator"
301
- msgstr ""
302
-
303
- #: d:\!!!!!!!!!\Free
304
- #: Version\wck/wck-cptc.php:47
305
- msgid "Post type"
306
- msgstr ""
307
-
308
- #: d:\!!!!!!!!!\Free
309
- #: Version\wck/wck-cptc.php:47
310
- msgid "(max. 20 characters, can not contain capital letters, hyphens, or spaces)"
311
- msgstr ""
312
-
313
- #: d:\!!!!!!!!!\Free
314
- #: Version\wck/wck-cptc.php:48
315
- msgid "A short descriptive summary of what the post type is."
316
- msgstr ""
317
-
318
- #: d:\!!!!!!!!!\Free
319
- #: Version\wck/wck-cptc.php:49
320
- #: Version\wck/wck-ctc.php:36
321
- msgid "Singular Label"
322
- msgstr ""
323
-
324
- #: d:\!!!!!!!!!\Free
325
- #: Version\wck/wck-cptc.php:49
326
- msgid "ex. Book"
327
- msgstr ""
328
-
329
- #: d:\!!!!!!!!!\Free
330
- #: Version\wck/wck-cptc.php:50
331
- #: Version\wck/wck-ctc.php:37
332
- msgid "Plural Label"
333
- msgstr ""
334
-
335
- #: d:\!!!!!!!!!\Free
336
- #: Version\wck/wck-cptc.php:50
337
- msgid "ex. Books"
338
- msgstr ""
339
-
340
- #: d:\!!!!!!!!!\Free
341
- #: Version\wck/wck-cptc.php:51
342
- #: Version\wck/wck-ctc.php:39
343
- msgid "Hierarchical"
344
- msgstr ""
345
-
346
- #: d:\!!!!!!!!!\Free
347
- #: Version\wck/wck-cptc.php:51
348
- msgid "Whether the post type is hierarchical. Allows Parent to be specified."
349
- msgstr ""
350
-
351
- #: d:\!!!!!!!!!\Free
352
- #: Version\wck/wck-cptc.php:52
353
- msgid "Has Archive"
354
- msgstr ""
355
-
356
- #: d:\!!!!!!!!!\Free
357
- #: Version\wck/wck-cptc.php:52
358
- msgid "Enables post type archives. Will use string as archive slug. Will generate the proper rewrite rules if rewrite is enabled."
359
- msgstr ""
360
-
361
- #: d:\!!!!!!!!!\Free
362
- #: Version\wck/wck-cptc.php:53
363
- msgid "Supports"
364
- msgstr ""
365
-
366
- #: d:\!!!!!!!!!\Free
367
- #: Version\wck/wck-cptc.php:56
368
- msgid "Add New"
369
- msgstr ""
370
-
371
- #: d:\!!!!!!!!!\Free
372
- #: Version\wck/wck-cptc.php:56
373
- msgid "ex. Add New"
374
- msgstr ""
375
-
376
- #: d:\!!!!!!!!!\Free
377
- #: Version\wck/wck-cptc.php:57
378
- #: Version\wck/wck-ctc.php:48
379
- msgid "Add New Item"
380
- msgstr ""
381
-
382
- #: d:\!!!!!!!!!\Free
383
- #: Version\wck/wck-cptc.php:57
384
- msgid "ex. Add New Book"
385
- msgstr ""
386
-
387
- #: d:\!!!!!!!!!\Free
388
- #: Version\wck/wck-cptc.php:58
389
- #: Version\wck/wck-ctc.php:46
390
- msgid "Edit Item"
391
- msgstr ""
392
-
393
- #: d:\!!!!!!!!!\Free
394
- #: Version\wck/wck-cptc.php:58
395
- msgid "ex. Edit Book"
396
- msgstr ""
397
-
398
- #: d:\!!!!!!!!!\Free
399
- #: Version\wck/wck-cptc.php:59
400
- msgid "New Item"
401
- msgstr ""
402
-
403
- #: d:\!!!!!!!!!\Free
404
- #: Version\wck/wck-cptc.php:59
405
- msgid "ex. New Book"
406
- msgstr ""
407
-
408
- #: d:\!!!!!!!!!\Free
409
- #: Version\wck/wck-cptc.php:60
410
- #: Version\wck/wck-ctc.php:43
411
- msgid "All Items"
412
- msgstr ""
413
-
414
- #: d:\!!!!!!!!!\Free
415
- #: Version\wck/wck-cptc.php:60
416
- msgid "ex. All Books"
417
- msgstr ""
418
-
419
- #: d:\!!!!!!!!!\Free
420
- #: Version\wck/wck-cptc.php:61
421
- msgid "View Items"
422
- msgstr ""
423
-
424
- #: d:\!!!!!!!!!\Free
425
- #: Version\wck/wck-cptc.php:61
426
- msgid "ex. View Books"
427
- msgstr ""
428
-
429
- #: d:\!!!!!!!!!\Free
430
- #: Version\wck/wck-cptc.php:62
431
- #: Version\wck/wck-ctc.php:41
432
- msgid "Search Items"
433
- msgstr ""
434
-
435
- #: d:\!!!!!!!!!\Free
436
- #: Version\wck/wck-cptc.php:62
437
- msgid "ex. Search Books"
438
- msgstr ""
439
-
440
- #: d:\!!!!!!!!!\Free
441
- #: Version\wck/wck-cptc.php:63
442
- msgid "Not Found"
443
- msgstr ""
444
-
445
- #: d:\!!!!!!!!!\Free
446
- #: Version\wck/wck-cptc.php:63
447
- msgid "ex. No Books Found"
448
- msgstr ""
449
-
450
- #: d:\!!!!!!!!!\Free
451
- #: Version\wck/wck-cptc.php:64
452
- msgid "Not Found In Trash"
453
- msgstr ""
454
-
455
- #: d:\!!!!!!!!!\Free
456
- #: Version\wck/wck-cptc.php:64
457
- msgid "ex. No Books found in Trash"
458
- msgstr ""
459
-
460
- #: d:\!!!!!!!!!\Free
461
- #: Version\wck/wck-cptc.php:65
462
- #: Version\wck/wck-ctc.php:45
463
- msgid "Parent Item Colon"
464
- msgstr ""
465
-
466
- #: d:\!!!!!!!!!\Free
467
- #: Version\wck/wck-cptc.php:65
468
- msgid "the parent text. This string isn't used on non-hierarchical types. In hierarchical ones the default is Parent Page "
469
- msgstr ""
470
-
471
- #: d:\!!!!!!!!!\Free
472
- #: Version\wck/wck-cptc.php:66
473
- #: Version\wck/wck-ctc.php:53
474
- msgid "Menu Name"
475
- msgstr ""
476
-
477
- #: d:\!!!!!!!!!\Free
478
- #: Version\wck/wck-cptc.php:68
479
- #: Version\wck/wck-ctc.php:55
480
- msgid "Public"
481
- msgstr ""
482
-
483
- #: d:\!!!!!!!!!\Free
484
- #: Version\wck/wck-cptc.php:68
485
- #: Version\wck/wck-ctc.php:55
486
- msgid "Meta argument used to define default values for publicly_queriable, show_ui, show_in_nav_menus and exclude_from_search"
487
- msgstr ""
488
-
489
- #: d:\!!!!!!!!!\Free
490
- #: Version\wck/wck-cptc.php:69
491
- #: Version\wck/wck-ctc.php:56
492
- msgid "Show UI"
493
- msgstr ""
494
-
495
- #: d:\!!!!!!!!!\Free
496
- #: Version\wck/wck-cptc.php:69
497
- #: Version\wck/wck-ctc.php:56
498
- msgid "Whether to generate a default UI for managing this post type."
499
- msgstr ""
500
-
501
- #: d:\!!!!!!!!!\Free
502
- #: Version\wck/wck-cptc.php:70
503
- msgid "Show In Nav Menus"
504
- msgstr ""
505
-
506
- #: d:\!!!!!!!!!\Free
507
- #: Version\wck/wck-cptc.php:70
508
- msgid "Whether post_type is available for selection in navigation menus."
509
- msgstr ""
510
-
511
- #: d:\!!!!!!!!!\Free
512
- #: Version\wck/wck-cptc.php:71
513
- msgid "Show In Menu"
514
- msgstr ""
515
-
516
- #: d:\!!!!!!!!!\Free
517
- #: Version\wck/wck-cptc.php:71
518
- msgid "Whether to show the post type in the admin menu. show_ui must be true. \"false\" - do not display in the admin menu, \"true\" - display as a top level menu, \"some string\" - If an existing top level page such as \"tools.php\" or \"edit.php?post_type=page\", the post type will be placed as a sub menu of that."
519
- msgstr ""
520
-
521
- #: d:\!!!!!!!!!\Free
522
- #: Version\wck/wck-cptc.php:72
523
- msgid "Menu Position"
524
- msgstr ""
525
-
526
- #: d:\!!!!!!!!!\Free
527
- #: Version\wck/wck-cptc.php:72
528
- msgid "The position in the menu order the post type should appear."
529
- msgstr ""
530
-
531
- #: d:\!!!!!!!!!\Free
532
- #: Version\wck/wck-cptc.php:73
533
- msgid "Menu Icon"
534
- msgstr ""
535
-
536
- #: d:\!!!!!!!!!\Free
537
- #: Version\wck/wck-cptc.php:73
538
- msgid "The url to the icon to be used for this menu."
539
- msgstr ""
540
-
541
- #: d:\!!!!!!!!!\Free
542
- #: Version\wck/wck-cptc.php:74
543
- msgid "Capability Type"
544
- msgstr ""
545
-
546
- #: d:\!!!!!!!!!\Free
547
- #: Version\wck/wck-cptc.php:74
548
- msgid "The string to use to build the read, edit, and delete capabilities."
549
- msgstr ""
550
-
551
- #: d:\!!!!!!!!!\Free
552
- #: Version\wck/wck-cptc.php:75
553
- msgid "Taxonomies"
554
- msgstr ""
555
-
556
- #: d:\!!!!!!!!!\Free
557
- #: Version\wck/wck-cptc.php:76
558
- msgid "Rewrite"
559
- msgstr ""
560
-
561
- #: d:\!!!!!!!!!\Free
562
- #: Version\wck/wck-cptc.php:76
563
- msgid "Rewrite permalinks."
564
- msgstr ""
565
-
566
- #: d:\!!!!!!!!!\Free
567
- #: Version\wck/wck-cptc.php:77
568
- msgid "Rewrite Slug"
569
- msgstr ""
570
-
571
- #: d:\!!!!!!!!!\Free
572
- #: Version\wck/wck-cptc.php:77
573
- msgid "Defaults to post type name."
574
- msgstr ""
575
-
576
- #: d:\!!!!!!!!!\Free
577
- #: Version\wck/wck-cptc.php:83
578
- msgid "Custom Post Type Creation"
579
- msgstr ""
580
-
581
- #: d:\!!!!!!!!!\Free
582
- #: Version\wck/wck-cptc.php:108
583
- #: Version\wck/wck-ctc.php:91
584
- msgid "Add New "
585
- msgstr ""
586
-
587
- #: d:\!!!!!!!!!\Free
588
- #: Version\wck/wck-cptc.php:109
589
- #: Version\wck/wck-ctc.php:89
590
- msgid "Edit "
591
- msgstr ""
592
-
593
- #: d:\!!!!!!!!!\Free
594
- #: Version\wck/wck-cptc.php:110
595
- #: Version\wck/wck-ctc.php:92
596
- msgid "New "
597
- msgstr ""
598
-
599
- #: d:\!!!!!!!!!\Free
600
- #: Version\wck/wck-cptc.php:111
601
- #: Version\wck/wck-ctc.php:86
602
- msgid "All "
603
- msgstr ""
604
-
605
- #: d:\!!!!!!!!!\Free
606
- #: Version\wck/wck-cptc.php:112
607
- msgid "View "
608
- msgstr ""
609
-
610
- #: d:\!!!!!!!!!\Free
611
- #: Version\wck/wck-cptc.php:113
612
- #: Version\wck/wck-ctc.php:84
613
- msgid "Search "
614
- msgstr ""
615
-
616
- #: d:\!!!!!!!!!\Free
617
- #: Version\wck/wck-cptc.php:114
618
- #: Version\wck/wck-cptc.php:115
619
- msgid "No "
620
- msgstr ""
621
-
622
- #: d:\!!!!!!!!!\Free
623
- #: Version\wck/wck-cptc.php:116
624
- msgid "Parent Page"
625
- msgstr ""
626
-
627
- #: d:\!!!!!!!!!\Free
628
- #: Version\wck/wck-cptc.php:169
629
- #: Version\wck/wck-cptc.php:193
630
- #: Version\wck/wck-ctc.php:134
631
- #: Version\wck/wck-ctc.php:158
632
- msgid "Show Advanced Label Options"
633
- msgstr ""
634
-
635
- #: d:\!!!!!!!!!\Free
636
- #: Version\wck/wck-cptc.php:169
637
- #: Version\wck/wck-cptc.php:193
638
- #: Version\wck/wck-ctc.php:134
639
- #: Version\wck/wck-ctc.php:158
640
- msgid "Hide Advanced Label Options"
641
- msgstr ""
642
-
643
- #: d:\!!!!!!!!!\Free
644
- #: Version\wck/wck-cptc.php:181
645
- #: Version\wck/wck-cptc.php:207
646
- #: Version\wck/wck-cptc.php:236
647
- #: Version\wck/wck-ctc.php:146
648
- #: Version\wck/wck-ctc.php:172
649
- #: Version\wck/wck-ctc.php:201
650
- msgid "Show Advanced Options"
651
- msgstr ""
652
-
653
- #: d:\!!!!!!!!!\Free
654
- #: Version\wck/wck-cptc.php:181
655
- #: Version\wck/wck-cptc.php:207
656
- #: Version\wck/wck-cptc.php:236
657
- #: Version\wck/wck-ctc.php:146
658
- #: Version\wck/wck-ctc.php:172
659
- #: Version\wck/wck-ctc.php:201
660
- msgid "Hide Advanced Options"
661
- msgstr ""
662
-
663
- #: d:\!!!!!!!!!\Free
664
- #: Version\wck/wck-cptc.php:222
665
- #: Version\wck/wck-ctc.php:187
666
- msgid "Show Advanced Labels"
667
- msgstr ""
668
-
669
- #: d:\!!!!!!!!!\Free
670
- #: Version\wck/wck-cptc.php:222
671
- #: Version\wck/wck-ctc.php:187
672
- msgid "Hide Advanced Labels"
673
- msgstr ""
674
-
675
- #: d:\!!!!!!!!!\Free
676
- #: Version\wck/wck-cptc.php:283
677
- msgid "WCK Custom Post Type Creator allows you to easily create custom post types for Wordpress without any programming knowledge.<br />Most of the common options for creating a post type are displayed by default while the advanced options and label are just one click away."
678
- msgstr ""
679
-
680
- #: d:\!!!!!!!!!\Free
681
- #: Version\wck/wck-cptc.php:288
682
- #: Version\wck/wck-ctc.php:245
683
- msgid "Labels"
684
- msgstr ""
685
-
686
- #: d:\!!!!!!!!!\Free
687
- #: Version\wck/wck-cptc.php:289
688
- msgid "For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the \"Show Advanced Label Options\" link and all the availabel labels will be displayed."
689
- msgstr ""
690
-
691
- #: d:\!!!!!!!!!\Free
692
- #: Version\wck/wck-cptc.php:294
693
- #: Version\wck/wck-ctc.php:251
694
- msgid "Advanced Options"
695
- msgstr ""
696
-
697
- #: d:\!!!!!!!!!\Free
698
- #: Version\wck/wck-cptc.php:295
699
- msgid "The Advanced Options are set to the most common defaults for custom post types. To display them click the \"Show Advanced Options\" link."
700
- msgstr ""
701
-
702
- #: d:\!!!!!!!!!\Free
703
- #: Version\wck/wck-ctc.php:6
704
- msgid "WCK Taxonomy Creator"
705
- msgstr ""
706
-
707
- #: d:\!!!!!!!!!\Free
708
- #: Version\wck/wck-ctc.php:7
709
- #: Version\wck/wck-sas.php:95
710
- msgid "Taxonomy Creator"
711
- msgstr ""
712
-
713
- #: d:\!!!!!!!!!\Free
714
- #: Version\wck/wck-ctc.php:35
715
- msgid "Taxonomy"
716
- msgstr ""
717
-
718
- #: d:\!!!!!!!!!\Free
719
- #: Version\wck/wck-ctc.php:35
720
- msgid "(The name of the taxonomy. Name must not contain capital letters or spaces.)"
721
- msgstr ""
722
-
723
- #: d:\!!!!!!!!!\Free
724
- #: Version\wck/wck-ctc.php:36
725
- msgid "ex. Writer"
726
- msgstr ""
727
-
728
- #: d:\!!!!!!!!!\Free
729
- #: Version\wck/wck-ctc.php:37
730
- msgid "ex. Writers"
731
- msgstr ""
732
-
733
- #: d:\!!!!!!!!!\Free
734
- #: Version\wck/wck-ctc.php:38
735
- msgid "Attach to"
736
- msgstr ""
737
-
738
- #: d:\!!!!!!!!!\Free
739
- #: Version\wck/wck-ctc.php:39
740
- msgid "Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags."
741
- msgstr ""
742
-
743
- #: d:\!!!!!!!!!\Free
744
- #: Version\wck/wck-ctc.php:41
745
- msgid "ex. Search Writers"
746
- msgstr ""
747
-
748
- #: d:\!!!!!!!!!\Free
749
- #: Version\wck/wck-ctc.php:42
750
- msgid "Popular Items"
751
- msgstr ""
752
-
753
- #: d:\!!!!!!!!!\Free
754
- #: Version\wck/wck-ctc.php:42
755
- msgid "ex. Popular Writers"
756
- msgstr ""
757
-
758
- #: d:\!!!!!!!!!\Free
759
- #: Version\wck/wck-ctc.php:43
760
- msgid "ex. All Writers"
761
- msgstr ""
762
-
763
- #: d:\!!!!!!!!!\Free
764
- #: Version\wck/wck-ctc.php:44
765
- msgid "Parent Item"
766
- msgstr ""
767
-
768
- #: d:\!!!!!!!!!\Free
769
- #: Version\wck/wck-ctc.php:44
770
- msgid "ex. Parent Genre"
771
- msgstr ""
772
-
773
- #: d:\!!!!!!!!!\Free
774
- #: Version\wck/wck-ctc.php:45
775
- msgid "ex. Parent Genre:"
776
- msgstr ""
777
-
778
- #: d:\!!!!!!!!!\Free
779
- #: Version\wck/wck-ctc.php:46
780
- msgid "ex. Edit Writer"
781
- msgstr ""
782
-
783
- #: d:\!!!!!!!!!\Free
784
- #: Version\wck/wck-ctc.php:47
785
- msgid "Update Item"
786
- msgstr ""
787
-
788
- #: d:\!!!!!!!!!\Free
789
- #: Version\wck/wck-ctc.php:47
790
- msgid "ex. Update Writer"
791
- msgstr ""
792
-
793
- #: d:\!!!!!!!!!\Free
794
- #: Version\wck/wck-ctc.php:48
795
- msgid "ex. Add New Writer"
796
- msgstr ""
797
-
798
- #: d:\!!!!!!!!!\Free
799
- #: Version\wck/wck-ctc.php:49
800
- msgid "New Item Name"
801
- msgstr ""
802
-
803
- #: d:\!!!!!!!!!\Free
804
- #: Version\wck/wck-ctc.php:49
805
- msgid "ex. New Writer Name"
806
- msgstr ""
807
-
808
- #: d:\!!!!!!!!!\Free
809
- #: Version\wck/wck-ctc.php:50
810
- msgid "Separate Items With Commas"
811
- msgstr ""
812
-
813
- #: d:\!!!!!!!!!\Free
814
- #: Version\wck/wck-ctc.php:50
815
- msgid "ex. Separate writers with commas"
816
- msgstr ""
817
-
818
- #: d:\!!!!!!!!!\Free
819
- #: Version\wck/wck-ctc.php:51
820
- msgid "Add Or Remove Items"
821
- msgstr ""
822
-
823
- #: d:\!!!!!!!!!\Free
824
- #: Version\wck/wck-ctc.php:51
825
- msgid "ex. Add or remove writers"
826
- msgstr ""
827
-
828
- #: d:\!!!!!!!!!\Free
829
- #: Version\wck/wck-ctc.php:52
830
- msgid "Choose From Most Used"
831
- msgstr ""
832
-
833
- #: d:\!!!!!!!!!\Free
834
- #: Version\wck/wck-ctc.php:52
835
- msgid "ex. Choose from the most used writers"
836
- msgstr ""
837
-
838
- #: d:\!!!!!!!!!\Free
839
- #: Version\wck/wck-ctc.php:57
840
- msgid "Show Tagcloud"
841
- msgstr ""
842
-
843
- #: d:\!!!!!!!!!\Free
844
- #: Version\wck/wck-ctc.php:57
845
- msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
846
- msgstr ""
847
-
848
- #: d:\!!!!!!!!!\Free
849
- #: Version\wck/wck-ctc.php:62
850
- msgid "Custom Taxonomy Creation"
851
- msgstr ""
852
-
853
- #: d:\!!!!!!!!!\Free
854
- #: Version\wck/wck-ctc.php:85
855
- msgid "Popular "
856
- msgstr ""
857
-
858
- #: d:\!!!!!!!!!\Free
859
- #: Version\wck/wck-ctc.php:87
860
- #: Version\wck/wck-ctc.php:88
861
- msgid "Parent "
862
- msgstr ""
863
-
864
- #: d:\!!!!!!!!!\Free
865
- #: Version\wck/wck-ctc.php:90
866
- msgid "Update "
867
- msgstr ""
868
-
869
- #: d:\!!!!!!!!!\Free
870
- #: Version\wck/wck-ctc.php:93
871
- msgid "Separate "
872
- msgstr ""
873
-
874
- #: d:\!!!!!!!!!\Free
875
- #: Version\wck/wck-ctc.php:94
876
- msgid "Add or remove "
877
- msgstr ""
878
-
879
- #: d:\!!!!!!!!!\Free
880
- #: Version\wck/wck-ctc.php:95
881
- msgid "Choose from the most used "
882
- msgstr ""
883
-
884
- #: d:\!!!!!!!!!\Free
885
- #: Version\wck/wck-ctc.php:240
886
- msgid "WCK Custom Taxonomy Creator allows you to easily create custom taxonomy for Wordpress without any programming knowledge.<br />Most of the common options for creating a taxonomy are displayed by default while the advanced and label options are just one click away."
887
- msgstr ""
888
-
889
- #: d:\!!!!!!!!!\Free
890
- #: Version\wck/wck-ctc.php:246
891
- msgid "For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the \"Show Advanced Label Options\" link and all the availabel labels will be displayed"
892
- msgstr ""
893
-
894
- #: d:\!!!!!!!!!\Free
895
- #: Version\wck/wck-ctc.php:252
896
- msgid "The Advanced Options are set to the most common defaults for taxonomies. To display them click the \"Show Advanced Options\" link."
897
- msgstr ""
898
-
899
- #: d:\!!!!!!!!!\Free
900
- #: Version\wck/wck-sas.php:15
901
- msgid "Start Here & General Settings"
902
- msgstr ""
903
-
904
- #: d:\!!!!!!!!!\Free
905
- #: Version\wck/wck-sas.php:16
906
- msgid "Start and Settings"
907
- msgstr ""
908
-
909
- #: d:\!!!!!!!!!\Free
910
- #: Version\wck/wck-sas.php:34
911
- msgid "Serial Number"
912
- msgstr ""
913
-
914
- #: d:\!!!!!!!!!\Free
915
- #: Version\wck/wck-sas.php:34
916
- msgid "Please enter your serial number. For example: (e.g. WCKPRO-11-SN-251r55baa4fbe7bf595b2aabb8d72985)"
917
- msgstr ""
918
-
919
- #: d:\!!!!!!!!!\Free
920
- #: Version\wck/wck-sas.php:40
921
- msgid "Register Your Version"
922
- msgstr ""
923
-
924
- #: d:\!!!!!!!!!\Free
925
- #: Version\wck/wck-sas.php:67
926
- #, php-format
927
- msgid "Welcome to %s"
928
- msgstr ""
929
-
930
- #: d:\!!!!!!!!!\Free
931
- #: Version\wck/wck-sas.php:68
932
- msgid "WCK helps you to improve the usability of the sites you build, making them manageable by your clients. Your very own repeater custom fields and groups, custom post type and taxonomy creator with front-end posting."
933
- msgstr ""
934
-
935
- #: d:\!!!!!!!!!\Free
936
- #: Version\wck/wck-sas.php:69
937
- #, php-format
938
- msgid "Version %s"
939
- msgstr ""
940
-
941
- #: d:\!!!!!!!!!\Free
942
- #: Version\wck/wck-sas.php:83
943
- msgid "Quick Start-Up Guide"
944
- msgstr ""
945
-
946
- #: d:\!!!!!!!!!\Free
947
- #: Version\wck/wck-sas.php:88
948
- msgid "WordPress Creation Kit Pro has support for a wide list of custom fields: WYSIWYG Editor, Upload Field, Date, User, Country, Text Input, Textarea, Drop-Down, Select, Checkboxes, Radio Buttons"
949
- msgstr ""
950
-
951
- #: d:\!!!!!!!!!\Free
952
- #: Version\wck/wck-sas.php:89
953
- msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/\" target=\"_blank\">here</a> about how to display them in your templates."
954
- msgstr ""
955
-
956
- #: d:\!!!!!!!!!\Free
957
- #: Version\wck/wck-sas.php:92
958
- msgid "Create & manage all your custom content types"
959
- msgstr ""
960
-
961
- #: d:\!!!!!!!!!\Free
962
- #: Version\wck/wck-sas.php:93
963
- msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/custom-post-type-creator/\" target=\"_blank\">here</a> about how to display them in your templates."
964
- msgstr ""
965
-
966
- #: d:\!!!!!!!!!\Free
967
- #: Version\wck/wck-sas.php:96
968
- msgid "Create new taxonomies for filtering your content"
969
- msgstr ""
970
-
971
- #: d:\!!!!!!!!!\Free
972
- #: Version\wck/wck-sas.php:97
973
- msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/custom-taxonomy-creator/\" target=\"_blank\">here</a> about how to display them in your templates."
974
- msgstr ""
975
-
976
- #: d:\!!!!!!!!!\Free
977
- #: Version\wck/wck-sas.php:99
978
- msgid "Front-End Posting (available in the Pro version)"
979
- msgstr ""
980
-
981
- #: d:\!!!!!!!!!\Free
982
- #: Version\wck/wck-sas.php:100
983
- msgid "Create and edit posts/pages or custom posts directly from the front-end."
984
- msgstr ""
985
-
986
- #: d:\!!!!!!!!!\Free
987
- #: Version\wck/wck-sas.php:101
988
- msgid "Available shortcodes:"
989
- msgstr ""
990
-
991
- #: d:\!!!!!!!!!\Free
992
- #: Version\wck/wck-sas.php:103
993
- msgid "[fep form_name=\"front-end-post-name\"] - displayes your form in the front-end"
994
- msgstr ""
995
-
996
- #: d:\!!!!!!!!!\Free
997
- #: Version\wck/wck-sas.php:104
998
- msgid "[fep-dashboard] - the quick-dashboard allows: simple profile updates, editing/deletion of posts, pages and custom post types."
999
- msgstr ""
1000
-
1001
- #: d:\!!!!!!!!!\Free
1002
- #: Version\wck/wck-sas.php:105
1003
- msgid "[fep-lilo] - login/logout/register widget with the simple usage of a shortcode. Can be added in a page or text widget."
1004
- msgstr ""
1005
-
1006
- #: d:\!!!!!!!!!\Free
1007
- #: Version\wck/wck-sas.php:107
1008
- msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/frontend-posting/\" target=\"_blank\">here</a> about how to display them in your templates."
1009
- msgstr ""
1010
-
1011
- #: d:\!!!!!!!!!\Free
1012
- #: Version\wck/wck-sas.php:109
1013
- msgid "Option Pages (available in the Pro version)"
1014
- msgstr ""
1015
-
1016
- #: d:\!!!!!!!!!\Free
1017
- #: Version\wck/wck-sas.php:110
1018
- msgid "The Options Page Creator Allows you to create a new menu item called \"Options\"(for example) which can hold advanced custom field groups. Perfect for theme options or a simple UI for your custom plugin (like a simple testimonials section in the front-end)."
1019
- msgstr ""
1020
-
1021
- #: d:\!!!!!!!!!\Free
1022
- #: Version\wck/wck-sas.php:137
1023
- msgid "Please enter your serial number to get access to automatic updates. If you do not have one, you can <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/\" target=\"_blank\">Get One Here</a>."
1024
- msgstr ""
1025
-
1026
- #: d:\!!!!!!!!!\Free
1027
- #: Version\wck/wck-sas.php:139
1028
- msgid "Oups! Our serial verification server is down. Please try again later."
1029
- msgstr ""
1030
-
1031
- #: d:\!!!!!!!!!\Free
1032
- #: Version\wck/wck-sas.php:141
1033
- msgid "Oups! It seems the serial number you entered was not found in our database. To find out what's your serial number log-in to <a href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\">your account page</a> over at Cozmoslabs.com"
1034
- msgstr ""
1035
-
1036
- #: d:\!!!!!!!!!\Free
1037
- #: Version\wck/wck-sas.php:143
1038
- msgid "Wohoo! Your serial number is valid and you have access to automatic updates."
1039
- msgstr ""
1040
-
1041
- #: d:\!!!!!!!!!\Free
1042
- #: Version\wck/wck-sas.php:145
1043
- msgid "It seems your serial number has <strong>expired</strong>. You'll continue to get automatic updates if update your serial number for another year from <a href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\"><strong>your account page</strong></a>."
1044
- msgstr ""
1045
-
1046
- #: d:\!!!!!!!!!\Free
1047
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:282
1048
- msgid "Add Entry"
1049
- msgstr ""
1050
-
1051
- #: d:\!!!!!!!!!\Free
1052
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:332
1053
- msgid "Save Changes"
1054
- msgstr ""
1055
-
1056
- #: d:\!!!!!!!!!\Free
1057
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:333
1058
- msgid "Cancel"
1059
- msgstr ""
1060
-
1061
- #: d:\!!!!!!!!!\Free
1062
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1063
- msgid "Content"
1064
- msgstr ""
1065
-
1066
- #: d:\!!!!!!!!!\Free
1067
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1068
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1069
- msgid "Edit"
1070
- msgstr ""
1071
-
1072
- #: d:\!!!!!!!!!\Free
1073
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1074
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1075
- msgid "Delete"
1076
- msgstr ""
1077
-
1078
- #: d:\!!!!!!!!!\Free
1079
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1080
- msgid "Edit this item"
1081
- msgstr ""
1082
-
1083
- #: d:\!!!!!!!!!\Free
1084
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1085
- msgid "Delete this item"
1086
- msgstr ""
1087
-
1088
- #: d:\!!!!!!!!!\Free
1089
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:506
1090
- msgid "Please enter a value for the required field "
1091
- msgstr ""
1092
-
1093
- #: d:\!!!!!!!!!\Free
1094
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:788
1095
- msgid "Select File"
1096
- msgstr ""
1097
-
1098
- #: d:\!!!!!!!!!\Free
1099
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:828
1100
- #: Version\wck/wordpress-creation-kit-api/fields/upload.php:28
1101
- msgid "Remove"
1102
- msgstr ""
1103
-
1104
- #: d:\!!!!!!!!!\Free
1105
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:866
1106
- msgid "Syncronize WCK"
1107
- msgstr ""
1108
-
1109
- #: d:\!!!!!!!!!\Free
1110
- #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:878
1111
- msgid "Syncronize WCK Translation"
1112
- msgstr ""
1113
-
1114
- #: d:\!!!!!!!!!\Free
1115
- #: Version\wck/wordpress-creation-kit-api/fields/select.php:11
1116
- msgid "...Chose"
1117
- msgstr ""
1118
-
1119
- #: d:\!!!!!!!!!\Free
1120
- #: Version\wck/wordpress-creation-kit-api/fields/upload.php:40
1121
- msgid "Upload "
1122
- msgstr ""
1123
-
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WCK\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-06-13 16:28+0200\n"
6
+ "PO-Revision-Date: 2013-06-13 16:28+0200\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: d:\\!!!!!!!!!\\Free Version\\wck\n"
15
+
16
+ #: d:\!!!!!!!!!\Free
17
+ #: Version\wck/wck-cfc.php:26
18
+ msgid "Add New Meta Box"
19
+ msgstr ""
20
+
21
+ #: d:\!!!!!!!!!\Free
22
+ #: Version\wck/wck-cfc.php:27
23
+ msgid "Edit Meta Box"
24
+ msgstr ""
25
+
26
+ #: d:\!!!!!!!!!\Free
27
+ #: Version\wck/wck-cfc.php:28
28
+ msgid "New Meta Box"
29
+ msgstr ""
30
+
31
+ #: d:\!!!!!!!!!\Free
32
+ #: Version\wck/wck-cfc.php:29
33
+ #: Version\wck/wck-sas.php:87
34
+ msgid "Custom Fields Creator"
35
+ msgstr ""
36
+
37
+ #: d:\!!!!!!!!!\Free
38
+ #: Version\wck/wck-cfc.php:30
39
+ msgid "View Meta Box"
40
+ msgstr ""
41
+
42
+ #: d:\!!!!!!!!!\Free
43
+ #: Version\wck/wck-cfc.php:31
44
+ msgid "Search Meta Boxes"
45
+ msgstr ""
46
+
47
+ #: d:\!!!!!!!!!\Free
48
+ #: Version\wck/wck-cfc.php:32
49
+ msgid "No Meta Boxes found"
50
+ msgstr ""
51
+
52
+ #: d:\!!!!!!!!!\Free
53
+ #: Version\wck/wck-cfc.php:33
54
+ msgid "No Meta Boxes found in Trash"
55
+ msgstr ""
56
+
57
+ #: d:\!!!!!!!!!\Free
58
+ #: Version\wck/wck-cfc.php:35
59
+ msgid "Custom Meta Boxes"
60
+ msgstr ""
61
+
62
+ #: d:\!!!!!!!!!\Free
63
+ #: Version\wck/wck-cfc.php:84
64
+ msgid "Meta name"
65
+ msgstr ""
66
+
67
+ #: d:\!!!!!!!!!\Free
68
+ #: Version\wck/wck-cfc.php:84
69
+ msgid "The name of the meta field. It is the name by which you will query the data in the frontend. Must be unique, only lowercase letters, no spaces and no special characters."
70
+ msgstr ""
71
+
72
+ #: d:\!!!!!!!!!\Free
73
+ #: Version\wck/wck-cfc.php:85
74
+ #: Version\wck/wck-cfc.php:442
75
+ msgid "Post Type"
76
+ msgstr ""
77
+
78
+ #: d:\!!!!!!!!!\Free
79
+ #: Version\wck/wck-cfc.php:85
80
+ msgid "What post type the meta box should be attached to"
81
+ msgstr ""
82
+
83
+ #: d:\!!!!!!!!!\Free
84
+ #: Version\wck/wck-cfc.php:86
85
+ msgid "Repeater"
86
+ msgstr ""
87
+
88
+ #: d:\!!!!!!!!!\Free
89
+ #: Version\wck/wck-cfc.php:86
90
+ msgid "Whether the box supports just one entry or if it is a repeater field. By default it is a single field."
91
+ msgstr ""
92
+
93
+ #: d:\!!!!!!!!!\Free
94
+ #: Version\wck/wck-cfc.php:87
95
+ msgid "Sortable"
96
+ msgstr ""
97
+
98
+ #: d:\!!!!!!!!!\Free
99
+ #: Version\wck/wck-cfc.php:87
100
+ msgid "Whether the entries are sortable or not. Thsi is valid for repeater fields."
101
+ msgstr ""
102
+
103
+ #: d:\!!!!!!!!!\Free
104
+ #: Version\wck/wck-cfc.php:88
105
+ msgid "Post ID"
106
+ msgstr ""
107
+
108
+ #: d:\!!!!!!!!!\Free
109
+ #: Version\wck/wck-cfc.php:88
110
+ msgid "ID of a post on which the meta box should appear."
111
+ msgstr ""
112
+
113
+ #: d:\!!!!!!!!!\Free
114
+ #: Version\wck/wck-cfc.php:92
115
+ #: Version\wck/wck-cfc.php:443
116
+ msgid "Page Template"
117
+ msgstr ""
118
+
119
+ #: d:\!!!!!!!!!\Free
120
+ #: Version\wck/wck-cfc.php:92
121
+ msgid "If post type is \"page\" you can further select a page templete. The meta box will only appear on the page that has that selected page template."
122
+ msgstr ""
123
+
124
+ #: d:\!!!!!!!!!\Free
125
+ #: Version\wck/wck-cfc.php:97
126
+ #: Version\wck/wck-cfc.php:536
127
+ msgid "Meta Box Arguments"
128
+ msgstr ""
129
+
130
+ #: d:\!!!!!!!!!\Free
131
+ #: Version\wck/wck-cfc.php:114
132
+ msgid "Field Title"
133
+ msgstr ""
134
+
135
+ #: d:\!!!!!!!!!\Free
136
+ #: Version\wck/wck-cfc.php:114
137
+ msgid "Title of the field. A slug will automatically be generated."
138
+ msgstr ""
139
+
140
+ #: d:\!!!!!!!!!\Free
141
+ #: Version\wck/wck-cfc.php:115
142
+ msgid "Field Type"
143
+ msgstr ""
144
+
145
+ #: d:\!!!!!!!!!\Free
146
+ #: Version\wck/wck-cfc.php:115
147
+ msgid "The field type"
148
+ msgstr ""
149
+
150
+ #: d:\!!!!!!!!!\Free
151
+ #: Version\wck/wck-cfc.php:116
152
+ #: Version\wck/wck-cptc.php:48
153
+ msgid "Description"
154
+ msgstr ""
155
+
156
+ #: d:\!!!!!!!!!\Free
157
+ #: Version\wck/wck-cfc.php:117
158
+ msgid "Required"
159
+ msgstr ""
160
+
161
+ #: d:\!!!!!!!!!\Free
162
+ #: Version\wck/wck-cfc.php:117
163
+ msgid "Whether the field is required or not"
164
+ msgstr ""
165
+
166
+ #: d:\!!!!!!!!!\Free
167
+ #: Version\wck/wck-cfc.php:118
168
+ msgid "Default Value"
169
+ msgstr ""
170
+
171
+ #: d:\!!!!!!!!!\Free
172
+ #: Version\wck/wck-cfc.php:118
173
+ msgid "Default value of the field. For Checkboxes if there are multiple values separete them with a \",\""
174
+ msgstr ""
175
+
176
+ #: d:\!!!!!!!!!\Free
177
+ #: Version\wck/wck-cfc.php:119
178
+ msgid "Options"
179
+ msgstr ""
180
+
181
+ #: d:\!!!!!!!!!\Free
182
+ #: Version\wck/wck-cfc.php:119
183
+ msgid "Options for field types \"select\", \"checkbox\" and \"radio\". For multiple options separete them with a \",\". You can use the following structure if you want the label to be different from the value: %LabelOne%valueone,%LabelTwo%valuetwo,%LabelThree%valuethree"
184
+ msgstr ""
185
+
186
+ #: d:\!!!!!!!!!\Free
187
+ #: Version\wck/wck-cfc.php:120
188
+ msgid "Attach upload to post"
189
+ msgstr ""
190
+
191
+ #: d:\!!!!!!!!!\Free
192
+ #: Version\wck/wck-cfc.php:120
193
+ msgid "Whether or not the uploads should be attached to the post"
194
+ msgstr ""
195
+
196
+ #: d:\!!!!!!!!!\Free
197
+ #: Version\wck/wck-cfc.php:127
198
+ #: Version\wck/wck-cfc.php:542
199
+ msgid "Meta Box Fields"
200
+ msgstr ""
201
+
202
+ #: d:\!!!!!!!!!\Free
203
+ #: Version\wck/wck-cfc.php:140
204
+ msgid "Enter below the arguments for the meta box."
205
+ msgstr ""
206
+
207
+ #: d:\!!!!!!!!!\Free
208
+ #: Version\wck/wck-cfc.php:220
209
+ msgid "Slug:"
210
+ msgstr ""
211
+
212
+ #: d:\!!!!!!!!!\Free
213
+ #: Version\wck/wck-cfc.php:220
214
+ msgid "(Note:changing the slug when you already have a lot of existing entries may result in unexpected behavior.)"
215
+ msgstr ""
216
+
217
+ #: d:\!!!!!!!!!\Free
218
+ #: Version\wck/wck-cfc.php:355
219
+ msgid "Choose a different Meta Name as this one contains spaces\n"
220
+ msgstr ""
221
+
222
+ #: d:\!!!!!!!!!\Free
223
+ #: Version\wck/wck-cfc.php:357
224
+ msgid "Choose a different Meta Name as this one already exists\n"
225
+ msgstr ""
226
+
227
+ #: d:\!!!!!!!!!\Free
228
+ #: Version\wck/wck-cfc.php:441
229
+ msgid "Id"
230
+ msgstr ""
231
+
232
+ #: d:\!!!!!!!!!\Free
233
+ #: Version\wck/wck-cfc.php:506
234
+ #: Version\wck/wck-cptc.php:257
235
+ #: Version\wck/wck-ctc.php:215
236
+ #: Version\wck/wck.php:38
237
+ msgid "Wordpress Creation Kit"
238
+ msgstr ""
239
+
240
+ #: d:\!!!!!!!!!\Free
241
+ #: Version\wck/wck-cfc.php:530
242
+ #: Version\wck/wck-cptc.php:282
243
+ #: Version\wck/wck-ctc.php:239
244
+ msgid "Overview"
245
+ msgstr ""
246
+
247
+ #: d:\!!!!!!!!!\Free
248
+ #: Version\wck/wck-cfc.php:531
249
+ msgid "WCK Custom Fields Creator allows you to easily create custom meta boxes for Wordpress without any programming knowledge."
250
+ msgstr ""
251
+
252
+ #: d:\!!!!!!!!!\Free
253
+ #: Version\wck/wck-cfc.php:537
254
+ msgid "Define here the rules for the meta box. This rules are used to set up where the meta box will appear, it's type and also the meta key name stored in the database. The name of the entry (Enter title here) will be used as the meta box title."
255
+ msgstr ""
256
+
257
+ #: d:\!!!!!!!!!\Free
258
+ #: Version\wck/wck-cfc.php:543
259
+ msgid "Define here the fields contained in the meta box. From \"Field Title\" a slug will be automatically generated and you will use this slug to display the data in the frontend."
260
+ msgstr ""
261
+
262
+ #: d:\!!!!!!!!!\Free
263
+ #: Version\wck/wck-cfc.php:548
264
+ msgid "CFC Frontend Example"
265
+ msgstr ""
266
+
267
+ #: d:\!!!!!!!!!\Free
268
+ #: Version\wck/wck-cfc.php:549
269
+ msgid "Let's consider we have a meta box with the following arguments:<br /> - Meta name: books <br /> - Post Type: post <br />And we also have two fields deffined:<br /> - A text field with the Field Title: Book name <br /> - And another text field with the Field Title: Author name "
270
+ msgstr ""
271
+
272
+ #: d:\!!!!!!!!!\Free
273
+ #: Version\wck/wck-cfc.php:549
274
+ msgid "You will notice that slugs will automatically be created for the two text fields. For \"Book name\" the slug will be \"book-name\" and for \"Author name\" the slug will be \"author-name\""
275
+ msgstr ""
276
+
277
+ #: d:\!!!!!!!!!\Free
278
+ #: Version\wck/wck-cfc.php:549
279
+ msgid "Let's see what the code for displaying the meta box values in single.php of your theme would be:"
280
+ msgstr ""
281
+
282
+ #: d:\!!!!!!!!!\Free
283
+ #: Version\wck/wck-cfc.php:549
284
+ msgid "So as you can see the Meta Name \"books\" is used as the $key parameter of the funtion <a href=\"http://codex.wordpress.org/Function_Reference/get_post_meta\" target=\"_blank\">get_post_meta()</a> and the slugs of the text fields are used as keys for the resulting array. Basically CFC stores the entries as post meta in a multidimensioanl array. In our case the array would be: <br /><pre>array( array( \"book-name\" => \"The Hitchhiker's Guide To The Galaxy\", \"author-name\" => \"Douglas Adams\" ), array( \"book-name\" => \"Ender's Game\", \"author-name\" => \"Orson Scott Card\" ) );</pre> This is true even for single entries."
285
+ msgstr ""
286
+
287
+ #: d:\!!!!!!!!!\Free
288
+ #: Version\wck/wck-cfc.php:577
289
+ msgid "Metabox updated."
290
+ msgstr ""
291
+
292
+ #: d:\!!!!!!!!!\Free
293
+ #: Version\wck/wck-cptc.php:6
294
+ msgid "WCK Post Type Creator"
295
+ msgstr ""
296
+
297
+ #: d:\!!!!!!!!!\Free
298
+ #: Version\wck/wck-cptc.php:7
299
+ #: Version\wck/wck-sas.php:91
300
+ msgid "Post Type Creator"
301
+ msgstr ""
302
+
303
+ #: d:\!!!!!!!!!\Free
304
+ #: Version\wck/wck-cptc.php:47
305
+ msgid "Post type"
306
+ msgstr ""
307
+
308
+ #: d:\!!!!!!!!!\Free
309
+ #: Version\wck/wck-cptc.php:47
310
+ msgid "(max. 20 characters, can not contain capital letters, hyphens, or spaces)"
311
+ msgstr ""
312
+
313
+ #: d:\!!!!!!!!!\Free
314
+ #: Version\wck/wck-cptc.php:48
315
+ msgid "A short descriptive summary of what the post type is."
316
+ msgstr ""
317
+
318
+ #: d:\!!!!!!!!!\Free
319
+ #: Version\wck/wck-cptc.php:49
320
+ #: Version\wck/wck-ctc.php:36
321
+ msgid "Singular Label"
322
+ msgstr ""
323
+
324
+ #: d:\!!!!!!!!!\Free
325
+ #: Version\wck/wck-cptc.php:49
326
+ msgid "ex. Book"
327
+ msgstr ""
328
+
329
+ #: d:\!!!!!!!!!\Free
330
+ #: Version\wck/wck-cptc.php:50
331
+ #: Version\wck/wck-ctc.php:37
332
+ msgid "Plural Label"
333
+ msgstr ""
334
+
335
+ #: d:\!!!!!!!!!\Free
336
+ #: Version\wck/wck-cptc.php:50
337
+ msgid "ex. Books"
338
+ msgstr ""
339
+
340
+ #: d:\!!!!!!!!!\Free
341
+ #: Version\wck/wck-cptc.php:51
342
+ #: Version\wck/wck-ctc.php:39
343
+ msgid "Hierarchical"
344
+ msgstr ""
345
+
346
+ #: d:\!!!!!!!!!\Free
347
+ #: Version\wck/wck-cptc.php:51
348
+ msgid "Whether the post type is hierarchical. Allows Parent to be specified."
349
+ msgstr ""
350
+
351
+ #: d:\!!!!!!!!!\Free
352
+ #: Version\wck/wck-cptc.php:52
353
+ msgid "Has Archive"
354
+ msgstr ""
355
+
356
+ #: d:\!!!!!!!!!\Free
357
+ #: Version\wck/wck-cptc.php:52
358
+ msgid "Enables post type archives. Will use string as archive slug. Will generate the proper rewrite rules if rewrite is enabled."
359
+ msgstr ""
360
+
361
+ #: d:\!!!!!!!!!\Free
362
+ #: Version\wck/wck-cptc.php:53
363
+ msgid "Supports"
364
+ msgstr ""
365
+
366
+ #: d:\!!!!!!!!!\Free
367
+ #: Version\wck/wck-cptc.php:56
368
+ msgid "Add New"
369
+ msgstr ""
370
+
371
+ #: d:\!!!!!!!!!\Free
372
+ #: Version\wck/wck-cptc.php:56
373
+ msgid "ex. Add New"
374
+ msgstr ""
375
+
376
+ #: d:\!!!!!!!!!\Free
377
+ #: Version\wck/wck-cptc.php:57
378
+ #: Version\wck/wck-ctc.php:48
379
+ msgid "Add New Item"
380
+ msgstr ""
381
+
382
+ #: d:\!!!!!!!!!\Free
383
+ #: Version\wck/wck-cptc.php:57
384
+ msgid "ex. Add New Book"
385
+ msgstr ""
386
+
387
+ #: d:\!!!!!!!!!\Free
388
+ #: Version\wck/wck-cptc.php:58
389
+ #: Version\wck/wck-ctc.php:46
390
+ msgid "Edit Item"
391
+ msgstr ""
392
+
393
+ #: d:\!!!!!!!!!\Free
394
+ #: Version\wck/wck-cptc.php:58
395
+ msgid "ex. Edit Book"
396
+ msgstr ""
397
+
398
+ #: d:\!!!!!!!!!\Free
399
+ #: Version\wck/wck-cptc.php:59
400
+ msgid "New Item"
401
+ msgstr ""
402
+
403
+ #: d:\!!!!!!!!!\Free
404
+ #: Version\wck/wck-cptc.php:59
405
+ msgid "ex. New Book"
406
+ msgstr ""
407
+
408
+ #: d:\!!!!!!!!!\Free
409
+ #: Version\wck/wck-cptc.php:60
410
+ #: Version\wck/wck-ctc.php:43
411
+ msgid "All Items"
412
+ msgstr ""
413
+
414
+ #: d:\!!!!!!!!!\Free
415
+ #: Version\wck/wck-cptc.php:60
416
+ msgid "ex. All Books"
417
+ msgstr ""
418
+
419
+ #: d:\!!!!!!!!!\Free
420
+ #: Version\wck/wck-cptc.php:61
421
+ msgid "View Items"
422
+ msgstr ""
423
+
424
+ #: d:\!!!!!!!!!\Free
425
+ #: Version\wck/wck-cptc.php:61
426
+ msgid "ex. View Books"
427
+ msgstr ""
428
+
429
+ #: d:\!!!!!!!!!\Free
430
+ #: Version\wck/wck-cptc.php:62
431
+ #: Version\wck/wck-ctc.php:41
432
+ msgid "Search Items"
433
+ msgstr ""
434
+
435
+ #: d:\!!!!!!!!!\Free
436
+ #: Version\wck/wck-cptc.php:62
437
+ msgid "ex. Search Books"
438
+ msgstr ""
439
+
440
+ #: d:\!!!!!!!!!\Free
441
+ #: Version\wck/wck-cptc.php:63
442
+ msgid "Not Found"
443
+ msgstr ""
444
+
445
+ #: d:\!!!!!!!!!\Free
446
+ #: Version\wck/wck-cptc.php:63
447
+ msgid "ex. No Books Found"
448
+ msgstr ""
449
+
450
+ #: d:\!!!!!!!!!\Free
451
+ #: Version\wck/wck-cptc.php:64
452
+ msgid "Not Found In Trash"
453
+ msgstr ""
454
+
455
+ #: d:\!!!!!!!!!\Free
456
+ #: Version\wck/wck-cptc.php:64
457
+ msgid "ex. No Books found in Trash"
458
+ msgstr ""
459
+
460
+ #: d:\!!!!!!!!!\Free
461
+ #: Version\wck/wck-cptc.php:65
462
+ #: Version\wck/wck-ctc.php:45
463
+ msgid "Parent Item Colon"
464
+ msgstr ""
465
+
466
+ #: d:\!!!!!!!!!\Free
467
+ #: Version\wck/wck-cptc.php:65
468
+ msgid "the parent text. This string isn't used on non-hierarchical types. In hierarchical ones the default is Parent Page "
469
+ msgstr ""
470
+
471
+ #: d:\!!!!!!!!!\Free
472
+ #: Version\wck/wck-cptc.php:66
473
+ #: Version\wck/wck-ctc.php:53
474
+ msgid "Menu Name"
475
+ msgstr ""
476
+
477
+ #: d:\!!!!!!!!!\Free
478
+ #: Version\wck/wck-cptc.php:68
479
+ #: Version\wck/wck-ctc.php:55
480
+ msgid "Public"
481
+ msgstr ""
482
+
483
+ #: d:\!!!!!!!!!\Free
484
+ #: Version\wck/wck-cptc.php:68
485
+ #: Version\wck/wck-ctc.php:55
486
+ msgid "Meta argument used to define default values for publicly_queriable, show_ui, show_in_nav_menus and exclude_from_search"
487
+ msgstr ""
488
+
489
+ #: d:\!!!!!!!!!\Free
490
+ #: Version\wck/wck-cptc.php:69
491
+ #: Version\wck/wck-ctc.php:56
492
+ msgid "Show UI"
493
+ msgstr ""
494
+
495
+ #: d:\!!!!!!!!!\Free
496
+ #: Version\wck/wck-cptc.php:69
497
+ #: Version\wck/wck-ctc.php:56
498
+ msgid "Whether to generate a default UI for managing this post type."
499
+ msgstr ""
500
+
501
+ #: d:\!!!!!!!!!\Free
502
+ #: Version\wck/wck-cptc.php:70
503
+ msgid "Show In Nav Menus"
504
+ msgstr ""
505
+
506
+ #: d:\!!!!!!!!!\Free
507
+ #: Version\wck/wck-cptc.php:70
508
+ msgid "Whether post_type is available for selection in navigation menus."
509
+ msgstr ""
510
+
511
+ #: d:\!!!!!!!!!\Free
512
+ #: Version\wck/wck-cptc.php:71
513
+ msgid "Show In Menu"
514
+ msgstr ""
515
+
516
+ #: d:\!!!!!!!!!\Free
517
+ #: Version\wck/wck-cptc.php:71
518
+ msgid "Whether to show the post type in the admin menu. show_ui must be true. \"false\" - do not display in the admin menu, \"true\" - display as a top level menu, \"some string\" - If an existing top level page such as \"tools.php\" or \"edit.php?post_type=page\", the post type will be placed as a sub menu of that."
519
+ msgstr ""
520
+
521
+ #: d:\!!!!!!!!!\Free
522
+ #: Version\wck/wck-cptc.php:72
523
+ msgid "Menu Position"
524
+ msgstr ""
525
+
526
+ #: d:\!!!!!!!!!\Free
527
+ #: Version\wck/wck-cptc.php:72
528
+ msgid "The position in the menu order the post type should appear."
529
+ msgstr ""
530
+
531
+ #: d:\!!!!!!!!!\Free
532
+ #: Version\wck/wck-cptc.php:73
533
+ msgid "Menu Icon"
534
+ msgstr ""
535
+
536
+ #: d:\!!!!!!!!!\Free
537
+ #: Version\wck/wck-cptc.php:73
538
+ msgid "The url to the icon to be used for this menu."
539
+ msgstr ""
540
+
541
+ #: d:\!!!!!!!!!\Free
542
+ #: Version\wck/wck-cptc.php:74
543
+ msgid "Capability Type"
544
+ msgstr ""
545
+
546
+ #: d:\!!!!!!!!!\Free
547
+ #: Version\wck/wck-cptc.php:74
548
+ msgid "The string to use to build the read, edit, and delete capabilities."
549
+ msgstr ""
550
+
551
+ #: d:\!!!!!!!!!\Free
552
+ #: Version\wck/wck-cptc.php:75
553
+ msgid "Taxonomies"
554
+ msgstr ""
555
+
556
+ #: d:\!!!!!!!!!\Free
557
+ #: Version\wck/wck-cptc.php:76
558
+ msgid "Rewrite"
559
+ msgstr ""
560
+
561
+ #: d:\!!!!!!!!!\Free
562
+ #: Version\wck/wck-cptc.php:76
563
+ msgid "Rewrite permalinks."
564
+ msgstr ""
565
+
566
+ #: d:\!!!!!!!!!\Free
567
+ #: Version\wck/wck-cptc.php:77
568
+ msgid "Rewrite Slug"
569
+ msgstr ""
570
+
571
+ #: d:\!!!!!!!!!\Free
572
+ #: Version\wck/wck-cptc.php:77
573
+ msgid "Defaults to post type name."
574
+ msgstr ""
575
+
576
+ #: d:\!!!!!!!!!\Free
577
+ #: Version\wck/wck-cptc.php:83
578
+ msgid "Custom Post Type Creation"
579
+ msgstr ""
580
+
581
+ #: d:\!!!!!!!!!\Free
582
+ #: Version\wck/wck-cptc.php:108
583
+ #: Version\wck/wck-ctc.php:91
584
+ msgid "Add New "
585
+ msgstr ""
586
+
587
+ #: d:\!!!!!!!!!\Free
588
+ #: Version\wck/wck-cptc.php:109
589
+ #: Version\wck/wck-ctc.php:89
590
+ msgid "Edit "
591
+ msgstr ""
592
+
593
+ #: d:\!!!!!!!!!\Free
594
+ #: Version\wck/wck-cptc.php:110
595
+ #: Version\wck/wck-ctc.php:92
596
+ msgid "New "
597
+ msgstr ""
598
+
599
+ #: d:\!!!!!!!!!\Free
600
+ #: Version\wck/wck-cptc.php:111
601
+ #: Version\wck/wck-ctc.php:86
602
+ msgid "All "
603
+ msgstr ""
604
+
605
+ #: d:\!!!!!!!!!\Free
606
+ #: Version\wck/wck-cptc.php:112
607
+ msgid "View "
608
+ msgstr ""
609
+
610
+ #: d:\!!!!!!!!!\Free
611
+ #: Version\wck/wck-cptc.php:113
612
+ #: Version\wck/wck-ctc.php:84
613
+ msgid "Search "
614
+ msgstr ""
615
+
616
+ #: d:\!!!!!!!!!\Free
617
+ #: Version\wck/wck-cptc.php:114
618
+ #: Version\wck/wck-cptc.php:115
619
+ msgid "No "
620
+ msgstr ""
621
+
622
+ #: d:\!!!!!!!!!\Free
623
+ #: Version\wck/wck-cptc.php:116
624
+ msgid "Parent Page"
625
+ msgstr ""
626
+
627
+ #: d:\!!!!!!!!!\Free
628
+ #: Version\wck/wck-cptc.php:169
629
+ #: Version\wck/wck-cptc.php:193
630
+ #: Version\wck/wck-ctc.php:134
631
+ #: Version\wck/wck-ctc.php:158
632
+ msgid "Show Advanced Label Options"
633
+ msgstr ""
634
+
635
+ #: d:\!!!!!!!!!\Free
636
+ #: Version\wck/wck-cptc.php:169
637
+ #: Version\wck/wck-cptc.php:193
638
+ #: Version\wck/wck-ctc.php:134
639
+ #: Version\wck/wck-ctc.php:158
640
+ msgid "Hide Advanced Label Options"
641
+ msgstr ""
642
+
643
+ #: d:\!!!!!!!!!\Free
644
+ #: Version\wck/wck-cptc.php:181
645
+ #: Version\wck/wck-cptc.php:207
646
+ #: Version\wck/wck-cptc.php:236
647
+ #: Version\wck/wck-ctc.php:146
648
+ #: Version\wck/wck-ctc.php:172
649
+ #: Version\wck/wck-ctc.php:201
650
+ msgid "Show Advanced Options"
651
+ msgstr ""
652
+
653
+ #: d:\!!!!!!!!!\Free
654
+ #: Version\wck/wck-cptc.php:181
655
+ #: Version\wck/wck-cptc.php:207
656
+ #: Version\wck/wck-cptc.php:236
657
+ #: Version\wck/wck-ctc.php:146
658
+ #: Version\wck/wck-ctc.php:172
659
+ #: Version\wck/wck-ctc.php:201
660
+ msgid "Hide Advanced Options"
661
+ msgstr ""
662
+
663
+ #: d:\!!!!!!!!!\Free
664
+ #: Version\wck/wck-cptc.php:222
665
+ #: Version\wck/wck-ctc.php:187
666
+ msgid "Show Advanced Labels"
667
+ msgstr ""
668
+
669
+ #: d:\!!!!!!!!!\Free
670
+ #: Version\wck/wck-cptc.php:222
671
+ #: Version\wck/wck-ctc.php:187
672
+ msgid "Hide Advanced Labels"
673
+ msgstr ""
674
+
675
+ #: d:\!!!!!!!!!\Free
676
+ #: Version\wck/wck-cptc.php:283
677
+ msgid "WCK Custom Post Type Creator allows you to easily create custom post types for Wordpress without any programming knowledge.<br />Most of the common options for creating a post type are displayed by default while the advanced options and label are just one click away."
678
+ msgstr ""
679
+
680
+ #: d:\!!!!!!!!!\Free
681
+ #: Version\wck/wck-cptc.php:288
682
+ #: Version\wck/wck-ctc.php:245
683
+ msgid "Labels"
684
+ msgstr ""
685
+
686
+ #: d:\!!!!!!!!!\Free
687
+ #: Version\wck/wck-cptc.php:289
688
+ msgid "For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the \"Show Advanced Label Options\" link and all the availabel labels will be displayed."
689
+ msgstr ""
690
+
691
+ #: d:\!!!!!!!!!\Free
692
+ #: Version\wck/wck-cptc.php:294
693
+ #: Version\wck/wck-ctc.php:251
694
+ msgid "Advanced Options"
695
+ msgstr ""
696
+
697
+ #: d:\!!!!!!!!!\Free
698
+ #: Version\wck/wck-cptc.php:295
699
+ msgid "The Advanced Options are set to the most common defaults for custom post types. To display them click the \"Show Advanced Options\" link."
700
+ msgstr ""
701
+
702
+ #: d:\!!!!!!!!!\Free
703
+ #: Version\wck/wck-ctc.php:6
704
+ msgid "WCK Taxonomy Creator"
705
+ msgstr ""
706
+
707
+ #: d:\!!!!!!!!!\Free
708
+ #: Version\wck/wck-ctc.php:7
709
+ #: Version\wck/wck-sas.php:95
710
+ msgid "Taxonomy Creator"
711
+ msgstr ""
712
+
713
+ #: d:\!!!!!!!!!\Free
714
+ #: Version\wck/wck-ctc.php:35
715
+ msgid "Taxonomy"
716
+ msgstr ""
717
+
718
+ #: d:\!!!!!!!!!\Free
719
+ #: Version\wck/wck-ctc.php:35
720
+ msgid "(The name of the taxonomy. Name must not contain capital letters or spaces.)"
721
+ msgstr ""
722
+
723
+ #: d:\!!!!!!!!!\Free
724
+ #: Version\wck/wck-ctc.php:36
725
+ msgid "ex. Writer"
726
+ msgstr ""
727
+
728
+ #: d:\!!!!!!!!!\Free
729
+ #: Version\wck/wck-ctc.php:37
730
+ msgid "ex. Writers"
731
+ msgstr ""
732
+
733
+ #: d:\!!!!!!!!!\Free
734
+ #: Version\wck/wck-ctc.php:38
735
+ msgid "Attach to"
736
+ msgstr ""
737
+
738
+ #: d:\!!!!!!!!!\Free
739
+ #: Version\wck/wck-ctc.php:39
740
+ msgid "Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags."
741
+ msgstr ""
742
+
743
+ #: d:\!!!!!!!!!\Free
744
+ #: Version\wck/wck-ctc.php:41
745
+ msgid "ex. Search Writers"
746
+ msgstr ""
747
+
748
+ #: d:\!!!!!!!!!\Free
749
+ #: Version\wck/wck-ctc.php:42
750
+ msgid "Popular Items"
751
+ msgstr ""
752
+
753
+ #: d:\!!!!!!!!!\Free
754
+ #: Version\wck/wck-ctc.php:42
755
+ msgid "ex. Popular Writers"
756
+ msgstr ""
757
+
758
+ #: d:\!!!!!!!!!\Free
759
+ #: Version\wck/wck-ctc.php:43
760
+ msgid "ex. All Writers"
761
+ msgstr ""
762
+
763
+ #: d:\!!!!!!!!!\Free
764
+ #: Version\wck/wck-ctc.php:44
765
+ msgid "Parent Item"
766
+ msgstr ""
767
+
768
+ #: d:\!!!!!!!!!\Free
769
+ #: Version\wck/wck-ctc.php:44
770
+ msgid "ex. Parent Genre"
771
+ msgstr ""
772
+
773
+ #: d:\!!!!!!!!!\Free
774
+ #: Version\wck/wck-ctc.php:45
775
+ msgid "ex. Parent Genre:"
776
+ msgstr ""
777
+
778
+ #: d:\!!!!!!!!!\Free
779
+ #: Version\wck/wck-ctc.php:46
780
+ msgid "ex. Edit Writer"
781
+ msgstr ""
782
+
783
+ #: d:\!!!!!!!!!\Free
784
+ #: Version\wck/wck-ctc.php:47
785
+ msgid "Update Item"
786
+ msgstr ""
787
+
788
+ #: d:\!!!!!!!!!\Free
789
+ #: Version\wck/wck-ctc.php:47
790
+ msgid "ex. Update Writer"
791
+ msgstr ""
792
+
793
+ #: d:\!!!!!!!!!\Free
794
+ #: Version\wck/wck-ctc.php:48
795
+ msgid "ex. Add New Writer"
796
+ msgstr ""
797
+
798
+ #: d:\!!!!!!!!!\Free
799
+ #: Version\wck/wck-ctc.php:49
800
+ msgid "New Item Name"
801
+ msgstr ""
802
+
803
+ #: d:\!!!!!!!!!\Free
804
+ #: Version\wck/wck-ctc.php:49
805
+ msgid "ex. New Writer Name"
806
+ msgstr ""
807
+
808
+ #: d:\!!!!!!!!!\Free
809
+ #: Version\wck/wck-ctc.php:50
810
+ msgid "Separate Items With Commas"
811
+ msgstr ""
812
+
813
+ #: d:\!!!!!!!!!\Free
814
+ #: Version\wck/wck-ctc.php:50
815
+ msgid "ex. Separate writers with commas"
816
+ msgstr ""
817
+
818
+ #: d:\!!!!!!!!!\Free
819
+ #: Version\wck/wck-ctc.php:51
820
+ msgid "Add Or Remove Items"
821
+ msgstr ""
822
+
823
+ #: d:\!!!!!!!!!\Free
824
+ #: Version\wck/wck-ctc.php:51
825
+ msgid "ex. Add or remove writers"
826
+ msgstr ""
827
+
828
+ #: d:\!!!!!!!!!\Free
829
+ #: Version\wck/wck-ctc.php:52
830
+ msgid "Choose From Most Used"
831
+ msgstr ""
832
+
833
+ #: d:\!!!!!!!!!\Free
834
+ #: Version\wck/wck-ctc.php:52
835
+ msgid "ex. Choose from the most used writers"
836
+ msgstr ""
837
+
838
+ #: d:\!!!!!!!!!\Free
839
+ #: Version\wck/wck-ctc.php:57
840
+ msgid "Show Tagcloud"
841
+ msgstr ""
842
+
843
+ #: d:\!!!!!!!!!\Free
844
+ #: Version\wck/wck-ctc.php:57
845
+ msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
846
+ msgstr ""
847
+
848
+ #: d:\!!!!!!!!!\Free
849
+ #: Version\wck/wck-ctc.php:62
850
+ msgid "Custom Taxonomy Creation"
851
+ msgstr ""
852
+
853
+ #: d:\!!!!!!!!!\Free
854
+ #: Version\wck/wck-ctc.php:85
855
+ msgid "Popular "
856
+ msgstr ""
857
+
858
+ #: d:\!!!!!!!!!\Free
859
+ #: Version\wck/wck-ctc.php:87
860
+ #: Version\wck/wck-ctc.php:88
861
+ msgid "Parent "
862
+ msgstr ""
863
+
864
+ #: d:\!!!!!!!!!\Free
865
+ #: Version\wck/wck-ctc.php:90
866
+ msgid "Update "
867
+ msgstr ""
868
+
869
+ #: d:\!!!!!!!!!\Free
870
+ #: Version\wck/wck-ctc.php:93
871
+ msgid "Separate "
872
+ msgstr ""
873
+
874
+ #: d:\!!!!!!!!!\Free
875
+ #: Version\wck/wck-ctc.php:94
876
+ msgid "Add or remove "
877
+ msgstr ""
878
+
879
+ #: d:\!!!!!!!!!\Free
880
+ #: Version\wck/wck-ctc.php:95
881
+ msgid "Choose from the most used "
882
+ msgstr ""
883
+
884
+ #: d:\!!!!!!!!!\Free
885
+ #: Version\wck/wck-ctc.php:240
886
+ msgid "WCK Custom Taxonomy Creator allows you to easily create custom taxonomy for Wordpress without any programming knowledge.<br />Most of the common options for creating a taxonomy are displayed by default while the advanced and label options are just one click away."
887
+ msgstr ""
888
+
889
+ #: d:\!!!!!!!!!\Free
890
+ #: Version\wck/wck-ctc.php:246
891
+ msgid "For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the \"Show Advanced Label Options\" link and all the availabel labels will be displayed"
892
+ msgstr ""
893
+
894
+ #: d:\!!!!!!!!!\Free
895
+ #: Version\wck/wck-ctc.php:252
896
+ msgid "The Advanced Options are set to the most common defaults for taxonomies. To display them click the \"Show Advanced Options\" link."
897
+ msgstr ""
898
+
899
+ #: d:\!!!!!!!!!\Free
900
+ #: Version\wck/wck-sas.php:15
901
+ msgid "Start Here & General Settings"
902
+ msgstr ""
903
+
904
+ #: d:\!!!!!!!!!\Free
905
+ #: Version\wck/wck-sas.php:16
906
+ msgid "Start and Settings"
907
+ msgstr ""
908
+
909
+ #: d:\!!!!!!!!!\Free
910
+ #: Version\wck/wck-sas.php:34
911
+ msgid "Serial Number"
912
+ msgstr ""
913
+
914
+ #: d:\!!!!!!!!!\Free
915
+ #: Version\wck/wck-sas.php:34
916
+ msgid "Please enter your serial number. For example: (e.g. WCKPRO-11-SN-251r55baa4fbe7bf595b2aabb8d72985)"
917
+ msgstr ""
918
+
919
+ #: d:\!!!!!!!!!\Free
920
+ #: Version\wck/wck-sas.php:40
921
+ msgid "Register Your Version"
922
+ msgstr ""
923
+
924
+ #: d:\!!!!!!!!!\Free
925
+ #: Version\wck/wck-sas.php:67
926
+ #, php-format
927
+ msgid "Welcome to %s"
928
+ msgstr ""
929
+
930
+ #: d:\!!!!!!!!!\Free
931
+ #: Version\wck/wck-sas.php:68
932
+ msgid "WCK helps you to improve the usability of the sites you build, making them manageable by your clients. Your very own repeater custom fields and groups, custom post type and taxonomy creator with front-end posting."
933
+ msgstr ""
934
+
935
+ #: d:\!!!!!!!!!\Free
936
+ #: Version\wck/wck-sas.php:69
937
+ #, php-format
938
+ msgid "Version %s"
939
+ msgstr ""
940
+
941
+ #: d:\!!!!!!!!!\Free
942
+ #: Version\wck/wck-sas.php:83
943
+ msgid "Quick Start-Up Guide"
944
+ msgstr ""
945
+
946
+ #: d:\!!!!!!!!!\Free
947
+ #: Version\wck/wck-sas.php:88
948
+ msgid "WordPress Creation Kit Pro has support for a wide list of custom fields: WYSIWYG Editor, Upload Field, Date, User, Country, Text Input, Textarea, Drop-Down, Select, Checkboxes, Radio Buttons"
949
+ msgstr ""
950
+
951
+ #: d:\!!!!!!!!!\Free
952
+ #: Version\wck/wck-sas.php:89
953
+ msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/\" target=\"_blank\">here</a> about how to display them in your templates."
954
+ msgstr ""
955
+
956
+ #: d:\!!!!!!!!!\Free
957
+ #: Version\wck/wck-sas.php:92
958
+ msgid "Create & manage all your custom content types"
959
+ msgstr ""
960
+
961
+ #: d:\!!!!!!!!!\Free
962
+ #: Version\wck/wck-sas.php:93
963
+ msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/custom-post-type-creator/\" target=\"_blank\">here</a> about how to display them in your templates."
964
+ msgstr ""
965
+
966
+ #: d:\!!!!!!!!!\Free
967
+ #: Version\wck/wck-sas.php:96
968
+ msgid "Create new taxonomies for filtering your content"
969
+ msgstr ""
970
+
971
+ #: d:\!!!!!!!!!\Free
972
+ #: Version\wck/wck-sas.php:97
973
+ msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/custom-taxonomy-creator/\" target=\"_blank\">here</a> about how to display them in your templates."
974
+ msgstr ""
975
+
976
+ #: d:\!!!!!!!!!\Free
977
+ #: Version\wck/wck-sas.php:99
978
+ msgid "Front-End Posting (available in the Pro version)"
979
+ msgstr ""
980
+
981
+ #: d:\!!!!!!!!!\Free
982
+ #: Version\wck/wck-sas.php:100
983
+ msgid "Create and edit posts/pages or custom posts directly from the front-end."
984
+ msgstr ""
985
+
986
+ #: d:\!!!!!!!!!\Free
987
+ #: Version\wck/wck-sas.php:101
988
+ msgid "Available shortcodes:"
989
+ msgstr ""
990
+
991
+ #: d:\!!!!!!!!!\Free
992
+ #: Version\wck/wck-sas.php:103
993
+ msgid "[fep form_name=\"front-end-post-name\"] - displayes your form in the front-end"
994
+ msgstr ""
995
+
996
+ #: d:\!!!!!!!!!\Free
997
+ #: Version\wck/wck-sas.php:104
998
+ msgid "[fep-dashboard] - the quick-dashboard allows: simple profile updates, editing/deletion of posts, pages and custom post types."
999
+ msgstr ""
1000
+
1001
+ #: d:\!!!!!!!!!\Free
1002
+ #: Version\wck/wck-sas.php:105
1003
+ msgid "[fep-lilo] - login/logout/register widget with the simple usage of a shortcode. Can be added in a page or text widget."
1004
+ msgstr ""
1005
+
1006
+ #: d:\!!!!!!!!!\Free
1007
+ #: Version\wck/wck-sas.php:107
1008
+ msgid "Access documentation <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/frontend-posting/\" target=\"_blank\">here</a> about how to display them in your templates."
1009
+ msgstr ""
1010
+
1011
+ #: d:\!!!!!!!!!\Free
1012
+ #: Version\wck/wck-sas.php:109
1013
+ msgid "Option Pages (available in the Pro version)"
1014
+ msgstr ""
1015
+
1016
+ #: d:\!!!!!!!!!\Free
1017
+ #: Version\wck/wck-sas.php:110
1018
+ msgid "The Options Page Creator Allows you to create a new menu item called \"Options\"(for example) which can hold advanced custom field groups. Perfect for theme options or a simple UI for your custom plugin (like a simple testimonials section in the front-end)."
1019
+ msgstr ""
1020
+
1021
+ #: d:\!!!!!!!!!\Free
1022
+ #: Version\wck/wck-sas.php:137
1023
+ msgid "Please enter your serial number to get access to automatic updates. If you do not have one, you can <a href=\"http://www.cozmoslabs.com/wordpress-creation-kit/\" target=\"_blank\">Get One Here</a>."
1024
+ msgstr ""
1025
+
1026
+ #: d:\!!!!!!!!!\Free
1027
+ #: Version\wck/wck-sas.php:139
1028
+ msgid "Oups! Our serial verification server is down. Please try again later."
1029
+ msgstr ""
1030
+
1031
+ #: d:\!!!!!!!!!\Free
1032
+ #: Version\wck/wck-sas.php:141
1033
+ msgid "Oups! It seems the serial number you entered was not found in our database. To find out what's your serial number log-in to <a href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\">your account page</a> over at Cozmoslabs.com"
1034
+ msgstr ""
1035
+
1036
+ #: d:\!!!!!!!!!\Free
1037
+ #: Version\wck/wck-sas.php:143
1038
+ msgid "Wohoo! Your serial number is valid and you have access to automatic updates."
1039
+ msgstr ""
1040
+
1041
+ #: d:\!!!!!!!!!\Free
1042
+ #: Version\wck/wck-sas.php:145
1043
+ msgid "It seems your serial number has <strong>expired</strong>. You'll continue to get automatic updates if update your serial number for another year from <a href=\"http://www.cozmoslabs.com/account/\" target=\"_blank\"><strong>your account page</strong></a>."
1044
+ msgstr ""
1045
+
1046
+ #: d:\!!!!!!!!!\Free
1047
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:282
1048
+ msgid "Add Entry"
1049
+ msgstr ""
1050
+
1051
+ #: d:\!!!!!!!!!\Free
1052
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:332
1053
+ msgid "Save Changes"
1054
+ msgstr ""
1055
+
1056
+ #: d:\!!!!!!!!!\Free
1057
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:333
1058
+ msgid "Cancel"
1059
+ msgstr ""
1060
+
1061
+ #: d:\!!!!!!!!!\Free
1062
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1063
+ msgid "Content"
1064
+ msgstr ""
1065
+
1066
+ #: d:\!!!!!!!!!\Free
1067
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1068
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1069
+ msgid "Edit"
1070
+ msgstr ""
1071
+
1072
+ #: d:\!!!!!!!!!\Free
1073
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:370
1074
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1075
+ msgid "Delete"
1076
+ msgstr ""
1077
+
1078
+ #: d:\!!!!!!!!!\Free
1079
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:433
1080
+ msgid "Edit this item"
1081
+ msgstr ""
1082
+
1083
+ #: d:\!!!!!!!!!\Free
1084
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:434
1085
+ msgid "Delete this item"
1086
+ msgstr ""
1087
+
1088
+ #: d:\!!!!!!!!!\Free
1089
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:506
1090
+ msgid "Please enter a value for the required field "
1091
+ msgstr ""
1092
+
1093
+ #: d:\!!!!!!!!!\Free
1094
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:788
1095
+ msgid "Select File"
1096
+ msgstr ""
1097
+
1098
+ #: d:\!!!!!!!!!\Free
1099
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:828
1100
+ #: Version\wck/wordpress-creation-kit-api/fields/upload.php:28
1101
+ msgid "Remove"
1102
+ msgstr ""
1103
+
1104
+ #: d:\!!!!!!!!!\Free
1105
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:866
1106
+ msgid "Syncronize WCK"
1107
+ msgstr ""
1108
+
1109
+ #: d:\!!!!!!!!!\Free
1110
+ #: Version\wck/wordpress-creation-kit-api/wordpress-creation-kit.php:878
1111
+ msgid "Syncronize WCK Translation"
1112
+ msgstr ""
1113
+
1114
+ #: d:\!!!!!!!!!\Free
1115
+ #: Version\wck/wordpress-creation-kit-api/fields/select.php:11
1116
+ msgid "...Chose"
1117
+ msgstr ""
1118
+
1119
+ #: d:\!!!!!!!!!\Free
1120
+ #: Version\wck/wordpress-creation-kit-api/fields/upload.php:40
1121
+ msgid "Upload "
1122
+ msgstr ""
1123
+
readme.txt CHANGED
@@ -3,10 +3,9 @@
3
  Contributors: reflectionmedia, madalin.ungureanu, sareiodata
4
  Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
5
  Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
-
7
  Requires at least: 3.1
8
  Tested up to: 4.1.1
9
- Stable tag: 1.1.5
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
@@ -141,6 +140,11 @@ Creating a taxonomy generally automatically creates a special query variable usi
141
  10. Taxonomy listing
142
 
143
  == Changelog ==
 
 
 
 
 
144
  = 1.1.5 =
145
  * Fixed major issue that prevented publishing new metaboxes (CFC)
146
  * Added a footer message asking users to leave a review if they enjoyed WCK
3
  Contributors: reflectionmedia, madalin.ungureanu, sareiodata
4
  Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
5
  Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
 
6
  Requires at least: 3.1
7
  Tested up to: 4.1.1
8
+ Stable tag: 1.1.6
9
 
10
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
11
 
140
  10. Taxonomy listing
141
 
142
  == Changelog ==
143
+ = 1.1.6 =
144
+ * We now run the Custom Post Type and Custom Taxonomy register function sooner on the init hook
145
+ * Aligned "Help" wit "WCK" in contextual help red button
146
+ * Fixed some issues with translations
147
+
148
  = 1.1.5 =
149
  * Fixed major issue that prevented publishing new metaboxes (CFC)
150
  * Added a footer message asking users to leave a review if they enjoyed WCK
wck-cfc.php CHANGED
@@ -118,11 +118,11 @@ function wck_cfc_create_box(){
118
 
119
  /* set up the fields array */
120
  $cfc_box_args_fields = array(
121
- array( 'type' => 'text', 'title' => __( 'Meta name', 'wck' ), 'description' => __( 'The name of the meta field. It is the name by which you will query the data in the frontend. Must be unique, only lowercase letters, no spaces and no special characters.', 'wck' ), 'required' => true ),
122
- array( 'type' => 'select', 'title' => __( 'Post Type', 'wck' ), 'options' => $post_type_names, 'default-option' => true, 'description' => __( 'What post type the meta box should be attached to', 'wck' ), 'required' => true ),
123
- array( 'type' => 'select', 'title' => __( 'Repeater', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether the box supports just one entry or if it is a repeater field. By default it is a single field.', 'wck' ) ),
124
- array( 'type' => 'select', 'title' => __( 'Sortable', 'wck' ), 'options' => array( 'true', 'false' ), 'default' => 'false', 'description' => __( 'Whether the entries are sortable or not. This is valid for repeater fields.', 'wck' ) ),
125
- array( 'type' => 'text', 'title' => __( 'Post ID', 'wck' ), 'description' => __( 'ID of a post on which the meta box should appear. You can also input multiple IDs and separate them with ","', 'wck' ) )
126
  );
127
 
128
  /* only in pro version */
@@ -132,7 +132,7 @@ function wck_cfc_create_box(){
132
  }
133
 
134
  if( !empty( $templates ) )
135
- $cfc_box_args_fields[] = array( 'type' => 'select', 'title' => __( 'Page Template', 'wck' ), 'options' => $templates, 'default-option' => true, 'description' => __( 'If post type is "page" you can further select a page templete. The meta box will only appear on the page that has that selected page template.', 'wck' ) );
136
 
137
  /* set up the box arguments */
138
  $args = array(
@@ -157,14 +157,14 @@ function wck_cfc_create_box(){
157
 
158
  /* set up the fields array */
159
  $cfc_box_fields_fields = apply_filters( 'wck_cfc_box_fields_fields', array(
160
- array( 'type' => 'text', 'title' => __( 'Field Title', 'wck' ), 'description' => __( 'Title of the field. A slug will automatically be generated.', 'wck' ), 'required' => true ),
161
- array( 'type' => 'select', 'title' => __( 'Field Type', 'wck' ), 'options' => $field_types, 'default-option' => true, 'description' => __( 'The field type', 'wck' ), 'required' => true ),
162
- array( 'type' => 'textarea', 'title' => __( 'Description', 'wck' ), 'description' => 'The description of the field.' ),
163
- array( 'type' => 'select', 'title' => __( 'Required', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether the field is required or not', 'wck' ) ),
164
- array( 'type' => 'select', 'title' => __( 'CPT', 'wck' ), 'options' => $post_types, 'default' => 'post', 'description' => __( 'Select what custom post type should be used in the CPT Select.', 'wck' ) ),
165
- array( 'type' => 'text', 'title' => __( 'Default Value', 'wck' ), 'description' => __( 'Default value of the field. For Checkboxes if there are multiple values separate them with a ",". For an Upload field input an attachment id.', 'wck' ) ),
166
- array( 'type' => 'text', 'title' => __( 'Options', 'wck' ), 'description' => __( 'Options for field types "select", "checkbox" and "radio". For multiple options separate them with a ",". You can use the following structure if you want the label to be different from the value: %LabelOne%valueone,%LabelTwo%valuetwo,%LabelThree%valuethree', 'wck' ) ),
167
- array( 'type' => 'checkbox', 'title' => __( 'Attach upload to post', 'wck' ), 'description' => __( 'Uploads will be attached to the post if this is checked', 'wck' ), 'options' => array( 'yes' ), 'default' => 'yes' )
168
  ) );
169
 
170
 
@@ -547,14 +547,21 @@ function wck_cfc_custom_columns( $column_name, $post_id ){
547
  }
548
 
549
  /* Add side metaboxes */
550
- add_action('add_meta_boxes', 'wck_cfc_add_side_boxes' );
551
- function wck_cfc_add_side_boxes(){
552
- add_meta_box( 'wck-cfc-side', __( 'Wordpress Creation Kit', 'wck' ), 'wck_cfc_side_box_one', 'wck-meta-box', 'side', 'low' );
553
- }
554
- function wck_cfc_side_box_one(){
555
- ?>
556
- <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree"><img src="<?php echo plugins_url('/images/banner_pro.png', __FILE__) ?>?v=1" width="260" height="385" alt="WCK-PRO"/></a>
557
- <?php
 
 
 
 
 
 
 
558
  }
559
 
560
 
118
 
119
  /* set up the fields array */
120
  $cfc_box_args_fields = array(
121
+ array( 'type' => 'text', 'title' => __( 'Metaaaa name', 'wck' ), 'slug' => 'meta-name', 'description' => __( 'The name of the meta field. It is the name by which you will query the data in the frontend. Must be unique, only lowercase letters, no spaces and no special characters.', 'wck' ), 'required' => true ),
122
+ array( 'type' => 'select', 'title' => __( 'Post Type', 'wck' ), 'slug' => 'post-type', 'options' => $post_type_names, 'default-option' => true, 'description' => __( 'What post type the meta box should be attached to', 'wck' ), 'required' => true ),
123
+ array( 'type' => 'select', 'title' => __( 'Repeater', 'wck' ), 'slug' => 'repeater', 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether the box supports just one entry or if it is a repeater field. By default it is a single field.', 'wck' ) ),
124
+ array( 'type' => 'select', 'title' => __( 'Sortable', 'wck' ), 'slug' => 'sortable', 'options' => array( 'true', 'false' ), 'default' => 'false', 'description' => __( 'Whether the entries are sortable or not. This is valid for repeater fields.', 'wck' ) ),
125
+ array( 'type' => 'text', 'title' => __( 'Post ID', 'wck' ), 'slug' => 'post-id', 'description' => __( 'ID of a post on which the meta box should appear. You can also input multiple IDs and separate them with ","', 'wck' ) )
126
  );
127
 
128
  /* only in pro version */
132
  }
133
 
134
  if( !empty( $templates ) )
135
+ $cfc_box_args_fields[] = array( 'type' => 'select', 'title' => __( 'Page Template', 'wck' ), 'slug' => 'page-template', 'options' => $templates, 'default-option' => true, 'description' => __( 'If post type is "page" you can further select a page templete. The meta box will only appear on the page that has that selected page template.', 'wck' ) );
136
 
137
  /* set up the box arguments */
138
  $args = array(
157
 
158
  /* set up the fields array */
159
  $cfc_box_fields_fields = apply_filters( 'wck_cfc_box_fields_fields', array(
160
+ array( 'type' => 'text', 'title' => __( 'Field Title', 'wck' ), 'slug' => 'field-title', 'description' => __( 'Title of the field. A slug will automatically be generated.', 'wck' ), 'required' => true ),
161
+ array( 'type' => 'select', 'title' => __( 'Field Type', 'wck' ), 'slug' => 'field-type', 'options' => $field_types, 'default-option' => true, 'description' => __( 'The field type', 'wck' ), 'required' => true ),
162
+ array( 'type' => 'textarea', 'title' => __( 'Description', 'wck' ), 'slug' => 'description', 'description' => 'The description of the field.' ),
163
+ array( 'type' => 'select', 'title' => __( 'Required', 'wck' ), 'slug' => 'required', 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether the field is required or not', 'wck' ) ),
164
+ array( 'type' => 'select', 'title' => __( 'CPT', 'wck' ), 'slug' => 'cpt', 'options' => $post_types, 'default' => 'post', 'description' => __( 'Select what custom post type should be used in the CPT Select.', 'wck' ) ),
165
+ array( 'type' => 'text', 'title' => __( 'Default Value', 'wck' ), 'slug' => 'default-value', 'description' => __( 'Default value of the field. For Checkboxes if there are multiple values separate them with a ",". For an Upload field input an attachment id.', 'wck' ) ),
166
+ array( 'type' => 'text', 'title' => __( 'Options', 'wck' ), 'slug' => 'options', 'description' => __( 'Options for field types "select", "checkbox" and "radio". For multiple options separate them with a ",". You can use the following structure if you want the label to be different from the value: %LabelOne%valueone,%LabelTwo%valuetwo,%LabelThree%valuethree', 'wck' ) ),
167
+ array( 'type' => 'checkbox', 'title' => __( 'Attach upload to post', 'wck' ), 'slug' => 'attach-upload-to-post', 'description' => __( 'Uploads will be attached to the post if this is checked', 'wck' ), 'options' => array( 'yes' ), 'default' => 'yes' )
168
  ) );
169
 
170
 
547
  }
548
 
549
  /* Add side metaboxes */
550
+ if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) ) {
551
+ add_action('add_meta_boxes', 'wck_cfc_add_side_boxes');
552
+ function wck_cfc_add_side_boxes()
553
+ {
554
+ add_meta_box('wck-cfc-side', __('Wordpress Creation Kit', 'wck'), 'wck_cfc_side_box_one', 'wck-meta-box', 'side', 'low');
555
+ }
556
+
557
+ function wck_cfc_side_box_one()
558
+ {
559
+ ?>
560
+ <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree"><img
561
+ src="<?php echo plugins_url('/images/banner_pro.png', __FILE__) ?>?v=1" width="260" height="385"
562
+ alt="WCK-PRO"/></a>
563
+ <?php
564
+ }
565
  }
566
 
567
 
wck-cptc.php CHANGED
@@ -1,301 +1,307 @@
1
- <?php
2
- /* Creates Custom Post Types for WordPress */
3
-
4
-
5
- $args = array(
6
- 'page_title' => __( 'WCK Post Type Creator', 'wck' ),
7
- 'menu_title' => __( 'Post Type Creator', 'wck' ),
8
- 'capability' => 'edit_theme_options',
9
- 'menu_slug' => 'cptc-page',
10
- 'page_type' => 'submenu_page',
11
- 'parent_slug' => 'wck-page',
12
- 'priority' => 8,
13
- 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
14
- );
15
- $cptc_page = new WCK_Page_Creator( $args );
16
-
17
-
18
- /* Add Scripts */
19
- add_action('admin_enqueue_scripts', 'wck_cptc_print_scripts' );
20
- function wck_cptc_print_scripts($hook){
21
- if( 'wck_page_cptc-page' == $hook ){
22
- wp_register_style('wck-cptc-css', plugins_url('/css/wck-cptc.css', __FILE__));
23
- wp_enqueue_style('wck-cptc-css');
24
- }
25
- }
26
-
27
- /* create the meta box only for admins ( 'capability' => 'edit_theme_options' ) */
28
- add_action( 'init', 'wck_cptc_create_box', 11 );
29
- function wck_cptc_create_box(){
30
-
31
- if( is_admin() && current_user_can( 'edit_theme_options' ) ){
32
- /* get registered taxonomies */
33
- $args = array(
34
- 'public' => true
35
- );
36
- $output = 'objects';
37
- $taxonomies = get_taxonomies($args,$output);
38
- $taxonomie_names = array();
39
-
40
- if( !empty( $taxonomies ) ){
41
- foreach ($taxonomies as $taxonomie ) {
42
- if ( $taxonomie->name != 'nav_menu' && $taxonomie->name != 'post_format')
43
- $taxonomie_names[] = $taxonomie->name;
44
- }
45
- }
46
-
47
- /* set up the fields array */
48
- $cpt_creation_fields = array(
49
- array( 'type' => 'text', 'title' => __( 'Post type', 'wck' ), 'description' => __( '(max. 20 characters, can not contain capital letters, hyphens, or spaces)', 'wck' ), 'required' => true ),
50
- array( 'type' => 'textarea', 'title' => __( 'Description', 'wck' ), 'description' => __( 'A short descriptive summary of what the post type is.', 'wck' ) ),
51
- array( 'type' => 'text', 'title' => __( 'Singular Label', 'wck' ), 'required' => true, 'description' => __( 'ex. Book', 'wck' ) ),
52
- array( 'type' => 'text', 'title' => __( 'Plural Label', 'wck' ), 'required' => true, 'description' => __( 'ex. Books', 'wck' ) ),
53
- array( 'type' => 'select', 'title' => __( 'Hierarchical', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether the post type is hierarchical. Allows Parent to be specified.', 'wck' ) ),
54
- array( 'type' => 'select', 'title' => __( 'Has Archive', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Enables post type archives. Will use string as archive slug. Will generate the proper rewrite rules if rewrite is enabled.', 'wck' ) ),
55
- array( 'type' => 'checkbox', 'title' => __( 'Supports', 'wck' ), 'options' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'post-formats' ), 'default' =>'title, editor' ),
56
-
57
-
58
- array( 'type' => 'text', 'title' => __( 'Add New', 'wck' ), 'description' => __( 'ex. Add New', 'wck' ) ),
59
- array( 'type' => 'text', 'title' => __( 'Add New Item', 'wck' ), 'description' => __( 'ex. Add New Book', 'wck' ) ),
60
- array( 'type' => 'text', 'title' => __( 'Edit Item', 'wck' ), 'description' => __( 'ex. Edit Book', 'wck' ) ),
61
- array( 'type' => 'text', 'title' => __( 'New Item', 'wck' ), 'description' => __( 'ex. New Book', 'wck' ) ),
62
- array( 'type' => 'text', 'title' => __( 'All Items', 'wck' ), 'description' => __( 'ex. All Books', 'wck' ) ),
63
- array( 'type' => 'text', 'title' => __( 'View Items', 'wck' ), 'description' => __( 'ex. View Books', 'wck' ) ),
64
- array( 'type' => 'text', 'title' => __( 'Search Items', 'wck' ), 'description' => __( 'ex. Search Books', 'wck' ) ),
65
- array( 'type' => 'text', 'title' => __( 'Not Found', 'wck' ), 'description' => __( 'ex. No Books Found', 'wck' ) ),
66
- array( 'type' => 'text', 'title' => __( 'Not Found In Trash', 'wck' ), 'description' => __( 'ex. No Books found in Trash', 'wck' ) ),
67
- array( 'type' => 'text', 'title' => __( 'Parent Item Colon', 'wck' ), 'description' => __( 'the parent text. This string isn\'t used on non-hierarchical types. In hierarchical ones the default is Parent Page ', 'wck' ) ),
68
- array( 'type' => 'text', 'title' => __( 'Menu Name', 'wck' ) ),
69
-
70
- array( 'type' => 'select', 'title' => __( 'Public', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Meta argument used to define default values for publicly_queriable, show_ui, show_in_nav_menus and exclude_from_search', 'wck' ) ),
71
- array( 'type' => 'select', 'title' => __( 'Show UI', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether to generate a default UI for managing this post type.', 'wck' ) ),
72
- array( 'type' => 'select', 'title' => __( 'Show In Nav Menus', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether post_type is available for selection in navigation menus.', 'wck' ) ),
73
- array( 'type' => 'text', 'title' => __( 'Show In Menu', 'wck' ), 'default' => 'true', 'description' => __( 'Whether to show the post type in the admin menu. show_ui must be true. "false" - do not display in the admin menu, "true" - display as a top level menu, "some string" - If an existing top level page such as "tools.php" or "edit.php?post_type=page", the post type will be placed as a sub menu of that.', 'wck' ) ),
74
- array( 'type' => 'text', 'title' => __( 'Menu Position', 'wck' ), 'description' => __( 'The position in the menu order the post type should appear.', 'wck' ) ),
75
- array( 'type' => 'text', 'title' => __( 'Menu Icon', 'wck' ), 'description' => __( 'The url to the icon to be used for this menu.', 'wck' ) ),
76
- array( 'type' => 'text', 'title' => __( 'Capability Type', 'wck' ), 'description' => __( 'The string to use to build the read, edit, and delete capabilities.', 'wck' ), 'default' => 'post' ),
77
- array( 'type' => 'checkbox', 'title' => __( 'Taxonomies', 'wck' ), 'options' => $taxonomie_names ),
78
- array( 'type' => 'select', 'title' => __( 'Rewrite', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Rewrite permalinks.', 'wck' ) ),
79
- array( 'type' => 'text', 'title' => __( 'Rewrite Slug', 'wck' ), 'description' => __( 'Defaults to post type name.', 'wck' ) )
80
- );
81
-
82
- /* set up the box arguments */
83
- $args = array(
84
- 'metabox_id' => 'option_page',
85
- 'metabox_title' => __( 'Custom Post Type Creation', 'wck' ),
86
- 'post_type' => 'cptc-page',
87
- 'meta_name' => 'wck_cptc',
88
- 'meta_array' => $cpt_creation_fields,
89
- 'context' => 'option',
90
- 'sortable' => false
91
- );
92
-
93
- /* create the box */
94
- new Wordpress_Creation_Kit( $args );
95
- }
96
- }
97
-
98
- /* hook to create custom post types */
99
- add_action( 'init', 'wck_cptc_create_cpts' );
100
-
101
- function wck_cptc_create_cpts(){
102
- $cpts = get_option('wck_cptc');
103
- if( !empty( $cpts ) ){
104
- foreach( $cpts as $cpt ){
105
-
106
- $labels = array(
107
- 'name' => _x( $cpt['plural-label'], 'post type general name'),
108
- 'singular_name' => _x( $cpt['singular-label'], 'post type singular name'),
109
- 'add_new' => _x( $cpt['add-new'] ? $cpt['add-new'] : 'Add New', strtolower( $cpt['singular-label'] ) ),
110
- 'add_new_item' => __( $cpt['add-new-item'] ? $cpt['add-new-item'] : "Add New ".$cpt['singular-label']),
111
- 'edit_item' => __( $cpt['edit-item'] ? $cpt['edit-item'] : "Edit ".$cpt['singular-label'], 'wck' ) ,
112
- 'new_item' => __( $cpt['new-item'] ? $cpt['new-item'] : "New ".$cpt['singular-label'], 'wck' ),
113
- 'all_items' => __( $cpt['all-items'] ? $cpt['all-items'] : "All ".$cpt['plural-label'] , 'wck'),
114
- 'view_item' => __( !empty( $cpt['view-item'] ) ? $cpt['view-item'] : "View ".$cpt['singular-label'] , 'wck'),
115
- 'search_items' => __( $cpt['search-items'] ? $cpt['search-items'] : "Search ".$cpt['plural-label'], 'wck' ),
116
- 'not_found' => __( $cpt['not-found'] ? $cpt['not-found'] : "No ". strtolower( $cpt['plural-label'] ) ." found", 'wck' ),
117
- 'not_found_in_trash' => __( $cpt['not-found-in-trash'] ? $cpt['not-found-in-trash'] : "No ". strtolower( $cpt['plural-label'] ) ." found in Trash", 'wck' ),
118
- 'parent_item_colon' => __( !empty( $cpt['parent-item-colon'] ) ? $cpt['parent-item-colon'] : "Parent Page", 'wck' ),
119
- 'menu_name' => $cpt['menu-name'] ? $cpt['menu-name'] : $cpt['plural-label']
120
- );
121
- $args = array(
122
- 'labels' => $labels,
123
- 'public' => $cpt['public'] == 'false' ? false : true,
124
- 'description' => $cpt['description'],
125
- 'show_ui' => $cpt['show-ui'] == 'false' ? false : true,
126
- 'show_in_nav_menus' => !empty( $cpt['show-in-nav-menus'] ) && $cpt['show-in-nav-menus'] == 'false' ? false : true,
127
- 'has_archive' => $cpt['has-archive'] == 'false' ? false : true,
128
- 'hierarchical' => $cpt['hierarchical'] == 'false' ? false : true,
129
- 'supports' => explode( ', ', $cpt['supports'] )
130
- );
131
-
132
- if( !empty( $cpt['show-in-menu'] ) ){
133
- $args['show_in_menu'] = $cpt['show-in-menu'] == 'true' ? true : $cpt['show-in-menu'];
134
- }
135
-
136
- if( !empty( $cpt['menu-position'] ) )
137
- $args['menu_position'] = intval( $cpt['menu-position'] );
138
-
139
- if( has_filter( "wck_cptc_capabilities_{$cpt['post-type']}" ) )
140
- $args['capabilities'] = apply_filters( "wck_cptc_capabilities_{$cpt['post-type']}", $cpt['capability-type'] );
141
- else
142
- $args['capability_type'] = $cpt['capability-type'];
143
-
144
- if( !empty( $cpt['taxonomies'] ) )
145
- $args['taxonomies'] = explode( ', ', $cpt['taxonomies'] );
146
-
147
- if( !empty( $cpt['menu-icon'] ) )
148
- $args['menu_icon'] = $cpt['menu-icon'];
149
-
150
- if( $cpt['rewrite'] == 'false' )
151
- $args['rewrite'] = $cpt['rewrite'] == 'false' ? false : true;
152
- else{
153
- if( !empty( $cpt['rewrite-slug'] ) )
154
- $args['rewrite'] = array('slug' => $cpt['rewrite-slug']);
155
- }
156
-
157
- register_post_type( $cpt['post-type'], apply_filters( 'wck_cptc_register_post_type_args', $args, $cpt['post-type'] ) );
158
- }
159
- }
160
- }
161
-
162
- /* Flush rewrite rules */
163
- add_action('init', 'cptc_flush_rules', 20);
164
- function cptc_flush_rules(){
165
- if( isset( $_GET['page'] ) && $_GET['page'] == 'cptc-page' && isset( $_GET['updated'] ) && $_GET['updated'] == 'true' )
166
- flush_rewrite_rules( false );
167
- }
168
-
169
- /* advanced labels container for add form */
170
- add_action( "wck_before_add_form_wck_cptc_element_7", 'wck_cptc_form_label_wrapper_start' );
171
- function wck_cptc_form_label_wrapper_start(){
172
- echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-label-options-container\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __('Show Advanced Label Options', 'wck' ) .'</a></li>';
173
- echo '<li id="cptc-advanced-label-options-container" style="display:none;"><ul>';
174
- }
175
-
176
- add_action( "wck_after_add_form_wck_cptc_element_17", 'wck_cptc_form_label_wrapper_end' );
177
- function wck_cptc_form_label_wrapper_end(){
178
- echo '</ul></li>';
179
- }
180
-
181
- /* advanced options container for add form */
182
- add_action( "wck_before_add_form_wck_cptc_element_18", 'wck_cptc_form_wrapper_start' );
183
- function wck_cptc_form_wrapper_start(){
184
- echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-options-container\').toggle(); if( jQuery(this).text() == \''. __('Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\'Hide Advanced Options\'); else if( jQuery(this).text() == \''. __('Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __('Show Advanced Options', 'wck' ) .'\');">'. __('Show Advanced Options', 'wck' ) .'</a></li>';
185
- echo '<li id="cptc-advanced-options-container" style="display:none;"><ul>';
186
- }
187
-
188
- add_action( "wck_after_add_form_wck_cptc_element_27", 'wck_cptc_form_wrapper_end' );
189
- function wck_cptc_form_wrapper_end(){
190
- echo '</ul></li>';
191
- }
192
-
193
- /* advanced label options container for update form */
194
- add_filter( "wck_before_update_form_wck_cptc_element_7", 'wck_cptc_update_form_label_wrapper_start', 10, 2 );
195
- function wck_cptc_update_form_label_wrapper_start( $form, $i ){
196
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-label-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __( 'Show Advanced Label Options', 'wck' ) .'</a></li>';
197
- $form .= '<li id="cptc-advanced-label-options-update-container-'.$i.'" style="display:none;"><ul>';
198
- return $form;
199
- }
200
-
201
- add_filter( "wck_after_update_form_wck_cptc_element_17", 'wck_cptc_update_form_label_wrapper_end', 10, 2 );
202
- function wck_cptc_update_form_label_wrapper_end( $form, $i ){
203
- $form .= '</ul></li>';
204
- return $form;
205
- }
206
-
207
- /* advanced options container for update form */
208
- add_filter( "wck_before_update_form_wck_cptc_element_18", 'wck_cptc_update_form_wrapper_start', 10, 2 );
209
- function wck_cptc_update_form_wrapper_start( $form, $i ){
210
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
211
- $form .= '<li id="cptc-advanced-options-update-container-'.$i.'" style="display:none;"><ul>';
212
- return $form;
213
- }
214
-
215
- add_filter( "wck_after_update_form_wck_cptc_element_27", 'wck_cptc_update_form_wrapper_end', 10, 2 );
216
- function wck_cptc_update_form_wrapper_end( $form, $i ){
217
- $form .= '</ul></li>';
218
- return $form;
219
- }
220
-
221
-
222
- /* advanced label options container for display */
223
- add_filter( "wck_before_listed_wck_cptc_element_7", 'wck_cptc_display_label_wrapper_start', 10, 2 );
224
- function wck_cptc_display_label_wrapper_start( $form, $i ){
225
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-label-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Labels', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Labels', 'wck' ) .'\');">'. __( 'Show Advanced Labels', 'wck' ) .'</a></li>';
226
- $form .= '<li id="cptc-advanced-label-options-display-container-'.$i.'" style="display:none;"><ul>';
227
- return $form;
228
- }
229
-
230
- add_filter( "wck_after_listed_wck_cptc_element_17", 'wck_cptc_display_label_wrapper_end', 10, 2 );
231
- function wck_cptc_display_label_wrapper_end( $form, $i ){
232
- $form .= '</ul></li>';
233
- return $form;
234
- }
235
-
236
- /* advanced options container for display */
237
- add_filter( "wck_before_listed_wck_cptc_element_18", 'wck_cptc_display_adv_wrapper_start', 10, 2 );
238
- function wck_cptc_display_adv_wrapper_start( $form, $i ){
239
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
240
- $form .= '<li id="cptc-advanced-options-display-container-'.$i.'" style="display:none;"><ul>';
241
- return $form;
242
- }
243
-
244
- add_filter( "wck_after_listed_wck_cptc_element_27", 'wck_cptc_display_adv_wrapper_end', 10, 2 );
245
- function wck_cptc_display_adv_wrapper_end( $form, $i ){
246
- $form .= '</ul></li>';
247
- return $form;
248
- }
249
-
250
- /* add refresh to page */
251
- add_action("wck_refresh_list_wck_cptc", "wck_cptc_after_refresh_list");
252
- add_action("wck_refresh_entry_wck_cptc", "wck_cptc_after_refresh_list");
253
- function wck_cptc_after_refresh_list(){
254
- echo '<script type="text/javascript">window.location="'. get_admin_url() . 'admin.php?page=cptc-page&updated=true' .'";</script>';
255
- }
256
-
257
- /* Add side metaboxes */
258
- add_action('add_meta_boxes', 'wck_cptc_add_side_boxes' );
259
- function wck_cptc_add_side_boxes(){
260
- add_meta_box( 'wck-cptc-side', __( 'Wordpress Creation Kit', 'wck' ), 'wck_cptc_side_box_one', 'wck_page_cptc-page', 'side', 'high' );
261
- }
262
- function wck_cptc_side_box_one(){
263
- ?>
264
- <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree"><img src="<?php echo plugins_url('/images/banner_pro.png', __FILE__) ?>?v=1" width="260" height="385" alt="WCK-PRO"/></a>
265
- <?php
266
- }
267
-
268
-
269
- /* Contextual Help */
270
- add_action('load-wck_page_cptc-page', 'wck_cptc_help');
271
-
272
- function wck_cptc_help () {
273
- $screen = get_current_screen();
274
-
275
- /*
276
- * Check if current screen is wck_page_cptc-page
277
- * Don't add help tab if it's not
278
- */
279
- if ( $screen->id != 'wck_page_cptc-page' )
280
- return;
281
-
282
- // Add help tabs
283
- $screen->add_help_tab( array(
284
- 'id' => 'wck_cptc_overview',
285
- 'title' => __('Overview', 'wck' ),
286
- 'content' => '<p>' . __( 'WCK Custom Post Type Creator allows you to easily create custom post types for Wordpress without any programming knowledge.<br />Most of the common options for creating a post type are displayed by default while the advanced options and label are just one click away.', 'wck' ) . '</p>',
287
- ) );
288
-
289
- $screen->add_help_tab( array(
290
- 'id' => 'wck_cptc_labels',
291
- 'title' => __( 'Labels', 'wck' ),
292
- 'content' => '<p>' . __( 'For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the "Show Advanced Label Options" link and all the availabel labels will be displayed.', 'wck' ) . '</p>',
293
- ) );
294
-
295
- $screen->add_help_tab( array(
296
- 'id' => 'wck_cptc_advanced',
297
- 'title' => __('Advanced Options', 'wck' ),
298
- 'content' => '<p>' . __( 'The Advanced Options are set to the most common defaults for custom post types. To display them click the "Show Advanced Options" link.', 'wck' ) . '</p>',
299
- ) );
300
- }
 
 
 
 
 
 
301
  ?>
1
+ <?php
2
+ /* Creates Custom Post Types for WordPress */
3
+
4
+
5
+ $args = array(
6
+ 'page_title' => __( 'WCK Post Type Creator', 'wck' ),
7
+ 'menu_title' => __( 'Post Type Creator', 'wck' ),
8
+ 'capability' => 'edit_theme_options',
9
+ 'menu_slug' => 'cptc-page',
10
+ 'page_type' => 'submenu_page',
11
+ 'parent_slug' => 'wck-page',
12
+ 'priority' => 8,
13
+ 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
14
+ );
15
+ $cptc_page = new WCK_Page_Creator( $args );
16
+
17
+
18
+ /* Add Scripts */
19
+ add_action('admin_enqueue_scripts', 'wck_cptc_print_scripts' );
20
+ function wck_cptc_print_scripts($hook){
21
+ if( 'wck_page_cptc-page' == $hook ){
22
+ wp_register_style('wck-cptc-css', plugins_url('/css/wck-cptc.css', __FILE__));
23
+ wp_enqueue_style('wck-cptc-css');
24
+ }
25
+ }
26
+
27
+ /* create the meta box only for admins ( 'capability' => 'edit_theme_options' ) */
28
+ add_action( 'init', 'wck_cptc_create_box', 11 );
29
+ function wck_cptc_create_box(){
30
+
31
+ if( is_admin() && current_user_can( 'edit_theme_options' ) ){
32
+ /* get registered taxonomies */
33
+ $args = array(
34
+ 'public' => true
35
+ );
36
+ $output = 'objects';
37
+ $taxonomies = get_taxonomies($args,$output);
38
+ $taxonomie_names = array();
39
+
40
+ if( !empty( $taxonomies ) ){
41
+ foreach ($taxonomies as $taxonomie ) {
42
+ if ( $taxonomie->name != 'nav_menu' && $taxonomie->name != 'post_format')
43
+ $taxonomie_names[] = $taxonomie->name;
44
+ }
45
+ }
46
+
47
+ /* set up the fields array */
48
+ $cpt_creation_fields = array(
49
+ array( 'type' => 'text', 'title' => __( 'Post type', 'wck' ), 'slug' => 'post-type', 'description' => __( '(max. 20 characters, can not contain capital letters, hyphens, or spaces)', 'wck' ), 'required' => true ),
50
+ array( 'type' => 'textarea', 'title' => __( 'Description', 'wck' ), 'slug' => 'description', 'description' => __( 'A short descriptive summary of what the post type is.', 'wck' ) ),
51
+ array( 'type' => 'text', 'title' => __( 'Singular Label', 'wck' ), 'slug' => 'singular-label', 'required' => true, 'description' => __( 'ex. Book', 'wck' ) ),
52
+ array( 'type' => 'text', 'title' => __( 'Plural Label', 'wck' ), 'slug' => 'plural-label', 'required' => true, 'description' => __( 'ex. Books', 'wck' ) ),
53
+ array( 'type' => 'select', 'title' => __( 'Hierarchical', 'wck' ), 'slug' => 'hierarchical', 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether the post type is hierarchical. Allows Parent to be specified.', 'wck' ) ),
54
+ array( 'type' => 'select', 'title' => __( 'Has Archive', 'wck' ), 'slug' => 'has-archive', 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Enables post type archives. Will use string as archive slug. Will generate the proper rewrite rules if rewrite is enabled.', 'wck' ) ),
55
+ array( 'type' => 'checkbox', 'title' => __( 'Supports', 'wck' ), 'slug' => 'supports', 'options' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'post-formats' ), 'default' =>'title, editor' ),
56
+
57
+
58
+ array( 'type' => 'text', 'title' => __( 'Add New', 'wck' ), 'slug' => 'add-new', 'description' => __( 'ex. Add New', 'wck' ) ),
59
+ array( 'type' => 'text', 'title' => __( 'Add New Item', 'wck' ), 'slug' => 'add-new-item', 'description' => __( 'ex. Add New Book', 'wck' ) ),
60
+ array( 'type' => 'text', 'title' => __( 'Edit Item', 'wck' ), 'slug' => 'edit-item', 'description' => __( 'ex. Edit Book', 'wck' ) ),
61
+ array( 'type' => 'text', 'title' => __( 'New Item', 'wck' ), 'slug' => 'new-item', 'description' => __( 'ex. New Book', 'wck' ) ),
62
+ array( 'type' => 'text', 'title' => __( 'All Items', 'wck' ), 'slug' => 'all-items', 'description' => __( 'ex. All Books', 'wck' ) ),
63
+ array( 'type' => 'text', 'title' => __( 'View Items', 'wck' ), 'slug' => 'view-items', 'description' => __( 'ex. View Books', 'wck' ) ),
64
+ array( 'type' => 'text', 'title' => __( 'Search Items', 'wck' ), 'slug' => 'search-items', 'description' => __( 'ex. Search Books', 'wck' ) ),
65
+ array( 'type' => 'text', 'title' => __( 'Not Found', 'wck' ), 'slug' => 'not-found', 'description' => __( 'ex. No Books Found', 'wck' ) ),
66
+ array( 'type' => 'text', 'title' => __( 'Not Found In Trash', 'wck' ), 'slug' => 'not-found-in-trash', 'description' => __( 'ex. No Books found in Trash', 'wck' ) ),
67
+ array( 'type' => 'text', 'title' => __( 'Parent Item Colon', 'wck' ), 'slug' => 'parent-item-colon', 'description' => __( 'the parent text. This string isn\'t used on non-hierarchical types. In hierarchical ones the default is Parent Page ', 'wck' ) ),
68
+ array( 'type' => 'text', 'title' => __( 'Menu Name', 'wck' ), 'slug' => 'menu-name' ),
69
+
70
+ array( 'type' => 'select', 'title' => __( 'Public', 'wck' ), 'slug' => 'public', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Meta argument used to define default values for publicly_queriable, show_ui, show_in_nav_menus and exclude_from_search', 'wck' ) ),
71
+ array( 'type' => 'select', 'title' => __( 'Show UI', 'wck' ), 'slug' => 'show-ui', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether to generate a default UI for managing this post type.', 'wck' ) ),
72
+ array( 'type' => 'select', 'title' => __( 'Show In Nav Menus', 'wck' ), 'slug' => 'show-in-nav-menus', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether post_type is available for selection in navigation menus.', 'wck' ) ),
73
+ array( 'type' => 'text', 'title' => __( 'Show In Menu', 'wck' ), 'slug' => 'show-in-menu', 'default' => 'true', 'description' => __( 'Whether to show the post type in the admin menu. show_ui must be true. "false" - do not display in the admin menu, "true" - display as a top level menu, "some string" - If an existing top level page such as "tools.php" or "edit.php?post_type=page", the post type will be placed as a sub menu of that.', 'wck' ) ),
74
+ array( 'type' => 'text', 'title' => __( 'Menu Position', 'wck' ), 'slug' => 'menu-position', 'description' => __( 'The position in the menu order the post type should appear.', 'wck' ) ),
75
+ array( 'type' => 'text', 'title' => __( 'Menu Icon', 'wck' ), 'slug' => 'menu-icon', 'description' => __( 'The url to the icon to be used for this menu.', 'wck' ) ),
76
+ array( 'type' => 'text', 'title' => __( 'Capability Type', 'wck' ), 'slug' => 'capability-type', 'description' => __( 'The string to use to build the read, edit, and delete capabilities.', 'wck' ), 'default' => 'post' ),
77
+ array( 'type' => 'checkbox', 'title' => __( 'Taxonomies', 'wck' ), 'slug' => 'taxonomies', 'options' => $taxonomie_names ),
78
+ array( 'type' => 'select', 'title' => __( 'Rewrite', 'wck' ), 'slug' => 'rewrite', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Rewrite permalinks.', 'wck' ) ),
79
+ array( 'type' => 'text', 'title' => __( 'Rewrite Slug', 'wck' ), 'slug' => 'rewrite-slug', 'description' => __( 'Defaults to post type name.', 'wck' ) )
80
+ );
81
+
82
+ /* set up the box arguments */
83
+ $args = array(
84
+ 'metabox_id' => 'option_page',
85
+ 'metabox_title' => __( 'Custom Post Type Creation', 'wck' ),
86
+ 'post_type' => 'cptc-page',
87
+ 'meta_name' => 'wck_cptc',
88
+ 'meta_array' => $cpt_creation_fields,
89
+ 'context' => 'option',
90
+ 'sortable' => false
91
+ );
92
+
93
+ /* create the box */
94
+ new Wordpress_Creation_Kit( $args );
95
+ }
96
+ }
97
+
98
+ /* hook to create custom post types */
99
+ add_action( 'init', 'wck_cptc_create_cpts', 8 );
100
+
101
+ function wck_cptc_create_cpts(){
102
+ $cpts = get_option('wck_cptc');
103
+ if( !empty( $cpts ) ){
104
+ foreach( $cpts as $cpt ){
105
+
106
+ $labels = array(
107
+ 'name' => _x( $cpt['plural-label'], 'post type general name'),
108
+ 'singular_name' => _x( $cpt['singular-label'], 'post type singular name'),
109
+ 'add_new' => _x( $cpt['add-new'] ? $cpt['add-new'] : 'Add New', strtolower( $cpt['singular-label'] ) ),
110
+ 'add_new_item' => __( $cpt['add-new-item'] ? $cpt['add-new-item'] : "Add New ".$cpt['singular-label']),
111
+ 'edit_item' => __( $cpt['edit-item'] ? $cpt['edit-item'] : "Edit ".$cpt['singular-label'], 'wck' ) ,
112
+ 'new_item' => __( $cpt['new-item'] ? $cpt['new-item'] : "New ".$cpt['singular-label'], 'wck' ),
113
+ 'all_items' => __( $cpt['all-items'] ? $cpt['all-items'] : "All ".$cpt['plural-label'] , 'wck'),
114
+ 'view_item' => __( !empty( $cpt['view-item'] ) ? $cpt['view-item'] : "View ".$cpt['singular-label'] , 'wck'),
115
+ 'search_items' => __( $cpt['search-items'] ? $cpt['search-items'] : "Search ".$cpt['plural-label'], 'wck' ),
116
+ 'not_found' => __( $cpt['not-found'] ? $cpt['not-found'] : "No ". strtolower( $cpt['plural-label'] ) ." found", 'wck' ),
117
+ 'not_found_in_trash' => __( $cpt['not-found-in-trash'] ? $cpt['not-found-in-trash'] : "No ". strtolower( $cpt['plural-label'] ) ." found in Trash", 'wck' ),
118
+ 'parent_item_colon' => __( !empty( $cpt['parent-item-colon'] ) ? $cpt['parent-item-colon'] : "Parent Page", 'wck' ),
119
+ 'menu_name' => $cpt['menu-name'] ? $cpt['menu-name'] : $cpt['plural-label']
120
+ );
121
+ $args = array(
122
+ 'labels' => $labels,
123
+ 'public' => $cpt['public'] == 'false' ? false : true,
124
+ 'description' => $cpt['description'],
125
+ 'show_ui' => $cpt['show-ui'] == 'false' ? false : true,
126
+ 'show_in_nav_menus' => !empty( $cpt['show-in-nav-menus'] ) && $cpt['show-in-nav-menus'] == 'false' ? false : true,
127
+ 'has_archive' => $cpt['has-archive'] == 'false' ? false : true,
128
+ 'hierarchical' => $cpt['hierarchical'] == 'false' ? false : true,
129
+ 'supports' => explode( ', ', $cpt['supports'] )
130
+ );
131
+
132
+ if( !empty( $cpt['show-in-menu'] ) ){
133
+ $args['show_in_menu'] = $cpt['show-in-menu'] == 'true' ? true : $cpt['show-in-menu'];
134
+ }
135
+
136
+ if( !empty( $cpt['menu-position'] ) )
137
+ $args['menu_position'] = intval( $cpt['menu-position'] );
138
+
139
+ if( has_filter( "wck_cptc_capabilities_{$cpt['post-type']}" ) )
140
+ $args['capabilities'] = apply_filters( "wck_cptc_capabilities_{$cpt['post-type']}", $cpt['capability-type'] );
141
+ else
142
+ $args['capability_type'] = $cpt['capability-type'];
143
+
144
+ if( !empty( $cpt['taxonomies'] ) )
145
+ $args['taxonomies'] = explode( ', ', $cpt['taxonomies'] );
146
+
147
+ if( !empty( $cpt['menu-icon'] ) )
148
+ $args['menu_icon'] = $cpt['menu-icon'];
149
+
150
+ if( $cpt['rewrite'] == 'false' )
151
+ $args['rewrite'] = $cpt['rewrite'] == 'false' ? false : true;
152
+ else{
153
+ if( !empty( $cpt['rewrite-slug'] ) )
154
+ $args['rewrite'] = array('slug' => $cpt['rewrite-slug']);
155
+ }
156
+
157
+ register_post_type( $cpt['post-type'], apply_filters( 'wck_cptc_register_post_type_args', $args, $cpt['post-type'] ) );
158
+ }
159
+ }
160
+ }
161
+
162
+ /* Flush rewrite rules */
163
+ add_action('init', 'cptc_flush_rules', 20);
164
+ function cptc_flush_rules(){
165
+ if( isset( $_GET['page'] ) && $_GET['page'] == 'cptc-page' && isset( $_GET['updated'] ) && $_GET['updated'] == 'true' )
166
+ flush_rewrite_rules( false );
167
+ }
168
+
169
+ /* advanced labels container for add form */
170
+ add_action( "wck_before_add_form_wck_cptc_element_7", 'wck_cptc_form_label_wrapper_start' );
171
+ function wck_cptc_form_label_wrapper_start(){
172
+ echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-label-options-container\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __('Show Advanced Label Options', 'wck' ) .'</a></li>';
173
+ echo '<li id="cptc-advanced-label-options-container" style="display:none;"><ul>';
174
+ }
175
+
176
+ add_action( "wck_after_add_form_wck_cptc_element_17", 'wck_cptc_form_label_wrapper_end' );
177
+ function wck_cptc_form_label_wrapper_end(){
178
+ echo '</ul></li>';
179
+ }
180
+
181
+ /* advanced options container for add form */
182
+ add_action( "wck_before_add_form_wck_cptc_element_18", 'wck_cptc_form_wrapper_start' );
183
+ function wck_cptc_form_wrapper_start(){
184
+ echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-options-container\').toggle(); if( jQuery(this).text() == \''. __('Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\'Hide Advanced Options\'); else if( jQuery(this).text() == \''. __('Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __('Show Advanced Options', 'wck' ) .'\');">'. __('Show Advanced Options', 'wck' ) .'</a></li>';
185
+ echo '<li id="cptc-advanced-options-container" style="display:none;"><ul>';
186
+ }
187
+
188
+ add_action( "wck_after_add_form_wck_cptc_element_27", 'wck_cptc_form_wrapper_end' );
189
+ function wck_cptc_form_wrapper_end(){
190
+ echo '</ul></li>';
191
+ }
192
+
193
+ /* advanced label options container for update form */
194
+ add_filter( "wck_before_update_form_wck_cptc_element_7", 'wck_cptc_update_form_label_wrapper_start', 10, 2 );
195
+ function wck_cptc_update_form_label_wrapper_start( $form, $i ){
196
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-label-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __( 'Show Advanced Label Options', 'wck' ) .'</a></li>';
197
+ $form .= '<li id="cptc-advanced-label-options-update-container-'.$i.'" style="display:none;"><ul>';
198
+ return $form;
199
+ }
200
+
201
+ add_filter( "wck_after_update_form_wck_cptc_element_17", 'wck_cptc_update_form_label_wrapper_end', 10, 2 );
202
+ function wck_cptc_update_form_label_wrapper_end( $form, $i ){
203
+ $form .= '</ul></li>';
204
+ return $form;
205
+ }
206
+
207
+ /* advanced options container for update form */
208
+ add_filter( "wck_before_update_form_wck_cptc_element_18", 'wck_cptc_update_form_wrapper_start', 10, 2 );
209
+ function wck_cptc_update_form_wrapper_start( $form, $i ){
210
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
211
+ $form .= '<li id="cptc-advanced-options-update-container-'.$i.'" style="display:none;"><ul>';
212
+ return $form;
213
+ }
214
+
215
+ add_filter( "wck_after_update_form_wck_cptc_element_27", 'wck_cptc_update_form_wrapper_end', 10, 2 );
216
+ function wck_cptc_update_form_wrapper_end( $form, $i ){
217
+ $form .= '</ul></li>';
218
+ return $form;
219
+ }
220
+
221
+
222
+ /* advanced label options container for display */
223
+ add_filter( "wck_before_listed_wck_cptc_element_7", 'wck_cptc_display_label_wrapper_start', 10, 2 );
224
+ function wck_cptc_display_label_wrapper_start( $form, $i ){
225
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-label-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Labels', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Labels', 'wck' ) .'\');">'. __( 'Show Advanced Labels', 'wck' ) .'</a></li>';
226
+ $form .= '<li id="cptc-advanced-label-options-display-container-'.$i.'" style="display:none;"><ul>';
227
+ return $form;
228
+ }
229
+
230
+ add_filter( "wck_after_listed_wck_cptc_element_17", 'wck_cptc_display_label_wrapper_end', 10, 2 );
231
+ function wck_cptc_display_label_wrapper_end( $form, $i ){
232
+ $form .= '</ul></li>';
233
+ return $form;
234
+ }
235
+
236
+ /* advanced options container for display */
237
+ add_filter( "wck_before_listed_wck_cptc_element_18", 'wck_cptc_display_adv_wrapper_start', 10, 2 );
238
+ function wck_cptc_display_adv_wrapper_start( $form, $i ){
239
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#cptc-advanced-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
240
+ $form .= '<li id="cptc-advanced-options-display-container-'.$i.'" style="display:none;"><ul>';
241
+ return $form;
242
+ }
243
+
244
+ add_filter( "wck_after_listed_wck_cptc_element_27", 'wck_cptc_display_adv_wrapper_end', 10, 2 );
245
+ function wck_cptc_display_adv_wrapper_end( $form, $i ){
246
+ $form .= '</ul></li>';
247
+ return $form;
248
+ }
249
+
250
+ /* add refresh to page */
251
+ add_action("wck_refresh_list_wck_cptc", "wck_cptc_after_refresh_list");
252
+ add_action("wck_refresh_entry_wck_cptc", "wck_cptc_after_refresh_list");
253
+ function wck_cptc_after_refresh_list(){
254
+ echo '<script type="text/javascript">window.location="'. get_admin_url() . 'admin.php?page=cptc-page&updated=true' .'";</script>';
255
+ }
256
+
257
+ /* Add side metaboxes */
258
+ if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) ) {
259
+ add_action('add_meta_boxes', 'wck_cptc_add_side_boxes');
260
+ function wck_cptc_add_side_boxes()
261
+ {
262
+ add_meta_box('wck-cptc-side', __('Wordpress Creation Kit', 'wck'), 'wck_cptc_side_box_one', 'wck_page_cptc-page', 'side', 'high');
263
+ }
264
+
265
+ function wck_cptc_side_box_one()
266
+ {
267
+ ?>
268
+ <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree"><img
269
+ src="<?php echo plugins_url('/images/banner_pro.png', __FILE__) ?>?v=1" width="260" height="385"
270
+ alt="WCK-PRO"/></a>
271
+ <?php
272
+ }
273
+ }
274
+
275
+ /* Contextual Help */
276
+ add_action('load-wck_page_cptc-page', 'wck_cptc_help');
277
+
278
+ function wck_cptc_help () {
279
+ $screen = get_current_screen();
280
+
281
+ /*
282
+ * Check if current screen is wck_page_cptc-page
283
+ * Don't add help tab if it's not
284
+ */
285
+ if ( $screen->id != 'wck_page_cptc-page' )
286
+ return;
287
+
288
+ // Add help tabs
289
+ $screen->add_help_tab( array(
290
+ 'id' => 'wck_cptc_overview',
291
+ 'title' => __('Overview', 'wck' ),
292
+ 'content' => '<p>' . __( 'WCK Custom Post Type Creator allows you to easily create custom post types for Wordpress without any programming knowledge.<br />Most of the common options for creating a post type are displayed by default while the advanced options and label are just one click away.', 'wck' ) . '</p>',
293
+ ) );
294
+
295
+ $screen->add_help_tab( array(
296
+ 'id' => 'wck_cptc_labels',
297
+ 'title' => __( 'Labels', 'wck' ),
298
+ 'content' => '<p>' . __( 'For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the "Show Advanced Label Options" link and all the availabel labels will be displayed.', 'wck' ) . '</p>',
299
+ ) );
300
+
301
+ $screen->add_help_tab( array(
302
+ 'id' => 'wck_cptc_advanced',
303
+ 'title' => __('Advanced Options', 'wck' ),
304
+ 'content' => '<p>' . __( 'The Advanced Options are set to the most common defaults for custom post types. To display them click the "Show Advanced Options" link.', 'wck' ) . '</p>',
305
+ ) );
306
+ }
307
  ?>
wck-ctc.php CHANGED
@@ -1,262 +1,268 @@
1
- <?php
2
- /* Creates Custom Taxonomies for WordPress */
3
-
4
- /* Create the CTC Page only for admins ( 'capability' => 'edit_theme_options' ) */
5
- $args = array(
6
- 'page_title' => __( 'WCK Taxonomy Creator', 'wck' ),
7
- 'menu_title' => __( 'Taxonomy Creator', 'wck' ),
8
- 'capability' => 'edit_theme_options',
9
- 'menu_slug' => 'ctc-page',
10
- 'page_type' => 'submenu_page',
11
- 'parent_slug' => 'wck-page',
12
- 'priority' => 9,
13
- 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
14
- );
15
- new WCK_Page_Creator( $args );
16
-
17
- /* create the meta box only for admins ( 'capability' => 'edit_theme_options' ) */
18
- add_action( 'init', 'wck_ctc_create_box', 11 );
19
- function wck_ctc_create_box(){
20
-
21
- if( is_admin() && current_user_can( 'edit_theme_options' ) ){
22
- $args = array(
23
- 'public' => true
24
- );
25
- $output = 'objects'; // or objects
26
- $post_types = get_post_types($args,$output);
27
- $post_type_names = array();
28
- if( !empty( $post_types ) ){
29
- foreach ( $post_types as $post_type ) {
30
- if ( $post_type->name != 'attachment' && $post_type->name != 'wck-meta-box' && $post_type->name != 'wck-frontend-posting' && $post_type->name != 'wck-option-page' && $post_type->name != 'wck-option-field' && $post_type->name != 'wck-swift-template' )
31
- $post_type_names[] = $post_type->name;
32
- }
33
- }
34
-
35
-
36
- $ct_creation_fields = array(
37
- array( 'type' => 'text', 'title' => __( 'Taxonomy', 'wck' ), 'description' => __( '(The name of the taxonomy. Name must not contain capital letters or spaces.)', 'wck' ), 'required' => true ),
38
- array( 'type' => 'text', 'title' => __( 'Singular Label', 'wck' ), 'required' => true, 'description' => __( 'ex. Writer', 'wck' ) ),
39
- array( 'type' => 'text', 'title' => __( 'Plural Label', 'wck' ), 'required' => true, 'description' => __( 'ex. Writers', 'wck' ) ),
40
- array( 'type' => 'checkbox', 'title' => __( 'Attach to', 'wck' ), 'options' => $post_type_names ),
41
- array( 'type' => 'select', 'title' => __( 'Hierarchical', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags.', 'wck' ) ),
42
-
43
- array( 'type' => 'text', 'title' => __( 'Search Items', 'wck' ), 'description' => __( 'ex. Search Writers', 'wck' ) ),
44
- array( 'type' => 'text', 'title' => __( 'Popular Items', 'wck' ), 'description' => __( 'ex. Popular Writers', 'wck' ) ),
45
- array( 'type' => 'text', 'title' => __( 'All Items', 'wck' ), 'description' => __( 'ex. All Writers', 'wck' ) ),
46
- array( 'type' => 'text', 'title' => __( 'Parent Item', 'wck' ), 'description' => __( 'ex. Parent Genre', 'wck' ) ),
47
- array( 'type' => 'text', 'title' => __( 'Parent Item Colon', 'wck' ), 'description' => __( 'ex. Parent Genre:', 'wck' ) ),
48
- array( 'type' => 'text', 'title' => __( 'Edit Item', 'wck' ), 'description' => __( 'ex. Edit Writer', 'wck' ) ),
49
- array( 'type' => 'text', 'title' => __( 'Update Item', 'wck' ), 'description' => __( 'ex. Update Writer', 'wck' ) ),
50
- array( 'type' => 'text', 'title' => __( 'Add New Item', 'wck' ), 'description' => __( 'ex. Add New Writer', 'wck' ) ),
51
- array( 'type' => 'text', 'title' => __( 'New Item Name', 'wck' ), 'description' => __( 'ex. New Writer Name', 'wck' ) ),
52
- array( 'type' => 'text', 'title' => __( 'Separate Items With Commas', 'wck' ), 'description' => __( 'ex. Separate writers with commas', 'wck' ) ),
53
- array( 'type' => 'text', 'title' => __( 'Add Or Remove Items', 'wck' ), 'description' => __( 'ex. Add or remove writers', 'wck' ) ),
54
- array( 'type' => 'text', 'title' => __( 'Choose From Most Used', 'wck' ), 'description' => __( 'ex. Choose from the most used writers', 'wck' ) ),
55
- array( 'type' => 'text', 'title' => __( 'Menu Name', 'wck' ) ),
56
-
57
- array( 'type' => 'select', 'title' => __( 'Public', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Meta argument used to define default values for publicly_queriable, show_ui, show_in_nav_menus and exclude_from_search', 'wck' ) ),
58
- array( 'type' => 'select', 'title' => __( 'Show UI', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether to generate a default UI for managing this post type.', 'wck' ) ),
59
- array( 'type' => 'select', 'title' => __( 'Show Tagcloud', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether to allow the Tag Cloud widget to use this taxonomy.', 'wck' ) ),
60
- array( 'type' => 'select', 'title' => __( 'Show Admin Column', 'wck' ), 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether to allow automatic creation of taxonomy columns on associated post-types.', 'wck' ) )
61
- );
62
-
63
- $args = array(
64
- 'metabox_id' => 'ctc_creation_box',
65
- 'metabox_title' => __( 'Custom Taxonomy Creation', 'wck' ),
66
- 'post_type' => 'ctc-page',
67
- 'meta_name' => 'wck_ctc',
68
- 'meta_array' => $ct_creation_fields,
69
- 'context' => 'option'
70
- );
71
-
72
-
73
- new Wordpress_Creation_Kit( $args );
74
- }
75
- }
76
-
77
- add_action( 'init', 'wck_ctc_create_taxonomy' );
78
-
79
- function wck_ctc_create_taxonomy(){
80
- $cts = get_option('wck_ctc');
81
- if( !empty( $cts ) ){
82
- foreach( $cts as $ct ){
83
-
84
- $labels = array(
85
- 'name' => _x( $ct['plural-label'], 'taxonomy general name' ),
86
- 'singular_name' => _x( $ct['singular-label'], 'taxonomy singular name'),
87
- 'search_items' => __( $ct['search-items'] ? $ct['search-items'] : 'Search '.$ct['plural-label'], 'wck' ),
88
- 'popular_items' => __( $ct['popular-items'] ? $ct['popular-items'] : "Popular ".$ct['plural-label'], 'wck' ),
89
- 'all_items' => __( $ct['all-items'] ? $ct['all-items'] : "All ".$ct['plural-label'], 'wck' ) ,
90
- 'parent_item' => __( $ct['parent-item'] ? $ct['parent-item'] : "Parent ".$ct['singular-label'], 'wck' ),
91
- 'parent_item_colon' => __( $ct['parent-item-colon'] ? $ct['parent-item-colon'] : "Parent ".$ct['singular-label'].':', 'wck' ),
92
- 'edit_item' => __( $ct['edit-item'] ? $ct['edit-item'] : "Edit ".$ct['singular-label'], 'wck' ),
93
- 'update_item' => __( $ct['update-item'] ? $ct['update-item'] : "Update ".$ct['singular-label'], 'wck' ),
94
- 'add_new_item' => __( $ct['add-new-item'] ? $ct['add-new-item'] : "Add New ". $ct['singular-label'], 'wck' ),
95
- 'new_item_name' => __( $ct['new-item-name'] ? $ct['new-item-name'] : "New ". $ct['singular-label']. ' Name', 'wck' ),
96
- 'separate_items_with_commas' => __( $ct['separate-items-with-commas'] ? $ct['separate-items-with-commas'] : "Separate ". strtolower( $ct['plural-label'] ). ' with commas', 'wck' ),
97
- 'add_or_remove_items' => __( $ct['add-or-remove-items'] ? $ct['add-or-remove-items'] : "Add or remove " .strtolower( $ct['plural-label'] ), 'wck' ),
98
- 'choose_from_most_used' => __( $ct['choose-from-most-used'] ? $ct['choose-from-most-used'] : "Choose from the most used " .strtolower( $ct['plural-label'] ), 'wck' ),
99
- 'menu_name' => $ct['menu-name'] ? $ct['menu-name'] : $ct['plural-label']
100
- );
101
-
102
- $args = array(
103
- 'labels' => $labels,
104
- 'public' => $ct['public'] == 'false' ? false : true,
105
- 'show_ui' => $ct['show-ui'] == 'false' ? false : true,
106
- 'hierarchical' => $ct['hierarchical'] == 'false' ? false : true,
107
- 'show_tagcloud' => $ct['show-tagcloud'] == 'false' ? false : true
108
- );
109
-
110
- if( !empty( $ct['show-admin-column'] ) ){
111
- $args['show_admin_column'] = $ct['show-admin-column'] == 'false' ? false : true;
112
- }
113
-
114
- if( !empty( $ct['attach-to'] ) )
115
- $object_type = explode( ', ', $ct['attach-to'] );
116
- else
117
- $object_type = '';
118
-
119
- register_taxonomy( $ct['taxonomy'], $object_type, apply_filters( 'wck_ctc_register_taxonomy_args', $args, $ct['taxonomy'] ) );
120
- }
121
- }
122
- }
123
-
124
- /* Flush rewrite rules */
125
- add_action('init', 'ctc_flush_rules', 20);
126
- function ctc_flush_rules(){
127
- if( isset( $_GET['page'] ) && $_GET['page'] == 'ctc-page' && isset( $_GET['updated'] ) && $_GET['updated'] == 'true' )
128
- flush_rewrite_rules( false );
129
- }
130
-
131
- /* add refresh to page */
132
- add_action("wck_refresh_list_wck_ctc", "wck_ctc_after_refresh_list");
133
- add_action("wck_refresh_entry_wck_ctc", "wck_ctc_after_refresh_list");
134
- function wck_ctc_after_refresh_list(){
135
- echo '<script type="text/javascript">window.location="'. get_admin_url() . 'admin.php?page=ctc-page&updated=true' .'";</script>';
136
- }
137
-
138
- /* advanced labels container for add form */
139
- add_action( "wck_before_add_form_wck_ctc_element_5", 'wck_ctc_form_label_wrapper_start' );
140
- function wck_ctc_form_label_wrapper_start(){
141
- echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-label-options-container\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __( 'Show Advanced Label Options', 'wck' ) .'</a></li>';
142
- echo '<li id="ctc-advanced-label-options-container" style="display:none;"><ul>';
143
- }
144
-
145
- add_action( "wck_after_add_form_wck_ctc_element_17", 'wck_ctc_form_label_wrapper_end' );
146
- function wck_ctc_form_label_wrapper_end(){
147
- echo '</ul></li>';
148
- }
149
-
150
- /* advanced options container for add form */
151
- add_action( "wck_before_add_form_wck_ctc_element_18", 'wck_ctc_form_wrapper_start' );
152
- function wck_ctc_form_wrapper_start(){
153
- echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-options-container\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
154
- echo '<li id="ctc-advanced-options-container" style="display:none;"><ul>';
155
- }
156
-
157
- add_action( "wck_after_add_form_wck_ctc_element_21", 'wck_ctc_form_wrapper_end' );
158
- function wck_ctc_form_wrapper_end(){
159
- echo '</ul></li>';
160
- }
161
-
162
- /* advanced label options container for update form */
163
- add_filter( "wck_before_update_form_wck_ctc_element_5", 'wck_ctc_update_form_label_wrapper_start', 10, 2 );
164
- function wck_ctc_update_form_label_wrapper_start( $form, $i ){
165
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-label-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __( 'Show Advanced Label Options', 'wck' ) .'</a></li>';
166
- $form .= '<li id="ctc-advanced-label-options-update-container-'.$i.'" style="display:none;"><ul>';
167
- return $form;
168
- }
169
-
170
- add_filter( "wck_after_update_form_wck_ctc_element_17", 'wck_ctc_update_form_label_wrapper_end', 10, 2 );
171
- function wck_ctc_update_form_label_wrapper_end( $form, $i ){
172
- $form .= '</ul></li>';
173
- return $form;
174
- }
175
-
176
- /* advanced options container for update form */
177
- add_filter( "wck_before_update_form_wck_ctc_element_18", 'wck_ctc_update_form_wrapper_start', 10, 2 );
178
- function wck_ctc_update_form_wrapper_start( $form, $i ){
179
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
180
- $form .= '<li id="ctc-advanced-options-update-container-'.$i.'" style="display:none;"><ul>';
181
- return $form;
182
- }
183
-
184
- add_filter( "wck_after_update_form_wck_ctc_element_21", 'wck_ctc_update_form_wrapper_end', 10, 2 );
185
- function wck_ctc_update_form_wrapper_end( $form, $i ){
186
- $form .= '</ul></li>';
187
- return $form;
188
- }
189
-
190
-
191
- /* advanced label options container for display */
192
- add_filter( "wck_before_listed_wck_ctc_element_5", 'wck_ctc_display_label_wrapper_start', 10, 2 );
193
- function wck_ctc_display_label_wrapper_start( $form, $i ){
194
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-label-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Labels', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Labels', 'wck' ) .'\');">'. __( 'Show Advanced Labels', 'wck' ) .'</a></li>';
195
- $form .= '<li id="ctc-advanced-label-options-display-container-'.$i.'" style="display:none;"><ul>';
196
- return $form;
197
- }
198
-
199
- add_filter( "wck_after_listed_wck_ctc_element_17", 'wck_ctc_display_label_wrapper_end', 10, 2 );
200
- function wck_ctc_display_label_wrapper_end( $form, $i ){
201
- $form .= '</ul></li>';
202
- return $form;
203
- }
204
-
205
- /* advanced options container for display */
206
- add_filter( "wck_before_listed_wck_ctc_element_18", 'wck_ctc_display_adv_wrapper_start', 10, 2 );
207
- function wck_ctc_display_adv_wrapper_start( $form, $i ){
208
- $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
209
- $form .= '<li id="ctc-advanced-options-display-container-'.$i.'" style="display:none;"><ul>';
210
- return $form;
211
- }
212
-
213
- add_filter( "wck_after_listed_wck_ctc_element_21", 'wck_ctc_display_adv_wrapper_end', 10, 2 );
214
- function wck_ctc_display_adv_wrapper_end( $form, $i ){
215
- $form .= '</ul></li>';
216
- return $form;
217
- }
218
-
219
- /* Add side metaboxes */
220
- add_action('add_meta_boxes', 'wck_ctc_add_side_boxes' );
221
- function wck_ctc_add_side_boxes(){
222
- add_meta_box( 'wck-ctc-side', __( 'Wordpress Creation Kit', 'wck' ), 'wck_ctc_side_box_one', 'wck_page_ctc-page', 'side', 'high' );
223
- }
224
- function wck_ctc_side_box_one(){
225
- ?>
226
- <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree"><img src="<?php echo plugins_url('/images/banner_pro.png', __FILE__) ?>?v=1" width="260" height="385" alt="WCK-PRO"/></a>
227
- <?php
228
- }
229
-
230
- /* Contextual Help */
231
- add_action('load-wck_page_ctc-page', 'wck_ctc_help');
232
-
233
- function wck_ctc_help () {
234
- $screen = get_current_screen();
235
-
236
- /*
237
- * Check if current screen is wck_page_cptc-page
238
- * Don't add help tab if it's not
239
- */
240
- if ( $screen->id != 'wck_page_ctc-page' )
241
- return;
242
-
243
- // Add help tabs
244
- $screen->add_help_tab( array(
245
- 'id' => 'wck_ctc_overview',
246
- 'title' => __( 'Overview', 'wck' ),
247
- 'content' => '<p>' . __( 'WCK Custom Taxonomy Creator allows you to easily create custom taxonomy for Wordpress without any programming knowledge.<br />Most of the common options for creating a taxonomy are displayed by default while the advanced and label options are just one click away.', 'wck' ) . '</p>',
248
- ) );
249
-
250
- $screen->add_help_tab( array(
251
- 'id' => 'wck_ctc_labels',
252
- 'title' => __( 'Labels', 'wck' ),
253
- 'content' => '<p>' . __( 'For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the "Show Advanced Label Options" link and all the availabel labels will be displayed', 'wck' ) . '</p>',
254
- ) );
255
-
256
- $screen->add_help_tab( array(
257
- 'id' => 'wck_ctc_advanced',
258
- 'title' => __( 'Advanced Options', 'wck' ),
259
- 'content' => '<p>' . __( 'The Advanced Options are set to the most common defaults for taxonomies. To display them click the "Show Advanced Options" link.', 'wck' ) . '</p>',
260
- ) );
261
- }
 
 
 
 
 
 
262
  ?>
1
+ <?php
2
+ /* Creates Custom Taxonomies for WordPress */
3
+
4
+ /* Create the CTC Page only for admins ( 'capability' => 'edit_theme_options' ) */
5
+ $args = array(
6
+ 'page_title' => __( 'WCK Taxonomy Creator', 'wck' ),
7
+ 'menu_title' => __( 'Taxonomy Creator', 'wck' ),
8
+ 'capability' => 'edit_theme_options',
9
+ 'menu_slug' => 'ctc-page',
10
+ 'page_type' => 'submenu_page',
11
+ 'parent_slug' => 'wck-page',
12
+ 'priority' => 9,
13
+ 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
14
+ );
15
+ new WCK_Page_Creator( $args );
16
+
17
+ /* create the meta box only for admins ( 'capability' => 'edit_theme_options' ) */
18
+ add_action( 'init', 'wck_ctc_create_box', 11 );
19
+ function wck_ctc_create_box(){
20
+
21
+ if( is_admin() && current_user_can( 'edit_theme_options' ) ){
22
+ $args = array(
23
+ 'public' => true
24
+ );
25
+ $output = 'objects'; // or objects
26
+ $post_types = get_post_types($args,$output);
27
+ $post_type_names = array();
28
+ if( !empty( $post_types ) ){
29
+ foreach ( $post_types as $post_type ) {
30
+ if ( $post_type->name != 'attachment' && $post_type->name != 'wck-meta-box' && $post_type->name != 'wck-frontend-posting' && $post_type->name != 'wck-option-page' && $post_type->name != 'wck-option-field' && $post_type->name != 'wck-swift-template' )
31
+ $post_type_names[] = $post_type->name;
32
+ }
33
+ }
34
+
35
+
36
+ $ct_creation_fields = array(
37
+ array( 'type' => 'text', 'title' => __( 'Taxonomy', 'wck' ), 'slug' => 'taxonomy', 'description' => __( '(The name of the taxonomy. Name must not contain capital letters or spaces.)', 'wck' ), 'required' => true ),
38
+ array( 'type' => 'text', 'title' => __( 'Singular Label', 'wck' ), 'slug' => 'singular-label', 'required' => true, 'description' => __( 'ex. Writer', 'wck' ) ),
39
+ array( 'type' => 'text', 'title' => __( 'Plural Label', 'wck' ), 'slug' => 'plural-label', 'required' => true, 'description' => __( 'ex. Writers', 'wck' ) ),
40
+ array( 'type' => 'checkbox', 'title' => __( 'Attach to', 'wck' ), 'slug' => 'attach-to', 'options' => $post_type_names ),
41
+ array( 'type' => 'select', 'title' => __( 'Hierarchical', 'wck' ), 'slug' => 'hierarchical', 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags.', 'wck' ) ),
42
+
43
+ array( 'type' => 'text', 'title' => __( 'Search Items', 'wck' ), 'slug' => 'search-items', 'description' => __( 'ex. Search Writers', 'wck' ) ),
44
+ array( 'type' => 'text', 'title' => __( 'Popular Items', 'wck' ), 'slug' => 'popular-items', 'description' => __( 'ex. Popular Writers', 'wck' ) ),
45
+ array( 'type' => 'text', 'title' => __( 'All Items', 'wck' ), 'slug' => 'all-items', 'description' => __( 'ex. All Writers', 'wck' ) ),
46
+ array( 'type' => 'text', 'title' => __( 'Parent Item', 'wck' ), 'slug' => 'parent-item', 'description' => __( 'ex. Parent Genre', 'wck' ) ),
47
+ array( 'type' => 'text', 'title' => __( 'Parent Item Colon', 'wck' ), 'slug' => 'parent-item-colon', 'description' => __( 'ex. Parent Genre:', 'wck' ) ),
48
+ array( 'type' => 'text', 'title' => __( 'Edit Item', 'wck' ), 'slug' => 'edit-item', 'description' => __( 'ex. Edit Writer', 'wck' ) ),
49
+ array( 'type' => 'text', 'title' => __( 'Update Item', 'wck' ), 'slug' => 'update-item', 'description' => __( 'ex. Update Writer', 'wck' ) ),
50
+ array( 'type' => 'text', 'title' => __( 'Add New Item', 'wck' ), 'slug' => 'add-new-item', 'description' => __( 'ex. Add New Writer', 'wck' ) ),
51
+ array( 'type' => 'text', 'title' => __( 'New Item Name', 'wck' ), 'slug' => 'new-item-name', 'description' => __( 'ex. New Writer Name', 'wck' ) ),
52
+ array( 'type' => 'text', 'title' => __( 'Separate Items With Commas', 'wck' ), 'slug' => 'separate-items-with-commas', 'description' => __( 'ex. Separate writers with commas', 'wck' ) ),
53
+ array( 'type' => 'text', 'title' => __( 'Add Or Remove Items', 'wck' ), 'slug' => 'add-or-remove-items', 'description' => __( 'ex. Add or remove writers', 'wck' ) ),
54
+ array( 'type' => 'text', 'title' => __( 'Choose From Most Used', 'wck' ), 'slug' => 'choose-from-most-used', 'description' => __( 'ex. Choose from the most used writers', 'wck' ) ),
55
+ array( 'type' => 'text', 'title' => __( 'Menu Name', 'wck' ), 'slug' => 'menu-name' ),
56
+
57
+ array( 'type' => 'select', 'title' => __( 'Public', 'wck' ), 'slug' => 'public', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Meta argument used to define default values for publicly_queriable, show_ui, show_in_nav_menus and exclude_from_search', 'wck' ) ),
58
+ array( 'type' => 'select', 'title' => __( 'Show UI', 'wck' ), 'slug' => 'show-ui', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether to generate a default UI for managing this post type.', 'wck' ) ),
59
+ array( 'type' => 'select', 'title' => __( 'Show Tagcloud', 'wck' ), 'slug' => 'show-tagcloud', 'options' => array( 'false', 'true' ), 'default' => 'true', 'description' => __( 'Whether to allow the Tag Cloud widget to use this taxonomy.', 'wck' ) ),
60
+ array( 'type' => 'select', 'title' => __( 'Show Admin Column', 'wck' ), 'slug' => 'show-admin-column', 'options' => array( 'false', 'true' ), 'default' => 'false', 'description' => __( 'Whether to allow automatic creation of taxonomy columns on associated post-types.', 'wck' ) )
61
+ );
62
+
63
+ $args = array(
64
+ 'metabox_id' => 'ctc_creation_box',
65
+ 'metabox_title' => __( 'Custom Taxonomy Creation', 'wck' ),
66
+ 'post_type' => 'ctc-page',
67
+ 'meta_name' => 'wck_ctc',
68
+ 'meta_array' => $ct_creation_fields,
69
+ 'context' => 'option'
70
+ );
71
+
72
+
73
+ new Wordpress_Creation_Kit( $args );
74
+ }
75
+ }
76
+
77
+ add_action( 'init', 'wck_ctc_create_taxonomy', 8 );
78
+
79
+ function wck_ctc_create_taxonomy(){
80
+ $cts = get_option('wck_ctc');
81
+ if( !empty( $cts ) ){
82
+ foreach( $cts as $ct ){
83
+
84
+ $labels = array(
85
+ 'name' => _x( $ct['plural-label'], 'taxonomy general name' ),
86
+ 'singular_name' => _x( $ct['singular-label'], 'taxonomy singular name'),
87
+ 'search_items' => __( $ct['search-items'] ? $ct['search-items'] : 'Search '.$ct['plural-label'], 'wck' ),
88
+ 'popular_items' => __( $ct['popular-items'] ? $ct['popular-items'] : "Popular ".$ct['plural-label'], 'wck' ),
89
+ 'all_items' => __( $ct['all-items'] ? $ct['all-items'] : "All ".$ct['plural-label'], 'wck' ) ,
90
+ 'parent_item' => __( $ct['parent-item'] ? $ct['parent-item'] : "Parent ".$ct['singular-label'], 'wck' ),
91
+ 'parent_item_colon' => __( $ct['parent-item-colon'] ? $ct['parent-item-colon'] : "Parent ".$ct['singular-label'].':', 'wck' ),
92
+ 'edit_item' => __( $ct['edit-item'] ? $ct['edit-item'] : "Edit ".$ct['singular-label'], 'wck' ),
93
+ 'update_item' => __( $ct['update-item'] ? $ct['update-item'] : "Update ".$ct['singular-label'], 'wck' ),
94
+ 'add_new_item' => __( $ct['add-new-item'] ? $ct['add-new-item'] : "Add New ". $ct['singular-label'], 'wck' ),
95
+ 'new_item_name' => __( $ct['new-item-name'] ? $ct['new-item-name'] : "New ". $ct['singular-label']. ' Name', 'wck' ),
96
+ 'separate_items_with_commas' => __( $ct['separate-items-with-commas'] ? $ct['separate-items-with-commas'] : "Separate ". strtolower( $ct['plural-label'] ). ' with commas', 'wck' ),
97
+ 'add_or_remove_items' => __( $ct['add-or-remove-items'] ? $ct['add-or-remove-items'] : "Add or remove " .strtolower( $ct['plural-label'] ), 'wck' ),
98
+ 'choose_from_most_used' => __( $ct['choose-from-most-used'] ? $ct['choose-from-most-used'] : "Choose from the most used " .strtolower( $ct['plural-label'] ), 'wck' ),
99
+ 'menu_name' => $ct['menu-name'] ? $ct['menu-name'] : $ct['plural-label']
100
+ );
101
+
102
+ $args = array(
103
+ 'labels' => $labels,
104
+ 'public' => $ct['public'] == 'false' ? false : true,
105
+ 'show_ui' => $ct['show-ui'] == 'false' ? false : true,
106
+ 'hierarchical' => $ct['hierarchical'] == 'false' ? false : true,
107
+ 'show_tagcloud' => $ct['show-tagcloud'] == 'false' ? false : true
108
+ );
109
+
110
+ if( !empty( $ct['show-admin-column'] ) ){
111
+ $args['show_admin_column'] = $ct['show-admin-column'] == 'false' ? false : true;
112
+ }
113
+
114
+ if( !empty( $ct['attach-to'] ) )
115
+ $object_type = explode( ', ', $ct['attach-to'] );
116
+ else
117
+ $object_type = '';
118
+
119
+ register_taxonomy( $ct['taxonomy'], $object_type, apply_filters( 'wck_ctc_register_taxonomy_args', $args, $ct['taxonomy'] ) );
120
+ }
121
+ }
122
+ }
123
+
124
+ /* Flush rewrite rules */
125
+ add_action('init', 'ctc_flush_rules', 20);
126
+ function ctc_flush_rules(){
127
+ if( isset( $_GET['page'] ) && $_GET['page'] == 'ctc-page' && isset( $_GET['updated'] ) && $_GET['updated'] == 'true' )
128
+ flush_rewrite_rules( false );
129
+ }
130
+
131
+ /* add refresh to page */
132
+ add_action("wck_refresh_list_wck_ctc", "wck_ctc_after_refresh_list");
133
+ add_action("wck_refresh_entry_wck_ctc", "wck_ctc_after_refresh_list");
134
+ function wck_ctc_after_refresh_list(){
135
+ echo '<script type="text/javascript">window.location="'. get_admin_url() . 'admin.php?page=ctc-page&updated=true' .'";</script>';
136
+ }
137
+
138
+ /* advanced labels container for add form */
139
+ add_action( "wck_before_add_form_wck_ctc_element_5", 'wck_ctc_form_label_wrapper_start' );
140
+ function wck_ctc_form_label_wrapper_start(){
141
+ echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-label-options-container\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __( 'Show Advanced Label Options', 'wck' ) .'</a></li>';
142
+ echo '<li id="ctc-advanced-label-options-container" style="display:none;"><ul>';
143
+ }
144
+
145
+ add_action( "wck_after_add_form_wck_ctc_element_17", 'wck_ctc_form_label_wrapper_end' );
146
+ function wck_ctc_form_label_wrapper_end(){
147
+ echo '</ul></li>';
148
+ }
149
+
150
+ /* advanced options container for add form */
151
+ add_action( "wck_before_add_form_wck_ctc_element_18", 'wck_ctc_form_wrapper_start' );
152
+ function wck_ctc_form_wrapper_start(){
153
+ echo '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-options-container\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
154
+ echo '<li id="ctc-advanced-options-container" style="display:none;"><ul>';
155
+ }
156
+
157
+ add_action( "wck_after_add_form_wck_ctc_element_21", 'wck_ctc_form_wrapper_end' );
158
+ function wck_ctc_form_wrapper_end(){
159
+ echo '</ul></li>';
160
+ }
161
+
162
+ /* advanced label options container for update form */
163
+ add_filter( "wck_before_update_form_wck_ctc_element_5", 'wck_ctc_update_form_label_wrapper_start', 10, 2 );
164
+ function wck_ctc_update_form_label_wrapper_start( $form, $i ){
165
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-label-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Label Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Label Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Label Options', 'wck' ) .'\');">'. __( 'Show Advanced Label Options', 'wck' ) .'</a></li>';
166
+ $form .= '<li id="ctc-advanced-label-options-update-container-'.$i.'" style="display:none;"><ul>';
167
+ return $form;
168
+ }
169
+
170
+ add_filter( "wck_after_update_form_wck_ctc_element_17", 'wck_ctc_update_form_label_wrapper_end', 10, 2 );
171
+ function wck_ctc_update_form_label_wrapper_end( $form, $i ){
172
+ $form .= '</ul></li>';
173
+ return $form;
174
+ }
175
+
176
+ /* advanced options container for update form */
177
+ add_filter( "wck_before_update_form_wck_ctc_element_18", 'wck_ctc_update_form_wrapper_start', 10, 2 );
178
+ function wck_ctc_update_form_wrapper_start( $form, $i ){
179
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-options-update-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
180
+ $form .= '<li id="ctc-advanced-options-update-container-'.$i.'" style="display:none;"><ul>';
181
+ return $form;
182
+ }
183
+
184
+ add_filter( "wck_after_update_form_wck_ctc_element_21", 'wck_ctc_update_form_wrapper_end', 10, 2 );
185
+ function wck_ctc_update_form_wrapper_end( $form, $i ){
186
+ $form .= '</ul></li>';
187
+ return $form;
188
+ }
189
+
190
+
191
+ /* advanced label options container for display */
192
+ add_filter( "wck_before_listed_wck_ctc_element_5", 'wck_ctc_display_label_wrapper_start', 10, 2 );
193
+ function wck_ctc_display_label_wrapper_start( $form, $i ){
194
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-label-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Labels', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Labels', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Labels', 'wck' ) .'\');">'. __( 'Show Advanced Labels', 'wck' ) .'</a></li>';
195
+ $form .= '<li id="ctc-advanced-label-options-display-container-'.$i.'" style="display:none;"><ul>';
196
+ return $form;
197
+ }
198
+
199
+ add_filter( "wck_after_listed_wck_ctc_element_17", 'wck_ctc_display_label_wrapper_end', 10, 2 );
200
+ function wck_ctc_display_label_wrapper_end( $form, $i ){
201
+ $form .= '</ul></li>';
202
+ return $form;
203
+ }
204
+
205
+ /* advanced options container for display */
206
+ add_filter( "wck_before_listed_wck_ctc_element_18", 'wck_ctc_display_adv_wrapper_start', 10, 2 );
207
+ function wck_ctc_display_adv_wrapper_start( $form, $i ){
208
+ $form .= '<li><a href="javascript:void(0)" onclick="jQuery(\'#ctc-advanced-options-display-container-'.$i.'\').toggle(); if( jQuery(this).text() == \''. __( 'Show Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Hide Advanced Options', 'wck' ) .'\'); else if( jQuery(this).text() == \''. __( 'Hide Advanced Options', 'wck' ) .'\' ) jQuery(this).text(\''. __( 'Show Advanced Options', 'wck' ) .'\');">'. __( 'Show Advanced Options', 'wck' ) .'</a></li>';
209
+ $form .= '<li id="ctc-advanced-options-display-container-'.$i.'" style="display:none;"><ul>';
210
+ return $form;
211
+ }
212
+
213
+ add_filter( "wck_after_listed_wck_ctc_element_21", 'wck_ctc_display_adv_wrapper_end', 10, 2 );
214
+ function wck_ctc_display_adv_wrapper_end( $form, $i ){
215
+ $form .= '</ul></li>';
216
+ return $form;
217
+ }
218
+
219
+ /* Add side metaboxes */
220
+ if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) ) {
221
+ add_action('add_meta_boxes', 'wck_ctc_add_side_boxes');
222
+ function wck_ctc_add_side_boxes()
223
+ {
224
+ add_meta_box('wck-ctc-side', __('Wordpress Creation Kit', 'wck'), 'wck_ctc_side_box_one', 'wck_page_ctc-page', 'side', 'high');
225
+ }
226
+
227
+ function wck_ctc_side_box_one()
228
+ {
229
+ ?>
230
+ <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree"><img
231
+ src="<?php echo plugins_url('/images/banner_pro.png', __FILE__) ?>?v=1" width="260" height="385"
232
+ alt="WCK-PRO"/></a>
233
+ <?php
234
+ }
235
+ }
236
+ /* Contextual Help */
237
+ add_action('load-wck_page_ctc-page', 'wck_ctc_help');
238
+
239
+ function wck_ctc_help () {
240
+ $screen = get_current_screen();
241
+
242
+ /*
243
+ * Check if current screen is wck_page_cptc-page
244
+ * Don't add help tab if it's not
245
+ */
246
+ if ( $screen->id != 'wck_page_ctc-page' )
247
+ return;
248
+
249
+ // Add help tabs
250
+ $screen->add_help_tab( array(
251
+ 'id' => 'wck_ctc_overview',
252
+ 'title' => __( 'Overview', 'wck' ),
253
+ 'content' => '<p>' . __( 'WCK Custom Taxonomy Creator allows you to easily create custom taxonomy for Wordpress without any programming knowledge.<br />Most of the common options for creating a taxonomy are displayed by default while the advanced and label options are just one click away.', 'wck' ) . '</p>',
254
+ ) );
255
+
256
+ $screen->add_help_tab( array(
257
+ 'id' => 'wck_ctc_labels',
258
+ 'title' => __( 'Labels', 'wck' ),
259
+ 'content' => '<p>' . __( 'For simplicity you are required to introduce only the Singular Label and Plural Label from wchich the rest of the labels will be formed.<br />For a more detailed control of the labels you just have to click the "Show Advanced Label Options" link and all the availabel labels will be displayed', 'wck' ) . '</p>',
260
+ ) );
261
+
262
+ $screen->add_help_tab( array(
263
+ 'id' => 'wck_ctc_advanced',
264
+ 'title' => __( 'Advanced Options', 'wck' ),
265
+ 'content' => '<p>' . __( 'The Advanced Options are set to the most common defaults for taxonomies. To display them click the "Show Advanced Options" link.', 'wck' ) . '</p>',
266
+ ) );
267
+ }
268
  ?>
wck-free-to-pro.php CHANGED
@@ -1,167 +1,167 @@
1
- <?php
2
- /* Add Scripts */
3
- add_action('admin_enqueue_scripts', 'wck_free_to_pro_print_scripts' );
4
- function wck_free_to_pro_print_scripts($hook){
5
- if( 'wck_page_free-to-pro-stp' == $hook || 'wck_page_free-to-pro-fep' == $hook ){
6
- wp_register_style('wck-sas-css', plugins_url('/css/wck-free-to-pro.css', __FILE__));
7
- wp_enqueue_style('wck-sas-css');
8
- }
9
- }
10
-
11
- /* Create the WCK "Front End Posting" Page only for admins ( 'capability' => 'edit_theme_options' ) */
12
- $args = array(
13
- 'page_title' => __( 'Front End Posting', 'wck' ),
14
- 'menu_title' => __( 'Front End Posting', 'wck' ),
15
- 'capability' => 'edit_theme_options',
16
- 'menu_slug' => 'free-to-pro-fep',
17
- 'page_type' => 'submenu_page',
18
- 'parent_slug' => 'wck-page',
19
- 'priority' => 15,
20
- 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
21
- );
22
- $sas_page = new WCK_Page_Creator( $args );
23
-
24
- /* Create the WCK "Swift Templates" Page only for admins ( 'capability' => 'edit_theme_options' ) */
25
- $args = array(
26
- 'page_title' => __( 'Swift Templates', 'wck' ),
27
- 'menu_title' => __( 'Swift Templates', 'wck' ),
28
- 'capability' => 'edit_theme_options',
29
- 'menu_slug' => 'free-to-pro-stp',
30
- 'page_type' => 'submenu_page',
31
- 'parent_slug' => 'wck-page',
32
- 'priority' => 17,
33
- 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
34
- );
35
- $sas_page = new WCK_Page_Creator( $args );
36
-
37
- /**
38
- * Function that adds content to the "Swift Templates" page for the free version
39
- *
40
- * @since v.2.0.8
41
- *
42
- * @return string
43
- */
44
- add_action( 'wck_before_meta_boxes', 'wck_free_to_pro_stp' );
45
- function wck_free_to_pro_stp( $hook ) {
46
- if( 'wck_page_free-to-pro-stp' != $hook ){
47
- return ;
48
- }
49
-
50
- ?>
51
- <div class="wck-wrap wck-info-wrap">
52
- <img class="stp-logo" src="<?php echo plugins_url( 'images/swift-template-logo.png' , __FILE__ ); ?>" alt="Swift Templates" />
53
- <h1><?php _e( 'Swift Templates', 'wck' ); ?></h1>
54
- <p class="wck-info-text"><?php _e( 'A straight forward alternative to WordPress templates', 'wck' ); ?></p>
55
- <hr />
56
- <h2>You're not a programmer. You keep delaying work with any of the templates in fear of making a bigger mess than where you started.</h2>
57
- <p><strong>When you're starting out it's just painful. You would do anything BUT custom code your WordPress templates:</strong></p>
58
- <ul>
59
- <li>research 10+ plugins wishing they can solve your problem</li>
60
- <li>start using a lot of shortcodes inside the content area that will break the moment the client wants to edit the content</li>
61
- <li>consider spending at least a week on that 5 parts HUGE article explaining how to custom code your own WordPress templates</li>
62
- </ul>
63
-
64
- <h3>Wouldn't it be nice to be able to simply:</h3>
65
- <ul>
66
- <li>create listings of all your custom post types</li>
67
- <li>create single page templates that take into account your custom fields previously defined with WCK</li>
68
- <li>all of this without writing PHP and messing with any of the template files</li>
69
- </ul>
70
-
71
- <h2>Swift Templates helps you build front-end templates directly from the WordPress admin UI, without writing a single line of PHP code.</h2>
72
- <p>It turns a time consuming and error prone process that was previously only accessible to developers into a straight forward UI that with a little bit of HTML and CSS allows you to:</p>
73
- <ul>
74
- <li>create archive listings for your custom post types, pages or posts</li>
75
- <li>modify the single CPT page template to include ALL your custom fields and metaboxes</li>
76
- <li>display your custom fields in any page, post or custom post type</li>
77
- <li>query, filter and load any content type</li>
78
- <ul>
79
- <br/>
80
-
81
- <h3 class="wck-free-to-pro-call-to-action">Swift Templates is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
82
- <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
83
-
84
- <h2>Screenshots</h2>
85
- <p><strong>1. Creating a Custom Post Type Archive page</strong></p>
86
- <img class="screenshot" src="<?php echo plugins_url( 'images/swift-templates.png' , __FILE__ ); ?>" alt="Custom Post Type Archive page" />
87
-
88
- <p><strong>2. Build your Archive and Single Templates for any Custom Post Type by simply selecting from the list of available variables. </strong></p>
89
- <img class="screenshot" src="<?php echo plugins_url( 'images/swift-templates-code.png' , __FILE__ ); ?>" alt="Swift Templates - Archive and Single Templates" />
90
-
91
- <p><strong>3. Create individual templates for pages, posts or custom post types that include all your custom fields.</strong></p>
92
- <img class="screenshot" src="<?php echo plugins_url( 'images/swift_single_team_page.png' , __FILE__ ); ?>" alt="individual page template" />
93
-
94
- <p><strong>3. Here's how the Team page will look in the front-end.</strong> It now includes the post content as well as the all custom fields data.</p>
95
- <img class="screenshot" src="<?php echo plugins_url( 'images/team-page-final.jpg' , __FILE__ ); ?>" alt="team page" />
96
-
97
- <h3 class="wck-free-to-pro-call-to-action">Swift Templates is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
98
- <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
99
- </div>
100
- <?php
101
- }
102
-
103
- /**
104
- * Function that adds content to the "Front End Posting" page for the free version
105
- *
106
- * @since v.2.0.8
107
- *
108
- * @return string
109
- */
110
- add_action( 'wck_before_meta_boxes', 'wck_free_to_pro_fep' );
111
- function wck_free_to_pro_fep( $hook ) {
112
- if( 'wck_page_free-to-pro-fep' != $hook ){
113
- return;
114
- }
115
-
116
- ?>
117
- <div class="wck-wrap wck-info-wrap">
118
- <img class="stp-logo" src="<?php echo plugins_url( 'images/fep_logo.png' , __FILE__ ); ?>" alt="Front End Posting" />
119
- <h1><?php _e( 'Front End Posting', 'wck' ); ?></h1>
120
- <p class="wck-info-text"><?php _e( 'An easy way to add and edit content from the front-end', 'wck' ); ?></p>
121
- <hr />
122
- <h2>Wouldn't it be nice to allow your users to post content directly from the front-end without ever seeing the backend?</h2>
123
- <p><strong>If you've been looking for an easy way to:</strong></p>
124
- <ul>
125
- <li>allow visitors to submit posts or images</li>
126
- <li>transform part of your website's visitors into contributors</li>
127
- <li>keep WordPress users out of the dashboard and put everything they need on the front-end</li>
128
- </ul>
129
- <p> Now you can.</p>
130
-
131
- <h2>With WCK Front-end Posting you can create and edit posts, pages or custom post types, directly from the front-end. No coding required.</h2>
132
- <p></p>
133
-
134
- <h3>You can build a flexible <strong>Front-end Posting form</strong> in minutes, that can contain:</h3>
135
- <ul>
136
- <li>Any of the available fields in the WordPress backend: <strong>Title, Content, Excerpt, Categories, Tags, Custom Taxonomies, Featured Image</strong> etc.</li>
137
- <li>Any <strong>Custom Fields</strong> that are attached to the post type</li>
138
- <li>Any <strong>Taxonomy</strong> that is attached to the post type</li>
139
- </ul>
140
- <br/>
141
-
142
- <h3><strong>Frontend Posting Features:</strong></h3>
143
- <ul>
144
- <li>Post articles in ANY Custom Post Type</li>
145
- <li>Taxonomies and Custom Fields available for the front-end form</li>
146
- <li>Edit all your content directly from the front-end (you'll get access to a <strong>Front-end Dashboard</strong>)</li>
147
- <li><strong>WYSIWYG Editor</strong> for adding and editing content</li>
148
- <li><strong>Anonymous Posting</strong> and <strong>Admin Approval</strong></li>
149
- <li>Easy to integrate by using shortcodes</li>
150
-
151
- </ul>
152
- <h3 class="wck-free-to-pro-call-to-action">Frontend Posting is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
153
- <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
154
-
155
- <h2>Screenshots</h2>
156
- <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_form_setup.png' , __FILE__ ); ?>" alt="form setup screenshot" />
157
- <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_form_fields.png' , __FILE__ ); ?>" alt="form fields screenshot" />
158
- <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_form_example.png' , __FILE__ ); ?>" alt="fep screenshot" /><br/>
159
- <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_dashboard.png' , __FILE__ ); ?>" alt="fep dashboard" /><br/>
160
- <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_dashboard_edit.png' , __FILE__ ); ?>" alt="fep dashboard" /><br/>
161
-
162
- <h3 class="wck-free-to-pro-call-to-action">Frontend Posting is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
163
- <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
164
-
165
- </div>
166
- <?php
167
  }
1
+ <?php
2
+ /* Add Scripts */
3
+ add_action('admin_enqueue_scripts', 'wck_free_to_pro_print_scripts' );
4
+ function wck_free_to_pro_print_scripts($hook){
5
+ if( 'wck_page_free-to-pro-stp' == $hook || 'wck_page_free-to-pro-fep' == $hook ){
6
+ wp_register_style('wck-sas-css', plugins_url('/css/wck-free-to-pro.css', __FILE__));
7
+ wp_enqueue_style('wck-sas-css');
8
+ }
9
+ }
10
+
11
+ /* Create the WCK "Front End Posting" Page only for admins ( 'capability' => 'edit_theme_options' ) */
12
+ $args = array(
13
+ 'page_title' => __( 'Front End Posting', 'wck' ),
14
+ 'menu_title' => __( 'Front End Posting', 'wck' ),
15
+ 'capability' => 'edit_theme_options',
16
+ 'menu_slug' => 'free-to-pro-fep',
17
+ 'page_type' => 'submenu_page',
18
+ 'parent_slug' => 'wck-page',
19
+ 'priority' => 15,
20
+ 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
21
+ );
22
+ $sas_page = new WCK_Page_Creator( $args );
23
+
24
+ /* Create the WCK "Swift Templates" Page only for admins ( 'capability' => 'edit_theme_options' ) */
25
+ $args = array(
26
+ 'page_title' => __( 'Swift Templates', 'wck' ),
27
+ 'menu_title' => __( 'Swift Templates', 'wck' ),
28
+ 'capability' => 'edit_theme_options',
29
+ 'menu_slug' => 'free-to-pro-stp',
30
+ 'page_type' => 'submenu_page',
31
+ 'parent_slug' => 'wck-page',
32
+ 'priority' => 17,
33
+ 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
34
+ );
35
+ $sas_page = new WCK_Page_Creator( $args );
36
+
37
+ /**
38
+ * Function that adds content to the "Swift Templates" page for the free version
39
+ *
40
+ * @since v.2.0.8
41
+ *
42
+ * @return string
43
+ */
44
+ add_action( 'wck_before_meta_boxes', 'wck_free_to_pro_stp' );
45
+ function wck_free_to_pro_stp( $hook ) {
46
+ if( 'wck_page_free-to-pro-stp' != $hook ){
47
+ return ;
48
+ }
49
+
50
+ ?>
51
+ <div class="wck-wrap wck-info-wrap">
52
+ <img class="stp-logo" src="<?php echo plugins_url( 'images/swift-template-logo.png' , __FILE__ ); ?>" alt="Swift Templates" />
53
+ <h1><?php _e( 'Swift Templates', 'wck' ); ?></h1>
54
+ <p class="wck-info-text"><?php _e( 'A straight forward alternative to WordPress templates', 'wck' ); ?></p>
55
+ <hr />
56
+ <h2>You're not a programmer. You keep delaying work with any of the templates in fear of making a bigger mess than where you started.</h2>
57
+ <p><strong>When you're starting out it's just painful. You would do anything BUT custom code your WordPress templates:</strong></p>
58
+ <ul>
59
+ <li>research 10+ plugins wishing they can solve your problem</li>
60
+ <li>start using a lot of shortcodes inside the content area that will break the moment the client wants to edit the content</li>
61
+ <li>consider spending at least a week on that 5 parts HUGE article explaining how to custom code your own WordPress templates</li>
62
+ </ul>
63
+
64
+ <h3>Wouldn't it be nice to be able to simply:</h3>
65
+ <ul>
66
+ <li>create listings of all your custom post types</li>
67
+ <li>create single page templates that take into account your custom fields previously defined with WCK</li>
68
+ <li>all of this without writing PHP and messing with any of the template files</li>
69
+ </ul>
70
+
71
+ <h2>Swift Templates helps you build front-end templates directly from the WordPress admin UI, without writing a single line of PHP code.</h2>
72
+ <p>It turns a time consuming and error prone process that was previously only accessible to developers into a straight forward UI that with a little bit of HTML and CSS allows you to:</p>
73
+ <ul>
74
+ <li>create archive listings for your custom post types, pages or posts</li>
75
+ <li>modify the single CPT page template to include ALL your custom fields and metaboxes</li>
76
+ <li>display your custom fields in any page, post or custom post type</li>
77
+ <li>query, filter and load any content type</li>
78
+ <ul>
79
+ <br/>
80
+
81
+ <h3 class="wck-free-to-pro-call-to-action">Swift Templates is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
82
+ <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
83
+
84
+ <h2>Screenshots</h2>
85
+ <p><strong>1. Creating a Custom Post Type Archive page</strong></p>
86
+ <img class="screenshot" src="<?php echo plugins_url( 'images/swift-templates.png' , __FILE__ ); ?>" alt="Custom Post Type Archive page" />
87
+
88
+ <p><strong>2. Build your Archive and Single Templates for any Custom Post Type by simply selecting from the list of available variables. </strong></p>
89
+ <img class="screenshot" src="<?php echo plugins_url( 'images/swift-templates-code.png' , __FILE__ ); ?>" alt="Swift Templates - Archive and Single Templates" />
90
+
91
+ <p><strong>3. Create individual templates for pages, posts or custom post types that include all your custom fields.</strong></p>
92
+ <img class="screenshot" src="<?php echo plugins_url( 'images/swift_single_team_page.png' , __FILE__ ); ?>" alt="individual page template" />
93
+
94
+ <p><strong>3. Here's how the Team page will look in the front-end.</strong> It now includes the post content as well as the all custom fields data.</p>
95
+ <img class="screenshot" src="<?php echo plugins_url( 'images/team-page-final.jpg' , __FILE__ ); ?>" alt="team page" />
96
+
97
+ <h3 class="wck-free-to-pro-call-to-action">Swift Templates is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
98
+ <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
99
+ </div>
100
+ <?php
101
+ }
102
+
103
+ /**
104
+ * Function that adds content to the "Front End Posting" page for the free version
105
+ *
106
+ * @since v.2.0.8
107
+ *
108
+ * @return string
109
+ */
110
+ add_action( 'wck_before_meta_boxes', 'wck_free_to_pro_fep' );
111
+ function wck_free_to_pro_fep( $hook ) {
112
+ if( 'wck_page_free-to-pro-fep' != $hook ){
113
+ return;
114
+ }
115
+
116
+ ?>
117
+ <div class="wck-wrap wck-info-wrap">
118
+ <img class="stp-logo" src="<?php echo plugins_url( 'images/fep_logo.png' , __FILE__ ); ?>" alt="Front End Posting" />
119
+ <h1><?php _e( 'Front End Posting', 'wck' ); ?></h1>
120
+ <p class="wck-info-text"><?php _e( 'An easy way to add and edit content from the front-end', 'wck' ); ?></p>
121
+ <hr />
122
+ <h2>Wouldn't it be nice to allow your users to post content directly from the front-end without ever seeing the backend?</h2>
123
+ <p><strong>If you've been looking for an easy way to:</strong></p>
124
+ <ul>
125
+ <li>allow visitors to submit posts or images</li>
126
+ <li>transform part of your website's visitors into contributors</li>
127
+ <li>keep WordPress users out of the dashboard and put everything they need on the front-end</li>
128
+ </ul>
129
+ <p> Now you can.</p>
130
+
131
+ <h2>With WCK Front-end Posting you can create and edit posts, pages or custom post types, directly from the front-end. No coding required.</h2>
132
+ <p></p>
133
+
134
+ <h3>You can build a flexible <strong>Front-end Posting form</strong> in minutes, that can contain:</h3>
135
+ <ul>
136
+ <li>Any of the available fields in the WordPress backend: <strong>Title, Content, Excerpt, Categories, Tags, Custom Taxonomies, Featured Image</strong> etc.</li>
137
+ <li>Any <strong>Custom Fields</strong> that are attached to the post type</li>
138
+ <li>Any <strong>Taxonomy</strong> that is attached to the post type</li>
139
+ </ul>
140
+ <br/>
141
+
142
+ <h3><strong>Frontend Posting Features:</strong></h3>
143
+ <ul>
144
+ <li>Post articles in ANY Custom Post Type</li>
145
+ <li>Taxonomies and Custom Fields available for the front-end form</li>
146
+ <li>Edit all your content directly from the front-end (you'll get access to a <strong>Front-end Dashboard</strong>)</li>
147
+ <li><strong>WYSIWYG Editor</strong> for adding and editing content</li>
148
+ <li><strong>Anonymous Posting</strong> and <strong>Admin Approval</strong></li>
149
+ <li>Easy to integrate by using shortcodes</li>
150
+
151
+ </ul>
152
+ <h3 class="wck-free-to-pro-call-to-action">Frontend Posting is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
153
+ <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
154
+
155
+ <h2>Screenshots</h2>
156
+ <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_form_setup.png' , __FILE__ ); ?>" alt="form setup screenshot" />
157
+ <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_form_fields.png' , __FILE__ ); ?>" alt="form fields screenshot" />
158
+ <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_form_example.png' , __FILE__ ); ?>" alt="fep screenshot" /><br/>
159
+ <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_dashboard.png' , __FILE__ ); ?>" alt="fep dashboard" /><br/>
160
+ <img class="screenshot" src="<?php echo plugins_url( 'images/FEP_dashboard_edit.png' , __FILE__ ); ?>" alt="fep dashboard" /><br/>
161
+
162
+ <h3 class="wck-free-to-pro-call-to-action">Frontend Posting is available in <br/><a class="button button-primary button-free-to-pro" href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCK-FreetoPRO">WordPress Creation Kit PRO</a></h3>
163
+ <p class="wck-free-to-pro-call-to-action">* Simply deactivate the free version before installing WCK PRO and all your existing settings/setup will be ported over.</p>
164
+
165
+ </div>
166
+ <?php
167
  }
wck-sas.php CHANGED
@@ -53,18 +53,18 @@ function wck_sas_create_box(){
53
 
54
  /* set up the tools array */
55
  $sas_tools_activate = array(
56
- array( 'type' => 'radio', 'title' => __( 'Custom Fields Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
57
- array( 'type' => 'radio', 'title' => __( 'Custom Post Type Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
58
- array( 'type' => 'radio', 'title' => __( 'Custom Taxonomy Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
59
  );
60
  if( file_exists( dirname(__FILE__).'/wck-fep.php' ) )
61
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Frontend Posting', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
62
  if( file_exists( dirname(__FILE__).'/wck-opc.php' ) )
63
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Option Pages Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
64
  if( file_exists( dirname(__FILE__).'/wck-stp.php' ) )
65
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
66
  if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) && !file_exists( dirname(__FILE__).'/wck-fep.php' ) )
67
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates and Front End Posting', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
68
 
69
  /* set up the box arguments */
70
  $args = array(
53
 
54
  /* set up the tools array */
55
  $sas_tools_activate = array(
56
+ array( 'type' => 'radio', 'title' => __( 'Custom Fields Creator', 'wck' ), 'slug' => 'custom-fields-creator', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
57
+ array( 'type' => 'radio', 'title' => __( 'Custom Post Type Creator', 'wck' ), 'slug' => 'custom-post-type-creator', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
58
+ array( 'type' => 'radio', 'title' => __( 'Custom Taxonomy Creator', 'wck' ), 'slug' => 'custom-taxonomy-creator', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
59
  );
60
  if( file_exists( dirname(__FILE__).'/wck-fep.php' ) )
61
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Frontend Posting', 'wck' ), 'slug' => 'frontend-posting', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
62
  if( file_exists( dirname(__FILE__).'/wck-opc.php' ) )
63
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Option Pages Creator', 'wck' ), 'slug' => 'option-pages-creator', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
64
  if( file_exists( dirname(__FILE__).'/wck-stp.php' ) )
65
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates', 'wck' ), 'slug' => 'swift-templates', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
66
  if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) && !file_exists( dirname(__FILE__).'/wck-fep.php' ) )
67
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates and Front End Posting', 'wck' ), 'slug' => 'swift-templates-and-front-end-posting', 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
68
 
69
  /* set up the box arguments */
70
  $args = array(
wck-template-api/index.php CHANGED
@@ -1,2 +1,2 @@
1
- <?php
2
  //silence is golden
1
+ <?php
2
  //silence is golden
wck-template-api/wck-field-preprocess.php CHANGED
@@ -1,254 +1,254 @@
1
- <?php
2
- /* Copyright 2013 cozmoslabs.com (email : hello@cozmoslabs.com)
3
- This program is free software; you can redistribute it and/or modify
4
- it under the terms of the GNU General Public License as published by
5
- the Free Software Foundation; either version 2 of the License, or
6
- (at your option) any later version.
7
- This program is distributed in the hope that it will be useful,
8
- but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- GNU General Public License for more details.
11
- You should have received a copy of the GNU General Public License
12
- along with this program; if not, write to the Free Software
13
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14
- */
15
-
16
-
17
- /**
18
- * Preprocess the textarea field types.
19
- * We're converting new lines to <br /> tags
20
- *
21
- * @since 1.1.5
22
- *
23
- * @param string $field The actual field content
24
- * @return string $field The processed field
25
- */
26
- add_filter( 'wck_output_get_field_textarea', 'wck_preprocess_field_textarea', 10 );
27
- function wck_preprocess_field_textarea( $field ){
28
- return nl2br( $field );
29
- }
30
-
31
- /**
32
- * Preprocess the checkbox field types.
33
- * We're returnig an array with the selected checkboxes
34
- *
35
- * @since 1.1.5
36
- *
37
- * @param string $field The actual field content
38
- * @return string $checkbox The processed field
39
- */
40
- add_filter( 'wck_output_get_field_checkbox', 'wck_preprocess_field_checkbox', 10 );
41
- function wck_preprocess_field_checkbox( $field ){
42
- if( !empty( $field ) ){
43
- $checkbox = explode( ', ', $field );
44
- return $checkbox;
45
- }
46
- return array();
47
- }
48
-
49
- /**
50
- * Preprocess the checkbox field types in the the_cfc_field .
51
- * We're returnig a coma separated list with the selected values - not labels
52
- *
53
- * @since 1.1.5
54
- *
55
- * @param string $field The actual field content
56
- * @return string $checkbox The processed field
57
- */
58
- add_filter( 'wck_output_the_field_checkbox', 'wck_preprocess_the_field_checkbox', 10 );
59
- function wck_preprocess_the_field_checkbox( $field ){
60
- if( !empty( $field ) ){
61
- $checkbox_list = implode( ', ', $field );
62
- return $checkbox_list;
63
- }
64
- return '';
65
- }
66
-
67
- /**
68
- * Preprocess the upload field types.
69
- * We're returnig an array for images and an object for normal files
70
- *
71
- * @since 1.1.5
72
- *
73
- * @param string $field The actual field content
74
- * @return string $upload The processed field
75
- */
76
- add_filter( 'wck_output_get_field_upload', 'wck_preprocess_field_upload', 10 );
77
- function wck_preprocess_field_upload( $field ){
78
-
79
- if ( $field == '' || !is_numeric( $field ) )
80
- return false;
81
-
82
- if ( is_null( get_post( $field ) ) )
83
- return false;
84
-
85
- if ( wp_attachment_is_image( $field ) ) {
86
-
87
- $attachment = get_post( $field );
88
-
89
- // create array to hold value data
90
- $src = wp_get_attachment_image_src( $attachment->ID, 'full' );
91
-
92
- $value = array(
93
- 'id' => $attachment->ID,
94
- 'alt' => get_post_meta($attachment->ID, '_wp_attachment_image_alt', true),
95
- 'title' => $attachment->post_title,
96
- 'caption' => $attachment->post_excerpt,
97
- 'description' => $attachment->post_content,
98
- 'url' => $src[0],
99
- 'width' => $src[1],
100
- 'height' => $src[2],
101
- 'sizes' => array(),
102
- );
103
-
104
- // find all image sizes
105
- $image_sizes = get_intermediate_image_sizes();
106
-
107
- if( $image_sizes )
108
- {
109
- foreach( $image_sizes as $image_size )
110
- {
111
- // find src
112
- $src = wp_get_attachment_image_src( $attachment->ID, $image_size );
113
-
114
- // add src
115
- $value[ 'sizes' ][ $image_size ] = $src[0];
116
- $value[ 'sizes' ][ $image_size . '-width' ] = $src[1];
117
- $value[ 'sizes' ][ $image_size . '-height' ] = $src[2];
118
- }
119
- }
120
-
121
- return $value;
122
-
123
- } else {
124
-
125
- $attachement = get_post( $field );
126
-
127
- return $attachement;
128
-
129
- }
130
-
131
- }
132
-
133
- /**
134
- * Preprocess the upload field types in the_cfc_field function.
135
- * We're returnig an url.
136
- *
137
- * @since 1.1.5
138
- *
139
- */
140
- add_filter( 'wck_output_the_field_upload', 'wck_preprocess_the_field_upload', 10 );
141
- function wck_preprocess_the_field_upload( $field ){
142
-
143
- if( $field === false ){
144
- return;
145
- }
146
-
147
- if ( is_object( $field ) ){
148
- return $field->guid;
149
- }
150
-
151
- if ( is_array( $field ) ){
152
- return $field['url'];
153
- }
154
-
155
- }
156
-
157
-
158
- /**
159
- * Preprocess the user select field types.
160
- * We're returnig an array with user related information
161
- *
162
- * @since 1.1.5
163
- *
164
- * @param string $field The actual field content
165
- * @return string $user The processed field
166
- */
167
- add_filter( 'wck_output_get_field_user-select', 'wck_preprocess_field_user_select', 10 );
168
- function wck_preprocess_field_user_select( $uid ){
169
- $user_data = get_userdata( $uid );
170
-
171
- if ( $user_data ){
172
- $user_array = array();
173
- $user_array['ID'] = $uid;
174
- $user_array['user_firstname'] = $user_data->user_firstname;
175
- $user_array['user_lastname'] = $user_data->user_lastname;
176
- $user_array['nickname'] = $user_data->nickname;
177
- $user_array['user_nicename'] = $user_data->user_nicename;
178
- $user_array['display_name'] = $user_data->display_name;
179
- $user_array['user_email'] = $user_data->user_email;
180
- $user_array['user_url'] = $user_data->user_url;
181
- $user_array['user_registered'] = $user_data->user_registered;
182
- $user_array['user_description'] = $user_data->user_description;
183
- $user_array['user_avatar'] = get_avatar( $uid );
184
-
185
- return $user_array;
186
-
187
- } else {
188
-
189
- return false;
190
-
191
- }
192
- }
193
-
194
- /**
195
- * Preprocess the user select field types for the_cfc_field.
196
- * We're returnig the Display Name
197
- *
198
- * @since 1.1.5
199
- *
200
- */
201
- add_filter( 'wck_output_the_field_user-select', 'wck_preprocess_the_field_user_select', 10 );
202
- function wck_preprocess_the_field_user_select( $user ){
203
-
204
- if( $user === false ){
205
- return;
206
- }
207
-
208
- if( is_array( $user ) ){
209
- return $user['display_name'];
210
- }
211
-
212
- }
213
-
214
- /**
215
- * Preprocess the cpt select field types.
216
- * We're returnig a post object
217
- *
218
- * @since 1.1.5
219
- *
220
- * @param string $field The actual field content
221
- * @return string $user The processed field
222
- */
223
- add_filter( 'wck_output_get_field_cpt-select', 'wck_preprocess_field_cpt_select', 10 );
224
- function wck_preprocess_field_cpt_select( $id ){
225
-
226
- if ( $id == '' || !is_numeric( $id ) )
227
- return false;
228
-
229
- $post = get_post( $id );
230
- if( is_null( $post ) )
231
- return false;
232
-
233
- return $post;
234
- }
235
-
236
- /**
237
- * Preprocess the cpt select field types for the_cpt_field.
238
- * We're returnig the post title.
239
- *
240
- * @since 1.1.5
241
- *
242
- */
243
- add_filter( 'wck_output_the_field_cpt-select', 'wck_preprocess_the_field_cpt_select', 10 );
244
- function wck_preprocess_the_field_cpt_select( $post ){
245
-
246
- if( $post == false ){
247
- return;
248
- }
249
-
250
- if( is_object( $post ) ){
251
- return $post->post_title;
252
- }
253
-
254
- }
1
+ <?php
2
+ /* Copyright 2013 cozmoslabs.com (email : hello@cozmoslabs.com)
3
+ This program is free software; you can redistribute it and/or modify
4
+ it under the terms of the GNU General Public License as published by
5
+ the Free Software Foundation; either version 2 of the License, or
6
+ (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful,
8
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ GNU General Public License for more details.
11
+ You should have received a copy of the GNU General Public License
12
+ along with this program; if not, write to the Free Software
13
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14
+ */
15
+
16
+
17
+ /**
18
+ * Preprocess the textarea field types.
19
+ * We're converting new lines to <br /> tags
20
+ *
21
+ * @since 1.1.5
22
+ *
23
+ * @param string $field The actual field content
24
+ * @return string $field The processed field
25
+ */
26
+ add_filter( 'wck_output_get_field_textarea', 'wck_preprocess_field_textarea', 10 );
27
+ function wck_preprocess_field_textarea( $field ){
28
+ return nl2br( $field );
29
+ }
30
+
31
+ /**
32
+ * Preprocess the checkbox field types.
33
+ * We're returnig an array with the selected checkboxes
34
+ *
35
+ * @since 1.1.5
36
+ *
37
+ * @param string $field The actual field content
38
+ * @return string $checkbox The processed field
39
+ */
40
+ add_filter( 'wck_output_get_field_checkbox', 'wck_preprocess_field_checkbox', 10 );
41
+ function wck_preprocess_field_checkbox( $field ){
42
+ if( !empty( $field ) ){
43
+ $checkbox = explode( ', ', $field );
44
+ return $checkbox;
45
+ }
46
+ return array();
47
+ }
48
+
49
+ /**
50
+ * Preprocess the checkbox field types in the the_cfc_field .
51
+ * We're returnig a coma separated list with the selected values - not labels
52
+ *
53
+ * @since 1.1.5
54
+ *
55
+ * @param string $field The actual field content
56
+ * @return string $checkbox The processed field
57
+ */
58
+ add_filter( 'wck_output_the_field_checkbox', 'wck_preprocess_the_field_checkbox', 10 );
59
+ function wck_preprocess_the_field_checkbox( $field ){
60
+ if( !empty( $field ) ){
61
+ $checkbox_list = implode( ', ', $field );
62
+ return $checkbox_list;
63
+ }
64
+ return '';
65
+ }
66
+
67
+ /**
68
+ * Preprocess the upload field types.
69
+ * We're returnig an array for images and an object for normal files
70
+ *
71
+ * @since 1.1.5
72
+ *
73
+ * @param string $field The actual field content
74
+ * @return string $upload The processed field
75
+ */
76
+ add_filter( 'wck_output_get_field_upload', 'wck_preprocess_field_upload', 10 );
77
+ function wck_preprocess_field_upload( $field ){
78
+
79
+ if ( $field == '' || !is_numeric( $field ) )
80
+ return false;
81
+
82
+ if ( is_null( get_post( $field ) ) )
83
+ return false;
84
+
85
+ if ( wp_attachment_is_image( $field ) ) {
86
+
87
+ $attachment = get_post( $field );
88
+
89
+ // create array to hold value data
90
+ $src = wp_get_attachment_image_src( $attachment->ID, 'full' );
91
+
92
+ $value = array(
93
+ 'id' => $attachment->ID,
94
+ 'alt' => get_post_meta($attachment->ID, '_wp_attachment_image_alt', true),
95
+ 'title' => $attachment->post_title,
96
+ 'caption' => $attachment->post_excerpt,
97
+ 'description' => $attachment->post_content,
98
+ 'url' => $src[0],
99
+ 'width' => $src[1],
100
+ 'height' => $src[2],
101
+ 'sizes' => array(),
102
+ );
103
+
104
+ // find all image sizes
105
+ $image_sizes = get_intermediate_image_sizes();
106
+
107
+ if( $image_sizes )
108
+ {
109
+ foreach( $image_sizes as $image_size )
110
+ {
111
+ // find src
112
+ $src = wp_get_attachment_image_src( $attachment->ID, $image_size );
113
+
114
+ // add src
115
+ $value[ 'sizes' ][ $image_size ] = $src[0];
116
+ $value[ 'sizes' ][ $image_size . '-width' ] = $src[1];
117
+ $value[ 'sizes' ][ $image_size . '-height' ] = $src[2];
118
+ }
119
+ }
120
+
121
+ return $value;
122
+
123
+ } else {
124
+
125
+ $attachement = get_post( $field );
126
+
127
+ return $attachement;
128
+
129
+ }
130
+
131
+ }
132
+
133
+ /**
134
+ * Preprocess the upload field types in the_cfc_field function.
135
+ * We're returnig an url.
136
+ *
137
+ * @since 1.1.5
138
+ *
139
+ */
140
+ add_filter( 'wck_output_the_field_upload', 'wck_preprocess_the_field_upload', 10 );
141
+ function wck_preprocess_the_field_upload( $field ){
142
+
143
+ if( $field === false ){
144
+ return;
145
+ }
146
+
147
+ if ( is_object( $field ) ){
148
+ return $field->guid;
149
+ }
150
+
151
+ if ( is_array( $field ) ){
152
+ return $field['url'];
153
+ }
154
+
155
+ }
156
+
157
+
158
+ /**
159
+ * Preprocess the user select field types.
160
+ * We're returnig an array with user related information
161
+ *
162
+ * @since 1.1.5
163
+ *
164
+ * @param string $field The actual field content
165
+ * @return string $user The processed field
166
+ */
167
+ add_filter( 'wck_output_get_field_user-select', 'wck_preprocess_field_user_select', 10 );
168
+ function wck_preprocess_field_user_select( $uid ){
169
+ $user_data = get_userdata( $uid );
170
+
171
+ if ( $user_data ){
172
+ $user_array = array();
173
+ $user_array['ID'] = $uid;
174
+ $user_array['user_firstname'] = $user_data->user_firstname;
175
+ $user_array['user_lastname'] = $user_data->user_lastname;
176
+ $user_array['nickname'] = $user_data->nickname;
177
+ $user_array['user_nicename'] = $user_data->user_nicename;
178
+ $user_array['display_name'] = $user_data->display_name;
179
+ $user_array['user_email'] = $user_data->user_email;
180
+ $user_array['user_url'] = $user_data->user_url;
181
+ $user_array['user_registered'] = $user_data->user_registered;
182
+ $user_array['user_description'] = $user_data->user_description;
183
+ $user_array['user_avatar'] = get_avatar( $uid );
184
+
185
+ return $user_array;
186
+
187
+ } else {
188
+
189
+ return false;
190
+
191
+ }
192
+ }
193
+
194
+ /**
195
+ * Preprocess the user select field types for the_cfc_field.
196
+ * We're returnig the Display Name
197
+ *
198
+ * @since 1.1.5
199
+ *
200
+ */
201
+ add_filter( 'wck_output_the_field_user-select', 'wck_preprocess_the_field_user_select', 10 );
202
+ function wck_preprocess_the_field_user_select( $user ){
203
+
204
+ if( $user === false ){
205
+ return;
206
+ }
207
+
208
+ if( is_array( $user ) ){
209
+ return $user['display_name'];
210
+ }
211
+
212
+ }
213
+
214
+ /**
215
+ * Preprocess the cpt select field types.
216
+ * We're returnig a post object
217
+ *
218
+ * @since 1.1.5
219
+ *
220
+ * @param string $field The actual field content
221
+ * @return string $user The processed field
222
+ */
223
+ add_filter( 'wck_output_get_field_cpt-select', 'wck_preprocess_field_cpt_select', 10 );
224
+ function wck_preprocess_field_cpt_select( $id ){
225
+
226
+ if ( $id == '' || !is_numeric( $id ) )
227
+ return false;
228
+
229
+ $post = get_post( $id );
230
+ if( is_null( $post ) )
231
+ return false;
232
+
233
+ return $post;
234
+ }
235
+
236
+ /**
237
+ * Preprocess the cpt select field types for the_cpt_field.
238
+ * We're returnig the post title.
239
+ *
240
+ * @since 1.1.5
241
+ *
242
+ */
243
+ add_filter( 'wck_output_the_field_cpt-select', 'wck_preprocess_the_field_cpt_select', 10 );
244
+ function wck_preprocess_the_field_cpt_select( $post ){
245
+
246
+ if( $post == false ){
247
+ return;
248
+ }
249
+
250
+ if( is_object( $post ) ){
251
+ return $post->post_title;
252
+ }
253
+
254
+ }
wck-template-api/wck-template-api-class.php CHANGED
@@ -1,132 +1,132 @@
1
- <?php
2
- /* Copyright 2013 cozmoslabs.com (email : hello@cozmoslabs.com)
3
- This program is free software; you can redistribute it and/or modify
4
- it under the terms of the GNU General Public License as published by
5
- the Free Software Foundation; either version 2 of the License, or
6
- (at your option) any later version.
7
- This program is distributed in the hope that it will be useful,
8
- but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- GNU General Public License for more details.
11
- You should have received a copy of the GNU General Public License
12
- along with this program; if not, write to the Free Software
13
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14
- */
15
-
16
- class WCK_Template_API{
17
-
18
- /**
19
- * Helper function for post ID
20
- *
21
- * @post_id
22
- */
23
-
24
- static function get_post_id( $post_id = false ){
25
-
26
- // set post_id to global
27
- if( !$post_id )
28
- {
29
- global $post;
30
-
31
- if( $post )
32
- {
33
- $post_id = $post->ID;
34
- }
35
- }
36
-
37
- // return
38
- return $post_id;
39
- }
40
-
41
-
42
- /**
43
- * Returns the value of a post_meta created with CFC or empty.
44
- *
45
- * @meta_name
46
- * @post_id
47
- */
48
-
49
- static function get_meta( $meta_name = false, $post_id = false ){
50
-
51
- $post_id = WCK_Template_API::get_post_id($post_id);
52
-
53
- $post_meta = get_post_meta( $post_id, $meta_name, true );
54
-
55
- if ( is_array( $post_meta ) )
56
- return $post_meta;
57
-
58
- // get_post_meta with the 3'rd param true returns an empty string if nothing found.
59
- // We'll overwrite that so we get an empty array.
60
- return array();
61
- }
62
-
63
-
64
- /**
65
- * Returns the value of a field from CFC single and repeater.
66
- *
67
- */
68
-
69
- static function get_field( $meta_name = false, $field_name = false, $post_id = false, $key = 0 ){
70
- $post_meta = WCK_Template_API::get_meta( $meta_name, $post_id );
71
-
72
- if ( isset( $post_meta[$key][$field_name] ) ){
73
- $field_type = WCK_Template_API::generate_slug( WCK_Template_API::get_field_type( $meta_name, $field_name ) );
74
-
75
- // use this filter to modify the return var in order to output text, arrays or objects
76
- $output = apply_filters('wck_output_get_field_' . $field_type, $post_meta[$key][$field_name] );
77
-
78
- return $output;
79
- }
80
- return '';
81
- }
82
-
83
- /**
84
- * Find out what type of field the user asks for.
85
- *
86
- */
87
-
88
- static function get_field_type( $meta_name = false, $field_name = false ){
89
-
90
- // get all CFC's
91
- $args = array(
92
- 'post_type' => 'wck-meta-box',
93
- 'posts_per_page' => -1,
94
- 'post_status' => array( 'publish' ),
95
- 'fields' => 'ids',
96
- );
97
- $all_cfc = get_posts( $args );
98
-
99
- foreach( $all_cfc as $post_id ) {
100
- $queried_meta_name = WCK_Template_API::get_meta('wck_cfc_args', $post_id );
101
- $queried_meta_name = $queried_meta_name[0]['meta-name'];
102
-
103
- if ( $meta_name == $queried_meta_name ) {
104
- $available_fields = WCK_Template_API::get_meta( 'wck_cfc_fields', $post_id );
105
-
106
- foreach ( $available_fields as $key => $field_data ){
107
- $current_field = WCK_Template_API::generate_slug( $field_data['field-title'] );
108
- if ( $current_field == $field_name ){
109
- return $field_data['field-type'];
110
- }
111
- }
112
- }
113
- }
114
-
115
- return 'text';
116
- }
117
-
118
-
119
- /**
120
- * The function used to generate slugs in WCK
121
- * It's a copy from WCK-API so the template API is stand-alone
122
- *
123
- * @since 1.1.5
124
- *
125
- * @param string $string The input string from which we generate the slug
126
- * @return string $slug The henerated slug
127
- */
128
- static function generate_slug( $string ){
129
- $slug = rawurldecode( sanitize_title_with_dashes( remove_accents( $string ) ) );
130
- return $slug;
131
- }
132
- }
1
+ <?php
2
+ /* Copyright 2013 cozmoslabs.com (email : hello@cozmoslabs.com)
3
+ This program is free software; you can redistribute it and/or modify
4
+ it under the terms of the GNU General Public License as published by
5
+ the Free Software Foundation; either version 2 of the License, or
6
+ (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful,
8
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ GNU General Public License for more details.
11
+ You should have received a copy of the GNU General Public License
12
+ along with this program; if not, write to the Free Software
13
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14
+ */
15
+
16
+ class WCK_Template_API{
17
+
18
+ /**
19
+ * Helper function for post ID
20
+ *
21
+ * @post_id
22
+ */
23
+
24
+ static function get_post_id( $post_id = false ){
25
+
26
+ // set post_id to global
27
+ if( !$post_id )
28
+ {
29
+ global $post;
30
+
31
+ if( $post )
32
+ {
33
+ $post_id = $post->ID;
34
+ }
35
+ }
36
+
37
+ // return
38
+ return $post_id;
39
+ }
40
+
41
+
42
+ /**
43
+ * Returns the value of a post_meta created with CFC or empty.
44
+ *
45
+ * @meta_name
46
+ * @post_id
47
+ */
48
+
49
+ static function get_meta( $meta_name = false, $post_id = false ){
50
+
51
+ $post_id = WCK_Template_API::get_post_id($post_id);
52
+
53
+ $post_meta = get_post_meta( $post_id, $meta_name, true );
54
+
55
+ if ( is_array( $post_meta ) )
56
+ return $post_meta;
57
+
58
+ // get_post_meta with the 3'rd param true returns an empty string if nothing found.
59
+ // We'll overwrite that so we get an empty array.
60
+ return array();
61
+ }
62
+
63
+
64
+ /**
65
+ * Returns the value of a field from CFC single and repeater.
66
+ *
67
+ */
68
+
69
+ static function get_field( $meta_name = false, $field_name = false, $post_id = false, $key = 0 ){
70
+ $post_meta = WCK_Template_API::get_meta( $meta_name, $post_id );
71
+
72
+ if ( isset( $post_meta[$key][$field_name] ) ){
73
+ $field_type = WCK_Template_API::generate_slug( WCK_Template_API::get_field_type( $meta_name, $field_name ) );
74
+
75
+ // use this filter to modify the return var in order to output text, arrays or objects
76
+ $output = apply_filters('wck_output_get_field_' . $field_type, $post_meta[$key][$field_name] );
77
+
78
+ return $output;
79
+ }
80
+ return '';
81
+ }
82
+
83
+ /**
84
+ * Find out what type of field the user asks for.
85
+ *
86
+ */
87
+
88
+ static function get_field_type( $meta_name = false, $field_name = false ){
89
+
90
+ // get all CFC's
91
+ $args = array(
92
+ 'post_type' => 'wck-meta-box',
93
+ 'posts_per_page' => -1,
94
+ 'post_status' => array( 'publish' ),
95
+ 'fields' => 'ids',
96
+ );
97
+ $all_cfc = get_posts( $args );
98
+
99
+ foreach( $all_cfc as $post_id ) {
100
+ $queried_meta_name = WCK_Template_API::get_meta('wck_cfc_args', $post_id );
101
+ $queried_meta_name = $queried_meta_name[0]['meta-name'];
102
+
103
+ if ( $meta_name == $queried_meta_name ) {
104
+ $available_fields = WCK_Template_API::get_meta( 'wck_cfc_fields', $post_id );
105
+
106
+ foreach ( $available_fields as $key => $field_data ){
107
+ $current_field = WCK_Template_API::generate_slug( $field_data['field-title'] );
108
+ if ( $current_field == $field_name ){
109
+ return $field_data['field-type'];
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ return 'text';
116
+ }
117
+
118
+
119
+ /**
120
+ * The function used to generate slugs in WCK
121
+ * It's a copy from WCK-API so the template API is stand-alone
122
+ *
123
+ * @since 1.1.5
124
+ *
125
+ * @param string $string The input string from which we generate the slug
126
+ * @return string $slug The henerated slug
127
+ */
128
+ static function generate_slug( $string ){
129
+ $slug = rawurldecode( sanitize_title_with_dashes( remove_accents( $string ) ) );
130
+ return $slug;
131
+ }
132
+ }
wck-template-api/wck-template-api.php CHANGED
@@ -1,85 +1,85 @@
1
- <?php
2
- /* Copyright 2013 cozmoslabs.com (email : hello@cozmoslabs.com)
3
- This program is free software; you can redistribute it and/or modify
4
- it under the terms of the GNU General Public License as published by
5
- the Free Software Foundation; either version 2 of the License, or
6
- (at your option) any later version.
7
- This program is distributed in the hope that it will be useful,
8
- but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- GNU General Public License for more details.
11
- You should have received a copy of the GNU General Public License
12
- along with this program; if not, write to the Free Software
13
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14
- */
15
-
16
-
17
- // Load the WCK_Template_API class
18
- require_once( 'wck-template-api-class.php' );
19
-
20
- // Load the functions that will preprocess our field data
21
- require_once( 'wck-field-preprocess.php' );
22
-
23
- /**
24
- * Front-end function that returns an entire non-processed post meta
25
- *
26
- * @since 1.1.5
27
- *
28
- */
29
- if( !function_exists( 'get_cfc_meta' ) ){
30
- function get_cfc_meta( $meta_name = false, $post_id = false ){
31
- return WCK_Template_API::get_meta( $meta_name, $post_id );
32
- }
33
- }
34
-
35
- /**
36
- * Front-end function that returns a pre-processed CFC field
37
- *
38
- * @since 1.1.5
39
- *
40
- */
41
- if( !function_exists( 'get_cfc_field' ) ){
42
- function get_cfc_field( $meta_name, $field_name, $post_id = false, $key = 0 ){
43
- return WCK_Template_API::get_field( $meta_name, $field_name, $post_id, $key );
44
- }
45
- }
46
-
47
- /**
48
- * Front-end function that echo out information found inside the field
49
- *
50
- * @since 1.1.5
51
- *
52
- */
53
- if( !function_exists( 'the_cfc_field' ) ){
54
- function the_cfc_field( $meta_name, $field_name, $post_id = false, $key = 0, $do_echo = true ){
55
-
56
- $current_field = WCK_Template_API::get_field( $meta_name, $field_name, $post_id, $key );
57
-
58
- $field_type = WCK_Template_API::generate_slug( WCK_Template_API::get_field_type( $meta_name, $field_name ) );
59
-
60
- // use this filter to modify the return var in order to output text, links or urls
61
- $current_field = apply_filters('wck_output_the_field_' . $field_type, $current_field );
62
-
63
- if( $current_field === false ){
64
- return;
65
- }
66
-
67
- // Echoing objects with error out.
68
- // Thus we're echoing an empty string so we don't brake the front-end,
69
- if ( is_object( $current_field ) ){
70
- return;
71
- }
72
-
73
- // Echoing arrays will echo 'Array'.
74
- // Thus we're echoing an empty string so we don't brake the front-end.
75
- if ( is_array( $current_field ) ){
76
- return;
77
- }
78
-
79
- if ( $do_echo ){
80
- echo $current_field;
81
- } else {
82
- return $current_field;
83
- }
84
- }
85
- }
1
+ <?php
2
+ /* Copyright 2013 cozmoslabs.com (email : hello@cozmoslabs.com)
3
+ This program is free software; you can redistribute it and/or modify
4
+ it under the terms of the GNU General Public License as published by
5
+ the Free Software Foundation; either version 2 of the License, or
6
+ (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful,
8
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ GNU General Public License for more details.
11
+ You should have received a copy of the GNU General Public License
12
+ along with this program; if not, write to the Free Software
13
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14
+ */
15
+
16
+
17
+ // Load the WCK_Template_API class
18
+ require_once( 'wck-template-api-class.php' );
19
+
20
+ // Load the functions that will preprocess our field data
21
+ require_once( 'wck-field-preprocess.php' );
22
+
23
+ /**
24
+ * Front-end function that returns an entire non-processed post meta
25
+ *
26
+ * @since 1.1.5
27
+ *
28
+ */
29
+ if( !function_exists( 'get_cfc_meta' ) ){
30
+ function get_cfc_meta( $meta_name = false, $post_id = false ){
31
+ return WCK_Template_API::get_meta( $meta_name, $post_id );
32
+ }
33
+ }
34
+
35
+ /**
36
+ * Front-end function that returns a pre-processed CFC field
37
+ *
38
+ * @since 1.1.5
39
+ *
40
+ */
41
+ if( !function_exists( 'get_cfc_field' ) ){
42
+ function get_cfc_field( $meta_name, $field_name, $post_id = false, $key = 0 ){
43
+ return WCK_Template_API::get_field( $meta_name, $field_name, $post_id, $key );
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Front-end function that echo out information found inside the field
49
+ *
50
+ * @since 1.1.5
51
+ *
52
+ */
53
+ if( !function_exists( 'the_cfc_field' ) ){
54
+ function the_cfc_field( $meta_name, $field_name, $post_id = false, $key = 0, $do_echo = true ){
55
+
56
+ $current_field = WCK_Template_API::get_field( $meta_name, $field_name, $post_id, $key );
57
+
58
+ $field_type = WCK_Template_API::generate_slug( WCK_Template_API::get_field_type( $meta_name, $field_name ) );
59
+
60
+ // use this filter to modify the return var in order to output text, links or urls
61
+ $current_field = apply_filters('wck_output_the_field_' . $field_type, $current_field );
62
+
63
+ if( $current_field === false ){
64
+ return;
65
+ }
66
+
67
+ // Echoing objects with error out.
68
+ // Thus we're echoing an empty string so we don't brake the front-end,
69
+ if ( is_object( $current_field ) ){
70
+ return;
71
+ }
72
+
73
+ // Echoing arrays will echo 'Array'.
74
+ // Thus we're echoing an empty string so we don't brake the front-end.
75
+ if ( is_array( $current_field ) ){
76
+ return;
77
+ }
78
+
79
+ if ( $do_echo ){
80
+ echo $current_field;
81
+ } else {
82
+ return $current_field;
83
+ }
84
+ }
85
+ }
wck.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
6
- Version: 1.1.5
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
6
+ Version: 1.1.6
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
wordpress-creation-kit-api/assets/js/ckeditor/CHANGES.md CHANGED
@@ -1,457 +1,457 @@
1
- CKEditor 4 Changelog
2
- ====================
3
-
4
- ## CKEditor 4.3.4
5
-
6
- Fixed Issues:
7
-
8
- * [#11597](http://dev.ckeditor.com/ticket/11597): [IE11] Fixed: Error thrown when trying to open the [preview](http://ckeditor.com/addon/preview) using the keyboard.
9
- * [#11544](http://dev.ckeditor.com/ticket/11544): [Placeholders](http://ckeditor.com/addon/placeholder) will no longer be upcasted in parents not accepting `<span>` elements.
10
- * [#8663](http://dev.ckeditor.com/ticket/8663): Fixed [`element.renameNode()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-renameNode) not clearing the [`element.getName()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-getName) cache.
11
- * [#11574](http://dev.ckeditor.com/ticket/11574): Fixed: *Backspace* destroying the DOM structure if an inline editable is placed in a list item.
12
- * [#11603](http://dev.ckeditor.com/ticket/11603): Fixed: [Table Resize](http://ckeditor.com/addon/tableresize) attaches to tables outside the editable.
13
- * [#9205](http://dev.ckeditor.com/ticket/9205), [#7805](http://dev.ckeditor.com/ticket/7805), [#8216](http://dev.ckeditor.com/ticket/8216): Fixed: `{cke_protected_1}` appearing in data in various cases where HTML comments are placed next to `"` or `'`.
14
- * [#11635](http://dev.ckeditor.com/ticket/11635): Fixed: Some attributes are not protected before the content is passed through the fix bin.
15
- * [#11660](http://dev.ckeditor.com/ticket/11660): [IE] Fixed: Table content is lost when some extra markup is inside the table.
16
- * [#11641](http://dev.ckeditor.com/ticket/11641): Fixed: Switching between modes in the classic editor removes content styles for the inline editor.
17
- * [#11568](http://dev.ckeditor.com/ticket/11568): Fixed: [Styles](http://ckeditor.com/addon/stylescombo) drop-down list is not enabled on selection change.
18
-
19
- ## CKEditor 4.3.3
20
-
21
- Fixed Issues:
22
-
23
- * [#11500](http://dev.ckeditor.com/ticket/11500): [Webkit/Blink] Fixed: Selection lost when setting data in another inline editor. Additionally, [`selection.removeAllRanges()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-removeAllRanges) is now scoped to selection's [root](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-property-root).
24
- * [#11104](http://dev.ckeditor.com/ticket/11104): [IE] Fixed: Various issues with scrolling and selection when focusing widgets.
25
- * [#11487](http://dev.ckeditor.com/ticket/11487): Moving mouse over the [Enhanced Image](http://ckeditor.com/addon/image2) widget will no longer change the value returned by the [`editor.checkDirty()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty) method.
26
- * [#8673](http://dev.ckeditor.com/ticket/8673): [WebKit] Fixed: Cannot select and remove the [Page Break](http://ckeditor.com/addon/pagebreak).
27
- * [#11413](http://dev.ckeditor.com/ticket/11413): Fixed: Incorrect [`editor.execCommand()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand) behavior.
28
- * [#11438](http://dev.ckeditor.com/ticket/11438): Splitting table cells vertically is no longer changing table structure.
29
- * [#8899](http://dev.ckeditor.com/ticket/8899): Fixed: Links in the [About CKEditor](http://ckeditor.com/addon/about) dialog window now open in a new browser window or tab.
30
- * [#11490](http://dev.ckeditor.com/ticket/11490): Fixed: [Menu button](http://ckeditor.com/addon/menubutton) panel not showing in the source mode.
31
- * [#11417](http://dev.ckeditor.com/ticket/11417): The [`widget.doubleclick`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget-event-doubleclick) event is not canceled anymore after editing was triggered.
32
- * [#11253](http://dev.ckeditor.com/ticket/11253): [IE] Fixed: Clipped upload button in the [Enhanced Image](http://ckeditor.com/addon/image2) dialog window.
33
- * [#11359](http://dev.ckeditor.com/ticket/11359): Standardized the way anchors are discovered by the [Link](http://ckeditor.com/addon/link) plugin.
34
- * [#11058](http://dev.ckeditor.com/ticket/11058): [IE8] Fixed: Error when deleting a table row.
35
- * [#11508](http://dev.ckeditor.com/ticket/11508): Fixed: [`htmlDataProcessor`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor) discovering protected attributes within other attributes' values.
36
- * [#11533](http://dev.ckeditor.com/ticket/11533): Widgets: Avoid recurring upcasts if the DOM structure was modified during an upcast.
37
- * [#11400](http://dev.ckeditor.com/ticket/11400): Fixed: The [`domObject.removeAllListeners()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.domObject-method-removeAllListeners) method does not remove custom listeners completely.
38
- * [#11493](http://dev.ckeditor.com/ticket/11493): Fixed: The [`selection.getRanges()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-getRanges) method does not override cached ranges when used with the `onlyEditables` argument.
39
- * [#11390](http://dev.ckeditor.com/ticket/11390): [IE] All [XML](http://ckeditor.com/addon/xml) plugin [methods](http://docs.ckeditor.com/#!/api/CKEDITOR.xml) now work in IE10+.
40
- * [#11542](http://dev.ckeditor.com/ticket/11542): [IE11] Fixed: Blurry toolbar icons when Right-to-Left UI language is set.
41
- * [#11504](http://dev.ckeditor.com/ticket/11504): Fixed: When [`config.fullPage`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-fullPage) is set to `true`, entities are not encoded in editor output.
42
- * [#11004](http://dev.ckeditor.com/ticket/11004): Integrated [Enhanced Image](http://ckeditor.com/addon/image2) dialog window with [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter).
43
- * [#11439](http://dev.ckeditor.com/ticket/11439): Fixed: Properties get cloned in the Cell Properties dialog window if multiple cells are selected.
44
-
45
- ## CKEditor 4.3.2
46
-
47
- Fixed Issues:
48
-
49
- * [#11331](http://dev.ckeditor.com/ticket/11331): A menu button will have a changed label when selected instead of using the `aria-pressed` attribute.
50
- * [#11177](http://dev.ckeditor.com/ticket/11177): Widget drag handler improvements:
51
- * [#11176](http://dev.ckeditor.com/ticket/11176): Fixed: Initial position is not updated when the widget data object is empty.
52
- * [#11001](http://dev.ckeditor.com/ticket/11001): Fixed: Multiple synchronous layout recalculations are caused by initial drag handler positioning causing performance issues.
53
- * [#11161](http://dev.ckeditor.com/ticket/11161): Fixed: Drag handler is not repositioned in various situations.
54
- * [#11281](http://dev.ckeditor.com/ticket/11281): Fixed: Drag handler and mask are duplicated after widget reinitialization.
55
- * [#11207](http://dev.ckeditor.com/ticket/11207): [Firefox] Fixed: Misplaced [Enhanced Image](http://ckeditor.com/addon/image2) resizer in the inline editor.
56
- * [#11102](http://dev.ckeditor.com/ticket/11102): `CKEDITOR.template` improvements:
57
- * [#11102](http://dev.ckeditor.com/ticket/11102): Added newline character support.
58
- * [#11216](http://dev.ckeditor.com/ticket/11216): Added "\\'" substring support.
59
- * [#11121](http://dev.ckeditor.com/ticket/11121): [Firefox] Fixed: High Contrast mode is enabled when the editor is loaded in a hidden iframe.
60
- * [#11350](http://dev.ckeditor.com/ticket/11350): The default value of [`config.contentsCss`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-contentsCss) is affected by [`CKEDITOR.getUrl()`](http://docs.ckeditor.com/#!/api/CKEDITOR-method-getUrl).
61
- * [#11097](http://dev.ckeditor.com/ticket/11097): Improved the [Autogrow](http://ckeditor.com/addon/autogrow) plugin performance when dealing with very big tables.
62
- * [#11290](http://dev.ckeditor.com/ticket/11290): Removed redundant code in the [Source Dialog](http://ckeditor.com/addon/sourcedialog) plugin.
63
- * [#11133](http://dev.ckeditor.com/ticket/11133): [Page Break](http://ckeditor.com/addon/pagebreak) becomes editable if pasted.
64
- * [#11126](http://dev.ckeditor.com/ticket/11126): Fixed: Native Undo executed once the bottom of the snapshot stack is reached.
65
- * [#11131](http://dev.ckeditor.com/ticket/11131): [Div Editing Area](http://ckeditor.com/addon/divarea): Fixed: Error thrown when switching to source mode if the selection was in widget's nested editable.
66
- * [#11139](http://dev.ckeditor.com/ticket/11139): [Div Editing Area](http://ckeditor.com/addon/divarea): Fixed: Elements Path is not cleared after switching to source mode.
67
- * [#10778](http://dev.ckeditor.com/ticket/10778): Fixed a bug with range enlargement. The range no longer expands to visible whitespace.
68
- * [#11146](http://dev.ckeditor.com/ticket/11146): [IE] Fixed: Preview window switches Internet Explorer to Quirks Mode.
69
- * [#10762](http://dev.ckeditor.com/ticket/10762): [IE] Fixed: JavaScript code displayed in preview window's URL bar.
70
- * [#11186](http://dev.ckeditor.com/ticket/11186): Introduced the [`widgets.repository.addUpcastCallback()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-addUpcastCallback) method that allows to block upcasting given element to a widget.
71
- * [#11307](http://dev.ckeditor.com/ticket/11307): Fixed: Paste as Plain Text conflict with the [MooTools](http://mootools.net) library.
72
- * [#11140](http://dev.ckeditor.com/ticket/11140): [IE11] Fixed: Anchors are not draggable.
73
- * [#11379](http://dev.ckeditor.com/ticket/11379): Changed default contents `line-height` to unitless values to avoid huge text overlapping (like in [#9696](http://dev.ckeditor.com/ticket/9696)).
74
- * [#10787](http://dev.ckeditor.com/ticket/10787): [Firefox] Fixed: Broken replacement of text while pasting into `div`-based editor.
75
- * [#10884](http://dev.ckeditor.com/ticket/10884): Widgets integration with the [Show Blocks](http://ckeditor.com/addon/showblocks) plugin.
76
- * [#11021](http://dev.ckeditor.com/ticket/11021): Fixed: An error thrown when selecting entire editable contents while fake selection is on.
77
- * [#11086](http://dev.ckeditor.com/ticket/11086): [IE8] Re-enable inline widgets drag&drop in Internet Explorer 8.
78
- * [#11372](http://dev.ckeditor.com/ticket/11372): Widgets: Special characters encoded twice in nested editables.
79
- * [#10068](http://dev.ckeditor.com/ticket/10068): Fixed: Support for protocol-relative URLs.
80
- * [#11283](http://dev.ckeditor.com/ticket/11283): [Enhanced Image](http://ckeditor.com/addon/image2): A `<div>` element with `text-align: center` and an image inside is not recognised correctly.
81
- * [#11196](http://dev.ckeditor.com/ticket/11196): [Accessibility Instructions](http://ckeditor.com/addon/a11yhelp): Allowed additional keyboard button labels to be translated in the dialog window.
82
-
83
- ## CKEditor 4.3.1
84
-
85
- **Important Notes:**
86
-
87
- * To match the naming convention, the `language` button is now `Language` ([#11201](http://dev.ckeditor.com/ticket/11201)).
88
- * [Enhanced Image](http://ckeditor.com/addon/image2) button, context menu, command, and icon names match those of the [Image](http://ckeditor.com/addon/image) plugin ([#11222](http://dev.ckeditor.com/ticket/11222)).
89
-
90
- Fixed Issues:
91
-
92
- * [#11244](http://dev.ckeditor.com/ticket/11244): Changed: The [`widget.repository.checkWidgets()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-checkWidgets) method now fires the [`widget.repository.checkWidgets`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-event-checkWidgets) event, so from CKEditor 4.3.1 it is preferred to use the method rather than fire the event.
93
- * [#11171](http://dev.ckeditor.com/ticket/11171): Fixed: [`editor.insertElement()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) and [`editor.insertText()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText) methods do not call the [`widget.repository.checkWidgets()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-checkWidgets) method.
94
- * [#11085](http://dev.ckeditor.com/ticket/11085): [IE8] Replaced preview generated by the [Mathematical Formulas](http://ckeditor.com/addon/mathjax) widget with a placeholder.
95
- * [#11044](http://dev.ckeditor.com/ticket/11044): Enhanced WAI-ARIA support for the [Language](http://ckeditor.com/addon/language) plugin drop-down menu.
96
- * [#11075](http://dev.ckeditor.com/ticket/11075): With drop-down menu button focused, pressing the *Down Arrow* key will now open the menu and focus its first option.
97
- * [#11165](http://dev.ckeditor.com/ticket/11165): Fixed: The [File Browser](http://ckeditor.com/addon/filebrowser) plugin cannot be removed from the editor.
98
- * [#11159](http://dev.ckeditor.com/ticket/11159): [IE9-10] [Enhanced Image](http://ckeditor.com/addon/image2): Fixed buggy discovery of image dimensions.
99
- * [#11101](http://dev.ckeditor.com/ticket/11101): Drop-down lists no longer break when given double quotes.
100
- * [#11077](http://dev.ckeditor.com/ticket/11077): [Enhanced Image](http://ckeditor.com/addon/image2): Empty undo step recorded when resizing the image.
101
- * [#10853](http://dev.ckeditor.com/ticket/10853): [Enhanced Image](http://ckeditor.com/addon/image2): Widget has paragraph wrapper when de-captioning unaligned image.
102
- * [#11198](http://dev.ckeditor.com/ticket/11198): Widgets: Drag handler is not fully visible when an inline widget is in a heading.
103
- * [#11132](http://dev.ckeditor.com/ticket/11132): [Firefox] Fixed: Caret is lost after drag and drop of an inline widget.
104
- * [#11182](http://dev.ckeditor.com/ticket/11182): [IE10-11] Fixed: Editor crashes (IE11) or works with minor issues (IE10) if a page is loaded in Quirks Mode. See [`env.quirks`](http://docs.ckeditor.com/#!/api/CKEDITOR.env-property-quirks) for more details.
105
- * [#11204](http://dev.ckeditor.com/ticket/11204): Added `figure` and `figcaption` styles to the `contents.css` file so [Enhanced Image](http://ckeditor.com/addon/image2) looks nicer.
106
- * [#11202](http://dev.ckeditor.com/ticket/11202): Fixed: No newline in [BBCode](http://ckeditor.com/addon/bbcode) mode.
107
- * [#10890](http://dev.ckeditor.com/ticket/10890): Fixed: Error thrown when pressing the *Delete* key in a list item.
108
- * [#10055](http://dev.ckeditor.com/ticket/10055): [IE8-10] Fixed: *Delete* pressed on a selected image causes the browser to go back.
109
- * [#11183](http://dev.ckeditor.com/ticket/11183): Fixed: Inserting a horizontal rule or a table in multiple row selection causes a browser crash. Additionally, the [`editor.insertElement()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) method does not insert the element into every range of a selection any more.
110
- * [#11042](http://dev.ckeditor.com/ticket/11042): Fixed: Selection made on an element containing a non-editable element was not auto faked.
111
- * [#11125](http://dev.ckeditor.com/ticket/11125): Fixed: Keyboard navigation through menu and drop-down items will now cycle.
112
- * [#11011](http://dev.ckeditor.com/ticket/11011): Fixed: The [`editor.applyStyle()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-applyStyle) method removes attributes from nested elements.
113
- * [#11179](http://dev.ckeditor.com/ticket/11179): Fixed: [`editor.destroy()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-destroy) does not cleanup content generated by the [Table Resize](http://ckeditor.com/addon/tableresize) plugin for inline editors.
114
- * [#11237](http://dev.ckeditor.com/ticket/11237): Fixed: Table border attribute value is deleted when pasting content from Microsoft Word.
115
- * [#11250](http://dev.ckeditor.com/ticket/11250): Fixed: HTML entities inside the `<textarea>` element are not encoded.
116
- * [#11260](http://dev.ckeditor.com/ticket/11260): Fixed: Initially disabled buttons are not read by JAWS as disabled.
117
- * [#11200](http://dev.ckeditor.com/ticket/11200): Added [Clipboard](http://ckeditor.com/addon/clipboard) plugin as a dependency for [Widget](http://ckeditor.com/addon/widget) to fix drag and drop.
118
-
119
- ## CKEditor 4.3
120
-
121
- New Features:
122
-
123
- * [#10612](http://dev.ckeditor.com/ticket/10612): Internet Explorer 11 support.
124
- * [#10869](http://dev.ckeditor.com/ticket/10869): Widgets: Added better integration with the [Elements Path](http://ckeditor.com/addon/elementspath) plugin.
125
- * [#10886](http://dev.ckeditor.com/ticket/10886): Widgets: Added tooltip to the drag handle.
126
- * [#10933](http://dev.ckeditor.com/ticket/10933): Widgets: Introduced drag and drop of block widgets with the [Line Utilities](http://ckeditor.com/addon/lineutils) plugin.
127
- * [#10936](http://dev.ckeditor.com/ticket/10936): Widget System changes for easier integration with other dialog systems.
128
- * [#10895](http://dev.ckeditor.com/ticket/10895): [Enhanced Image](http://ckeditor.com/addon/image2): Added file browser integration.
129
- * [#11002](http://dev.ckeditor.com/ticket/11002): Added the [`draggable`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.definition-property-draggable) option to disable drag and drop support for widgets.
130
- * [#10937](http://dev.ckeditor.com/ticket/10937): [Mathematical Formulas](http://ckeditor.com/addon/mathjax) widget improvements:
131
- * loading indicator ([#10948](http://dev.ckeditor.com/ticket/10948)),
132
- * applying paragraph changes (like font color change) to iframe ([#10841](http://dev.ckeditor.com/ticket/10841)),
133
- * Firefox and IE9 clipboard fixes ([#10857](http://dev.ckeditor.com/ticket/10857)),
134
- * fixing same origin policy issue ([#10840](http://dev.ckeditor.com/ticket/10840)),
135
- * fixing undo bugs ([#10842](http://dev.ckeditor.com/ticket/10842), [#10930](http://dev.ckeditor.com/ticket/10930)),
136
- * fixing other minor bugs.
137
- * [#10862](http://dev.ckeditor.com/ticket/10862): [Placeholder](http://ckeditor.com/addon/placeholder) plugin was rewritten as a widget.
138
- * [#10822](http://dev.ckeditor.com/ticket/10822): Added styles system integration with non-editable elements (for example widgets) and their nested editables. Styles cannot change non-editable content and are applied in nested editable only if allowed by its type and content filter.
139
- * [#10856](http://dev.ckeditor.com/ticket/10856): Menu buttons will now toggle the visibility of their panels when clicked multiple times. [Language](http://ckeditor.com/addon/language) plugin fixes: Added active language highlighting, added an option to remove the language.
140
- * [#10028](http://dev.ckeditor.com/ticket/10028): New [`config.dialog_noConfirmCancel`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-dialog_noConfirmCancel) configuration option that eliminates the need to confirm closing of a dialog window when the user changed any of its fields.
141
- * [#10848](http://dev.ckeditor.com/ticket/10848): Integrate remaining plugins ([Styles](http://ckeditor.com/addon/stylescombo), [Format](http://ckeditor.com/addon/format), [Font](http://ckeditor.com/addon/font), [Color Button](http://ckeditor.com/addon/colorbutton), [Language](http://ckeditor.com/addon/language) and [Indent](http://ckeditor.com/addon/indent)) with [active filter](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeFilter).
142
- * [#10855](http://dev.ckeditor.com/ticket/10855): Change the extension of emoticons in the [BBCode](http://ckeditor.com/addon/bbcode) sample from GIF to PNG.
143
-
144
- Fixed Issues:
145
-
146
- * [#10831](http://dev.ckeditor.com/ticket/10831): [Enhanced Image](http://ckeditor.com/addon/image2): Merged `image2inline` and `image2block` into one `image2` widget.
147
- * [#10835](http://dev.ckeditor.com/ticket/10835): [Enhanced Image](http://ckeditor.com/addon/image2): Improved visibility of the resize handle.
148
- * [#10836](http://dev.ckeditor.com/ticket/10836): [Enhanced Image](http://ckeditor.com/addon/image2): Preserve custom mouse cursor while resizing the image.
149
- * [#10939](http://dev.ckeditor.com/ticket/10939): [Firefox] [Enhanced Image](http://ckeditor.com/addon/image2): hovering the image causes it to change.
150
- * [#10866](http://dev.ckeditor.com/ticket/10866): Fixed: Broken *Tab* key navigation in the [Enhanced Image](http://ckeditor.com/addon/image2) dialog window.
151
- * [#10833](http://dev.ckeditor.com/ticket/10833): Fixed: *Lock ratio* option should be on by default in the [Enhanced Image](http://ckeditor.com/addon/image2) dialog window.
152
- * [#10881](http://dev.ckeditor.com/ticket/10881): Various improvements to *Enter* key behavior in nested editables.
153
- * [#10879](http://dev.ckeditor.com/ticket/10879): [Remove Format](http://ckeditor.com/addon/removeformat) should not leak from a nested editable.
154
- * [#10877](http://dev.ckeditor.com/ticket/10877): Fixed: [WebSpellChecker](http://ckeditor.com/addon/wsc) fails to apply changes if a nested editable was focused.
155
- * [#10877](http://dev.ckeditor.com/ticket/10877): Fixed: [SCAYT](http://ckeditor.com/addon/wsc) blocks typing in nested editables.
156
- * [#11079](http://dev.ckeditor.com/ticket/11079): Add button icons to the [Placeholder](http://ckeditor.com/addon/placeholder) sample.
157
- * [#10870](http://dev.ckeditor.com/ticket/10870): The `paste` command is no longer being disabled when the clipboard is empty.
158
- * [#10854](http://dev.ckeditor.com/ticket/10854): Fixed: Firefox prepends `<br>` to `<body>`, so it is stripped by the HTML data processor.
159
- * [#10823](http://dev.ckeditor.com/ticket/10823): Fixed: [Link](http://ckeditor.com/addon/link) plugin does not work with non-editable content.
160
- * [#10828](http://dev.ckeditor.com/ticket/10828): [Magic Line](http://ckeditor.com/addon/magicline) integration with the Widget System.
161
- * [#10865](http://dev.ckeditor.com/ticket/10865): Improved hiding copybin, so copying widgets works smoothly.
162
- * [#11066](http://dev.ckeditor.com/ticket/11066): Widget's private parts use CSS reset.
163
- * [#11027](http://dev.ckeditor.com/ticket/11027): Fixed: Block commands break on widgets; added the [`contentDomInvalidated`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-contentDomInvalidated) event.
164
- * [#10430](http://dev.ckeditor.com/ticket/10430): Resolve dependence of the [Image](http://ckeditor.com/addon/image) plugin on the [Form Elements](http://ckeditor.com/addon/forms) plugin.
165
- * [#10911](http://dev.ckeditor.com/ticket/10911): Fixed: Browser *Alt* hotkeys will no longer be blocked while a widget is focused.
166
- * [#11082](http://dev.ckeditor.com/ticket/11082): Fixed: Selected widget is not copied or cut when using toolbar buttons or context menu.
167
- * [#11083](http://dev.ckeditor.com/ticket/11083): Fixed list and div element application to block widgets.
168
- * [#10887](http://dev.ckeditor.com/ticket/10887): Internet Explorer 8 compatibility issues related to the Widget System.
169
- * [#11074](http://dev.ckeditor.com/ticket/11074): Temporarily disabled inline widget drag and drop, because of seriously buggy native `range#moveToPoint` method.
170
- * [#11098](http://dev.ckeditor.com/ticket/11098): Fixed: Wrong selection position after undoing widget drag and drop.
171
- * [#11110](http://dev.ckeditor.com/ticket/11110): Fixed: IFrame and Flash objects are being incorrectly pasted in certain conditions.
172
- * [#11129](http://dev.ckeditor.com/ticket/11129): Page break is lost when loading data.
173
- * [#11123](http://dev.ckeditor.com/ticket/11123): [Firefox] Widget is destroyed after being dragged outside of `<body>`.
174
- * [#11124](http://dev.ckeditor.com/ticket/11124): Fixed the [Elements Path](http://ckeditor.com/addon/elementspath) in an editor using the [Div Editing Area](http://ckeditor.com/addon/divarea).
175
-
176
- ## CKEditor 4.3 Beta
177
-
178
- New Features:
179
-
180
- * [#9764](http://dev.ckeditor.com/ticket/9764): Widget System.
181
- * [Widget plugin](http://ckeditor.com/addon/widget) introducing the [Widget API](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget).
182
- * New [`editor.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-enterMode) and [`editor.shiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-shiftEnterMode) properties &ndash; normalized versions of [`config.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) and [`config.shiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode).
183
- * Dynamic editor settings. Starting from CKEditor 4.3 Beta, *Enter* mode values and [content filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) instances may be changed dynamically (for example when the caret was placed in an element in which editor features should be adjusted). When you are implementing a new editor feature, you should base its behavior on [dynamic](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeEnterMode) or [static](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-enterMode) *Enter* mode values depending on whether this feature works in selection context or globally on editor content.
184
- * Dynamic *Enter* mode values &ndash; [`editor.setActiveEnterMode()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setActiveEnterMode) method, [`editor.activeEnterModeChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-activeEnterModeChange) event, and two properties: [`editor.activeEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeEnterMode) and [`editor.activeShiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeShiftEnterMode).
185
- * Dynamic content filter instances &ndash; [`editor.setActiveFilter()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setActiveFilter) method, [`editor.activeFilterChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-activeFilterChange) event, and [`editor.activeFilter`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeFilter) property.
186
- * "Fake" selection was introduced. It makes it possible to virtually select any element when the real selection remains hidden. See the [`selection.fake()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-fake) method.
187
- * Default [`htmlParser.filter`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.filter) rules are not applied to non-editable elements (elements with `contenteditable` attribute set to `false` and their descendants) anymore. To add a rule which will be applied to all elements you need to pass an additional argument to the [`filter.addRules()`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.filter-method-addRules) method.
188
- * Dozens of new methods were introduced &ndash; most interesting ones:
189
- * [`document.find()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.document-method-find),
190
- * [`document.findOne()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.document-method-findOne),
191
- * [`editable.insertElementIntoRange()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editable-method-insertElementIntoRange),
192
- * [`range.moveToClosestEditablePosition()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.range-method-moveToClosestEditablePosition),
193
- * New methods for [`htmlParser.node`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.node) and [`htmlParser.element`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.element).
194
- * [#10659](http://dev.ckeditor.com/ticket/10659): New [Enhanced Image](http://ckeditor.com/addon/image2) plugin that introduces a widget with integrated image captions, an option to center images, and dynamic "click and drag" resizing.
195
- * [#10664](http://dev.ckeditor.com/ticket/10664): New [Mathematical Formulas](http://ckeditor.com/addon/mathjax) plugin that introduces the MathJax widget.
196
- * [#7987](https://dev.ckeditor.com/ticket/7987): New [Language](http://ckeditor.com/addon/language) plugin that implements Language toolbar button to support [WCAG 3.1.2 Language of Parts](http://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html).
197
- * [#10708](http://dev.ckeditor.com/ticket/10708): New [smileys](http://ckeditor.com/addon/smiley).
198
-
199
- ## CKEditor 4.2.3
200
-
201
- Fixed Issues:
202
-
203
- * [#10994](http://dev.ckeditor.com/ticket/10994): Fixed: Loading external jQuery library when opening the [jQuery Adapter](http://docs.ckeditor.com/#!/guide/dev_jquery) sample directly from file.
204
- * [#10975](http://dev.ckeditor.com/ticket/10975): [IE] Fixed: Error thrown while opening the color palette.
205
- * [#9929](http://dev.ckeditor.com/ticket/9929): [Blink/WebKit] Fixed: A non-breaking space is created once a character is deleted and a regular space is typed.
206
- * [#10963](http://dev.ckeditor.com/ticket/10963): Fixed: JAWS issue with the keyboard shortcut for [Magic Line](http://ckeditor.com/addon/magicline).
207
- * [#11096](http://dev.ckeditor.com/ticket/11096): Fixed: TypeError: Object has no method 'is'.
208
-
209
- ## CKEditor 4.2.2
210
-
211
- Fixed Issues:
212
-
213
- * [#9314](http://dev.ckeditor.com/ticket/9314): Fixed: Incorrect error message on closing a dialog window without saving changs.
214
- * [#10308](http://dev.ckeditor.com/ticket/10308): [IE10] Fixed: Unspecified error when deleting a row.
215
- * [#10945](http://dev.ckeditor.com/ticket/10945): [Chrome] Fixed: Clicking with a mouse inside the editor does not show the caret.
216
- * [#10912](http://dev.ckeditor.com/ticket/10912): Prevent default action when content of a non-editable link is clicked.
217
- * [#10913](http://dev.ckeditor.com/ticket/10913): Fixed [`CKEDITOR.plugins.addExternal()`](http://docs.ckeditor.com/#!/api/CKEDITOR.resourceManager-method-addExternal) not handling paths including file name specified.
218
- * [#10666](http://dev.ckeditor.com/ticket/10666): Fixed [`CKEDITOR.tools.isArray()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-isArray) not working cross frame.
219
- * [#10910](http://dev.ckeditor.com/ticket/10910): [IE9] Fixed JavaScript error thrown in Compatibility Mode when clicking and/or typing in the editing area.
220
- * [#10868](http://dev.ckeditor.com/ticket/10868): [IE8] Prevent the browser from crashing when applying the Inline Quotation style.
221
- * [#10915](http://dev.ckeditor.com/ticket/10915): Fixed: Invalid CSS filter in the Kama skin.
222
- * [#10914](http://dev.ckeditor.com/ticket/10914): Plugins [Indent List](http://ckeditor.com/addon/indentlist) and [Indent Block](http://ckeditor.com/addon/indentblock) are now included in the build configuration.
223
- * [#10812](http://dev.ckeditor.com/ticket/10812): Fixed [`range.createBookmark2()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.range-method-createBookmark2) incorrectly normalizing offsets. This bug was causing many issues: [#10850](http://dev.ckeditor.com/ticket/10850), [#10842](http://dev.ckeditor.com/ticket/10842).
224
- * [#10951](http://dev.ckeditor.com/ticket/10951): Reviewed and optimized focus handling on panels (combo, menu buttons, color buttons, and context menu) to enhance accessibility. Fixed [#10705](http://dev.ckeditor.com/ticket/10705), [#10706](http://dev.ckeditor.com/ticket/10706) and [#10707](http://dev.ckeditor.com/ticket/10707).
225
- * [#10704](http://dev.ckeditor.com/ticket/10704): Fixed a JAWS issue with the Select Color dialog window title not being announced.
226
- * [#10753](http://dev.ckeditor.com/ticket/10753): The floating toolbar in inline instances now has a dedicated accessibility label.
227
-
228
- ## CKEditor 4.2.1
229
-
230
- Fixed Issues:
231
-
232
- * [#10301](http://dev.ckeditor.com/ticket/10301): [IE9-10] Undo fails after 3+ consecutive paste actions with a JavaScript error.
233
- * [#10689](http://dev.ckeditor.com/ticket/10689): Save toolbar button saves only the first editor instance.
234
- * [#10368](http://dev.ckeditor.com/ticket/10368): Move language reading direction definition (`dir`) from main language file to core.
235
- * [#9330](http://dev.ckeditor.com/ticket/9330): Fixed pasting anchors from MS Word.
236
- * [#8103](http://dev.ckeditor.com/ticket/8103): Fixed pasting nested lists from MS Word.
237
- * [#9958](http://dev.ckeditor.com/ticket/9958): [IE9] Pressing the "OK" button will trigger the `onbeforeunload` event in the popup dialog.
238
- * [#10662](http://dev.ckeditor.com/ticket/10662): Fixed styles from the Styles drop-down list not registering to the ACF in case when the [Shared Spaces plugin](http://ckeditor.com/addon/sharedspace) is used.
239
- * [#9654](http://dev.ckeditor.com/ticket/9654): Problems with Internet Explorer 10 Quirks Mode.
240
- * [#9816](http://dev.ckeditor.com/ticket/9816): Floating toolbar does not reposition vertically in several cases.
241
- * [#10646](http://dev.ckeditor.com/ticket/10646): Removing a selected sublist or nested table with *Backspace/Delete* removes the parent element.
242
- * [#10623](http://dev.ckeditor.com/ticket/10623): [WebKit] Page is scrolled when opening a drop-down list.
243
- * [#10004](http://dev.ckeditor.com/ticket/10004): [ChromeVox] Button names are not announced.
244
- * [#10731](http://dev.ckeditor.com/ticket/10731): [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin breaks cloning of editor configuration.
245
- * It is now possible to set per instance [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin configuration instead of setting the configuration globally.
246
-
247
- ## CKEditor 4.2
248
-
249
- **Important Notes:**
250
-
251
- * Dropped compatibility support for Internet Explorer 7 and Firefox 3.6.
252
-
253
- * Both the Basic and the Standard distribution packages will not contain the new [Indent Block](http://ckeditor.com/addon/indentblock) plugin. Because of this the [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) might remove block indentations from existing contents. If you want to prevent this, either [add an appropriate ACF rule to your filter](http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules) or create a custom build based on the Basic/Standard package and add the Indent Block plugin in [CKBuilder](http://ckeditor.com/builder).
254
-
255
- New Features:
256
-
257
- * [#10027](http://dev.ckeditor.com/ticket/10027): Separated list and block indentation into two plugins: [Indent List](http://ckeditor.com/addon/indentlist) and [Indent Block](http://ckeditor.com/addon/indentblock).
258
- * [#8244](http://dev.ckeditor.com/ticket/8244): Use *(Shift+)Tab* to indent and outdent lists.
259
- * [#10281](http://dev.ckeditor.com/ticket/10281): The [jQuery Adapter](http://docs.ckeditor.com/#!/guide/dev_jquery) is now available. Several jQuery-related issues fixed: [#8261](http://dev.ckeditor.com/ticket/8261), [#9077](http://dev.ckeditor.com/ticket/9077), [#8710](http://dev.ckeditor.com/ticket/8710), [#8530](http://dev.ckeditor.com/ticket/8530), [#9019](http://dev.ckeditor.com/ticket/9019), [#6181](http://dev.ckeditor.com/ticket/6181), [#7876](http://dev.ckeditor.com/ticket/7876), [#6906](http://dev.ckeditor.com/ticket/6906).
260
- * [#10042](http://dev.ckeditor.com/ticket/10042): Introduced [`config.title`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-title) setting to change the human-readable title of the editor.
261
- * [#9794](http://dev.ckeditor.com/ticket/9794): Added [`editor.onChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event.
262
- * [#9923](http://dev.ckeditor.com/ticket/9923): HiDPI support in the editor UI. HiDPI icons for [Moono skin](http://ckeditor.com/addon/moono) added.
263
- * [#8031](http://dev.ckeditor.com/ticket/8031): Handle `required` attributes on `<textarea>` elements &mdash; introduced [`editor.required`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-required) event.
264
- * [#10280](http://dev.ckeditor.com/ticket/10280): Ability to replace `<textarea>` elements with the inline editor.
265
-
266
- Fixed Issues:
267
-
268
- * [#10599](http://dev.ckeditor.com/ticket/10599): [Indent](http://ckeditor.com/addon/indent) plugin is no longer required by the [List](http://ckeditor.com/addon/list) plugin.
269
- * [#10370](http://dev.ckeditor.com/ticket/10370): Inconsistency in data events between framed and inline editors.
270
- * [#10438](http://dev.ckeditor.com/ticket/10438): [FF, IE] No selection is done on an editable element on executing [`editor.setData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData).
271
-
272
- ## CKEditor 4.1.3
273
-
274
- New Features:
275
-
276
- * Added new translation: Indonesian.
277
-
278
- Fixed Issues:
279
-
280
- * [#10644](http://dev.ckeditor.com/ticket/10644): Fixed a critical bug when pasting plain text in Blink-based browsers.
281
- * [#5189](http://dev.ckeditor.com/ticket/5189): [Find/Replace](http://ckeditor.com/addon/find) dialog window: rename "Cancel" button to "Close".
282
- * [#10562](http://dev.ckeditor.com/ticket/10562): [Housekeeping] Unified CSS gradient filter formats in the [Moono](http://ckeditor.com/addon/moono) skin.
283
- * [#10537](http://dev.ckeditor.com/ticket/10537): Advanced Content Filter should register a default rule for [`config.shiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode).
284
- * [#10610](http://dev.ckeditor.com/ticket/10610): [`CKEDITOR.dialog.addIframe()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dialog-static-method-addIframe) incorrectly sets the iframe size in dialog windows.
285
-
286
- ## CKEditor 4.1.2
287
-
288
- New Features:
289
-
290
- * Added new translation: Sinhala.
291
-
292
- Fixed Issues:
293
-
294
- * [#10339](http://dev.ckeditor.com/ticket/10339): Fixed: Error thrown when inserted data was totally stripped out after filtering and processing.
295
- * [#10298](http://dev.ckeditor.com/ticket/10298): Fixed: Data processor breaks attributes containing protected parts.
296
- * [#10367](http://dev.ckeditor.com/ticket/10367): Fixed: [`editable.insertText()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editable-method-insertText) loses characters when `RegExp` replace controls are being inserted.
297
- * [#10165](http://dev.ckeditor.com/ticket/10165): [IE] Access denied error when `document.domain` has been altered.
298
- * [#9761](http://dev.ckeditor.com/ticket/9761): Update the *Backspace* key state in [`keystrokeHandler.blockedKeystrokes`](http://docs.ckeditor.com/#!/api/CKEDITOR.keystrokeHandler-property-blockedKeystrokes) when calling [`editor.setReadOnly()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly).
299
- * [#6504](http://dev.ckeditor.com/ticket/6504): Fixed: Race condition while loading several [`config.customConfig`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-customConfig) files.
300
- * [#10146](http://dev.ckeditor.com/ticket/10146): [Firefox] Empty lines are being removed while [`config.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) is [`CKEDITOR.ENTER_BR`](http://docs.ckeditor.com/#!/api/CKEDITOR-property-ENTER_BR).
301
- * [#10360](http://dev.ckeditor.com/ticket/10360): Fixed: ARIA `role="application"` should not be used for dialog windows.
302
- * [#10361](http://dev.ckeditor.com/ticket/10361): Fixed: ARIA `role="application"` should not be used for floating panels.
303
- * [#10510](http://dev.ckeditor.com/ticket/10510): Introduced unique voice labels to differentiate between different editor instances.
304
- * [#9945](http://dev.ckeditor.com/ticket/9945): [iOS] Scrolling not possible on iPad.
305
- * [#10389](http://dev.ckeditor.com/ticket/10389): Fixed: Invalid HTML in the "Text and Table" template.
306
- * [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin user interface was changed to match CKEditor 4 style.
307
-
308
- ## CKEditor 4.1.1
309
-
310
- New Features:
311
-
312
- * Added new translation: Albanian.
313
-
314
- Fixed Issues:
315
-
316
- * [#10172](http://dev.ckeditor.com/ticket/10172): Pressing *Delete* or *Backspace* in an empty table cell moves the cursor to the next/previous cell.
317
- * [#10219](http://dev.ckeditor.com/ticket/10219): Error thrown when destroying an editor instance in parallel with a `mouseup` event.
318
- * [#10265](http://dev.ckeditor.com/ticket/10265): Wrong loop type in the [File Browser](http://ckeditor.com/addon/filebrowser) plugin.
319
- * [#10249](http://dev.ckeditor.com/ticket/10249): Wrong undo/redo states at start.
320
- * [#10268](http://dev.ckeditor.com/ticket/10268): [Show Blocks](http://ckeditor.com/addon/showblocks) does not recover after switching to Source view.
321
- * [#9995](http://dev.ckeditor.com/ticket/9995): HTML code in the `<textarea>` should not be modified by the [`htmlDataProcessor`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor).
322
- * [#10320](http://dev.ckeditor.com/ticket/10320): [Justify](http://ckeditor.com/addon/justify) plugin should add elements to Advanced Content Filter based on current [Enter mode](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode).
323
- * [#10260](http://dev.ckeditor.com/ticket/10260): Fixed: Advanced Content Filter blocks [`tabSpaces`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-tabSpaces). Unified `data-cke-*` attributes filtering.
324
- * [#10315](http://dev.ckeditor.com/ticket/10315): [WebKit] [Undo manager](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.undo.UndoManager) should not record snapshots after a filling character was added/removed.
325
- * [#10291](http://dev.ckeditor.com/ticket/10291): [WebKit] Space after a filling character should be secured.
326
- * [#10330](http://dev.ckeditor.com/ticket/10330): [WebKit] The filling character is not removed on `keydown` in specific cases.
327
- * [#10285](http://dev.ckeditor.com/ticket/10285): Fixed: Styled text pasted from MS Word causes an infinite loop.
328
- * [#10131](http://dev.ckeditor.com/ticket/10131): Fixed: [`undoManager.update()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.undo.UndoManager-method-update) does not refresh the command state.
329
- * [#10337](http://dev.ckeditor.com/ticket/10337): Fixed: Unable to remove `<s>` using [Remove Format](http://ckeditor.com/addon/removeformat).
330
-
331
- ## CKEditor 4.1
332
-
333
- Fixed Issues:
334
-
335
- * [#10192](http://dev.ckeditor.com/ticket/10192): Closing lists with the *Enter* key does not work with [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) in several cases.
336
- * [#10191](http://dev.ckeditor.com/ticket/10191): Fixed allowed content rules unification, so the [`filter.allowedContent`](http://docs.ckeditor.com/#!/api/CKEDITOR.filter-property-allowedContent) property always contains rules in the same format.
337
- * [#10224](http://dev.ckeditor.com/ticket/10224): Advanced Content Filter does not remove non-empty `<a>` elements anymore.
338
- * Minor issues in plugin integration with Advanced Content Filter:
339
- * [#10166](http://dev.ckeditor.com/ticket/10166): Added transformation from the `align` attribute to `float` style to preserve backward compatibility after the introduction of Advanced Content Filter.
340
- * [#10195](http://dev.ckeditor.com/ticket/10195): [Image](http://ckeditor.com/addon/image) plugin no longer registers rules for links to Advanced Content Filter.
341
- * [#10213](http://dev.ckeditor.com/ticket/10213): [Justify](http://ckeditor.com/addon/justify) plugin is now correctly registering rules to Advanced Content Filter when [`config.justifyClasses`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-justifyClasses) is defined.
342
-
343
- ## CKEditor 4.1 RC
344
-
345
- New Features:
346
-
347
- * [#9829](http://dev.ckeditor.com/ticket/9829): Advanced Content Filter - data and features activation based on editor configuration.
348
-
349
- Brand new data filtering system that works in 2 modes:
350
-
351
- * Based on loaded features (toolbar items, plugins) - the data will be filtered according to what the editor in its
352
- current configuration can handle.
353
- * Based on [`config.allowedContent`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent) rules - the data
354
- will be filtered and the editor features (toolbar items, commands, keystrokes) will be enabled if they are allowed.
355
-
356
- See the `datafiltering.html` sample, [guides](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) and [`CKEDITOR.filter` API documentation](http://docs.ckeditor.com/#!/api/CKEDITOR.filter).
357
- * [#9387](http://dev.ckeditor.com/ticket/9387): Reintroduced [Shared Spaces](http://ckeditor.com/addon/sharedspace) - the ability to display toolbar and bottom editor space in selected locations and to share them by different editor instances.
358
- * [#9907](http://dev.ckeditor.com/ticket/9907): Added the [`contentPreview`](http://docs.ckeditor.com/#!/api/CKEDITOR-event-contentPreview) event for preview data manipulation.
359
- * [#9713](http://dev.ckeditor.com/ticket/9713): Introduced the [Source Dialog](http://ckeditor.com/addon/sourcedialog) plugin that brings raw HTML editing for inline editor instances.
360
- * Included in [#9829](http://dev.ckeditor.com/ticket/9829): Introduced new events, [`toHtml`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-toHtml) and [`toDataFormat`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-toDataFormat), allowing for better integration with data processing.
361
- * [#9981](http://dev.ckeditor.com/ticket/9981): Added ability to filter [`htmlParser.fragment`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.fragment), [`htmlParser.element`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.element) etc. by many [`htmlParser.filter`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.filter)s before writing structure to an HTML string.
362
- * Included in [#10103](http://dev.ckeditor.com/ticket/10103):
363
- * Introduced the [`editor.status`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-status) property to make it easier to check the current status of the editor.
364
- * Default [`command`](http://docs.ckeditor.com/#!/api/CKEDITOR.command) state is now [`CKEDITOR.TRISTATE_DISABLE`](http://docs.ckeditor.com/#!/api/CKEDITOR-property-TRISTATE_DISABLED). It will be activated on [`editor.instanceReady`](http://docs.ckeditor.com/#!/api/CKEDITOR-event-instanceReady) or immediately after being added if the editor is already initialized.
365
- * [#9796](http://dev.ckeditor.com/ticket/9796): Introduced `<s>` as a default tag for strikethrough, which replaces obsolete `<strike>` in HTML5.
366
-
367
- ## CKEditor 4.0.3
368
-
369
- Fixed Issues:
370
-
371
- * [#10196](http://dev.ckeditor.com/ticket/10196): Fixed context menus not opening with keyboard shortcuts when [Autogrow](http://ckeditor.com/addon/autogrow) is enabled.
372
- * [#10212](http://dev.ckeditor.com/ticket/10212): [IE7-10] Undo command throws errors after multiple switches between Source and WYSIWYG view.
373
- * [#10219](http://dev.ckeditor.com/ticket/10219): [Inline editor] Error thrown after calling [`editor.destroy()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-destroy).
374
-
375
- ## CKEditor 4.0.2
376
-
377
- Fixed Issues:
378
-
379
- * [#9779](http://dev.ckeditor.com/ticket/9779): Fixed overriding [`CKEDITOR.getUrl()`](http://docs.ckeditor.com/#!/api/CKEDITOR-method-getUrl) with `CKEDITOR_GETURL`.
380
- * [#9772](http://dev.ckeditor.com/ticket/9772): Custom buttons in the dialog window footer have different look and size ([Moono](http://ckeditor.com/addon/moono), [Kama](http://ckeditor.com/addon/kama) skins).
381
- * [#9029](http://dev.ckeditor.com/ticket/9029): Custom styles added with the [`stylesSet.add()`](http://docs.ckeditor.com/#!/api/CKEDITOR.stylesSet-method-add) are displayed in the wrong order.
382
- * [#9887](http://dev.ckeditor.com/ticket/9887): Disable [Magic Line](http://ckeditor.com/addon/magicline) when [`editor.readOnly`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-readOnly) is set.
383
- * [#9882](http://dev.ckeditor.com/ticket/9882): Fixed empty document title on [`editor.getData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData) if set via the Document Properties dialog window.
384
- * [#9773](http://dev.ckeditor.com/ticket/9773): Fixed rendering problems with selection fields in the Kama skin.
385
- * [#9851](http://dev.ckeditor.com/ticket/9851): The [`selectionChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-selectionChange) event is not fired when mouse selection ended outside editable.
386
- * [#9903](http://dev.ckeditor.com/ticket/9903): [Inline editor] Bad positioning of floating space with page horizontal scroll.
387
- * [#9872](http://dev.ckeditor.com/ticket/9872): [`editor.checkDirty()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty) returns `true` when called onload. Removed the obsolete `editor.mayBeDirty` flag.
388
- * [#9893](http://dev.ckeditor.com/ticket/9893): [IE] Fixed broken toolbar when editing mixed direction content in Quirks mode.
389
- * [#9845](http://dev.ckeditor.com/ticket/9845): Fixed TAB navigation in the [Link](http://ckeditor.com/addon/link) dialog window when the Anchor option is used and no anchors are available.
390
- * [#9883](http://dev.ckeditor.com/ticket/9883): Maximizing was making the entire page editable with [divarea](http://ckeditor.com/addon/divarea)-based editors.
391
- * [#9940](http://dev.ckeditor.com/ticket/9940): [Firefox] Navigating back to a page with the editor was making the entire page editable.
392
- * [#9966](http://dev.ckeditor.com/ticket/9966): Fixed: Unable to type square brackets with French keyboard layout. Changed [Magic Line](http://ckeditor.com/addon/magicline) keystrokes.
393
- * [#9507](http://dev.ckeditor.com/ticket/9507): [Firefox] Selection is moved before editable position when the editor is focused for the first time.
394
- * [#9947](http://dev.ckeditor.com/ticket/9947): [WebKit] Editor overflows parent container in some edge cases.
395
- * [#10105](http://dev.ckeditor.com/ticket/10105): Fixed: Broken [sourcearea](http://ckeditor.com/addon/sourcearea) view when an RTL language is set.
396
- * [#10123](http://dev.ckeditor.com/ticket/10123): [WebKit] Fixed: Several dialog windows have broken layout since the latest WebKit release.
397
- * [#10152](http://dev.ckeditor.com/ticket/10152): Fixed: Invalid ARIA property used on menu items.
398
-
399
- ## CKEditor 4.0.1.1
400
-
401
- Fixed Issues:
402
-
403
- * Security update: Added protection against XSS attack and possible path disclosure in the PHP sample.
404
-
405
- ## CKEditor 4.0.1
406
-
407
- Fixed Issues:
408
-
409
- * [#9655](http://dev.ckeditor.com/ticket/9655): Support for IE Quirks Mode in the new [Moono skin](http://ckeditor.com/addon/moono).
410
- * Accessibility issues (mainly in inline editor): [#9364](http://dev.ckeditor.com/ticket/9364), [#9368](http://dev.ckeditor.com/ticket/9368), [#9369](http://dev.ckeditor.com/ticket/9369), [#9370](http://dev.ckeditor.com/ticket/9370), [#9541](http://dev.ckeditor.com/ticket/9541), [#9543](http://dev.ckeditor.com/ticket/9543), [#9841](http://dev.ckeditor.com/ticket/9841), [#9844](http://dev.ckeditor.com/ticket/9844).
411
- * [Magic Line](http://ckeditor.com/addon/magicline) plugin:
412
- * [#9481](http://dev.ckeditor.com/ticket/9481): Added accessibility support for Magic Line.
413
- * [#9509](http://dev.ckeditor.com/ticket/9509): Added Magic Line support for forms.
414
- * [#9573](http://dev.ckeditor.com/ticket/9573): Magic Line does not disappear on `mouseout` in a specific case.
415
- * [#9754](http://dev.ckeditor.com/ticket/9754): [WebKit] Cutting & pasting simple unformatted text generates an inline wrapper in WebKit browsers.
416
- * [#9456](http://dev.ckeditor.com/ticket/9456): [Chrome] Properly paste bullet list style from MS Word.
417
- * [#9699](http://dev.ckeditor.com/ticket/9699), [#9758](http://dev.ckeditor.com/ticket/9758): Improved selection locking when selecting by dragging.
418
- * Context menu:
419
- * [#9712](http://dev.ckeditor.com/ticket/9712): Opening the context menu destroys editor focus.
420
- * [#9366](http://dev.ckeditor.com/ticket/9366): Context menu should be displayed over the floating toolbar.
421
- * [#9706](http://dev.ckeditor.com/ticket/9706): Context menu generates a JavaScript error in inline mode when the editor is attached to a header element.
422
- * [#9800](http://dev.ckeditor.com/ticket/9800): Hide float panel when resizing the window.
423
- * [#9721](http://dev.ckeditor.com/ticket/9721): Padding in content of div-based editor puts the editing area under the bottom UI space.
424
- * [#9528](http://dev.ckeditor.com/ticket/9528): Host page `box-sizing` style should not influence the editor UI elements.
425
- * [#9503](http://dev.ckeditor.com/ticket/9503): [Form Elements](http://ckeditor.com/addon/forms) plugin adds context menu listeners only on supported input types. Added support for `tel`, `email`, `search` and `url` input types.
426
- * [#9769](http://dev.ckeditor.com/ticket/9769): Improved floating toolbar positioning in a narrow window.
427
- * [#9875](http://dev.ckeditor.com/ticket/9875): Table dialog window does not populate width correctly.
428
- * [#8675](http://dev.ckeditor.com/ticket/8675): Deleting cells in a nested table removes the outer table cell.
429
- * [#9815](http://dev.ckeditor.com/ticket/9815): Cannot edit dialog window fields in an editor initialized in the jQuery UI modal dialog.
430
- * [#8888](http://dev.ckeditor.com/ticket/8888): CKEditor dialog windows do not show completely in a small window.
431
- * [#9360](http://dev.ckeditor.com/ticket/9360): [Inline editor] Blocks shown for a `<div>` element stay permanently even after the user exits editing the `<div>`.
432
- * [#9531](http://dev.ckeditor.com/ticket/9531): [Firefox & Inline editor] Toolbar is lost when closing the Format drop-down list by clicking its button.
433
- * [#9553](http://dev.ckeditor.com/ticket/9553): Table width incorrectly set when the `border-width` style is specified.
434
- * [#9594](http://dev.ckeditor.com/ticket/9594): Cannot tab past CKEditor when it is in read-only mode.
435
- * [#9658](http://dev.ckeditor.com/ticket/9658): [IE9] Justify not working on selected images.
436
- * [#9686](http://dev.ckeditor.com/ticket/9686): Added missing contents styles for `<pre>` elements.
437
- * [#9709](http://dev.ckeditor.com/ticket/9709): [Paste from Word](http://ckeditor.com/addon/pastefromword) should not depend on configuration from other styles.
438
- * [#9726](http://dev.ckeditor.com/ticket/9726): Removed [Color Dialog](http://ckeditor.com/addon/colordialog) plugin dependency from [Table Tools](http://ckeditor.com/addon/tabletools).
439
- * [#9765](http://dev.ckeditor.com/ticket/9765): Toolbar Collapse command documented incorrectly in the [Accessibility Instructions](http://ckeditor.com/addon/a11yhelp) dialog window.
440
- * [#9771](http://dev.ckeditor.com/ticket/9771): [WebKit & Opera] Fixed scrolling issues when pasting.
441
- * [#9787](http://dev.ckeditor.com/ticket/9787): [IE9] `onChange` is not fired for checkboxes in dialogs.
442
- * [#9842](http://dev.ckeditor.com/ticket/9842): [Firefox 17] When opening a toolbar menu for the first time and pressing the *Down Arrow* key, focus goes to the next toolbar button instead of the menu options.
443
- * [#9847](http://dev.ckeditor.com/ticket/9847): [Elements Path](http://ckeditor.com/addon/elementspath) should not be initialized in the inline editor.
444
- * [#9853](http://dev.ckeditor.com/ticket/9853): [`editor.addRemoveFormatFilter()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-addRemoveFormatFilter) is exposed before it really works.
445
- * [#8893](http://dev.ckeditor.com/ticket/8893): Value of the [`pasteFromWordCleanupFile`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordCleanupFile) configuration option is now taken from the instance configuration.
446
- * [#9693](http://dev.ckeditor.com/ticket/9693): Removed "Live Preview" checkbox from UI color picker.
447
-
448
-
449
- ## CKEditor 4.0
450
-
451
- The first stable release of the new CKEditor 4 code line.
452
-
453
- The CKEditor JavaScript API has been kept compatible with CKEditor 4, whenever
454
- possible. The list of relevant changes can be found in the [API Changes page of
455
- the CKEditor 4 documentation][1].
456
-
457
- [1]: http://docs.ckeditor.com/#!/guide/dev_api_changes "API Changes"
1
+ CKEditor 4 Changelog
2
+ ====================
3
+
4
+ ## CKEditor 4.3.4
5
+
6
+ Fixed Issues:
7
+
8
+ * [#11597](http://dev.ckeditor.com/ticket/11597): [IE11] Fixed: Error thrown when trying to open the [preview](http://ckeditor.com/addon/preview) using the keyboard.
9
+ * [#11544](http://dev.ckeditor.com/ticket/11544): [Placeholders](http://ckeditor.com/addon/placeholder) will no longer be upcasted in parents not accepting `<span>` elements.
10
+ * [#8663](http://dev.ckeditor.com/ticket/8663): Fixed [`element.renameNode()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-renameNode) not clearing the [`element.getName()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-getName) cache.
11
+ * [#11574](http://dev.ckeditor.com/ticket/11574): Fixed: *Backspace* destroying the DOM structure if an inline editable is placed in a list item.
12
+ * [#11603](http://dev.ckeditor.com/ticket/11603): Fixed: [Table Resize](http://ckeditor.com/addon/tableresize) attaches to tables outside the editable.
13
+ * [#9205](http://dev.ckeditor.com/ticket/9205), [#7805](http://dev.ckeditor.com/ticket/7805), [#8216](http://dev.ckeditor.com/ticket/8216): Fixed: `{cke_protected_1}` appearing in data in various cases where HTML comments are placed next to `"` or `'`.
14
+ * [#11635](http://dev.ckeditor.com/ticket/11635): Fixed: Some attributes are not protected before the content is passed through the fix bin.
15
+ * [#11660](http://dev.ckeditor.com/ticket/11660): [IE] Fixed: Table content is lost when some extra markup is inside the table.
16
+ * [#11641](http://dev.ckeditor.com/ticket/11641): Fixed: Switching between modes in the classic editor removes content styles for the inline editor.
17
+ * [#11568](http://dev.ckeditor.com/ticket/11568): Fixed: [Styles](http://ckeditor.com/addon/stylescombo) drop-down list is not enabled on selection change.
18
+
19
+ ## CKEditor 4.3.3
20
+
21
+ Fixed Issues:
22
+
23
+ * [#11500](http://dev.ckeditor.com/ticket/11500): [Webkit/Blink] Fixed: Selection lost when setting data in another inline editor. Additionally, [`selection.removeAllRanges()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-removeAllRanges) is now scoped to selection's [root](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-property-root).
24
+ * [#11104](http://dev.ckeditor.com/ticket/11104): [IE] Fixed: Various issues with scrolling and selection when focusing widgets.
25
+ * [#11487](http://dev.ckeditor.com/ticket/11487): Moving mouse over the [Enhanced Image](http://ckeditor.com/addon/image2) widget will no longer change the value returned by the [`editor.checkDirty()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty) method.
26
+ * [#8673](http://dev.ckeditor.com/ticket/8673): [WebKit] Fixed: Cannot select and remove the [Page Break](http://ckeditor.com/addon/pagebreak).
27
+ * [#11413](http://dev.ckeditor.com/ticket/11413): Fixed: Incorrect [`editor.execCommand()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand) behavior.
28
+ * [#11438](http://dev.ckeditor.com/ticket/11438): Splitting table cells vertically is no longer changing table structure.
29
+ * [#8899](http://dev.ckeditor.com/ticket/8899): Fixed: Links in the [About CKEditor](http://ckeditor.com/addon/about) dialog window now open in a new browser window or tab.
30
+ * [#11490](http://dev.ckeditor.com/ticket/11490): Fixed: [Menu button](http://ckeditor.com/addon/menubutton) panel not showing in the source mode.
31
+ * [#11417](http://dev.ckeditor.com/ticket/11417): The [`widget.doubleclick`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget-event-doubleclick) event is not canceled anymore after editing was triggered.
32
+ * [#11253](http://dev.ckeditor.com/ticket/11253): [IE] Fixed: Clipped upload button in the [Enhanced Image](http://ckeditor.com/addon/image2) dialog window.
33
+ * [#11359](http://dev.ckeditor.com/ticket/11359): Standardized the way anchors are discovered by the [Link](http://ckeditor.com/addon/link) plugin.
34
+ * [#11058](http://dev.ckeditor.com/ticket/11058): [IE8] Fixed: Error when deleting a table row.
35
+ * [#11508](http://dev.ckeditor.com/ticket/11508): Fixed: [`htmlDataProcessor`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor) discovering protected attributes within other attributes' values.
36
+ * [#11533](http://dev.ckeditor.com/ticket/11533): Widgets: Avoid recurring upcasts if the DOM structure was modified during an upcast.
37
+ * [#11400](http://dev.ckeditor.com/ticket/11400): Fixed: The [`domObject.removeAllListeners()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.domObject-method-removeAllListeners) method does not remove custom listeners completely.
38
+ * [#11493](http://dev.ckeditor.com/ticket/11493): Fixed: The [`selection.getRanges()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-getRanges) method does not override cached ranges when used with the `onlyEditables` argument.
39
+ * [#11390](http://dev.ckeditor.com/ticket/11390): [IE] All [XML](http://ckeditor.com/addon/xml) plugin [methods](http://docs.ckeditor.com/#!/api/CKEDITOR.xml) now work in IE10+.
40
+ * [#11542](http://dev.ckeditor.com/ticket/11542): [IE11] Fixed: Blurry toolbar icons when Right-to-Left UI language is set.
41
+ * [#11504](http://dev.ckeditor.com/ticket/11504): Fixed: When [`config.fullPage`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-fullPage) is set to `true`, entities are not encoded in editor output.
42
+ * [#11004](http://dev.ckeditor.com/ticket/11004): Integrated [Enhanced Image](http://ckeditor.com/addon/image2) dialog window with [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter).
43
+ * [#11439](http://dev.ckeditor.com/ticket/11439): Fixed: Properties get cloned in the Cell Properties dialog window if multiple cells are selected.
44
+
45
+ ## CKEditor 4.3.2
46
+
47
+ Fixed Issues:
48
+
49
+ * [#11331](http://dev.ckeditor.com/ticket/11331): A menu button will have a changed label when selected instead of using the `aria-pressed` attribute.
50
+ * [#11177](http://dev.ckeditor.com/ticket/11177): Widget drag handler improvements:
51
+ * [#11176](http://dev.ckeditor.com/ticket/11176): Fixed: Initial position is not updated when the widget data object is empty.
52
+ * [#11001](http://dev.ckeditor.com/ticket/11001): Fixed: Multiple synchronous layout recalculations are caused by initial drag handler positioning causing performance issues.
53
+ * [#11161](http://dev.ckeditor.com/ticket/11161): Fixed: Drag handler is not repositioned in various situations.
54
+ * [#11281](http://dev.ckeditor.com/ticket/11281): Fixed: Drag handler and mask are duplicated after widget reinitialization.
55
+ * [#11207](http://dev.ckeditor.com/ticket/11207): [Firefox] Fixed: Misplaced [Enhanced Image](http://ckeditor.com/addon/image2) resizer in the inline editor.
56
+ * [#11102](http://dev.ckeditor.com/ticket/11102): `CKEDITOR.template` improvements:
57
+ * [#11102](http://dev.ckeditor.com/ticket/11102): Added newline character support.
58
+ * [#11216](http://dev.ckeditor.com/ticket/11216): Added "\\'" substring support.
59
+ * [#11121](http://dev.ckeditor.com/ticket/11121): [Firefox] Fixed: High Contrast mode is enabled when the editor is loaded in a hidden iframe.
60
+ * [#11350](http://dev.ckeditor.com/ticket/11350): The default value of [`config.contentsCss`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-contentsCss) is affected by [`CKEDITOR.getUrl()`](http://docs.ckeditor.com/#!/api/CKEDITOR-method-getUrl).
61
+ * [#11097](http://dev.ckeditor.com/ticket/11097): Improved the [Autogrow](http://ckeditor.com/addon/autogrow) plugin performance when dealing with very big tables.
62
+ * [#11290](http://dev.ckeditor.com/ticket/11290): Removed redundant code in the [Source Dialog](http://ckeditor.com/addon/sourcedialog) plugin.
63
+ * [#11133](http://dev.ckeditor.com/ticket/11133): [Page Break](http://ckeditor.com/addon/pagebreak) becomes editable if pasted.
64
+ * [#11126](http://dev.ckeditor.com/ticket/11126): Fixed: Native Undo executed once the bottom of the snapshot stack is reached.
65
+ * [#11131](http://dev.ckeditor.com/ticket/11131): [Div Editing Area](http://ckeditor.com/addon/divarea): Fixed: Error thrown when switching to source mode if the selection was in widget's nested editable.
66
+ * [#11139](http://dev.ckeditor.com/ticket/11139): [Div Editing Area](http://ckeditor.com/addon/divarea): Fixed: Elements Path is not cleared after switching to source mode.
67
+ * [#10778](http://dev.ckeditor.com/ticket/10778): Fixed a bug with range enlargement. The range no longer expands to visible whitespace.
68
+ * [#11146](http://dev.ckeditor.com/ticket/11146): [IE] Fixed: Preview window switches Internet Explorer to Quirks Mode.
69
+ * [#10762](http://dev.ckeditor.com/ticket/10762): [IE] Fixed: JavaScript code displayed in preview window's URL bar.
70
+ * [#11186](http://dev.ckeditor.com/ticket/11186): Introduced the [`widgets.repository.addUpcastCallback()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-addUpcastCallback) method that allows to block upcasting given element to a widget.
71
+ * [#11307](http://dev.ckeditor.com/ticket/11307): Fixed: Paste as Plain Text conflict with the [MooTools](http://mootools.net) library.
72
+ * [#11140](http://dev.ckeditor.com/ticket/11140): [IE11] Fixed: Anchors are not draggable.
73
+ * [#11379](http://dev.ckeditor.com/ticket/11379): Changed default contents `line-height` to unitless values to avoid huge text overlapping (like in [#9696](http://dev.ckeditor.com/ticket/9696)).
74
+ * [#10787](http://dev.ckeditor.com/ticket/10787): [Firefox] Fixed: Broken replacement of text while pasting into `div`-based editor.
75
+ * [#10884](http://dev.ckeditor.com/ticket/10884): Widgets integration with the [Show Blocks](http://ckeditor.com/addon/showblocks) plugin.
76
+ * [#11021](http://dev.ckeditor.com/ticket/11021): Fixed: An error thrown when selecting entire editable contents while fake selection is on.
77
+ * [#11086](http://dev.ckeditor.com/ticket/11086): [IE8] Re-enable inline widgets drag&drop in Internet Explorer 8.
78
+ * [#11372](http://dev.ckeditor.com/ticket/11372): Widgets: Special characters encoded twice in nested editables.
79
+ * [#10068](http://dev.ckeditor.com/ticket/10068): Fixed: Support for protocol-relative URLs.
80
+ * [#11283](http://dev.ckeditor.com/ticket/11283): [Enhanced Image](http://ckeditor.com/addon/image2): A `<div>` element with `text-align: center` and an image inside is not recognised correctly.
81
+ * [#11196](http://dev.ckeditor.com/ticket/11196): [Accessibility Instructions](http://ckeditor.com/addon/a11yhelp): Allowed additional keyboard button labels to be translated in the dialog window.
82
+
83
+ ## CKEditor 4.3.1
84
+
85
+ **Important Notes:**
86
+
87
+ * To match the naming convention, the `language` button is now `Language` ([#11201](http://dev.ckeditor.com/ticket/11201)).
88
+ * [Enhanced Image](http://ckeditor.com/addon/image2) button, context menu, command, and icon names match those of the [Image](http://ckeditor.com/addon/image) plugin ([#11222](http://dev.ckeditor.com/ticket/11222)).
89
+
90
+ Fixed Issues:
91
+
92
+ * [#11244](http://dev.ckeditor.com/ticket/11244): Changed: The [`widget.repository.checkWidgets()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-checkWidgets) method now fires the [`widget.repository.checkWidgets`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-event-checkWidgets) event, so from CKEditor 4.3.1 it is preferred to use the method rather than fire the event.
93
+ * [#11171](http://dev.ckeditor.com/ticket/11171): Fixed: [`editor.insertElement()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) and [`editor.insertText()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText) methods do not call the [`widget.repository.checkWidgets()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-checkWidgets) method.
94
+ * [#11085](http://dev.ckeditor.com/ticket/11085): [IE8] Replaced preview generated by the [Mathematical Formulas](http://ckeditor.com/addon/mathjax) widget with a placeholder.
95
+ * [#11044](http://dev.ckeditor.com/ticket/11044): Enhanced WAI-ARIA support for the [Language](http://ckeditor.com/addon/language) plugin drop-down menu.
96
+ * [#11075](http://dev.ckeditor.com/ticket/11075): With drop-down menu button focused, pressing the *Down Arrow* key will now open the menu and focus its first option.
97
+ * [#11165](http://dev.ckeditor.com/ticket/11165): Fixed: The [File Browser](http://ckeditor.com/addon/filebrowser) plugin cannot be removed from the editor.
98
+ * [#11159](http://dev.ckeditor.com/ticket/11159): [IE9-10] [Enhanced Image](http://ckeditor.com/addon/image2): Fixed buggy discovery of image dimensions.
99
+ * [#11101](http://dev.ckeditor.com/ticket/11101): Drop-down lists no longer break when given double quotes.
100
+ * [#11077](http://dev.ckeditor.com/ticket/11077): [Enhanced Image](http://ckeditor.com/addon/image2): Empty undo step recorded when resizing the image.
101
+ * [#10853](http://dev.ckeditor.com/ticket/10853): [Enhanced Image](http://ckeditor.com/addon/image2): Widget has paragraph wrapper when de-captioning unaligned image.
102
+ * [#11198](http://dev.ckeditor.com/ticket/11198): Widgets: Drag handler is not fully visible when an inline widget is in a heading.
103
+ * [#11132](http://dev.ckeditor.com/ticket/11132): [Firefox] Fixed: Caret is lost after drag and drop of an inline widget.
104
+ * [#11182](http://dev.ckeditor.com/ticket/11182): [IE10-11] Fixed: Editor crashes (IE11) or works with minor issues (IE10) if a page is loaded in Quirks Mode. See [`env.quirks`](http://docs.ckeditor.com/#!/api/CKEDITOR.env-property-quirks) for more details.
105
+ * [#11204](http://dev.ckeditor.com/ticket/11204): Added `figure` and `figcaption` styles to the `contents.css` file so [Enhanced Image](http://ckeditor.com/addon/image2) looks nicer.
106
+ * [#11202](http://dev.ckeditor.com/ticket/11202): Fixed: No newline in [BBCode](http://ckeditor.com/addon/bbcode) mode.
107
+ * [#10890](http://dev.ckeditor.com/ticket/10890): Fixed: Error thrown when pressing the *Delete* key in a list item.
108
+ * [#10055](http://dev.ckeditor.com/ticket/10055): [IE8-10] Fixed: *Delete* pressed on a selected image causes the browser to go back.
109
+ * [#11183](http://dev.ckeditor.com/ticket/11183): Fixed: Inserting a horizontal rule or a table in multiple row selection causes a browser crash. Additionally, the [`editor.insertElement()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) method does not insert the element into every range of a selection any more.
110
+ * [#11042](http://dev.ckeditor.com/ticket/11042): Fixed: Selection made on an element containing a non-editable element was not auto faked.
111
+ * [#11125](http://dev.ckeditor.com/ticket/11125): Fixed: Keyboard navigation through menu and drop-down items will now cycle.
112
+ * [#11011](http://dev.ckeditor.com/ticket/11011): Fixed: The [`editor.applyStyle()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-applyStyle) method removes attributes from nested elements.
113
+ * [#11179](http://dev.ckeditor.com/ticket/11179): Fixed: [`editor.destroy()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-destroy) does not cleanup content generated by the [Table Resize](http://ckeditor.com/addon/tableresize) plugin for inline editors.
114
+ * [#11237](http://dev.ckeditor.com/ticket/11237): Fixed: Table border attribute value is deleted when pasting content from Microsoft Word.
115
+ * [#11250](http://dev.ckeditor.com/ticket/11250): Fixed: HTML entities inside the `<textarea>` element are not encoded.
116
+ * [#11260](http://dev.ckeditor.com/ticket/11260): Fixed: Initially disabled buttons are not read by JAWS as disabled.
117
+ * [#11200](http://dev.ckeditor.com/ticket/11200): Added [Clipboard](http://ckeditor.com/addon/clipboard) plugin as a dependency for [Widget](http://ckeditor.com/addon/widget) to fix drag and drop.
118
+
119
+ ## CKEditor 4.3
120
+
121
+ New Features:
122
+
123
+ * [#10612](http://dev.ckeditor.com/ticket/10612): Internet Explorer 11 support.
124
+ * [#10869](http://dev.ckeditor.com/ticket/10869): Widgets: Added better integration with the [Elements Path](http://ckeditor.com/addon/elementspath) plugin.
125
+ * [#10886](http://dev.ckeditor.com/ticket/10886): Widgets: Added tooltip to the drag handle.
126
+ * [#10933](http://dev.ckeditor.com/ticket/10933): Widgets: Introduced drag and drop of block widgets with the [Line Utilities](http://ckeditor.com/addon/lineutils) plugin.
127
+ * [#10936](http://dev.ckeditor.com/ticket/10936): Widget System changes for easier integration with other dialog systems.
128
+ * [#10895](http://dev.ckeditor.com/ticket/10895): [Enhanced Image](http://ckeditor.com/addon/image2): Added file browser integration.
129
+ * [#11002](http://dev.ckeditor.com/ticket/11002): Added the [`draggable`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.definition-property-draggable) option to disable drag and drop support for widgets.
130
+ * [#10937](http://dev.ckeditor.com/ticket/10937): [Mathematical Formulas](http://ckeditor.com/addon/mathjax) widget improvements:
131
+ * loading indicator ([#10948](http://dev.ckeditor.com/ticket/10948)),
132
+ * applying paragraph changes (like font color change) to iframe ([#10841](http://dev.ckeditor.com/ticket/10841)),
133
+ * Firefox and IE9 clipboard fixes ([#10857](http://dev.ckeditor.com/ticket/10857)),
134
+ * fixing same origin policy issue ([#10840](http://dev.ckeditor.com/ticket/10840)),
135
+ * fixing undo bugs ([#10842](http://dev.ckeditor.com/ticket/10842), [#10930](http://dev.ckeditor.com/ticket/10930)),
136
+ * fixing other minor bugs.
137
+ * [#10862](http://dev.ckeditor.com/ticket/10862): [Placeholder](http://ckeditor.com/addon/placeholder) plugin was rewritten as a widget.
138
+ * [#10822](http://dev.ckeditor.com/ticket/10822): Added styles system integration with non-editable elements (for example widgets) and their nested editables. Styles cannot change non-editable content and are applied in nested editable only if allowed by its type and content filter.
139
+ * [#10856](http://dev.ckeditor.com/ticket/10856): Menu buttons will now toggle the visibility of their panels when clicked multiple times. [Language](http://ckeditor.com/addon/language) plugin fixes: Added active language highlighting, added an option to remove the language.
140
+ * [#10028](http://dev.ckeditor.com/ticket/10028): New [`config.dialog_noConfirmCancel`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-dialog_noConfirmCancel) configuration option that eliminates the need to confirm closing of a dialog window when the user changed any of its fields.
141
+ * [#10848](http://dev.ckeditor.com/ticket/10848): Integrate remaining plugins ([Styles](http://ckeditor.com/addon/stylescombo), [Format](http://ckeditor.com/addon/format), [Font](http://ckeditor.com/addon/font), [Color Button](http://ckeditor.com/addon/colorbutton), [Language](http://ckeditor.com/addon/language) and [Indent](http://ckeditor.com/addon/indent)) with [active filter](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeFilter).
142
+ * [#10855](http://dev.ckeditor.com/ticket/10855): Change the extension of emoticons in the [BBCode](http://ckeditor.com/addon/bbcode) sample from GIF to PNG.
143
+
144
+ Fixed Issues:
145
+
146
+ * [#10831](http://dev.ckeditor.com/ticket/10831): [Enhanced Image](http://ckeditor.com/addon/image2): Merged `image2inline` and `image2block` into one `image2` widget.
147
+ * [#10835](http://dev.ckeditor.com/ticket/10835): [Enhanced Image](http://ckeditor.com/addon/image2): Improved visibility of the resize handle.
148
+ * [#10836](http://dev.ckeditor.com/ticket/10836): [Enhanced Image](http://ckeditor.com/addon/image2): Preserve custom mouse cursor while resizing the image.
149
+ * [#10939](http://dev.ckeditor.com/ticket/10939): [Firefox] [Enhanced Image](http://ckeditor.com/addon/image2): hovering the image causes it to change.
150
+ * [#10866](http://dev.ckeditor.com/ticket/10866): Fixed: Broken *Tab* key navigation in the [Enhanced Image](http://ckeditor.com/addon/image2) dialog window.
151
+ * [#10833](http://dev.ckeditor.com/ticket/10833): Fixed: *Lock ratio* option should be on by default in the [Enhanced Image](http://ckeditor.com/addon/image2) dialog window.
152
+ * [#10881](http://dev.ckeditor.com/ticket/10881): Various improvements to *Enter* key behavior in nested editables.
153
+ * [#10879](http://dev.ckeditor.com/ticket/10879): [Remove Format](http://ckeditor.com/addon/removeformat) should not leak from a nested editable.
154
+ * [#10877](http://dev.ckeditor.com/ticket/10877): Fixed: [WebSpellChecker](http://ckeditor.com/addon/wsc) fails to apply changes if a nested editable was focused.
155
+ * [#10877](http://dev.ckeditor.com/ticket/10877): Fixed: [SCAYT](http://ckeditor.com/addon/wsc) blocks typing in nested editables.
156
+ * [#11079](http://dev.ckeditor.com/ticket/11079): Add button icons to the [Placeholder](http://ckeditor.com/addon/placeholder) sample.
157
+ * [#10870](http://dev.ckeditor.com/ticket/10870): The `paste` command is no longer being disabled when the clipboard is empty.
158
+ * [#10854](http://dev.ckeditor.com/ticket/10854): Fixed: Firefox prepends `<br>` to `<body>`, so it is stripped by the HTML data processor.
159
+ * [#10823](http://dev.ckeditor.com/ticket/10823): Fixed: [Link](http://ckeditor.com/addon/link) plugin does not work with non-editable content.
160
+ * [#10828](http://dev.ckeditor.com/ticket/10828): [Magic Line](http://ckeditor.com/addon/magicline) integration with the Widget System.
161
+ * [#10865](http://dev.ckeditor.com/ticket/10865): Improved hiding copybin, so copying widgets works smoothly.
162
+ * [#11066](http://dev.ckeditor.com/ticket/11066): Widget's private parts use CSS reset.
163
+ * [#11027](http://dev.ckeditor.com/ticket/11027): Fixed: Block commands break on widgets; added the [`contentDomInvalidated`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-contentDomInvalidated) event.
164
+ * [#10430](http://dev.ckeditor.com/ticket/10430): Resolve dependence of the [Image](http://ckeditor.com/addon/image) plugin on the [Form Elements](http://ckeditor.com/addon/forms) plugin.
165
+ * [#10911](http://dev.ckeditor.com/ticket/10911): Fixed: Browser *Alt* hotkeys will no longer be blocked while a widget is focused.
166
+ * [#11082](http://dev.ckeditor.com/ticket/11082): Fixed: Selected widget is not copied or cut when using toolbar buttons or context menu.
167
+ * [#11083](http://dev.ckeditor.com/ticket/11083): Fixed list and div element application to block widgets.
168
+ * [#10887](http://dev.ckeditor.com/ticket/10887): Internet Explorer 8 compatibility issues related to the Widget System.
169
+ * [#11074](http://dev.ckeditor.com/ticket/11074): Temporarily disabled inline widget drag and drop, because of seriously buggy native `range#moveToPoint` method.
170
+ * [#11098](http://dev.ckeditor.com/ticket/11098): Fixed: Wrong selection position after undoing widget drag and drop.
171
+ * [#11110](http://dev.ckeditor.com/ticket/11110): Fixed: IFrame and Flash objects are being incorrectly pasted in certain conditions.
172
+ * [#11129](http://dev.ckeditor.com/ticket/11129): Page break is lost when loading data.
173
+ * [#11123](http://dev.ckeditor.com/ticket/11123): [Firefox] Widget is destroyed after being dragged outside of `<body>`.
174
+ * [#11124](http://dev.ckeditor.com/ticket/11124): Fixed the [Elements Path](http://ckeditor.com/addon/elementspath) in an editor using the [Div Editing Area](http://ckeditor.com/addon/divarea).
175
+
176
+ ## CKEditor 4.3 Beta
177
+
178
+ New Features:
179
+
180
+ * [#9764](http://dev.ckeditor.com/ticket/9764): Widget System.
181
+ * [Widget plugin](http://ckeditor.com/addon/widget) introducing the [Widget API](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget).
182
+ * New [`editor.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-enterMode) and [`editor.shiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-shiftEnterMode) properties &ndash; normalized versions of [`config.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) and [`config.shiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode).
183
+ * Dynamic editor settings. Starting from CKEditor 4.3 Beta, *Enter* mode values and [content filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) instances may be changed dynamically (for example when the caret was placed in an element in which editor features should be adjusted). When you are implementing a new editor feature, you should base its behavior on [dynamic](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeEnterMode) or [static](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-enterMode) *Enter* mode values depending on whether this feature works in selection context or globally on editor content.
184
+ * Dynamic *Enter* mode values &ndash; [`editor.setActiveEnterMode()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setActiveEnterMode) method, [`editor.activeEnterModeChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-activeEnterModeChange) event, and two properties: [`editor.activeEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeEnterMode) and [`editor.activeShiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeShiftEnterMode).
185
+ * Dynamic content filter instances &ndash; [`editor.setActiveFilter()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setActiveFilter) method, [`editor.activeFilterChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-activeFilterChange) event, and [`editor.activeFilter`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-activeFilter) property.
186
+ * "Fake" selection was introduced. It makes it possible to virtually select any element when the real selection remains hidden. See the [`selection.fake()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.selection-method-fake) method.
187
+ * Default [`htmlParser.filter`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.filter) rules are not applied to non-editable elements (elements with `contenteditable` attribute set to `false` and their descendants) anymore. To add a rule which will be applied to all elements you need to pass an additional argument to the [`filter.addRules()`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.filter-method-addRules) method.
188
+ * Dozens of new methods were introduced &ndash; most interesting ones:
189
+ * [`document.find()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.document-method-find),
190
+ * [`document.findOne()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.document-method-findOne),
191
+ * [`editable.insertElementIntoRange()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editable-method-insertElementIntoRange),
192
+ * [`range.moveToClosestEditablePosition()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.range-method-moveToClosestEditablePosition),
193
+ * New methods for [`htmlParser.node`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.node) and [`htmlParser.element`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.element).
194
+ * [#10659](http://dev.ckeditor.com/ticket/10659): New [Enhanced Image](http://ckeditor.com/addon/image2) plugin that introduces a widget with integrated image captions, an option to center images, and dynamic "click and drag" resizing.
195
+ * [#10664](http://dev.ckeditor.com/ticket/10664): New [Mathematical Formulas](http://ckeditor.com/addon/mathjax) plugin that introduces the MathJax widget.
196
+ * [#7987](https://dev.ckeditor.com/ticket/7987): New [Language](http://ckeditor.com/addon/language) plugin that implements Language toolbar button to support [WCAG 3.1.2 Language of Parts](http://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html).
197
+ * [#10708](http://dev.ckeditor.com/ticket/10708): New [smileys](http://ckeditor.com/addon/smiley).
198
+
199
+ ## CKEditor 4.2.3
200
+
201
+ Fixed Issues:
202
+
203
+ * [#10994](http://dev.ckeditor.com/ticket/10994): Fixed: Loading external jQuery library when opening the [jQuery Adapter](http://docs.ckeditor.com/#!/guide/dev_jquery) sample directly from file.
204
+ * [#10975](http://dev.ckeditor.com/ticket/10975): [IE] Fixed: Error thrown while opening the color palette.
205
+ * [#9929](http://dev.ckeditor.com/ticket/9929): [Blink/WebKit] Fixed: A non-breaking space is created once a character is deleted and a regular space is typed.
206
+ * [#10963](http://dev.ckeditor.com/ticket/10963): Fixed: JAWS issue with the keyboard shortcut for [Magic Line](http://ckeditor.com/addon/magicline).
207
+ * [#11096](http://dev.ckeditor.com/ticket/11096): Fixed: TypeError: Object has no method 'is'.
208
+
209
+ ## CKEditor 4.2.2
210
+
211
+ Fixed Issues:
212
+
213
+ * [#9314](http://dev.ckeditor.com/ticket/9314): Fixed: Incorrect error message on closing a dialog window without saving changs.
214
+ * [#10308](http://dev.ckeditor.com/ticket/10308): [IE10] Fixed: Unspecified error when deleting a row.
215
+ * [#10945](http://dev.ckeditor.com/ticket/10945): [Chrome] Fixed: Clicking with a mouse inside the editor does not show the caret.
216
+ * [#10912](http://dev.ckeditor.com/ticket/10912): Prevent default action when content of a non-editable link is clicked.
217
+ * [#10913](http://dev.ckeditor.com/ticket/10913): Fixed [`CKEDITOR.plugins.addExternal()`](http://docs.ckeditor.com/#!/api/CKEDITOR.resourceManager-method-addExternal) not handling paths including file name specified.
218
+ * [#10666](http://dev.ckeditor.com/ticket/10666): Fixed [`CKEDITOR.tools.isArray()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-isArray) not working cross frame.
219
+ * [#10910](http://dev.ckeditor.com/ticket/10910): [IE9] Fixed JavaScript error thrown in Compatibility Mode when clicking and/or typing in the editing area.
220
+ * [#10868](http://dev.ckeditor.com/ticket/10868): [IE8] Prevent the browser from crashing when applying the Inline Quotation style.
221
+ * [#10915](http://dev.ckeditor.com/ticket/10915): Fixed: Invalid CSS filter in the Kama skin.
222
+ * [#10914](http://dev.ckeditor.com/ticket/10914): Plugins [Indent List](http://ckeditor.com/addon/indentlist) and [Indent Block](http://ckeditor.com/addon/indentblock) are now included in the build configuration.
223
+ * [#10812](http://dev.ckeditor.com/ticket/10812): Fixed [`range.createBookmark2()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.range-method-createBookmark2) incorrectly normalizing offsets. This bug was causing many issues: [#10850](http://dev.ckeditor.com/ticket/10850), [#10842](http://dev.ckeditor.com/ticket/10842).
224
+ * [#10951](http://dev.ckeditor.com/ticket/10951): Reviewed and optimized focus handling on panels (combo, menu buttons, color buttons, and context menu) to enhance accessibility. Fixed [#10705](http://dev.ckeditor.com/ticket/10705), [#10706](http://dev.ckeditor.com/ticket/10706) and [#10707](http://dev.ckeditor.com/ticket/10707).
225
+ * [#10704](http://dev.ckeditor.com/ticket/10704): Fixed a JAWS issue with the Select Color dialog window title not being announced.
226
+ * [#10753](http://dev.ckeditor.com/ticket/10753): The floating toolbar in inline instances now has a dedicated accessibility label.
227
+
228
+ ## CKEditor 4.2.1
229
+
230
+ Fixed Issues:
231
+
232
+ * [#10301](http://dev.ckeditor.com/ticket/10301): [IE9-10] Undo fails after 3+ consecutive paste actions with a JavaScript error.
233
+ * [#10689](http://dev.ckeditor.com/ticket/10689): Save toolbar button saves only the first editor instance.
234
+ * [#10368](http://dev.ckeditor.com/ticket/10368): Move language reading direction definition (`dir`) from main language file to core.
235
+ * [#9330](http://dev.ckeditor.com/ticket/9330): Fixed pasting anchors from MS Word.
236
+ * [#8103](http://dev.ckeditor.com/ticket/8103): Fixed pasting nested lists from MS Word.
237
+ * [#9958](http://dev.ckeditor.com/ticket/9958): [IE9] Pressing the "OK" button will trigger the `onbeforeunload` event in the popup dialog.
238
+ * [#10662](http://dev.ckeditor.com/ticket/10662): Fixed styles from the Styles drop-down list not registering to the ACF in case when the [Shared Spaces plugin](http://ckeditor.com/addon/sharedspace) is used.
239
+ * [#9654](http://dev.ckeditor.com/ticket/9654): Problems with Internet Explorer 10 Quirks Mode.
240
+ * [#9816](http://dev.ckeditor.com/ticket/9816): Floating toolbar does not reposition vertically in several cases.
241
+ * [#10646](http://dev.ckeditor.com/ticket/10646): Removing a selected sublist or nested table with *Backspace/Delete* removes the parent element.
242
+ * [#10623](http://dev.ckeditor.com/ticket/10623): [WebKit] Page is scrolled when opening a drop-down list.
243
+ * [#10004](http://dev.ckeditor.com/ticket/10004): [ChromeVox] Button names are not announced.
244
+ * [#10731](http://dev.ckeditor.com/ticket/10731): [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin breaks cloning of editor configuration.
245
+ * It is now possible to set per instance [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin configuration instead of setting the configuration globally.
246
+
247
+ ## CKEditor 4.2
248
+
249
+ **Important Notes:**
250
+
251
+ * Dropped compatibility support for Internet Explorer 7 and Firefox 3.6.
252
+
253
+ * Both the Basic and the Standard distribution packages will not contain the new [Indent Block](http://ckeditor.com/addon/indentblock) plugin. Because of this the [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) might remove block indentations from existing contents. If you want to prevent this, either [add an appropriate ACF rule to your filter](http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules) or create a custom build based on the Basic/Standard package and add the Indent Block plugin in [CKBuilder](http://ckeditor.com/builder).
254
+
255
+ New Features:
256
+
257
+ * [#10027](http://dev.ckeditor.com/ticket/10027): Separated list and block indentation into two plugins: [Indent List](http://ckeditor.com/addon/indentlist) and [Indent Block](http://ckeditor.com/addon/indentblock).
258
+ * [#8244](http://dev.ckeditor.com/ticket/8244): Use *(Shift+)Tab* to indent and outdent lists.
259
+ * [#10281](http://dev.ckeditor.com/ticket/10281): The [jQuery Adapter](http://docs.ckeditor.com/#!/guide/dev_jquery) is now available. Several jQuery-related issues fixed: [#8261](http://dev.ckeditor.com/ticket/8261), [#9077](http://dev.ckeditor.com/ticket/9077), [#8710](http://dev.ckeditor.com/ticket/8710), [#8530](http://dev.ckeditor.com/ticket/8530), [#9019](http://dev.ckeditor.com/ticket/9019), [#6181](http://dev.ckeditor.com/ticket/6181), [#7876](http://dev.ckeditor.com/ticket/7876), [#6906](http://dev.ckeditor.com/ticket/6906).
260
+ * [#10042](http://dev.ckeditor.com/ticket/10042): Introduced [`config.title`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-title) setting to change the human-readable title of the editor.
261
+ * [#9794](http://dev.ckeditor.com/ticket/9794): Added [`editor.onChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event.
262
+ * [#9923](http://dev.ckeditor.com/ticket/9923): HiDPI support in the editor UI. HiDPI icons for [Moono skin](http://ckeditor.com/addon/moono) added.
263
+ * [#8031](http://dev.ckeditor.com/ticket/8031): Handle `required` attributes on `<textarea>` elements &mdash; introduced [`editor.required`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-required) event.
264
+ * [#10280](http://dev.ckeditor.com/ticket/10280): Ability to replace `<textarea>` elements with the inline editor.
265
+
266
+ Fixed Issues:
267
+
268
+ * [#10599](http://dev.ckeditor.com/ticket/10599): [Indent](http://ckeditor.com/addon/indent) plugin is no longer required by the [List](http://ckeditor.com/addon/list) plugin.
269
+ * [#10370](http://dev.ckeditor.com/ticket/10370): Inconsistency in data events between framed and inline editors.
270
+ * [#10438](http://dev.ckeditor.com/ticket/10438): [FF, IE] No selection is done on an editable element on executing [`editor.setData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData).
271
+
272
+ ## CKEditor 4.1.3
273
+
274
+ New Features:
275
+
276
+ * Added new translation: Indonesian.
277
+
278
+ Fixed Issues:
279
+
280
+ * [#10644](http://dev.ckeditor.com/ticket/10644): Fixed a critical bug when pasting plain text in Blink-based browsers.
281
+ * [#5189](http://dev.ckeditor.com/ticket/5189): [Find/Replace](http://ckeditor.com/addon/find) dialog window: rename "Cancel" button to "Close".
282
+ * [#10562](http://dev.ckeditor.com/ticket/10562): [Housekeeping] Unified CSS gradient filter formats in the [Moono](http://ckeditor.com/addon/moono) skin.
283
+ * [#10537](http://dev.ckeditor.com/ticket/10537): Advanced Content Filter should register a default rule for [`config.shiftEnterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode).
284
+ * [#10610](http://dev.ckeditor.com/ticket/10610): [`CKEDITOR.dialog.addIframe()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dialog-static-method-addIframe) incorrectly sets the iframe size in dialog windows.
285
+
286
+ ## CKEditor 4.1.2
287
+
288
+ New Features:
289
+
290
+ * Added new translation: Sinhala.
291
+
292
+ Fixed Issues:
293
+
294
+ * [#10339](http://dev.ckeditor.com/ticket/10339): Fixed: Error thrown when inserted data was totally stripped out after filtering and processing.
295
+ * [#10298](http://dev.ckeditor.com/ticket/10298): Fixed: Data processor breaks attributes containing protected parts.
296
+ * [#10367](http://dev.ckeditor.com/ticket/10367): Fixed: [`editable.insertText()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editable-method-insertText) loses characters when `RegExp` replace controls are being inserted.
297
+ * [#10165](http://dev.ckeditor.com/ticket/10165): [IE] Access denied error when `document.domain` has been altered.
298
+ * [#9761](http://dev.ckeditor.com/ticket/9761): Update the *Backspace* key state in [`keystrokeHandler.blockedKeystrokes`](http://docs.ckeditor.com/#!/api/CKEDITOR.keystrokeHandler-property-blockedKeystrokes) when calling [`editor.setReadOnly()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly).
299
+ * [#6504](http://dev.ckeditor.com/ticket/6504): Fixed: Race condition while loading several [`config.customConfig`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-customConfig) files.
300
+ * [#10146](http://dev.ckeditor.com/ticket/10146): [Firefox] Empty lines are being removed while [`config.enterMode`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode) is [`CKEDITOR.ENTER_BR`](http://docs.ckeditor.com/#!/api/CKEDITOR-property-ENTER_BR).
301
+ * [#10360](http://dev.ckeditor.com/ticket/10360): Fixed: ARIA `role="application"` should not be used for dialog windows.
302
+ * [#10361](http://dev.ckeditor.com/ticket/10361): Fixed: ARIA `role="application"` should not be used for floating panels.
303
+ * [#10510](http://dev.ckeditor.com/ticket/10510): Introduced unique voice labels to differentiate between different editor instances.
304
+ * [#9945](http://dev.ckeditor.com/ticket/9945): [iOS] Scrolling not possible on iPad.
305
+ * [#10389](http://dev.ckeditor.com/ticket/10389): Fixed: Invalid HTML in the "Text and Table" template.
306
+ * [WebSpellChecker](http://ckeditor.com/addon/wsc) plugin user interface was changed to match CKEditor 4 style.
307
+
308
+ ## CKEditor 4.1.1
309
+
310
+ New Features:
311
+
312
+ * Added new translation: Albanian.
313
+
314
+ Fixed Issues:
315
+
316
+ * [#10172](http://dev.ckeditor.com/ticket/10172): Pressing *Delete* or *Backspace* in an empty table cell moves the cursor to the next/previous cell.
317
+ * [#10219](http://dev.ckeditor.com/ticket/10219): Error thrown when destroying an editor instance in parallel with a `mouseup` event.
318
+ * [#10265](http://dev.ckeditor.com/ticket/10265): Wrong loop type in the [File Browser](http://ckeditor.com/addon/filebrowser) plugin.
319
+ * [#10249](http://dev.ckeditor.com/ticket/10249): Wrong undo/redo states at start.
320
+ * [#10268](http://dev.ckeditor.com/ticket/10268): [Show Blocks](http://ckeditor.com/addon/showblocks) does not recover after switching to Source view.
321
+ * [#9995](http://dev.ckeditor.com/ticket/9995): HTML code in the `<textarea>` should not be modified by the [`htmlDataProcessor`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor).
322
+ * [#10320](http://dev.ckeditor.com/ticket/10320): [Justify](http://ckeditor.com/addon/justify) plugin should add elements to Advanced Content Filter based on current [Enter mode](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode).
323
+ * [#10260](http://dev.ckeditor.com/ticket/10260): Fixed: Advanced Content Filter blocks [`tabSpaces`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-tabSpaces). Unified `data-cke-*` attributes filtering.
324
+ * [#10315](http://dev.ckeditor.com/ticket/10315): [WebKit] [Undo manager](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.undo.UndoManager) should not record snapshots after a filling character was added/removed.
325
+ * [#10291](http://dev.ckeditor.com/ticket/10291): [WebKit] Space after a filling character should be secured.
326
+ * [#10330](http://dev.ckeditor.com/ticket/10330): [WebKit] The filling character is not removed on `keydown` in specific cases.
327
+ * [#10285](http://dev.ckeditor.com/ticket/10285): Fixed: Styled text pasted from MS Word causes an infinite loop.
328
+ * [#10131](http://dev.ckeditor.com/ticket/10131): Fixed: [`undoManager.update()`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.undo.UndoManager-method-update) does not refresh the command state.
329
+ * [#10337](http://dev.ckeditor.com/ticket/10337): Fixed: Unable to remove `<s>` using [Remove Format](http://ckeditor.com/addon/removeformat).
330
+
331
+ ## CKEditor 4.1
332
+
333
+ Fixed Issues:
334
+
335
+ * [#10192](http://dev.ckeditor.com/ticket/10192): Closing lists with the *Enter* key does not work with [Advanced Content Filter](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) in several cases.
336
+ * [#10191](http://dev.ckeditor.com/ticket/10191): Fixed allowed content rules unification, so the [`filter.allowedContent`](http://docs.ckeditor.com/#!/api/CKEDITOR.filter-property-allowedContent) property always contains rules in the same format.
337
+ * [#10224](http://dev.ckeditor.com/ticket/10224): Advanced Content Filter does not remove non-empty `<a>` elements anymore.
338
+ * Minor issues in plugin integration with Advanced Content Filter:
339
+ * [#10166](http://dev.ckeditor.com/ticket/10166): Added transformation from the `align` attribute to `float` style to preserve backward compatibility after the introduction of Advanced Content Filter.
340
+ * [#10195](http://dev.ckeditor.com/ticket/10195): [Image](http://ckeditor.com/addon/image) plugin no longer registers rules for links to Advanced Content Filter.
341
+ * [#10213](http://dev.ckeditor.com/ticket/10213): [Justify](http://ckeditor.com/addon/justify) plugin is now correctly registering rules to Advanced Content Filter when [`config.justifyClasses`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-justifyClasses) is defined.
342
+
343
+ ## CKEditor 4.1 RC
344
+
345
+ New Features:
346
+
347
+ * [#9829](http://dev.ckeditor.com/ticket/9829): Advanced Content Filter - data and features activation based on editor configuration.
348
+
349
+ Brand new data filtering system that works in 2 modes:
350
+
351
+ * Based on loaded features (toolbar items, plugins) - the data will be filtered according to what the editor in its
352
+ current configuration can handle.
353
+ * Based on [`config.allowedContent`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent) rules - the data
354
+ will be filtered and the editor features (toolbar items, commands, keystrokes) will be enabled if they are allowed.
355
+
356
+ See the `datafiltering.html` sample, [guides](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) and [`CKEDITOR.filter` API documentation](http://docs.ckeditor.com/#!/api/CKEDITOR.filter).
357
+ * [#9387](http://dev.ckeditor.com/ticket/9387): Reintroduced [Shared Spaces](http://ckeditor.com/addon/sharedspace) - the ability to display toolbar and bottom editor space in selected locations and to share them by different editor instances.
358
+ * [#9907](http://dev.ckeditor.com/ticket/9907): Added the [`contentPreview`](http://docs.ckeditor.com/#!/api/CKEDITOR-event-contentPreview) event for preview data manipulation.
359
+ * [#9713](http://dev.ckeditor.com/ticket/9713): Introduced the [Source Dialog](http://ckeditor.com/addon/sourcedialog) plugin that brings raw HTML editing for inline editor instances.
360
+ * Included in [#9829](http://dev.ckeditor.com/ticket/9829): Introduced new events, [`toHtml`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-toHtml) and [`toDataFormat`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-toDataFormat), allowing for better integration with data processing.
361
+ * [#9981](http://dev.ckeditor.com/ticket/9981): Added ability to filter [`htmlParser.fragment`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.fragment), [`htmlParser.element`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.element) etc. by many [`htmlParser.filter`](http://docs.ckeditor.com/#!/api/CKEDITOR.htmlParser.filter)s before writing structure to an HTML string.
362
+ * Included in [#10103](http://dev.ckeditor.com/ticket/10103):
363
+ * Introduced the [`editor.status`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-status) property to make it easier to check the current status of the editor.
364
+ * Default [`command`](http://docs.ckeditor.com/#!/api/CKEDITOR.command) state is now [`CKEDITOR.TRISTATE_DISABLE`](http://docs.ckeditor.com/#!/api/CKEDITOR-property-TRISTATE_DISABLED). It will be activated on [`editor.instanceReady`](http://docs.ckeditor.com/#!/api/CKEDITOR-event-instanceReady) or immediately after being added if the editor is already initialized.
365
+ * [#9796](http://dev.ckeditor.com/ticket/9796): Introduced `<s>` as a default tag for strikethrough, which replaces obsolete `<strike>` in HTML5.
366
+
367
+ ## CKEditor 4.0.3
368
+
369
+ Fixed Issues:
370
+
371
+ * [#10196](http://dev.ckeditor.com/ticket/10196): Fixed context menus not opening with keyboard shortcuts when [Autogrow](http://ckeditor.com/addon/autogrow) is enabled.
372
+ * [#10212](http://dev.ckeditor.com/ticket/10212): [IE7-10] Undo command throws errors after multiple switches between Source and WYSIWYG view.
373
+ * [#10219](http://dev.ckeditor.com/ticket/10219): [Inline editor] Error thrown after calling [`editor.destroy()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-destroy).
374
+
375
+ ## CKEditor 4.0.2
376
+
377
+ Fixed Issues:
378
+
379
+ * [#9779](http://dev.ckeditor.com/ticket/9779): Fixed overriding [`CKEDITOR.getUrl()`](http://docs.ckeditor.com/#!/api/CKEDITOR-method-getUrl) with `CKEDITOR_GETURL`.
380
+ * [#9772](http://dev.ckeditor.com/ticket/9772): Custom buttons in the dialog window footer have different look and size ([Moono](http://ckeditor.com/addon/moono), [Kama](http://ckeditor.com/addon/kama) skins).
381
+ * [#9029](http://dev.ckeditor.com/ticket/9029): Custom styles added with the [`stylesSet.add()`](http://docs.ckeditor.com/#!/api/CKEDITOR.stylesSet-method-add) are displayed in the wrong order.
382
+ * [#9887](http://dev.ckeditor.com/ticket/9887): Disable [Magic Line](http://ckeditor.com/addon/magicline) when [`editor.readOnly`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-readOnly) is set.
383
+ * [#9882](http://dev.ckeditor.com/ticket/9882): Fixed empty document title on [`editor.getData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData) if set via the Document Properties dialog window.
384
+ * [#9773](http://dev.ckeditor.com/ticket/9773): Fixed rendering problems with selection fields in the Kama skin.
385
+ * [#9851](http://dev.ckeditor.com/ticket/9851): The [`selectionChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-selectionChange) event is not fired when mouse selection ended outside editable.
386
+ * [#9903](http://dev.ckeditor.com/ticket/9903): [Inline editor] Bad positioning of floating space with page horizontal scroll.
387
+ * [#9872](http://dev.ckeditor.com/ticket/9872): [`editor.checkDirty()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty) returns `true` when called onload. Removed the obsolete `editor.mayBeDirty` flag.
388
+ * [#9893](http://dev.ckeditor.com/ticket/9893): [IE] Fixed broken toolbar when editing mixed direction content in Quirks mode.
389
+ * [#9845](http://dev.ckeditor.com/ticket/9845): Fixed TAB navigation in the [Link](http://ckeditor.com/addon/link) dialog window when the Anchor option is used and no anchors are available.
390
+ * [#9883](http://dev.ckeditor.com/ticket/9883): Maximizing was making the entire page editable with [divarea](http://ckeditor.com/addon/divarea)-based editors.
391
+ * [#9940](http://dev.ckeditor.com/ticket/9940): [Firefox] Navigating back to a page with the editor was making the entire page editable.
392
+ * [#9966](http://dev.ckeditor.com/ticket/9966): Fixed: Unable to type square brackets with French keyboard layout. Changed [Magic Line](http://ckeditor.com/addon/magicline) keystrokes.
393
+ * [#9507](http://dev.ckeditor.com/ticket/9507): [Firefox] Selection is moved before editable position when the editor is focused for the first time.
394
+ * [#9947](http://dev.ckeditor.com/ticket/9947): [WebKit] Editor overflows parent container in some edge cases.
395
+ * [#10105](http://dev.ckeditor.com/ticket/10105): Fixed: Broken [sourcearea](http://ckeditor.com/addon/sourcearea) view when an RTL language is set.
396
+ * [#10123](http://dev.ckeditor.com/ticket/10123): [WebKit] Fixed: Several dialog windows have broken layout since the latest WebKit release.
397
+ * [#10152](http://dev.ckeditor.com/ticket/10152): Fixed: Invalid ARIA property used on menu items.
398
+
399
+ ## CKEditor 4.0.1.1
400
+
401
+ Fixed Issues:
402
+
403
+ * Security update: Added protection against XSS attack and possible path disclosure in the PHP sample.
404
+
405
+ ## CKEditor 4.0.1
406
+
407
+ Fixed Issues:
408
+
409
+ * [#9655](http://dev.ckeditor.com/ticket/9655): Support for IE Quirks Mode in the new [Moono skin](http://ckeditor.com/addon/moono).
410
+ * Accessibility issues (mainly in inline editor): [#9364](http://dev.ckeditor.com/ticket/9364), [#9368](http://dev.ckeditor.com/ticket/9368), [#9369](http://dev.ckeditor.com/ticket/9369), [#9370](http://dev.ckeditor.com/ticket/9370), [#9541](http://dev.ckeditor.com/ticket/9541), [#9543](http://dev.ckeditor.com/ticket/9543), [#9841](http://dev.ckeditor.com/ticket/9841), [#9844](http://dev.ckeditor.com/ticket/9844).
411
+ * [Magic Line](http://ckeditor.com/addon/magicline) plugin:
412
+ * [#9481](http://dev.ckeditor.com/ticket/9481): Added accessibility support for Magic Line.
413
+ * [#9509](http://dev.ckeditor.com/ticket/9509): Added Magic Line support for forms.
414
+ * [#9573](http://dev.ckeditor.com/ticket/9573): Magic Line does not disappear on `mouseout` in a specific case.
415
+ * [#9754](http://dev.ckeditor.com/ticket/9754): [WebKit] Cutting & pasting simple unformatted text generates an inline wrapper in WebKit browsers.
416
+ * [#9456](http://dev.ckeditor.com/ticket/9456): [Chrome] Properly paste bullet list style from MS Word.
417
+ * [#9699](http://dev.ckeditor.com/ticket/9699), [#9758](http://dev.ckeditor.com/ticket/9758): Improved selection locking when selecting by dragging.
418
+ * Context menu:
419
+ * [#9712](http://dev.ckeditor.com/ticket/9712): Opening the context menu destroys editor focus.
420
+ * [#9366](http://dev.ckeditor.com/ticket/9366): Context menu should be displayed over the floating toolbar.
421
+ * [#9706](http://dev.ckeditor.com/ticket/9706): Context menu generates a JavaScript error in inline mode when the editor is attached to a header element.
422
+ * [#9800](http://dev.ckeditor.com/ticket/9800): Hide float panel when resizing the window.
423
+ * [#9721](http://dev.ckeditor.com/ticket/9721): Padding in content of div-based editor puts the editing area under the bottom UI space.
424
+ * [#9528](http://dev.ckeditor.com/ticket/9528): Host page `box-sizing` style should not influence the editor UI elements.
425
+ * [#9503](http://dev.ckeditor.com/ticket/9503): [Form Elements](http://ckeditor.com/addon/forms) plugin adds context menu listeners only on supported input types. Added support for `tel`, `email`, `search` and `url` input types.
426
+ * [#9769](http://dev.ckeditor.com/ticket/9769): Improved floating toolbar positioning in a narrow window.
427
+ * [#9875](http://dev.ckeditor.com/ticket/9875): Table dialog window does not populate width correctly.
428
+ * [#8675](http://dev.ckeditor.com/ticket/8675): Deleting cells in a nested table removes the outer table cell.
429
+ * [#9815](http://dev.ckeditor.com/ticket/9815): Cannot edit dialog window fields in an editor initialized in the jQuery UI modal dialog.
430
+ * [#8888](http://dev.ckeditor.com/ticket/8888): CKEditor dialog windows do not show completely in a small window.
431
+ * [#9360](http://dev.ckeditor.com/ticket/9360): [Inline editor] Blocks shown for a `<div>` element stay permanently even after the user exits editing the `<div>`.
432
+ * [#9531](http://dev.ckeditor.com/ticket/9531): [Firefox & Inline editor] Toolbar is lost when closing the Format drop-down list by clicking its button.
433
+ * [#9553](http://dev.ckeditor.com/ticket/9553): Table width incorrectly set when the `border-width` style is specified.
434
+ * [#9594](http://dev.ckeditor.com/ticket/9594): Cannot tab past CKEditor when it is in read-only mode.
435
+ * [#9658](http://dev.ckeditor.com/ticket/9658): [IE9] Justify not working on selected images.
436
+ * [#9686](http://dev.ckeditor.com/ticket/9686): Added missing contents styles for `<pre>` elements.
437
+ * [#9709](http://dev.ckeditor.com/ticket/9709): [Paste from Word](http://ckeditor.com/addon/pastefromword) should not depend on configuration from other styles.
438
+ * [#9726](http://dev.ckeditor.com/ticket/9726): Removed [Color Dialog](http://ckeditor.com/addon/colordialog) plugin dependency from [Table Tools](http://ckeditor.com/addon/tabletools).
439
+ * [#9765](http://dev.ckeditor.com/ticket/9765): Toolbar Collapse command documented incorrectly in the [Accessibility Instructions](http://ckeditor.com/addon/a11yhelp) dialog window.
440
+ * [#9771](http://dev.ckeditor.com/ticket/9771): [WebKit & Opera] Fixed scrolling issues when pasting.
441
+ * [#9787](http://dev.ckeditor.com/ticket/9787): [IE9] `onChange` is not fired for checkboxes in dialogs.
442
+ * [#9842](http://dev.ckeditor.com/ticket/9842): [Firefox 17] When opening a toolbar menu for the first time and pressing the *Down Arrow* key, focus goes to the next toolbar button instead of the menu options.
443
+ * [#9847](http://dev.ckeditor.com/ticket/9847): [Elements Path](http://ckeditor.com/addon/elementspath) should not be initialized in the inline editor.
444
+ * [#9853](http://dev.ckeditor.com/ticket/9853): [`editor.addRemoveFormatFilter()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-addRemoveFormatFilter) is exposed before it really works.
445
+ * [#8893](http://dev.ckeditor.com/ticket/8893): Value of the [`pasteFromWordCleanupFile`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordCleanupFile) configuration option is now taken from the instance configuration.
446
+ * [#9693](http://dev.ckeditor.com/ticket/9693): Removed "Live Preview" checkbox from UI color picker.
447
+
448
+
449
+ ## CKEditor 4.0
450
+
451
+ The first stable release of the new CKEditor 4 code line.
452
+
453
+ The CKEditor JavaScript API has been kept compatible with CKEditor 4, whenever
454
+ possible. The list of relevant changes can be found in the [API Changes page of
455
+ the CKEditor 4 documentation][1].
456
+
457
+ [1]: http://docs.ckeditor.com/#!/guide/dev_api_changes "API Changes"
wordpress-creation-kit-api/assets/js/ckeditor/LICENSE.md CHANGED
@@ -1,1264 +1,1264 @@
1
- Software License Agreement
2
- ==========================
3
-
4
- CKEditor - The text editor for Internet - http://ckeditor.com
5
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
6
-
7
- Licensed under the terms of any of the following licenses at your
8
- choice:
9
-
10
- - GNU General Public License Version 2 or later (the "GPL")
11
- http://www.gnu.org/licenses/gpl.html
12
- (See Appendix A)
13
-
14
- - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
- http://www.gnu.org/licenses/lgpl.html
16
- (See Appendix B)
17
-
18
- - Mozilla Public License Version 1.1 or later (the "MPL")
19
- http://www.mozilla.org/MPL/MPL-1.1.html
20
- (See Appendix C)
21
-
22
- You are not required to, but if you want to explicitly declare the
23
- license you have chosen to be bound to when using, reproducing,
24
- modifying and distributing this software, just include a text file
25
- titled "legal.txt" in your version of this software, indicating your
26
- license choice. In any case, your choice will not restrict any
27
- recipient of your version of this software to use, reproduce, modify
28
- and distribute this software under any of the above licenses.
29
-
30
- Sources of Intellectual Property Included in CKEditor
31
- -----------------------------------------------------
32
-
33
- Where not otherwise indicated, all CKEditor content is authored by
34
- CKSource engineers and consists of CKSource-owned intellectual
35
- property. In some specific instances, CKEditor will incorporate work
36
- done by developers outside of CKSource with their express permission.
37
-
38
- Trademarks
39
- ----------
40
-
41
- CKEditor is a trademark of CKSource - Frederico Knabben. All other brand
42
- and product names are trademarks, registered trademarks or service
43
- marks of their respective holders.
44
-
45
- ---
46
-
47
- Appendix A: The GPL License
48
- ---------------------------
49
-
50
- GNU GENERAL PUBLIC LICENSE
51
- Version 2, June 1991
52
-
53
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
54
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
55
- Everyone is permitted to copy and distribute verbatim copies
56
- of this license document, but changing it is not allowed.
57
-
58
- Preamble
59
-
60
- The licenses for most software are designed to take away your
61
- freedom to share and change it. By contrast, the GNU General Public
62
- License is intended to guarantee your freedom to share and change free
63
- software-to make sure the software is free for all its users. This
64
- General Public License applies to most of the Free Software
65
- Foundation's software and to any other program whose authors commit to
66
- using it. (Some other Free Software Foundation software is covered by
67
- the GNU Lesser General Public License instead.) You can apply it to
68
- your programs, too.
69
-
70
- When we speak of free software, we are referring to freedom, not
71
- price. Our General Public Licenses are designed to make sure that you
72
- have the freedom to distribute copies of free software (and charge for
73
- this service if you wish), that you receive source code or can get it
74
- if you want it, that you can change the software or use pieces of it
75
- in new free programs; and that you know you can do these things.
76
-
77
- To protect your rights, we need to make restrictions that forbid
78
- anyone to deny you these rights or to ask you to surrender the rights.
79
- These restrictions translate to certain responsibilities for you if you
80
- distribute copies of the software, or if you modify it.
81
-
82
- For example, if you distribute copies of such a program, whether
83
- gratis or for a fee, you must give the recipients all the rights that
84
- you have. You must make sure that they, too, receive or can get the
85
- source code. And you must show them these terms so they know their
86
- rights.
87
-
88
- We protect your rights with two steps: (1) copyright the software, and
89
- (2) offer you this license which gives you legal permission to copy,
90
- distribute and/or modify the software.
91
-
92
- Also, for each author's protection and ours, we want to make certain
93
- that everyone understands that there is no warranty for this free
94
- software. If the software is modified by someone else and passed on, we
95
- want its recipients to know that what they have is not the original, so
96
- that any problems introduced by others will not reflect on the original
97
- authors' reputations.
98
-
99
- Finally, any free program is threatened constantly by software
100
- patents. We wish to avoid the danger that redistributors of a free
101
- program will individually obtain patent licenses, in effect making the
102
- program proprietary. To prevent this, we have made it clear that any
103
- patent must be licensed for everyone's free use or not licensed at all.
104
-
105
- The precise terms and conditions for copying, distribution and
106
- modification follow.
107
-
108
- GNU GENERAL PUBLIC LICENSE
109
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
110
-
111
- 0. This License applies to any program or other work which contains
112
- a notice placed by the copyright holder saying it may be distributed
113
- under the terms of this General Public License. The "Program", below,
114
- refers to any such program or work, and a "work based on the Program"
115
- means either the Program or any derivative work under copyright law:
116
- that is to say, a work containing the Program or a portion of it,
117
- either verbatim or with modifications and/or translated into another
118
- language. (Hereinafter, translation is included without limitation in
119
- the term "modification".) Each licensee is addressed as "you".
120
-
121
- Activities other than copying, distribution and modification are not
122
- covered by this License; they are outside its scope. The act of
123
- running the Program is not restricted, and the output from the Program
124
- is covered only if its contents constitute a work based on the
125
- Program (independent of having been made by running the Program).
126
- Whether that is true depends on what the Program does.
127
-
128
- 1. You may copy and distribute verbatim copies of the Program's
129
- source code as you receive it, in any medium, provided that you
130
- conspicuously and appropriately publish on each copy an appropriate
131
- copyright notice and disclaimer of warranty; keep intact all the
132
- notices that refer to this License and to the absence of any warranty;
133
- and give any other recipients of the Program a copy of this License
134
- along with the Program.
135
-
136
- You may charge a fee for the physical act of transferring a copy, and
137
- you may at your option offer warranty protection in exchange for a fee.
138
-
139
- 2. You may modify your copy or copies of the Program or any portion
140
- of it, thus forming a work based on the Program, and copy and
141
- distribute such modifications or work under the terms of Section 1
142
- above, provided that you also meet all of these conditions:
143
-
144
- a) You must cause the modified files to carry prominent notices
145
- stating that you changed the files and the date of any change.
146
-
147
- b) You must cause any work that you distribute or publish, that in
148
- whole or in part contains or is derived from the Program or any
149
- part thereof, to be licensed as a whole at no charge to all third
150
- parties under the terms of this License.
151
-
152
- c) If the modified program normally reads commands interactively
153
- when run, you must cause it, when started running for such
154
- interactive use in the most ordinary way, to print or display an
155
- announcement including an appropriate copyright notice and a
156
- notice that there is no warranty (or else, saying that you provide
157
- a warranty) and that users may redistribute the program under
158
- these conditions, and telling the user how to view a copy of this
159
- License. (Exception: if the Program itself is interactive but
160
- does not normally print such an announcement, your work based on
161
- the Program is not required to print an announcement.)
162
-
163
- These requirements apply to the modified work as a whole. If
164
- identifiable sections of that work are not derived from the Program,
165
- and can be reasonably considered independent and separate works in
166
- themselves, then this License, and its terms, do not apply to those
167
- sections when you distribute them as separate works. But when you
168
- distribute the same sections as part of a whole which is a work based
169
- on the Program, the distribution of the whole must be on the terms of
170
- this License, whose permissions for other licensees extend to the
171
- entire whole, and thus to each and every part regardless of who wrote it.
172
-
173
- Thus, it is not the intent of this section to claim rights or contest
174
- your rights to work written entirely by you; rather, the intent is to
175
- exercise the right to control the distribution of derivative or
176
- collective works based on the Program.
177
-
178
- In addition, mere aggregation of another work not based on the Program
179
- with the Program (or with a work based on the Program) on a volume of
180
- a storage or distribution medium does not bring the other work under
181
- the scope of this License.
182
-
183
- 3. You may copy and distribute the Program (or a work based on it,
184
- under Section 2) in object code or executable form under the terms of
185
- Sections 1 and 2 above provided that you also do one of the following:
186
-
187
- a) Accompany it with the complete corresponding machine-readable
188
- source code, which must be distributed under the terms of Sections
189
- 1 and 2 above on a medium customarily used for software interchange; or,
190
-
191
- b) Accompany it with a written offer, valid for at least three
192
- years, to give any third party, for a charge no more than your
193
- cost of physically performing source distribution, a complete
194
- machine-readable copy of the corresponding source code, to be
195
- distributed under the terms of Sections 1 and 2 above on a medium
196
- customarily used for software interchange; or,
197
-
198
- c) Accompany it with the information you received as to the offer
199
- to distribute corresponding source code. (This alternative is
200
- allowed only for noncommercial distribution and only if you
201
- received the program in object code or executable form with such
202
- an offer, in accord with Subsection b above.)
203
-
204
- The source code for a work means the preferred form of the work for
205
- making modifications to it. For an executable work, complete source
206
- code means all the source code for all modules it contains, plus any
207
- associated interface definition files, plus the scripts used to
208
- control compilation and installation of the executable. However, as a
209
- special exception, the source code distributed need not include
210
- anything that is normally distributed (in either source or binary
211
- form) with the major components (compiler, kernel, and so on) of the
212
- operating system on which the executable runs, unless that component
213
- itself accompanies the executable.
214
-
215
- If distribution of executable or object code is made by offering
216
- access to copy from a designated place, then offering equivalent
217
- access to copy the source code from the same place counts as
218
- distribution of the source code, even though third parties are not
219
- compelled to copy the source along with the object code.
220
-
221
- 4. You may not copy, modify, sublicense, or distribute the Program
222
- except as expressly provided under this License. Any attempt
223
- otherwise to copy, modify, sublicense or distribute the Program is
224
- void, and will automatically terminate your rights under this License.
225
- However, parties who have received copies, or rights, from you under
226
- this License will not have their licenses terminated so long as such
227
- parties remain in full compliance.
228
-
229
- 5. You are not required to accept this License, since you have not
230
- signed it. However, nothing else grants you permission to modify or
231
- distribute the Program or its derivative works. These actions are
232
- prohibited by law if you do not accept this License. Therefore, by
233
- modifying or distributing the Program (or any work based on the
234
- Program), you indicate your acceptance of this License to do so, and
235
- all its terms and conditions for copying, distributing or modifying
236
- the Program or works based on it.
237
-
238
- 6. Each time you redistribute the Program (or any work based on the
239
- Program), the recipient automatically receives a license from the
240
- original licensor to copy, distribute or modify the Program subject to
241
- these terms and conditions. You may not impose any further
242
- restrictions on the recipients' exercise of the rights granted herein.
243
- You are not responsible for enforcing compliance by third parties to
244
- this License.
245
-
246
- 7. If, as a consequence of a court judgment or allegation of patent
247
- infringement or for any other reason (not limited to patent issues),
248
- conditions are imposed on you (whether by court order, agreement or
249
- otherwise) that contradict the conditions of this License, they do not
250
- excuse you from the conditions of this License. If you cannot
251
- distribute so as to satisfy simultaneously your obligations under this
252
- License and any other pertinent obligations, then as a consequence you
253
- may not distribute the Program at all. For example, if a patent
254
- license would not permit royalty-free redistribution of the Program by
255
- all those who receive copies directly or indirectly through you, then
256
- the only way you could satisfy both it and this License would be to
257
- refrain entirely from distribution of the Program.
258
-
259
- If any portion of this section is held invalid or unenforceable under
260
- any particular circumstance, the balance of the section is intended to
261
- apply and the section as a whole is intended to apply in other
262
- circumstances.
263
-
264
- It is not the purpose of this section to induce you to infringe any
265
- patents or other property right claims or to contest validity of any
266
- such claims; this section has the sole purpose of protecting the
267
- integrity of the free software distribution system, which is
268
- implemented by public license practices. Many people have made
269
- generous contributions to the wide range of software distributed
270
- through that system in reliance on consistent application of that
271
- system; it is up to the author/donor to decide if he or she is willing
272
- to distribute software through any other system and a licensee cannot
273
- impose that choice.
274
-
275
- This section is intended to make thoroughly clear what is believed to
276
- be a consequence of the rest of this License.
277
-
278
- 8. If the distribution and/or use of the Program is restricted in
279
- certain countries either by patents or by copyrighted interfaces, the
280
- original copyright holder who places the Program under this License
281
- may add an explicit geographical distribution limitation excluding
282
- those countries, so that distribution is permitted only in or among
283
- countries not thus excluded. In such case, this License incorporates
284
- the limitation as if written in the body of this License.
285
-
286
- 9. The Free Software Foundation may publish revised and/or new versions
287
- of the General Public License from time to time. Such new versions will
288
- be similar in spirit to the present version, but may differ in detail to
289
- address new problems or concerns.
290
-
291
- Each version is given a distinguishing version number. If the Program
292
- specifies a version number of this License which applies to it and "any
293
- later version", you have the option of following the terms and conditions
294
- either of that version or of any later version published by the Free
295
- Software Foundation. If the Program does not specify a version number of
296
- this License, you may choose any version ever published by the Free Software
297
- Foundation.
298
-
299
- 10. If you wish to incorporate parts of the Program into other free
300
- programs whose distribution conditions are different, write to the author
301
- to ask for permission. For software which is copyrighted by the Free
302
- Software Foundation, write to the Free Software Foundation; we sometimes
303
- make exceptions for this. Our decision will be guided by the two goals
304
- of preserving the free status of all derivatives of our free software and
305
- of promoting the sharing and reuse of software generally.
306
-
307
- NO WARRANTY
308
-
309
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
310
- FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
311
- OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
312
- PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
313
- OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
314
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
315
- TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
316
- PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
317
- REPAIR OR CORRECTION.
318
-
319
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
320
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
321
- REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
322
- INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
323
- OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
324
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
325
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
326
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
327
- POSSIBILITY OF SUCH DAMAGES.
328
-
329
- END OF TERMS AND CONDITIONS
330
-
331
-
332
- Appendix B: The LGPL License
333
- ----------------------------
334
-
335
- GNU LESSER GENERAL PUBLIC LICENSE
336
- Version 2.1, February 1999
337
-
338
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
339
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
340
- Everyone is permitted to copy and distribute verbatim copies
341
- of this license document, but changing it is not allowed.
342
-
343
- [This is the first released version of the Lesser GPL. It also counts
344
- as the successor of the GNU Library Public License, version 2, hence
345
- the version number 2.1.]
346
-
347
- Preamble
348
-
349
- The licenses for most software are designed to take away your
350
- freedom to share and change it. By contrast, the GNU General Public
351
- Licenses are intended to guarantee your freedom to share and change
352
- free software-to make sure the software is free for all its users.
353
-
354
- This license, the Lesser General Public License, applies to some
355
- specially designated software packages-typically libraries-of the
356
- Free Software Foundation and other authors who decide to use it. You
357
- can use it too, but we suggest you first think carefully about whether
358
- this license or the ordinary General Public License is the better
359
- strategy to use in any particular case, based on the explanations below.
360
-
361
- When we speak of free software, we are referring to freedom of use,
362
- not price. Our General Public Licenses are designed to make sure that
363
- you have the freedom to distribute copies of free software (and charge
364
- for this service if you wish); that you receive source code or can get
365
- it if you want it; that you can change the software and use pieces of
366
- it in new free programs; and that you are informed that you can do
367
- these things.
368
-
369
- To protect your rights, we need to make restrictions that forbid
370
- distributors to deny you these rights or to ask you to surrender these
371
- rights. These restrictions translate to certain responsibilities for
372
- you if you distribute copies of the library or if you modify it.
373
-
374
- For example, if you distribute copies of the library, whether gratis
375
- or for a fee, you must give the recipients all the rights that we gave
376
- you. You must make sure that they, too, receive or can get the source
377
- code. If you link other code with the library, you must provide
378
- complete object files to the recipients, so that they can relink them
379
- with the library after making changes to the library and recompiling
380
- it. And you must show them these terms so they know their rights.
381
-
382
- We protect your rights with a two-step method: (1) we copyright the
383
- library, and (2) we offer you this license, which gives you legal
384
- permission to copy, distribute and/or modify the library.
385
-
386
- To protect each distributor, we want to make it very clear that
387
- there is no warranty for the free library. Also, if the library is
388
- modified by someone else and passed on, the recipients should know
389
- that what they have is not the original version, so that the original
390
- author's reputation will not be affected by problems that might be
391
- introduced by others.
392
-
393
- Finally, software patents pose a constant threat to the existence of
394
- any free program. We wish to make sure that a company cannot
395
- effectively restrict the users of a free program by obtaining a
396
- restrictive license from a patent holder. Therefore, we insist that
397
- any patent license obtained for a version of the library must be
398
- consistent with the full freedom of use specified in this license.
399
-
400
- Most GNU software, including some libraries, is covered by the
401
- ordinary GNU General Public License. This license, the GNU Lesser
402
- General Public License, applies to certain designated libraries, and
403
- is quite different from the ordinary General Public License. We use
404
- this license for certain libraries in order to permit linking those
405
- libraries into non-free programs.
406
-
407
- When a program is linked with a library, whether statically or using
408
- a shared library, the combination of the two is legally speaking a
409
- combined work, a derivative of the original library. The ordinary
410
- General Public License therefore permits such linking only if the
411
- entire combination fits its criteria of freedom. The Lesser General
412
- Public License permits more lax criteria for linking other code with
413
- the library.
414
-
415
- We call this license the "Lesser" General Public License because it
416
- does Less to protect the user's freedom than the ordinary General
417
- Public License. It also provides other free software developers Less
418
- of an advantage over competing non-free programs. These disadvantages
419
- are the reason we use the ordinary General Public License for many
420
- libraries. However, the Lesser license provides advantages in certain
421
- special circumstances.
422
-
423
- For example, on rare occasions, there may be a special need to
424
- encourage the widest possible use of a certain library, so that it becomes
425
- a de-facto standard. To achieve this, non-free programs must be
426
- allowed to use the library. A more frequent case is that a free
427
- library does the same job as widely used non-free libraries. In this
428
- case, there is little to gain by limiting the free library to free
429
- software only, so we use the Lesser General Public License.
430
-
431
- In other cases, permission to use a particular library in non-free
432
- programs enables a greater number of people to use a large body of
433
- free software. For example, permission to use the GNU C Library in
434
- non-free programs enables many more people to use the whole GNU
435
- operating system, as well as its variant, the GNU/Linux operating
436
- system.
437
-
438
- Although the Lesser General Public License is Less protective of the
439
- users' freedom, it does ensure that the user of a program that is
440
- linked with the Library has the freedom and the wherewithal to run
441
- that program using a modified version of the Library.
442
-
443
- The precise terms and conditions for copying, distribution and
444
- modification follow. Pay close attention to the difference between a
445
- "work based on the library" and a "work that uses the library". The
446
- former contains code derived from the library, whereas the latter must
447
- be combined with the library in order to run.
448
-
449
- GNU LESSER GENERAL PUBLIC LICENSE
450
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
451
-
452
- 0. This License Agreement applies to any software library or other
453
- program which contains a notice placed by the copyright holder or
454
- other authorized party saying it may be distributed under the terms of
455
- this Lesser General Public License (also called "this License").
456
- Each licensee is addressed as "you".
457
-
458
- A "library" means a collection of software functions and/or data
459
- prepared so as to be conveniently linked with application programs
460
- (which use some of those functions and data) to form executables.
461
-
462
- The "Library", below, refers to any such software library or work
463
- which has been distributed under these terms. A "work based on the
464
- Library" means either the Library or any derivative work under
465
- copyright law: that is to say, a work containing the Library or a
466
- portion of it, either verbatim or with modifications and/or translated
467
- straightforwardly into another language. (Hereinafter, translation is
468
- included without limitation in the term "modification".)
469
-
470
- "Source code" for a work means the preferred form of the work for
471
- making modifications to it. For a library, complete source code means
472
- all the source code for all modules it contains, plus any associated
473
- interface definition files, plus the scripts used to control compilation
474
- and installation of the library.
475
-
476
- Activities other than copying, distribution and modification are not
477
- covered by this License; they are outside its scope. The act of
478
- running a program using the Library is not restricted, and output from
479
- such a program is covered only if its contents constitute a work based
480
- on the Library (independent of the use of the Library in a tool for
481
- writing it). Whether that is true depends on what the Library does
482
- and what the program that uses the Library does.
483
-
484
- 1. You may copy and distribute verbatim copies of the Library's
485
- complete source code as you receive it, in any medium, provided that
486
- you conspicuously and appropriately publish on each copy an
487
- appropriate copyright notice and disclaimer of warranty; keep intact
488
- all the notices that refer to this License and to the absence of any
489
- warranty; and distribute a copy of this License along with the
490
- Library.
491
-
492
- You may charge a fee for the physical act of transferring a copy,
493
- and you may at your option offer warranty protection in exchange for a
494
- fee.
495
-
496
- 2. You may modify your copy or copies of the Library or any portion
497
- of it, thus forming a work based on the Library, and copy and
498
- distribute such modifications or work under the terms of Section 1
499
- above, provided that you also meet all of these conditions:
500
-
501
- a) The modified work must itself be a software library.
502
-
503
- b) You must cause the files modified to carry prominent notices
504
- stating that you changed the files and the date of any change.
505
-
506
- c) You must cause the whole of the work to be licensed at no
507
- charge to all third parties under the terms of this License.
508
-
509
- d) If a facility in the modified Library refers to a function or a
510
- table of data to be supplied by an application program that uses
511
- the facility, other than as an argument passed when the facility
512
- is invoked, then you must make a good faith effort to ensure that,
513
- in the event an application does not supply such function or
514
- table, the facility still operates, and performs whatever part of
515
- its purpose remains meaningful.
516
-
517
- (For example, a function in a library to compute square roots has
518
- a purpose that is entirely well-defined independent of the
519
- application. Therefore, Subsection 2d requires that any
520
- application-supplied function or table used by this function must
521
- be optional: if the application does not supply it, the square
522
- root function must still compute square roots.)
523
-
524
- These requirements apply to the modified work as a whole. If
525
- identifiable sections of that work are not derived from the Library,
526
- and can be reasonably considered independent and separate works in
527
- themselves, then this License, and its terms, do not apply to those
528
- sections when you distribute them as separate works. But when you
529
- distribute the same sections as part of a whole which is a work based
530
- on the Library, the distribution of the whole must be on the terms of
531
- this License, whose permissions for other licensees extend to the
532
- entire whole, and thus to each and every part regardless of who wrote
533
- it.
534
-
535
- Thus, it is not the intent of this section to claim rights or contest
536
- your rights to work written entirely by you; rather, the intent is to
537
- exercise the right to control the distribution of derivative or
538
- collective works based on the Library.
539
-
540
- In addition, mere aggregation of another work not based on the Library
541
- with the Library (or with a work based on the Library) on a volume of
542
- a storage or distribution medium does not bring the other work under
543
- the scope of this License.
544
-
545
- 3. You may opt to apply the terms of the ordinary GNU General Public
546
- License instead of this License to a given copy of the Library. To do
547
- this, you must alter all the notices that refer to this License, so
548
- that they refer to the ordinary GNU General Public License, version 2,
549
- instead of to this License. (If a newer version than version 2 of the
550
- ordinary GNU General Public License has appeared, then you can specify
551
- that version instead if you wish.) Do not make any other change in
552
- these notices.
553
-
554
- Once this change is made in a given copy, it is irreversible for
555
- that copy, so the ordinary GNU General Public License applies to all
556
- subsequent copies and derivative works made from that copy.
557
-
558
- This option is useful when you wish to copy part of the code of
559
- the Library into a program that is not a library.
560
-
561
- 4. You may copy and distribute the Library (or a portion or
562
- derivative of it, under Section 2) in object code or executable form
563
- under the terms of Sections 1 and 2 above provided that you accompany
564
- it with the complete corresponding machine-readable source code, which
565
- must be distributed under the terms of Sections 1 and 2 above on a
566
- medium customarily used for software interchange.
567
-
568
- If distribution of object code is made by offering access to copy
569
- from a designated place, then offering equivalent access to copy the
570
- source code from the same place satisfies the requirement to
571
- distribute the source code, even though third parties are not
572
- compelled to copy the source along with the object code.
573
-
574
- 5. A program that contains no derivative of any portion of the
575
- Library, but is designed to work with the Library by being compiled or
576
- linked with it, is called a "work that uses the Library". Such a
577
- work, in isolation, is not a derivative work of the Library, and
578
- therefore falls outside the scope of this License.
579
-
580
- However, linking a "work that uses the Library" with the Library
581
- creates an executable that is a derivative of the Library (because it
582
- contains portions of the Library), rather than a "work that uses the
583
- library". The executable is therefore covered by this License.
584
- Section 6 states terms for distribution of such executables.
585
-
586
- When a "work that uses the Library" uses material from a header file
587
- that is part of the Library, the object code for the work may be a
588
- derivative work of the Library even though the source code is not.
589
- Whether this is true is especially significant if the work can be
590
- linked without the Library, or if the work is itself a library. The
591
- threshold for this to be true is not precisely defined by law.
592
-
593
- If such an object file uses only numerical parameters, data
594
- structure layouts and accessors, and small macros and small inline
595
- functions (ten lines or less in length), then the use of the object
596
- file is unrestricted, regardless of whether it is legally a derivative
597
- work. (Executables containing this object code plus portions of the
598
- Library will still fall under Section 6.)
599
-
600
- Otherwise, if the work is a derivative of the Library, you may
601
- distribute the object code for the work under the terms of Section 6.
602
- Any executables containing that work also fall under Section 6,
603
- whether or not they are linked directly with the Library itself.
604
-
605
- 6. As an exception to the Sections above, you may also combine or
606
- link a "work that uses the Library" with the Library to produce a
607
- work containing portions of the Library, and distribute that work
608
- under terms of your choice, provided that the terms permit
609
- modification of the work for the customer's own use and reverse
610
- engineering for debugging such modifications.
611
-
612
- You must give prominent notice with each copy of the work that the
613
- Library is used in it and that the Library and its use are covered by
614
- this License. You must supply a copy of this License. If the work
615
- during execution displays copyright notices, you must include the
616
- copyright notice for the Library among them, as well as a reference
617
- directing the user to the copy of this License. Also, you must do one
618
- of these things:
619
-
620
- a) Accompany the work with the complete corresponding
621
- machine-readable source code for the Library including whatever
622
- changes were used in the work (which must be distributed under
623
- Sections 1 and 2 above); and, if the work is an executable linked
624
- with the Library, with the complete machine-readable "work that
625
- uses the Library", as object code and/or source code, so that the
626
- user can modify the Library and then relink to produce a modified
627
- executable containing the modified Library. (It is understood
628
- that the user who changes the contents of definitions files in the
629
- Library will not necessarily be able to recompile the application
630
- to use the modified definitions.)
631
-
632
- b) Use a suitable shared library mechanism for linking with the
633
- Library. A suitable mechanism is one that (1) uses at run time a
634
- copy of the library already present on the user's computer system,
635
- rather than copying library functions into the executable, and (2)
636
- will operate properly with a modified version of the library, if
637
- the user installs one, as long as the modified version is
638
- interface-compatible with the version that the work was made with.
639
-
640
- c) Accompany the work with a written offer, valid for at
641
- least three years, to give the same user the materials
642
- specified in Subsection 6a, above, for a charge no more
643
- than the cost of performing this distribution.
644
-
645
- d) If distribution of the work is made by offering access to copy
646
- from a designated place, offer equivalent access to copy the above
647
- specified materials from the same place.
648
-
649
- e) Verify that the user has already received a copy of these
650
- materials or that you have already sent this user a copy.
651
-
652
- For an executable, the required form of the "work that uses the
653
- Library" must include any data and utility programs needed for
654
- reproducing the executable from it. However, as a special exception,
655
- the materials to be distributed need not include anything that is
656
- normally distributed (in either source or binary form) with the major
657
- components (compiler, kernel, and so on) of the operating system on
658
- which the executable runs, unless that component itself accompanies
659
- the executable.
660
-
661
- It may happen that this requirement contradicts the license
662
- restrictions of other proprietary libraries that do not normally
663
- accompany the operating system. Such a contradiction means you cannot
664
- use both them and the Library together in an executable that you
665
- distribute.
666
-
667
- 7. You may place library facilities that are a work based on the
668
- Library side-by-side in a single library together with other library
669
- facilities not covered by this License, and distribute such a combined
670
- library, provided that the separate distribution of the work based on
671
- the Library and of the other library facilities is otherwise
672
- permitted, and provided that you do these two things:
673
-
674
- a) Accompany the combined library with a copy of the same work
675
- based on the Library, uncombined with any other library
676
- facilities. This must be distributed under the terms of the
677
- Sections above.
678
-
679
- b) Give prominent notice with the combined library of the fact
680
- that part of it is a work based on the Library, and explaining
681
- where to find the accompanying uncombined form of the same work.
682
-
683
- 8. You may not copy, modify, sublicense, link with, or distribute
684
- the Library except as expressly provided under this License. Any
685
- attempt otherwise to copy, modify, sublicense, link with, or
686
- distribute the Library is void, and will automatically terminate your
687
- rights under this License. However, parties who have received copies,
688
- or rights, from you under this License will not have their licenses
689
- terminated so long as such parties remain in full compliance.
690
-
691
- 9. You are not required to accept this License, since you have not
692
- signed it. However, nothing else grants you permission to modify or
693
- distribute the Library or its derivative works. These actions are
694
- prohibited by law if you do not accept this License. Therefore, by
695
- modifying or distributing the Library (or any work based on the
696
- Library), you indicate your acceptance of this License to do so, and
697
- all its terms and conditions for copying, distributing or modifying
698
- the Library or works based on it.
699
-
700
- 10. Each time you redistribute the Library (or any work based on the
701
- Library), the recipient automatically receives a license from the
702
- original licensor to copy, distribute, link with or modify the Library
703
- subject to these terms and conditions. You may not impose any further
704
- restrictions on the recipients' exercise of the rights granted herein.
705
- You are not responsible for enforcing compliance by third parties with
706
- this License.
707
-
708
- 11. If, as a consequence of a court judgment or allegation of patent
709
- infringement or for any other reason (not limited to patent issues),
710
- conditions are imposed on you (whether by court order, agreement or
711
- otherwise) that contradict the conditions of this License, they do not
712
- excuse you from the conditions of this License. If you cannot
713
- distribute so as to satisfy simultaneously your obligations under this
714
- License and any other pertinent obligations, then as a consequence you
715
- may not distribute the Library at all. For example, if a patent
716
- license would not permit royalty-free redistribution of the Library by
717
- all those who receive copies directly or indirectly through you, then
718
- the only way you could satisfy both it and this License would be to
719
- refrain entirely from distribution of the Library.
720
-
721
- If any portion of this section is held invalid or unenforceable under any
722
- particular circumstance, the balance of the section is intended to apply,
723
- and the section as a whole is intended to apply in other circumstances.
724
-
725
- It is not the purpose of this section to induce you to infringe any
726
- patents or other property right claims or to contest validity of any
727
- such claims; this section has the sole purpose of protecting the
728
- integrity of the free software distribution system which is
729
- implemented by public license practices. Many people have made
730
- generous contributions to the wide range of software distributed
731
- through that system in reliance on consistent application of that
732
- system; it is up to the author/donor to decide if he or she is willing
733
- to distribute software through any other system and a licensee cannot
734
- impose that choice.
735
-
736
- This section is intended to make thoroughly clear what is believed to
737
- be a consequence of the rest of this License.
738
-
739
- 12. If the distribution and/or use of the Library is restricted in
740
- certain countries either by patents or by copyrighted interfaces, the
741
- original copyright holder who places the Library under this License may add
742
- an explicit geographical distribution limitation excluding those countries,
743
- so that distribution is permitted only in or among countries not thus
744
- excluded. In such case, this License incorporates the limitation as if
745
- written in the body of this License.
746
-
747
- 13. The Free Software Foundation may publish revised and/or new
748
- versions of the Lesser General Public License from time to time.
749
- Such new versions will be similar in spirit to the present version,
750
- but may differ in detail to address new problems or concerns.
751
-
752
- Each version is given a distinguishing version number. If the Library
753
- specifies a version number of this License which applies to it and
754
- "any later version", you have the option of following the terms and
755
- conditions either of that version or of any later version published by
756
- the Free Software Foundation. If the Library does not specify a
757
- license version number, you may choose any version ever published by
758
- the Free Software Foundation.
759
-
760
- 14. If you wish to incorporate parts of the Library into other free
761
- programs whose distribution conditions are incompatible with these,
762
- write to the author to ask for permission. For software which is
763
- copyrighted by the Free Software Foundation, write to the Free
764
- Software Foundation; we sometimes make exceptions for this. Our
765
- decision will be guided by the two goals of preserving the free status
766
- of all derivatives of our free software and of promoting the sharing
767
- and reuse of software generally.
768
-
769
- NO WARRANTY
770
-
771
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
772
- WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
773
- EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
774
- OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
775
- KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
776
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
777
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
778
- LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
779
- THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
780
-
781
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
782
- WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
783
- AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
784
- FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
785
- CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
786
- LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
787
- RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
788
- FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
789
- SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
790
- DAMAGES.
791
-
792
- END OF TERMS AND CONDITIONS
793
-
794
-
795
- Appendix C: The MPL License
796
- ---------------------------
797
-
798
- MOZILLA PUBLIC LICENSE
799
- Version 1.1
800
-
801
- 1. Definitions.
802
-
803
- 1.0.1. "Commercial Use" means distribution or otherwise making the
804
- Covered Code available to a third party.
805
-
806
- 1.1. "Contributor" means each entity that creates or contributes to
807
- the creation of Modifications.
808
-
809
- 1.2. "Contributor Version" means the combination of the Original
810
- Code, prior Modifications used by a Contributor, and the Modifications
811
- made by that particular Contributor.
812
-
813
- 1.3. "Covered Code" means the Original Code or Modifications or the
814
- combination of the Original Code and Modifications, in each case
815
- including portions thereof.
816
-
817
- 1.4. "Electronic Distribution Mechanism" means a mechanism generally
818
- accepted in the software development community for the electronic
819
- transfer of data.
820
-
821
- 1.5. "Executable" means Covered Code in any form other than Source
822
- Code.
823
-
824
- 1.6. "Initial Developer" means the individual or entity identified
825
- as the Initial Developer in the Source Code notice required by Exhibit
826
- A.
827
-
828
- 1.7. "Larger Work" means a work which combines Covered Code or
829
- portions thereof with code not governed by the terms of this License.
830
-
831
- 1.8. "License" means this document.
832
-
833
- 1.8.1. "Licensable" means having the right to grant, to the maximum
834
- extent possible, whether at the time of the initial grant or
835
- subsequently acquired, any and all of the rights conveyed herein.
836
-
837
- 1.9. "Modifications" means any addition to or deletion from the
838
- substance or structure of either the Original Code or any previous
839
- Modifications. When Covered Code is released as a series of files, a
840
- Modification is:
841
- A. Any addition to or deletion from the contents of a file
842
- containing Original Code or previous Modifications.
843
-
844
- B. Any new file that contains any part of the Original Code or
845
- previous Modifications.
846
-
847
- 1.10. "Original Code" means Source Code of computer software code
848
- which is described in the Source Code notice required by Exhibit A as
849
- Original Code, and which, at the time of its release under this
850
- License is not already Covered Code governed by this License.
851
-
852
- 1.10.1. "Patent Claims" means any patent claim(s), now owned or
853
- hereafter acquired, including without limitation, method, process,
854
- and apparatus claims, in any patent Licensable by grantor.
855
-
856
- 1.11. "Source Code" means the preferred form of the Covered Code for
857
- making modifications to it, including all modules it contains, plus
858
- any associated interface definition files, scripts used to control
859
- compilation and installation of an Executable, or source code
860
- differential comparisons against either the Original Code or another
861
- well known, available Covered Code of the Contributor's choice. The
862
- Source Code can be in a compressed or archival form, provided the
863
- appropriate decompression or de-archiving software is widely available
864
- for no charge.
865
-
866
- 1.12. "You" (or "Your") means an individual or a legal entity
867
- exercising rights under, and complying with all of the terms of, this
868
- License or a future version of this License issued under Section 6.1.
869
- For legal entities, "You" includes any entity which controls, is
870
- controlled by, or is under common control with You. For purposes of
871
- this definition, "control" means (a) the power, direct or indirect,
872
- to cause the direction or management of such entity, whether by
873
- contract or otherwise, or (b) ownership of more than fifty percent
874
- (50%) of the outstanding shares or beneficial ownership of such
875
- entity.
876
-
877
- 2. Source Code License.
878
-
879
- 2.1. The Initial Developer Grant.
880
- The Initial Developer hereby grants You a world-wide, royalty-free,
881
- non-exclusive license, subject to third party intellectual property
882
- claims:
883
- (a) under intellectual property rights (other than patent or
884
- trademark) Licensable by Initial Developer to use, reproduce,
885
- modify, display, perform, sublicense and distribute the Original
886
- Code (or portions thereof) with or without Modifications, and/or
887
- as part of a Larger Work; and
888
-
889
- (b) under Patents Claims infringed by the making, using or
890
- selling of Original Code, to make, have made, use, practice,
891
- sell, and offer for sale, and/or otherwise dispose of the
892
- Original Code (or portions thereof).
893
-
894
- (c) the licenses granted in this Section 2.1(a) and (b) are
895
- effective on the date Initial Developer first distributes
896
- Original Code under the terms of this License.
897
-
898
- (d) Notwithstanding Section 2.1(b) above, no patent license is
899
- granted: 1) for code that You delete from the Original Code; 2)
900
- separate from the Original Code; or 3) for infringements caused
901
- by: i) the modification of the Original Code or ii) the
902
- combination of the Original Code with other software or devices.
903
-
904
- 2.2. Contributor Grant.
905
- Subject to third party intellectual property claims, each Contributor
906
- hereby grants You a world-wide, royalty-free, non-exclusive license
907
-
908
- (a) under intellectual property rights (other than patent or
909
- trademark) Licensable by Contributor, to use, reproduce, modify,
910
- display, perform, sublicense and distribute the Modifications
911
- created by such Contributor (or portions thereof) either on an
912
- unmodified basis, with other Modifications, as Covered Code
913
- and/or as part of a Larger Work; and
914
-
915
- (b) under Patent Claims infringed by the making, using, or
916
- selling of Modifications made by that Contributor either alone
917
- and/or in combination with its Contributor Version (or portions
918
- of such combination), to make, use, sell, offer for sale, have
919
- made, and/or otherwise dispose of: 1) Modifications made by that
920
- Contributor (or portions thereof); and 2) the combination of
921
- Modifications made by that Contributor with its Contributor
922
- Version (or portions of such combination).
923
-
924
- (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
925
- effective on the date Contributor first makes Commercial Use of
926
- the Covered Code.
927
-
928
- (d) Notwithstanding Section 2.2(b) above, no patent license is
929
- granted: 1) for any code that Contributor has deleted from the
930
- Contributor Version; 2) separate from the Contributor Version;
931
- 3) for infringements caused by: i) third party modifications of
932
- Contributor Version or ii) the combination of Modifications made
933
- by that Contributor with other software (except as part of the
934
- Contributor Version) or other devices; or 4) under Patent Claims
935
- infringed by Covered Code in the absence of Modifications made by
936
- that Contributor.
937
-
938
- 3. Distribution Obligations.
939
-
940
- 3.1. Application of License.
941
- The Modifications which You create or to which You contribute are
942
- governed by the terms of this License, including without limitation
943
- Section 2.2. The Source Code version of Covered Code may be
944
- distributed only under the terms of this License or a future version
945
- of this License released under Section 6.1, and You must include a
946
- copy of this License with every copy of the Source Code You
947
- distribute. You may not offer or impose any terms on any Source Code
948
- version that alters or restricts the applicable version of this
949
- License or the recipients' rights hereunder. However, You may include
950
- an additional document offering the additional rights described in
951
- Section 3.5.
952
-
953
- 3.2. Availability of Source Code.
954
- Any Modification which You create or to which You contribute must be
955
- made available in Source Code form under the terms of this License
956
- either on the same media as an Executable version or via an accepted
957
- Electronic Distribution Mechanism to anyone to whom you made an
958
- Executable version available; and if made available via Electronic
959
- Distribution Mechanism, must remain available for at least twelve (12)
960
- months after the date it initially became available, or at least six
961
- (6) months after a subsequent version of that particular Modification
962
- has been made available to such recipients. You are responsible for
963
- ensuring that the Source Code version remains available even if the
964
- Electronic Distribution Mechanism is maintained by a third party.
965
-
966
- 3.3. Description of Modifications.
967
- You must cause all Covered Code to which You contribute to contain a
968
- file documenting the changes You made to create that Covered Code and
969
- the date of any change. You must include a prominent statement that
970
- the Modification is derived, directly or indirectly, from Original
971
- Code provided by the Initial Developer and including the name of the
972
- Initial Developer in (a) the Source Code, and (b) in any notice in an
973
- Executable version or related documentation in which You describe the
974
- origin or ownership of the Covered Code.
975
-
976
- 3.4. Intellectual Property Matters
977
- (a) Third Party Claims.
978
- If Contributor has knowledge that a license under a third party's
979
- intellectual property rights is required to exercise the rights
980
- granted by such Contributor under Sections 2.1 or 2.2,
981
- Contributor must include a text file with the Source Code
982
- distribution titled "LEGAL" which describes the claim and the
983
- party making the claim in sufficient detail that a recipient will
984
- know whom to contact. If Contributor obtains such knowledge after
985
- the Modification is made available as described in Section 3.2,
986
- Contributor shall promptly modify the LEGAL file in all copies
987
- Contributor makes available thereafter and shall take other steps
988
- (such as notifying appropriate mailing lists or newsgroups)
989
- reasonably calculated to inform those who received the Covered
990
- Code that new knowledge has been obtained.
991
-
992
- (b) Contributor APIs.
993
- If Contributor's Modifications include an application programming
994
- interface and Contributor has knowledge of patent licenses which
995
- are reasonably necessary to implement that API, Contributor must
996
- also include this information in the LEGAL file.
997
-
998
- (c) Representations.
999
- Contributor represents that, except as disclosed pursuant to
1000
- Section 3.4(a) above, Contributor believes that Contributor's
1001
- Modifications are Contributor's original creation(s) and/or
1002
- Contributor has sufficient rights to grant the rights conveyed by
1003
- this License.
1004
-
1005
- 3.5. Required Notices.
1006
- You must duplicate the notice in Exhibit A in each file of the Source
1007
- Code. If it is not possible to put such notice in a particular Source
1008
- Code file due to its structure, then You must include such notice in a
1009
- location (such as a relevant directory) where a user would be likely
1010
- to look for such a notice. If You created one or more Modification(s)
1011
- You may add your name as a Contributor to the notice described in
1012
- Exhibit A. You must also duplicate this License in any documentation
1013
- for the Source Code where You describe recipients' rights or ownership
1014
- rights relating to Covered Code. You may choose to offer, and to
1015
- charge a fee for, warranty, support, indemnity or liability
1016
- obligations to one or more recipients of Covered Code. However, You
1017
- may do so only on Your own behalf, and not on behalf of the Initial
1018
- Developer or any Contributor. You must make it absolutely clear than
1019
- any such warranty, support, indemnity or liability obligation is
1020
- offered by You alone, and You hereby agree to indemnify the Initial
1021
- Developer and every Contributor for any liability incurred by the
1022
- Initial Developer or such Contributor as a result of warranty,
1023
- support, indemnity or liability terms You offer.
1024
-
1025
- 3.6. Distribution of Executable Versions.
1026
- You may distribute Covered Code in Executable form only if the
1027
- requirements of Section 3.1-3.5 have been met for that Covered Code,
1028
- and if You include a notice stating that the Source Code version of
1029
- the Covered Code is available under the terms of this License,
1030
- including a description of how and where You have fulfilled the
1031
- obligations of Section 3.2. The notice must be conspicuously included
1032
- in any notice in an Executable version, related documentation or
1033
- collateral in which You describe recipients' rights relating to the
1034
- Covered Code. You may distribute the Executable version of Covered
1035
- Code or ownership rights under a license of Your choice, which may
1036
- contain terms different from this License, provided that You are in
1037
- compliance with the terms of this License and that the license for the
1038
- Executable version does not attempt to limit or alter the recipient's
1039
- rights in the Source Code version from the rights set forth in this
1040
- License. If You distribute the Executable version under a different
1041
- license You must make it absolutely clear that any terms which differ
1042
- from this License are offered by You alone, not by the Initial
1043
- Developer or any Contributor. You hereby agree to indemnify the
1044
- Initial Developer and every Contributor for any liability incurred by
1045
- the Initial Developer or such Contributor as a result of any such
1046
- terms You offer.
1047
-
1048
- 3.7. Larger Works.
1049
- You may create a Larger Work by combining Covered Code with other code
1050
- not governed by the terms of this License and distribute the Larger
1051
- Work as a single product. In such a case, You must make sure the
1052
- requirements of this License are fulfilled for the Covered Code.
1053
-
1054
- 4. Inability to Comply Due to Statute or Regulation.
1055
-
1056
- If it is impossible for You to comply with any of the terms of this
1057
- License with respect to some or all of the Covered Code due to
1058
- statute, judicial order, or regulation then You must: (a) comply with
1059
- the terms of this License to the maximum extent possible; and (b)
1060
- describe the limitations and the code they affect. Such description
1061
- must be included in the LEGAL file described in Section 3.4 and must
1062
- be included with all distributions of the Source Code. Except to the
1063
- extent prohibited by statute or regulation, such description must be
1064
- sufficiently detailed for a recipient of ordinary skill to be able to
1065
- understand it.
1066
-
1067
- 5. Application of this License.
1068
-
1069
- This License applies to code to which the Initial Developer has
1070
- attached the notice in Exhibit A and to related Covered Code.
1071
-
1072
- 6. Versions of the License.
1073
-
1074
- 6.1. New Versions.
1075
- Netscape Communications Corporation ("Netscape") may publish revised
1076
- and/or new versions of the License from time to time. Each version
1077
- will be given a distinguishing version number.
1078
-
1079
- 6.2. Effect of New Versions.
1080
- Once Covered Code has been published under a particular version of the
1081
- License, You may always continue to use it under the terms of that
1082
- version. You may also choose to use such Covered Code under the terms
1083
- of any subsequent version of the License published by Netscape. No one
1084
- other than Netscape has the right to modify the terms applicable to
1085
- Covered Code created under this License.
1086
-
1087
- 6.3. Derivative Works.
1088
- If You create or use a modified version of this License (which you may
1089
- only do in order to apply it to code which is not already Covered Code
1090
- governed by this License), You must (a) rename Your license so that
1091
- the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
1092
- "MPL", "NPL" or any confusingly similar phrase do not appear in your
1093
- license (except to note that your license differs from this License)
1094
- and (b) otherwise make it clear that Your version of the license
1095
- contains terms which differ from the Mozilla Public License and
1096
- Netscape Public License. (Filling in the name of the Initial
1097
- Developer, Original Code or Contributor in the notice described in
1098
- Exhibit A shall not of themselves be deemed to be modifications of
1099
- this License.)
1100
-
1101
- 7. DISCLAIMER OF WARRANTY.
1102
-
1103
- COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
1104
- WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
1105
- WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
1106
- DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
1107
- THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
1108
- IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
1109
- YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
1110
- COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
1111
- OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
1112
- ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
1113
-
1114
- 8. TERMINATION.
1115
-
1116
- 8.1. This License and the rights granted hereunder will terminate
1117
- automatically if You fail to comply with terms herein and fail to cure
1118
- such breach within 30 days of becoming aware of the breach. All
1119
- sublicenses to the Covered Code which are properly granted shall
1120
- survive any termination of this License. Provisions which, by their
1121
- nature, must remain in effect beyond the termination of this License
1122
- shall survive.
1123
-
1124
- 8.2. If You initiate litigation by asserting a patent infringement
1125
- claim (excluding declatory judgment actions) against Initial Developer
1126
- or a Contributor (the Initial Developer or Contributor against whom
1127
- You file such action is referred to as "Participant") alleging that:
1128
-
1129
- (a) such Participant's Contributor Version directly or indirectly
1130
- infringes any patent, then any and all rights granted by such
1131
- Participant to You under Sections 2.1 and/or 2.2 of this License
1132
- shall, upon 60 days notice from Participant terminate prospectively,
1133
- unless if within 60 days after receipt of notice You either: (i)
1134
- agree in writing to pay Participant a mutually agreeable reasonable
1135
- royalty for Your past and future use of Modifications made by such
1136
- Participant, or (ii) withdraw Your litigation claim with respect to
1137
- the Contributor Version against such Participant. If within 60 days
1138
- of notice, a reasonable royalty and payment arrangement are not
1139
- mutually agreed upon in writing by the parties or the litigation claim
1140
- is not withdrawn, the rights granted by Participant to You under
1141
- Sections 2.1 and/or 2.2 automatically terminate at the expiration of
1142
- the 60 day notice period specified above.
1143
-
1144
- (b) any software, hardware, or device, other than such Participant's
1145
- Contributor Version, directly or indirectly infringes any patent, then
1146
- any rights granted to You by such Participant under Sections 2.1(b)
1147
- and 2.2(b) are revoked effective as of the date You first made, used,
1148
- sold, distributed, or had made, Modifications made by that
1149
- Participant.
1150
-
1151
- 8.3. If You assert a patent infringement claim against Participant
1152
- alleging that such Participant's Contributor Version directly or
1153
- indirectly infringes any patent where such claim is resolved (such as
1154
- by license or settlement) prior to the initiation of patent
1155
- infringement litigation, then the reasonable value of the licenses
1156
- granted by such Participant under Sections 2.1 or 2.2 shall be taken
1157
- into account in determining the amount or value of any payment or
1158
- license.
1159
-
1160
- 8.4. In the event of termination under Sections 8.1 or 8.2 above,
1161
- all end user license agreements (excluding distributors and resellers)
1162
- which have been validly granted by You or any distributor hereunder
1163
- prior to termination shall survive termination.
1164
-
1165
- 9. LIMITATION OF LIABILITY.
1166
-
1167
- UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
1168
- (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
1169
- DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
1170
- OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
1171
- ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
1172
- CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
1173
- WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
1174
- COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
1175
- INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
1176
- LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
1177
- RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
1178
- PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
1179
- EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
1180
- THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
1181
-
1182
- 10. U.S. GOVERNMENT END USERS.
1183
-
1184
- The Covered Code is a "commercial item," as that term is defined in
1185
- 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
1186
- software" and "commercial computer software documentation," as such
1187
- terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
1188
- C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
1189
- all U.S. Government End Users acquire Covered Code with only those
1190
- rights set forth herein.
1191
-
1192
- 11. MISCELLANEOUS.
1193
-
1194
- This License represents the complete agreement concerning subject
1195
- matter hereof. If any provision of this License is held to be
1196
- unenforceable, such provision shall be reformed only to the extent
1197
- necessary to make it enforceable. This License shall be governed by
1198
- California law provisions (except to the extent applicable law, if
1199
- any, provides otherwise), excluding its conflict-of-law provisions.
1200
- With respect to disputes in which at least one party is a citizen of,
1201
- or an entity chartered or registered to do business in the United
1202
- States of America, any litigation relating to this License shall be
1203
- subject to the jurisdiction of the Federal Courts of the Northern
1204
- District of California, with venue lying in Santa Clara County,
1205
- California, with the losing party responsible for costs, including
1206
- without limitation, court costs and reasonable attorneys' fees and
1207
- expenses. The application of the United Nations Convention on
1208
- Contracts for the International Sale of Goods is expressly excluded.
1209
- Any law or regulation which provides that the language of a contract
1210
- shall be construed against the drafter shall not apply to this
1211
- License.
1212
-
1213
- 12. RESPONSIBILITY FOR CLAIMS.
1214
-
1215
- As between Initial Developer and the Contributors, each party is
1216
- responsible for claims and damages arising, directly or indirectly,
1217
- out of its utilization of rights under this License and You agree to
1218
- work with Initial Developer and Contributors to distribute such
1219
- responsibility on an equitable basis. Nothing herein is intended or
1220
- shall be deemed to constitute any admission of liability.
1221
-
1222
- 13. MULTIPLE-LICENSED CODE.
1223
-
1224
- Initial Developer may designate portions of the Covered Code as
1225
- "Multiple-Licensed". "Multiple-Licensed" means that the Initial
1226
- Developer permits you to utilize portions of the Covered Code under
1227
- Your choice of the NPL or the alternative licenses, if any, specified
1228
- by the Initial Developer in the file described in Exhibit A.
1229
-
1230
- EXHIBIT A -Mozilla Public License.
1231
-
1232
- ``The contents of this file are subject to the Mozilla Public License
1233
- Version 1.1 (the "License"); you may not use this file except in
1234
- compliance with the License. You may obtain a copy of the License at
1235
- http://www.mozilla.org/MPL/
1236
-
1237
- Software distributed under the License is distributed on an "AS IS"
1238
- basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
1239
- License for the specific language governing rights and limitations
1240
- under the License.
1241
-
1242
- The Original Code is ______________________________________.
1243
-
1244
- The Initial Developer of the Original Code is ________________________.
1245
- Portions created by ______________________ are Copyright (C) ______
1246
- _______________________. All Rights Reserved.
1247
-
1248
- Contributor(s): ______________________________________.
1249
-
1250
- Alternatively, the contents of this file may be used under the terms
1251
- of the _____ license (the "[___] License"), in which case the
1252
- provisions of [______] License are applicable instead of those
1253
- above. If you wish to allow use of your version of this file only
1254
- under the terms of the [____] License and not to allow others to use
1255
- your version of this file under the MPL, indicate your decision by
1256
- deleting the provisions above and replace them with the notice and
1257
- other provisions required by the [___] License. If you do not delete
1258
- the provisions above, a recipient may use your version of this file
1259
- under either the MPL or the [___] License."
1260
-
1261
- [NOTE: The text of this Exhibit A may differ slightly from the text of
1262
- the notices in the Source Code files of the Original Code. You should
1263
- use the text of this Exhibit A rather than the text found in the
1264
- Original Code Source Code for Your Modifications.]
1
+ Software License Agreement
2
+ ==========================
3
+
4
+ CKEditor - The text editor for Internet - http://ckeditor.com
5
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
6
+
7
+ Licensed under the terms of any of the following licenses at your
8
+ choice:
9
+
10
+ - GNU General Public License Version 2 or later (the "GPL")
11
+ http://www.gnu.org/licenses/gpl.html
12
+ (See Appendix A)
13
+
14
+ - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
+ http://www.gnu.org/licenses/lgpl.html
16
+ (See Appendix B)
17
+
18
+ - Mozilla Public License Version 1.1 or later (the "MPL")
19
+ http://www.mozilla.org/MPL/MPL-1.1.html
20
+ (See Appendix C)
21
+
22
+ You are not required to, but if you want to explicitly declare the
23
+ license you have chosen to be bound to when using, reproducing,
24
+ modifying and distributing this software, just include a text file
25
+ titled "legal.txt" in your version of this software, indicating your
26
+ license choice. In any case, your choice will not restrict any
27
+ recipient of your version of this software to use, reproduce, modify
28
+ and distribute this software under any of the above licenses.
29
+
30
+ Sources of Intellectual Property Included in CKEditor
31
+ -----------------------------------------------------
32
+
33
+ Where not otherwise indicated, all CKEditor content is authored by
34
+ CKSource engineers and consists of CKSource-owned intellectual
35
+ property. In some specific instances, CKEditor will incorporate work
36
+ done by developers outside of CKSource with their express permission.
37
+
38
+ Trademarks
39
+ ----------
40
+
41
+ CKEditor is a trademark of CKSource - Frederico Knabben. All other brand
42
+ and product names are trademarks, registered trademarks or service
43
+ marks of their respective holders.
44
+
45
+ ---
46
+
47
+ Appendix A: The GPL License
48
+ ---------------------------
49
+
50
+ GNU GENERAL PUBLIC LICENSE
51
+ Version 2, June 1991
52
+
53
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
54
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
55
+ Everyone is permitted to copy and distribute verbatim copies
56
+ of this license document, but changing it is not allowed.
57
+
58
+ Preamble
59
+
60
+ The licenses for most software are designed to take away your
61
+ freedom to share and change it. By contrast, the GNU General Public
62
+ License is intended to guarantee your freedom to share and change free
63
+ software-to make sure the software is free for all its users. This
64
+ General Public License applies to most of the Free Software
65
+ Foundation's software and to any other program whose authors commit to
66
+ using it. (Some other Free Software Foundation software is covered by
67
+ the GNU Lesser General Public License instead.) You can apply it to
68
+ your programs, too.
69
+
70
+ When we speak of free software, we are referring to freedom, not
71
+ price. Our General Public Licenses are designed to make sure that you
72
+ have the freedom to distribute copies of free software (and charge for
73
+ this service if you wish), that you receive source code or can get it
74
+ if you want it, that you can change the software or use pieces of it
75
+ in new free programs; and that you know you can do these things.
76
+
77
+ To protect your rights, we need to make restrictions that forbid
78
+ anyone to deny you these rights or to ask you to surrender the rights.
79
+ These restrictions translate to certain responsibilities for you if you
80
+ distribute copies of the software, or if you modify it.
81
+
82
+ For example, if you distribute copies of such a program, whether
83
+ gratis or for a fee, you must give the recipients all the rights that
84
+ you have. You must make sure that they, too, receive or can get the
85
+ source code. And you must show them these terms so they know their
86
+ rights.
87
+
88
+ We protect your rights with two steps: (1) copyright the software, and
89
+ (2) offer you this license which gives you legal permission to copy,
90
+ distribute and/or modify the software.
91
+
92
+ Also, for each author's protection and ours, we want to make certain
93
+ that everyone understands that there is no warranty for this free
94
+ software. If the software is modified by someone else and passed on, we
95
+ want its recipients to know that what they have is not the original, so
96
+ that any problems introduced by others will not reflect on the original
97
+ authors' reputations.
98
+
99
+ Finally, any free program is threatened constantly by software
100
+ patents. We wish to avoid the danger that redistributors of a free
101
+ program will individually obtain patent licenses, in effect making the
102
+ program proprietary. To prevent this, we have made it clear that any
103
+ patent must be licensed for everyone's free use or not licensed at all.
104
+
105
+ The precise terms and conditions for copying, distribution and
106
+ modification follow.
107
+
108
+ GNU GENERAL PUBLIC LICENSE
109
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
110
+
111
+ 0. This License applies to any program or other work which contains
112
+ a notice placed by the copyright holder saying it may be distributed
113
+ under the terms of this General Public License. The "Program", below,
114
+ refers to any such program or work, and a "work based on the Program"
115
+ means either the Program or any derivative work under copyright law:
116
+ that is to say, a work containing the Program or a portion of it,
117
+ either verbatim or with modifications and/or translated into another
118
+ language. (Hereinafter, translation is included without limitation in
119
+ the term "modification".) Each licensee is addressed as "you".
120
+
121
+ Activities other than copying, distribution and modification are not
122
+ covered by this License; they are outside its scope. The act of
123
+ running the Program is not restricted, and the output from the Program
124
+ is covered only if its contents constitute a work based on the
125
+ Program (independent of having been made by running the Program).
126
+ Whether that is true depends on what the Program does.
127
+
128
+ 1. You may copy and distribute verbatim copies of the Program's
129
+ source code as you receive it, in any medium, provided that you
130
+ conspicuously and appropriately publish on each copy an appropriate
131
+ copyright notice and disclaimer of warranty; keep intact all the
132
+ notices that refer to this License and to the absence of any warranty;
133
+ and give any other recipients of the Program a copy of this License
134
+ along with the Program.
135
+
136
+ You may charge a fee for the physical act of transferring a copy, and
137
+ you may at your option offer warranty protection in exchange for a fee.
138
+
139
+ 2. You may modify your copy or copies of the Program or any portion
140
+ of it, thus forming a work based on the Program, and copy and
141
+ distribute such modifications or work under the terms of Section 1
142
+ above, provided that you also meet all of these conditions:
143
+
144
+ a) You must cause the modified files to carry prominent notices
145
+ stating that you changed the files and the date of any change.
146
+
147
+ b) You must cause any work that you distribute or publish, that in
148
+ whole or in part contains or is derived from the Program or any
149
+ part thereof, to be licensed as a whole at no charge to all third
150
+ parties under the terms of this License.
151
+
152
+ c) If the modified program normally reads commands interactively
153
+ when run, you must cause it, when started running for such
154
+ interactive use in the most ordinary way, to print or display an
155
+ announcement including an appropriate copyright notice and a
156
+ notice that there is no warranty (or else, saying that you provide
157
+ a warranty) and that users may redistribute the program under
158
+ these conditions, and telling the user how to view a copy of this
159
+ License. (Exception: if the Program itself is interactive but
160
+ does not normally print such an announcement, your work based on
161
+ the Program is not required to print an announcement.)
162
+
163
+ These requirements apply to the modified work as a whole. If
164
+ identifiable sections of that work are not derived from the Program,
165
+ and can be reasonably considered independent and separate works in
166
+ themselves, then this License, and its terms, do not apply to those
167
+ sections when you distribute them as separate works. But when you
168
+ distribute the same sections as part of a whole which is a work based
169
+ on the Program, the distribution of the whole must be on the terms of
170
+ this License, whose permissions for other licensees extend to the
171
+ entire whole, and thus to each and every part regardless of who wrote it.
172
+
173
+ Thus, it is not the intent of this section to claim rights or contest
174
+ your rights to work written entirely by you; rather, the intent is to
175
+ exercise the right to control the distribution of derivative or
176
+ collective works based on the Program.
177
+
178
+ In addition, mere aggregation of another work not based on the Program
179
+ with the Program (or with a work based on the Program) on a volume of
180
+ a storage or distribution medium does not bring the other work under
181
+ the scope of this License.
182
+
183
+ 3. You may copy and distribute the Program (or a work based on it,
184
+ under Section 2) in object code or executable form under the terms of
185
+ Sections 1 and 2 above provided that you also do one of the following:
186
+
187
+ a) Accompany it with the complete corresponding machine-readable
188
+ source code, which must be distributed under the terms of Sections
189
+ 1 and 2 above on a medium customarily used for software interchange; or,
190
+
191
+ b) Accompany it with a written offer, valid for at least three
192
+ years, to give any third party, for a charge no more than your
193
+ cost of physically performing source distribution, a complete
194
+ machine-readable copy of the corresponding source code, to be
195
+ distributed under the terms of Sections 1 and 2 above on a medium
196
+ customarily used for software interchange; or,
197
+
198
+ c) Accompany it with the information you received as to the offer
199
+ to distribute corresponding source code. (This alternative is
200
+ allowed only for noncommercial distribution and only if you
201
+ received the program in object code or executable form with such
202
+ an offer, in accord with Subsection b above.)
203
+
204
+ The source code for a work means the preferred form of the work for
205
+ making modifications to it. For an executable work, complete source
206
+ code means all the source code for all modules it contains, plus any
207
+ associated interface definition files, plus the scripts used to
208
+ control compilation and installation of the executable. However, as a
209
+ special exception, the source code distributed need not include
210
+ anything that is normally distributed (in either source or binary
211
+ form) with the major components (compiler, kernel, and so on) of the
212
+ operating system on which the executable runs, unless that component
213
+ itself accompanies the executable.
214
+
215
+ If distribution of executable or object code is made by offering
216
+ access to copy from a designated place, then offering equivalent
217
+ access to copy the source code from the same place counts as
218
+ distribution of the source code, even though third parties are not
219
+ compelled to copy the source along with the object code.
220
+
221
+ 4. You may not copy, modify, sublicense, or distribute the Program
222
+ except as expressly provided under this License. Any attempt
223
+ otherwise to copy, modify, sublicense or distribute the Program is
224
+ void, and will automatically terminate your rights under this License.
225
+ However, parties who have received copies, or rights, from you under
226
+ this License will not have their licenses terminated so long as such
227
+ parties remain in full compliance.
228
+
229
+ 5. You are not required to accept this License, since you have not
230
+ signed it. However, nothing else grants you permission to modify or
231
+ distribute the Program or its derivative works. These actions are
232
+ prohibited by law if you do not accept this License. Therefore, by
233
+ modifying or distributing the Program (or any work based on the
234
+ Program), you indicate your acceptance of this License to do so, and
235
+ all its terms and conditions for copying, distributing or modifying
236
+ the Program or works based on it.
237
+
238
+ 6. Each time you redistribute the Program (or any work based on the
239
+ Program), the recipient automatically receives a license from the
240
+ original licensor to copy, distribute or modify the Program subject to
241
+ these terms and conditions. You may not impose any further
242
+ restrictions on the recipients' exercise of the rights granted herein.
243
+ You are not responsible for enforcing compliance by third parties to
244
+ this License.
245
+
246
+ 7. If, as a consequence of a court judgment or allegation of patent
247
+ infringement or for any other reason (not limited to patent issues),
248
+ conditions are imposed on you (whether by court order, agreement or
249
+ otherwise) that contradict the conditions of this License, they do not
250
+ excuse you from the conditions of this License. If you cannot
251
+ distribute so as to satisfy simultaneously your obligations under this
252
+ License and any other pertinent obligations, then as a consequence you
253
+ may not distribute the Program at all. For example, if a patent
254
+ license would not permit royalty-free redistribution of the Program by
255
+ all those who receive copies directly or indirectly through you, then
256
+ the only way you could satisfy both it and this License would be to
257
+ refrain entirely from distribution of the Program.
258
+
259
+ If any portion of this section is held invalid or unenforceable under
260
+ any particular circumstance, the balance of the section is intended to
261
+ apply and the section as a whole is intended to apply in other
262
+ circumstances.
263
+
264
+ It is not the purpose of this section to induce you to infringe any
265
+ patents or other property right claims or to contest validity of any
266
+ such claims; this section has the sole purpose of protecting the
267
+ integrity of the free software distribution system, which is
268
+ implemented by public license practices. Many people have made
269
+ generous contributions to the wide range of software distributed
270
+ through that system in reliance on consistent application of that
271
+ system; it is up to the author/donor to decide if he or she is willing
272
+ to distribute software through any other system and a licensee cannot
273
+ impose that choice.
274
+
275
+ This section is intended to make thoroughly clear what is believed to
276
+ be a consequence of the rest of this License.
277
+
278
+ 8. If the distribution and/or use of the Program is restricted in
279
+ certain countries either by patents or by copyrighted interfaces, the
280
+ original copyright holder who places the Program under this License
281
+ may add an explicit geographical distribution limitation excluding
282
+ those countries, so that distribution is permitted only in or among
283
+ countries not thus excluded. In such case, this License incorporates
284
+ the limitation as if written in the body of this License.
285
+
286
+ 9. The Free Software Foundation may publish revised and/or new versions
287
+ of the General Public License from time to time. Such new versions will
288
+ be similar in spirit to the present version, but may differ in detail to
289
+ address new problems or concerns.
290
+
291
+ Each version is given a distinguishing version number. If the Program
292
+ specifies a version number of this License which applies to it and "any
293
+ later version", you have the option of following the terms and conditions
294
+ either of that version or of any later version published by the Free
295
+ Software Foundation. If the Program does not specify a version number of
296
+ this License, you may choose any version ever published by the Free Software
297
+ Foundation.
298
+
299
+ 10. If you wish to incorporate parts of the Program into other free
300
+ programs whose distribution conditions are different, write to the author
301
+ to ask for permission. For software which is copyrighted by the Free
302
+ Software Foundation, write to the Free Software Foundation; we sometimes
303
+ make exceptions for this. Our decision will be guided by the two goals
304
+ of preserving the free status of all derivatives of our free software and
305
+ of promoting the sharing and reuse of software generally.
306
+
307
+ NO WARRANTY
308
+
309
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
310
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
311
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
312
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
313
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
314
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
315
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
316
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
317
+ REPAIR OR CORRECTION.
318
+
319
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
320
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
321
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
322
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
323
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
324
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
325
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
326
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
327
+ POSSIBILITY OF SUCH DAMAGES.
328
+
329
+ END OF TERMS AND CONDITIONS
330
+
331
+
332
+ Appendix B: The LGPL License
333
+ ----------------------------
334
+
335
+ GNU LESSER GENERAL PUBLIC LICENSE
336
+ Version 2.1, February 1999
337
+
338
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
339
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
340
+ Everyone is permitted to copy and distribute verbatim copies
341
+ of this license document, but changing it is not allowed.
342
+
343
+ [This is the first released version of the Lesser GPL. It also counts
344
+ as the successor of the GNU Library Public License, version 2, hence
345
+ the version number 2.1.]
346
+
347
+ Preamble
348
+
349
+ The licenses for most software are designed to take away your
350
+ freedom to share and change it. By contrast, the GNU General Public
351
+ Licenses are intended to guarantee your freedom to share and change
352
+ free software-to make sure the software is free for all its users.
353
+
354
+ This license, the Lesser General Public License, applies to some
355
+ specially designated software packages-typically libraries-of the
356
+ Free Software Foundation and other authors who decide to use it. You
357
+ can use it too, but we suggest you first think carefully about whether
358
+ this license or the ordinary General Public License is the better
359
+ strategy to use in any particular case, based on the explanations below.
360
+
361
+ When we speak of free software, we are referring to freedom of use,
362
+ not price. Our General Public Licenses are designed to make sure that
363
+ you have the freedom to distribute copies of free software (and charge
364
+ for this service if you wish); that you receive source code or can get
365
+ it if you want it; that you can change the software and use pieces of
366
+ it in new free programs; and that you are informed that you can do
367
+ these things.
368
+
369
+ To protect your rights, we need to make restrictions that forbid
370
+ distributors to deny you these rights or to ask you to surrender these
371
+ rights. These restrictions translate to certain responsibilities for
372
+ you if you distribute copies of the library or if you modify it.
373
+
374
+ For example, if you distribute copies of the library, whether gratis
375
+ or for a fee, you must give the recipients all the rights that we gave
376
+ you. You must make sure that they, too, receive or can get the source
377
+ code. If you link other code with the library, you must provide
378
+ complete object files to the recipients, so that they can relink them
379
+ with the library after making changes to the library and recompiling
380
+ it. And you must show them these terms so they know their rights.
381
+
382
+ We protect your rights with a two-step method: (1) we copyright the
383
+ library, and (2) we offer you this license, which gives you legal
384
+ permission to copy, distribute and/or modify the library.
385
+
386
+ To protect each distributor, we want to make it very clear that
387
+ there is no warranty for the free library. Also, if the library is
388
+ modified by someone else and passed on, the recipients should know
389
+ that what they have is not the original version, so that the original
390
+ author's reputation will not be affected by problems that might be
391
+ introduced by others.
392
+
393
+ Finally, software patents pose a constant threat to the existence of
394
+ any free program. We wish to make sure that a company cannot
395
+ effectively restrict the users of a free program by obtaining a
396
+ restrictive license from a patent holder. Therefore, we insist that
397
+ any patent license obtained for a version of the library must be
398
+ consistent with the full freedom of use specified in this license.
399
+
400
+ Most GNU software, including some libraries, is covered by the
401
+ ordinary GNU General Public License. This license, the GNU Lesser
402
+ General Public License, applies to certain designated libraries, and
403
+ is quite different from the ordinary General Public License. We use
404
+ this license for certain libraries in order to permit linking those
405
+ libraries into non-free programs.
406
+
407
+ When a program is linked with a library, whether statically or using
408
+ a shared library, the combination of the two is legally speaking a
409
+ combined work, a derivative of the original library. The ordinary
410
+ General Public License therefore permits such linking only if the
411
+ entire combination fits its criteria of freedom. The Lesser General
412
+ Public License permits more lax criteria for linking other code with
413
+ the library.
414
+
415
+ We call this license the "Lesser" General Public License because it
416
+ does Less to protect the user's freedom than the ordinary General
417
+ Public License. It also provides other free software developers Less
418
+ of an advantage over competing non-free programs. These disadvantages
419
+ are the reason we use the ordinary General Public License for many
420
+ libraries. However, the Lesser license provides advantages in certain
421
+ special circumstances.
422
+
423
+ For example, on rare occasions, there may be a special need to
424
+ encourage the widest possible use of a certain library, so that it becomes
425
+ a de-facto standard. To achieve this, non-free programs must be
426
+ allowed to use the library. A more frequent case is that a free
427
+ library does the same job as widely used non-free libraries. In this
428
+ case, there is little to gain by limiting the free library to free
429
+ software only, so we use the Lesser General Public License.
430
+
431
+ In other cases, permission to use a particular library in non-free
432
+ programs enables a greater number of people to use a large body of
433
+ free software. For example, permission to use the GNU C Library in
434
+ non-free programs enables many more people to use the whole GNU
435
+ operating system, as well as its variant, the GNU/Linux operating
436
+ system.
437
+
438
+ Although the Lesser General Public License is Less protective of the
439
+ users' freedom, it does ensure that the user of a program that is
440
+ linked with the Library has the freedom and the wherewithal to run
441
+ that program using a modified version of the Library.
442
+
443
+ The precise terms and conditions for copying, distribution and
444
+ modification follow. Pay close attention to the difference between a
445
+ "work based on the library" and a "work that uses the library". The
446
+ former contains code derived from the library, whereas the latter must
447
+ be combined with the library in order to run.
448
+
449
+ GNU LESSER GENERAL PUBLIC LICENSE
450
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
451
+
452
+ 0. This License Agreement applies to any software library or other
453
+ program which contains a notice placed by the copyright holder or
454
+ other authorized party saying it may be distributed under the terms of
455
+ this Lesser General Public License (also called "this License").
456
+ Each licensee is addressed as "you".
457
+
458
+ A "library" means a collection of software functions and/or data
459
+ prepared so as to be conveniently linked with application programs
460
+ (which use some of those functions and data) to form executables.
461
+
462
+ The "Library", below, refers to any such software library or work
463
+ which has been distributed under these terms. A "work based on the
464
+ Library" means either the Library or any derivative work under
465
+ copyright law: that is to say, a work containing the Library or a
466
+ portion of it, either verbatim or with modifications and/or translated
467
+ straightforwardly into another language. (Hereinafter, translation is
468
+ included without limitation in the term "modification".)
469
+
470
+ "Source code" for a work means the preferred form of the work for
471
+ making modifications to it. For a library, complete source code means
472
+ all the source code for all modules it contains, plus any associated
473
+ interface definition files, plus the scripts used to control compilation
474
+ and installation of the library.
475
+
476
+ Activities other than copying, distribution and modification are not
477
+ covered by this License; they are outside its scope. The act of
478
+ running a program using the Library is not restricted, and output from
479
+ such a program is covered only if its contents constitute a work based
480
+ on the Library (independent of the use of the Library in a tool for
481
+ writing it). Whether that is true depends on what the Library does
482
+ and what the program that uses the Library does.
483
+
484
+ 1. You may copy and distribute verbatim copies of the Library's
485
+ complete source code as you receive it, in any medium, provided that
486
+ you conspicuously and appropriately publish on each copy an
487
+ appropriate copyright notice and disclaimer of warranty; keep intact
488
+ all the notices that refer to this License and to the absence of any
489
+ warranty; and distribute a copy of this License along with the
490
+ Library.
491
+
492
+ You may charge a fee for the physical act of transferring a copy,
493
+ and you may at your option offer warranty protection in exchange for a
494
+ fee.
495
+
496
+ 2. You may modify your copy or copies of the Library or any portion
497
+ of it, thus forming a work based on the Library, and copy and
498
+ distribute such modifications or work under the terms of Section 1
499
+ above, provided that you also meet all of these conditions:
500
+
501
+ a) The modified work must itself be a software library.
502
+
503
+ b) You must cause the files modified to carry prominent notices
504
+ stating that you changed the files and the date of any change.
505
+
506
+ c) You must cause the whole of the work to be licensed at no
507
+ charge to all third parties under the terms of this License.
508
+
509
+ d) If a facility in the modified Library refers to a function or a
510
+ table of data to be supplied by an application program that uses
511
+ the facility, other than as an argument passed when the facility
512
+ is invoked, then you must make a good faith effort to ensure that,
513
+ in the event an application does not supply such function or
514
+ table, the facility still operates, and performs whatever part of
515
+ its purpose remains meaningful.
516
+
517
+ (For example, a function in a library to compute square roots has
518
+ a purpose that is entirely well-defined independent of the
519
+ application. Therefore, Subsection 2d requires that any
520
+ application-supplied function or table used by this function must
521
+ be optional: if the application does not supply it, the square
522
+ root function must still compute square roots.)
523
+
524
+ These requirements apply to the modified work as a whole. If
525
+ identifiable sections of that work are not derived from the Library,
526
+ and can be reasonably considered independent and separate works in
527
+ themselves, then this License, and its terms, do not apply to those
528
+ sections when you distribute them as separate works. But when you
529
+ distribute the same sections as part of a whole which is a work based
530
+ on the Library, the distribution of the whole must be on the terms of
531
+ this License, whose permissions for other licensees extend to the
532
+ entire whole, and thus to each and every part regardless of who wrote
533
+ it.
534
+
535
+ Thus, it is not the intent of this section to claim rights or contest
536
+ your rights to work written entirely by you; rather, the intent is to
537
+ exercise the right to control the distribution of derivative or
538
+ collective works based on the Library.
539
+
540
+ In addition, mere aggregation of another work not based on the Library
541
+ with the Library (or with a work based on the Library) on a volume of
542
+ a storage or distribution medium does not bring the other work under
543
+ the scope of this License.
544
+
545
+ 3. You may opt to apply the terms of the ordinary GNU General Public
546
+ License instead of this License to a given copy of the Library. To do
547
+ this, you must alter all the notices that refer to this License, so
548
+ that they refer to the ordinary GNU General Public License, version 2,
549
+ instead of to this License. (If a newer version than version 2 of the
550
+ ordinary GNU General Public License has appeared, then you can specify
551
+ that version instead if you wish.) Do not make any other change in
552
+ these notices.
553
+
554
+ Once this change is made in a given copy, it is irreversible for
555
+ that copy, so the ordinary GNU General Public License applies to all
556
+ subsequent copies and derivative works made from that copy.
557
+
558
+ This option is useful when you wish to copy part of the code of
559
+ the Library into a program that is not a library.
560
+
561
+ 4. You may copy and distribute the Library (or a portion or
562
+ derivative of it, under Section 2) in object code or executable form
563
+ under the terms of Sections 1 and 2 above provided that you accompany
564
+ it with the complete corresponding machine-readable source code, which
565
+ must be distributed under the terms of Sections 1 and 2 above on a
566
+ medium customarily used for software interchange.
567
+
568
+ If distribution of object code is made by offering access to copy
569
+ from a designated place, then offering equivalent access to copy the
570
+ source code from the same place satisfies the requirement to
571
+ distribute the source code, even though third parties are not
572
+ compelled to copy the source along with the object code.
573
+
574
+ 5. A program that contains no derivative of any portion of the
575
+ Library, but is designed to work with the Library by being compiled or
576
+ linked with it, is called a "work that uses the Library". Such a
577
+ work, in isolation, is not a derivative work of the Library, and
578
+ therefore falls outside the scope of this License.
579
+
580
+ However, linking a "work that uses the Library" with the Library
581
+ creates an executable that is a derivative of the Library (because it
582
+ contains portions of the Library), rather than a "work that uses the
583
+ library". The executable is therefore covered by this License.
584
+ Section 6 states terms for distribution of such executables.
585
+
586
+ When a "work that uses the Library" uses material from a header file
587
+ that is part of the Library, the object code for the work may be a
588
+ derivative work of the Library even though the source code is not.
589
+ Whether this is true is especially significant if the work can be
590
+ linked without the Library, or if the work is itself a library. The
591
+ threshold for this to be true is not precisely defined by law.
592
+
593
+ If such an object file uses only numerical parameters, data
594
+ structure layouts and accessors, and small macros and small inline
595
+ functions (ten lines or less in length), then the use of the object
596
+ file is unrestricted, regardless of whether it is legally a derivative
597
+ work. (Executables containing this object code plus portions of the
598
+ Library will still fall under Section 6.)
599
+
600
+ Otherwise, if the work is a derivative of the Library, you may
601
+ distribute the object code for the work under the terms of Section 6.
602
+ Any executables containing that work also fall under Section 6,
603
+ whether or not they are linked directly with the Library itself.
604
+
605
+ 6. As an exception to the Sections above, you may also combine or
606
+ link a "work that uses the Library" with the Library to produce a
607
+ work containing portions of the Library, and distribute that work
608
+ under terms of your choice, provided that the terms permit
609
+ modification of the work for the customer's own use and reverse
610
+ engineering for debugging such modifications.
611
+
612
+ You must give prominent notice with each copy of the work that the
613
+ Library is used in it and that the Library and its use are covered by
614
+ this License. You must supply a copy of this License. If the work
615
+ during execution displays copyright notices, you must include the
616
+ copyright notice for the Library among them, as well as a reference
617
+ directing the user to the copy of this License. Also, you must do one
618
+ of these things:
619
+
620
+ a) Accompany the work with the complete corresponding
621
+ machine-readable source code for the Library including whatever
622
+ changes were used in the work (which must be distributed under
623
+ Sections 1 and 2 above); and, if the work is an executable linked
624
+ with the Library, with the complete machine-readable "work that
625
+ uses the Library", as object code and/or source code, so that the
626
+ user can modify the Library and then relink to produce a modified
627
+ executable containing the modified Library. (It is understood
628
+ that the user who changes the contents of definitions files in the
629
+ Library will not necessarily be able to recompile the application
630
+ to use the modified definitions.)
631
+
632
+ b) Use a suitable shared library mechanism for linking with the
633
+ Library. A suitable mechanism is one that (1) uses at run time a
634
+ copy of the library already present on the user's computer system,
635
+ rather than copying library functions into the executable, and (2)
636
+ will operate properly with a modified version of the library, if
637
+ the user installs one, as long as the modified version is
638
+ interface-compatible with the version that the work was made with.
639
+
640
+ c) Accompany the work with a written offer, valid for at
641
+ least three years, to give the same user the materials
642
+ specified in Subsection 6a, above, for a charge no more
643
+ than the cost of performing this distribution.
644
+
645
+ d) If distribution of the work is made by offering access to copy
646
+ from a designated place, offer equivalent access to copy the above
647
+ specified materials from the same place.
648
+
649
+ e) Verify that the user has already received a copy of these
650
+ materials or that you have already sent this user a copy.
651
+
652
+ For an executable, the required form of the "work that uses the
653
+ Library" must include any data and utility programs needed for
654
+ reproducing the executable from it. However, as a special exception,
655
+ the materials to be distributed need not include anything that is
656
+ normally distributed (in either source or binary form) with the major
657
+ components (compiler, kernel, and so on) of the operating system on
658
+ which the executable runs, unless that component itself accompanies
659
+ the executable.
660
+
661
+ It may happen that this requirement contradicts the license
662
+ restrictions of other proprietary libraries that do not normally
663
+ accompany the operating system. Such a contradiction means you cannot
664
+ use both them and the Library together in an executable that you
665
+ distribute.
666
+
667
+ 7. You may place library facilities that are a work based on the
668
+ Library side-by-side in a single library together with other library
669
+ facilities not covered by this License, and distribute such a combined
670
+ library, provided that the separate distribution of the work based on
671
+ the Library and of the other library facilities is otherwise
672
+ permitted, and provided that you do these two things:
673
+
674
+ a) Accompany the combined library with a copy of the same work
675
+ based on the Library, uncombined with any other library
676
+ facilities. This must be distributed under the terms of the
677
+ Sections above.
678
+
679
+ b) Give prominent notice with the combined library of the fact
680
+ that part of it is a work based on the Library, and explaining
681
+ where to find the accompanying uncombined form of the same work.
682
+
683
+ 8. You may not copy, modify, sublicense, link with, or distribute
684
+ the Library except as expressly provided under this License. Any
685
+ attempt otherwise to copy, modify, sublicense, link with, or
686
+ distribute the Library is void, and will automatically terminate your
687
+ rights under this License. However, parties who have received copies,
688
+ or rights, from you under this License will not have their licenses
689
+ terminated so long as such parties remain in full compliance.
690
+
691
+ 9. You are not required to accept this License, since you have not
692
+ signed it. However, nothing else grants you permission to modify or
693
+ distribute the Library or its derivative works. These actions are
694
+ prohibited by law if you do not accept this License. Therefore, by
695
+ modifying or distributing the Library (or any work based on the
696
+ Library), you indicate your acceptance of this License to do so, and
697
+ all its terms and conditions for copying, distributing or modifying
698
+ the Library or works based on it.
699
+
700
+ 10. Each time you redistribute the Library (or any work based on the
701
+ Library), the recipient automatically receives a license from the
702
+ original licensor to copy, distribute, link with or modify the Library
703
+ subject to these terms and conditions. You may not impose any further
704
+ restrictions on the recipients' exercise of the rights granted herein.
705
+ You are not responsible for enforcing compliance by third parties with
706
+ this License.
707
+
708
+ 11. If, as a consequence of a court judgment or allegation of patent
709
+ infringement or for any other reason (not limited to patent issues),
710
+ conditions are imposed on you (whether by court order, agreement or
711
+ otherwise) that contradict the conditions of this License, they do not
712
+ excuse you from the conditions of this License. If you cannot
713
+ distribute so as to satisfy simultaneously your obligations under this
714
+ License and any other pertinent obligations, then as a consequence you
715
+ may not distribute the Library at all. For example, if a patent
716
+ license would not permit royalty-free redistribution of the Library by
717
+ all those who receive copies directly or indirectly through you, then
718
+ the only way you could satisfy both it and this License would be to
719
+ refrain entirely from distribution of the Library.
720
+
721
+ If any portion of this section is held invalid or unenforceable under any
722
+ particular circumstance, the balance of the section is intended to apply,
723
+ and the section as a whole is intended to apply in other circumstances.
724
+
725
+ It is not the purpose of this section to induce you to infringe any
726
+ patents or other property right claims or to contest validity of any
727
+ such claims; this section has the sole purpose of protecting the
728
+ integrity of the free software distribution system which is
729
+ implemented by public license practices. Many people have made
730
+ generous contributions to the wide range of software distributed
731
+ through that system in reliance on consistent application of that
732
+ system; it is up to the author/donor to decide if he or she is willing
733
+ to distribute software through any other system and a licensee cannot
734
+ impose that choice.
735
+
736
+ This section is intended to make thoroughly clear what is believed to
737
+ be a consequence of the rest of this License.
738
+
739
+ 12. If the distribution and/or use of the Library is restricted in
740
+ certain countries either by patents or by copyrighted interfaces, the
741
+ original copyright holder who places the Library under this License may add
742
+ an explicit geographical distribution limitation excluding those countries,
743
+ so that distribution is permitted only in or among countries not thus
744
+ excluded. In such case, this License incorporates the limitation as if
745
+ written in the body of this License.
746
+
747
+ 13. The Free Software Foundation may publish revised and/or new
748
+ versions of the Lesser General Public License from time to time.
749
+ Such new versions will be similar in spirit to the present version,
750
+ but may differ in detail to address new problems or concerns.
751
+
752
+ Each version is given a distinguishing version number. If the Library
753
+ specifies a version number of this License which applies to it and
754
+ "any later version", you have the option of following the terms and
755
+ conditions either of that version or of any later version published by
756
+ the Free Software Foundation. If the Library does not specify a
757
+ license version number, you may choose any version ever published by
758
+ the Free Software Foundation.
759
+
760
+ 14. If you wish to incorporate parts of the Library into other free
761
+ programs whose distribution conditions are incompatible with these,
762
+ write to the author to ask for permission. For software which is
763
+ copyrighted by the Free Software Foundation, write to the Free
764
+ Software Foundation; we sometimes make exceptions for this. Our
765
+ decision will be guided by the two goals of preserving the free status
766
+ of all derivatives of our free software and of promoting the sharing
767
+ and reuse of software generally.
768
+
769
+ NO WARRANTY
770
+
771
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
772
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
773
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
774
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
775
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
776
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
777
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
778
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
779
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
780
+
781
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
782
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
783
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
784
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
785
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
786
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
787
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
788
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
789
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
790
+ DAMAGES.
791
+
792
+ END OF TERMS AND CONDITIONS
793
+
794
+
795
+ Appendix C: The MPL License
796
+ ---------------------------
797
+
798
+ MOZILLA PUBLIC LICENSE
799
+ Version 1.1
800
+
801
+ 1. Definitions.
802
+
803
+ 1.0.1. "Commercial Use" means distribution or otherwise making the
804
+ Covered Code available to a third party.
805
+
806
+ 1.1. "Contributor" means each entity that creates or contributes to
807
+ the creation of Modifications.
808
+
809
+ 1.2. "Contributor Version" means the combination of the Original
810
+ Code, prior Modifications used by a Contributor, and the Modifications
811
+ made by that particular Contributor.
812
+
813
+ 1.3. "Covered Code" means the Original Code or Modifications or the
814
+ combination of the Original Code and Modifications, in each case
815
+ including portions thereof.
816
+
817
+ 1.4. "Electronic Distribution Mechanism" means a mechanism generally
818
+ accepted in the software development community for the electronic
819
+ transfer of data.
820
+
821
+ 1.5. "Executable" means Covered Code in any form other than Source
822
+ Code.
823
+
824
+ 1.6. "Initial Developer" means the individual or entity identified
825
+ as the Initial Developer in the Source Code notice required by Exhibit
826
+ A.
827
+
828
+ 1.7. "Larger Work" means a work which combines Covered Code or
829
+ portions thereof with code not governed by the terms of this License.
830
+
831
+ 1.8. "License" means this document.
832
+
833
+ 1.8.1. "Licensable" means having the right to grant, to the maximum
834
+ extent possible, whether at the time of the initial grant or
835
+ subsequently acquired, any and all of the rights conveyed herein.
836
+
837
+ 1.9. "Modifications" means any addition to or deletion from the
838
+ substance or structure of either the Original Code or any previous
839
+ Modifications. When Covered Code is released as a series of files, a
840
+ Modification is:
841
+ A. Any addition to or deletion from the contents of a file
842
+ containing Original Code or previous Modifications.
843
+
844
+ B. Any new file that contains any part of the Original Code or
845
+ previous Modifications.
846
+
847
+ 1.10. "Original Code" means Source Code of computer software code
848
+ which is described in the Source Code notice required by Exhibit A as
849
+ Original Code, and which, at the time of its release under this
850
+ License is not already Covered Code governed by this License.
851
+
852
+ 1.10.1. "Patent Claims" means any patent claim(s), now owned or
853
+ hereafter acquired, including without limitation, method, process,
854
+ and apparatus claims, in any patent Licensable by grantor.
855
+
856
+ 1.11. "Source Code" means the preferred form of the Covered Code for
857
+ making modifications to it, including all modules it contains, plus
858
+ any associated interface definition files, scripts used to control
859
+ compilation and installation of an Executable, or source code
860
+ differential comparisons against either the Original Code or another
861
+ well known, available Covered Code of the Contributor's choice. The
862
+ Source Code can be in a compressed or archival form, provided the
863
+ appropriate decompression or de-archiving software is widely available
864
+ for no charge.
865
+
866
+ 1.12. "You" (or "Your") means an individual or a legal entity
867
+ exercising rights under, and complying with all of the terms of, this
868
+ License or a future version of this License issued under Section 6.1.
869
+ For legal entities, "You" includes any entity which controls, is
870
+ controlled by, or is under common control with You. For purposes of
871
+ this definition, "control" means (a) the power, direct or indirect,
872
+ to cause the direction or management of such entity, whether by
873
+ contract or otherwise, or (b) ownership of more than fifty percent
874
+ (50%) of the outstanding shares or beneficial ownership of such
875
+ entity.
876
+
877
+ 2. Source Code License.
878
+
879
+ 2.1. The Initial Developer Grant.
880
+ The Initial Developer hereby grants You a world-wide, royalty-free,
881
+ non-exclusive license, subject to third party intellectual property
882
+ claims:
883
+ (a) under intellectual property rights (other than patent or
884
+ trademark) Licensable by Initial Developer to use, reproduce,
885
+ modify, display, perform, sublicense and distribute the Original
886
+ Code (or portions thereof) with or without Modifications, and/or
887
+ as part of a Larger Work; and
888
+
889
+ (b) under Patents Claims infringed by the making, using or
890
+ selling of Original Code, to make, have made, use, practice,
891
+ sell, and offer for sale, and/or otherwise dispose of the
892
+ Original Code (or portions thereof).
893
+
894
+ (c) the licenses granted in this Section 2.1(a) and (b) are
895
+ effective on the date Initial Developer first distributes
896
+ Original Code under the terms of this License.
897
+
898
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
899
+ granted: 1) for code that You delete from the Original Code; 2)
900
+ separate from the Original Code; or 3) for infringements caused
901
+ by: i) the modification of the Original Code or ii) the
902
+ combination of the Original Code with other software or devices.
903
+
904
+ 2.2. Contributor Grant.
905
+ Subject to third party intellectual property claims, each Contributor
906
+ hereby grants You a world-wide, royalty-free, non-exclusive license
907
+
908
+ (a) under intellectual property rights (other than patent or
909
+ trademark) Licensable by Contributor, to use, reproduce, modify,
910
+ display, perform, sublicense and distribute the Modifications
911
+ created by such Contributor (or portions thereof) either on an
912
+ unmodified basis, with other Modifications, as Covered Code
913
+ and/or as part of a Larger Work; and
914
+
915
+ (b) under Patent Claims infringed by the making, using, or
916
+ selling of Modifications made by that Contributor either alone
917
+ and/or in combination with its Contributor Version (or portions
918
+ of such combination), to make, use, sell, offer for sale, have
919
+ made, and/or otherwise dispose of: 1) Modifications made by that
920
+ Contributor (or portions thereof); and 2) the combination of
921
+ Modifications made by that Contributor with its Contributor
922
+ Version (or portions of such combination).
923
+
924
+ (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
925
+ effective on the date Contributor first makes Commercial Use of
926
+ the Covered Code.
927
+
928
+ (d) Notwithstanding Section 2.2(b) above, no patent license is
929
+ granted: 1) for any code that Contributor has deleted from the
930
+ Contributor Version; 2) separate from the Contributor Version;
931
+ 3) for infringements caused by: i) third party modifications of
932
+ Contributor Version or ii) the combination of Modifications made
933
+ by that Contributor with other software (except as part of the
934
+ Contributor Version) or other devices; or 4) under Patent Claims
935
+ infringed by Covered Code in the absence of Modifications made by
936
+ that Contributor.
937
+
938
+ 3. Distribution Obligations.
939
+
940
+ 3.1. Application of License.
941
+ The Modifications which You create or to which You contribute are
942
+ governed by the terms of this License, including without limitation
943
+ Section 2.2. The Source Code version of Covered Code may be
944
+ distributed only under the terms of this License or a future version
945
+ of this License released under Section 6.1, and You must include a
946
+ copy of this License with every copy of the Source Code You
947
+ distribute. You may not offer or impose any terms on any Source Code
948
+ version that alters or restricts the applicable version of this
949
+ License or the recipients' rights hereunder. However, You may include
950
+ an additional document offering the additional rights described in
951
+ Section 3.5.
952
+
953
+ 3.2. Availability of Source Code.
954
+ Any Modification which You create or to which You contribute must be
955
+ made available in Source Code form under the terms of this License
956
+ either on the same media as an Executable version or via an accepted
957
+ Electronic Distribution Mechanism to anyone to whom you made an
958
+ Executable version available; and if made available via Electronic
959
+ Distribution Mechanism, must remain available for at least twelve (12)
960
+ months after the date it initially became available, or at least six
961
+ (6) months after a subsequent version of that particular Modification
962
+ has been made available to such recipients. You are responsible for
963
+ ensuring that the Source Code version remains available even if the
964
+ Electronic Distribution Mechanism is maintained by a third party.
965
+
966
+ 3.3. Description of Modifications.
967
+ You must cause all Covered Code to which You contribute to contain a
968
+ file documenting the changes You made to create that Covered Code and
969
+ the date of any change. You must include a prominent statement that
970
+ the Modification is derived, directly or indirectly, from Original
971
+ Code provided by the Initial Developer and including the name of the
972
+ Initial Developer in (a) the Source Code, and (b) in any notice in an
973
+ Executable version or related documentation in which You describe the
974
+ origin or ownership of the Covered Code.
975
+
976
+ 3.4. Intellectual Property Matters
977
+ (a) Third Party Claims.
978
+ If Contributor has knowledge that a license under a third party's
979
+ intellectual property rights is required to exercise the rights
980
+ granted by such Contributor under Sections 2.1 or 2.2,
981
+ Contributor must include a text file with the Source Code
982
+ distribution titled "LEGAL" which describes the claim and the
983
+ party making the claim in sufficient detail that a recipient will
984
+ know whom to contact. If Contributor obtains such knowledge after
985
+ the Modification is made available as described in Section 3.2,
986
+ Contributor shall promptly modify the LEGAL file in all copies
987
+ Contributor makes available thereafter and shall take other steps
988
+ (such as notifying appropriate mailing lists or newsgroups)
989
+ reasonably calculated to inform those who received the Covered
990
+ Code that new knowledge has been obtained.
991
+
992
+ (b) Contributor APIs.
993
+ If Contributor's Modifications include an application programming
994
+ interface and Contributor has knowledge of patent licenses which
995
+ are reasonably necessary to implement that API, Contributor must
996
+ also include this information in the LEGAL file.
997
+
998
+ (c) Representations.
999
+ Contributor represents that, except as disclosed pursuant to
1000
+ Section 3.4(a) above, Contributor believes that Contributor's
1001
+ Modifications are Contributor's original creation(s) and/or
1002
+ Contributor has sufficient rights to grant the rights conveyed by
1003
+ this License.
1004
+
1005
+ 3.5. Required Notices.
1006
+ You must duplicate the notice in Exhibit A in each file of the Source
1007
+ Code. If it is not possible to put such notice in a particular Source
1008
+ Code file due to its structure, then You must include such notice in a
1009
+ location (such as a relevant directory) where a user would be likely
1010
+ to look for such a notice. If You created one or more Modification(s)
1011
+ You may add your name as a Contributor to the notice described in
1012
+ Exhibit A. You must also duplicate this License in any documentation
1013
+ for the Source Code where You describe recipients' rights or ownership
1014
+ rights relating to Covered Code. You may choose to offer, and to
1015
+ charge a fee for, warranty, support, indemnity or liability
1016
+ obligations to one or more recipients of Covered Code. However, You
1017
+ may do so only on Your own behalf, and not on behalf of the Initial
1018
+ Developer or any Contributor. You must make it absolutely clear than
1019
+ any such warranty, support, indemnity or liability obligation is
1020
+ offered by You alone, and You hereby agree to indemnify the Initial
1021
+ Developer and every Contributor for any liability incurred by the
1022
+ Initial Developer or such Contributor as a result of warranty,
1023
+ support, indemnity or liability terms You offer.
1024
+
1025
+ 3.6. Distribution of Executable Versions.
1026
+ You may distribute Covered Code in Executable form only if the
1027
+ requirements of Section 3.1-3.5 have been met for that Covered Code,
1028
+ and if You include a notice stating that the Source Code version of
1029
+ the Covered Code is available under the terms of this License,
1030
+ including a description of how and where You have fulfilled the
1031
+ obligations of Section 3.2. The notice must be conspicuously included
1032
+ in any notice in an Executable version, related documentation or
1033
+ collateral in which You describe recipients' rights relating to the
1034
+ Covered Code. You may distribute the Executable version of Covered
1035
+ Code or ownership rights under a license of Your choice, which may
1036
+ contain terms different from this License, provided that You are in
1037
+ compliance with the terms of this License and that the license for the
1038
+ Executable version does not attempt to limit or alter the recipient's
1039
+ rights in the Source Code version from the rights set forth in this
1040
+ License. If You distribute the Executable version under a different
1041
+ license You must make it absolutely clear that any terms which differ
1042
+ from this License are offered by You alone, not by the Initial
1043
+ Developer or any Contributor. You hereby agree to indemnify the
1044
+ Initial Developer and every Contributor for any liability incurred by
1045
+ the Initial Developer or such Contributor as a result of any such
1046
+ terms You offer.
1047
+
1048
+ 3.7. Larger Works.
1049
+ You may create a Larger Work by combining Covered Code with other code
1050
+ not governed by the terms of this License and distribute the Larger
1051
+ Work as a single product. In such a case, You must make sure the
1052
+ requirements of this License are fulfilled for the Covered Code.
1053
+
1054
+ 4. Inability to Comply Due to Statute or Regulation.
1055
+
1056
+ If it is impossible for You to comply with any of the terms of this
1057
+ License with respect to some or all of the Covered Code due to
1058
+ statute, judicial order, or regulation then You must: (a) comply with
1059
+ the terms of this License to the maximum extent possible; and (b)
1060
+ describe the limitations and the code they affect. Such description
1061
+ must be included in the LEGAL file described in Section 3.4 and must
1062
+ be included with all distributions of the Source Code. Except to the
1063
+ extent prohibited by statute or regulation, such description must be
1064
+ sufficiently detailed for a recipient of ordinary skill to be able to
1065
+ understand it.
1066
+
1067
+ 5. Application of this License.
1068
+
1069
+ This License applies to code to which the Initial Developer has
1070
+ attached the notice in Exhibit A and to related Covered Code.
1071
+
1072
+ 6. Versions of the License.
1073
+
1074
+ 6.1. New Versions.
1075
+ Netscape Communications Corporation ("Netscape") may publish revised
1076
+ and/or new versions of the License from time to time. Each version
1077
+ will be given a distinguishing version number.
1078
+
1079
+ 6.2. Effect of New Versions.
1080
+ Once Covered Code has been published under a particular version of the
1081
+ License, You may always continue to use it under the terms of that
1082
+ version. You may also choose to use such Covered Code under the terms
1083
+ of any subsequent version of the License published by Netscape. No one
1084
+ other than Netscape has the right to modify the terms applicable to
1085
+ Covered Code created under this License.
1086
+
1087
+ 6.3. Derivative Works.
1088
+ If You create or use a modified version of this License (which you may
1089
+ only do in order to apply it to code which is not already Covered Code
1090
+ governed by this License), You must (a) rename Your license so that
1091
+ the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
1092
+ "MPL", "NPL" or any confusingly similar phrase do not appear in your
1093
+ license (except to note that your license differs from this License)
1094
+ and (b) otherwise make it clear that Your version of the license
1095
+ contains terms which differ from the Mozilla Public License and
1096
+ Netscape Public License. (Filling in the name of the Initial
1097
+ Developer, Original Code or Contributor in the notice described in
1098
+ Exhibit A shall not of themselves be deemed to be modifications of
1099
+ this License.)
1100
+
1101
+ 7. DISCLAIMER OF WARRANTY.
1102
+
1103
+ COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
1104
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
1105
+ WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
1106
+ DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
1107
+ THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
1108
+ IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
1109
+ YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
1110
+ COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
1111
+ OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
1112
+ ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
1113
+
1114
+ 8. TERMINATION.
1115
+
1116
+ 8.1. This License and the rights granted hereunder will terminate
1117
+ automatically if You fail to comply with terms herein and fail to cure
1118
+ such breach within 30 days of becoming aware of the breach. All
1119
+ sublicenses to the Covered Code which are properly granted shall
1120
+ survive any termination of this License. Provisions which, by their
1121
+ nature, must remain in effect beyond the termination of this License
1122
+ shall survive.
1123
+
1124
+ 8.2. If You initiate litigation by asserting a patent infringement
1125
+ claim (excluding declatory judgment actions) against Initial Developer
1126
+ or a Contributor (the Initial Developer or Contributor against whom
1127
+ You file such action is referred to as "Participant") alleging that:
1128
+
1129
+ (a) such Participant's Contributor Version directly or indirectly
1130
+ infringes any patent, then any and all rights granted by such
1131
+ Participant to You under Sections 2.1 and/or 2.2 of this License
1132
+ shall, upon 60 days notice from Participant terminate prospectively,
1133
+ unless if within 60 days after receipt of notice You either: (i)
1134
+ agree in writing to pay Participant a mutually agreeable reasonable
1135
+ royalty for Your past and future use of Modifications made by such
1136
+ Participant, or (ii) withdraw Your litigation claim with respect to
1137
+ the Contributor Version against such Participant. If within 60 days
1138
+ of notice, a reasonable royalty and payment arrangement are not
1139
+ mutually agreed upon in writing by the parties or the litigation claim
1140
+ is not withdrawn, the rights granted by Participant to You under
1141
+ Sections 2.1 and/or 2.2 automatically terminate at the expiration of
1142
+ the 60 day notice period specified above.
1143
+
1144
+ (b) any software, hardware, or device, other than such Participant's
1145
+ Contributor Version, directly or indirectly infringes any patent, then
1146
+ any rights granted to You by such Participant under Sections 2.1(b)
1147
+ and 2.2(b) are revoked effective as of the date You first made, used,
1148
+ sold, distributed, or had made, Modifications made by that
1149
+ Participant.
1150
+
1151
+ 8.3. If You assert a patent infringement claim against Participant
1152
+ alleging that such Participant's Contributor Version directly or
1153
+ indirectly infringes any patent where such claim is resolved (such as
1154
+ by license or settlement) prior to the initiation of patent
1155
+ infringement litigation, then the reasonable value of the licenses
1156
+ granted by such Participant under Sections 2.1 or 2.2 shall be taken
1157
+ into account in determining the amount or value of any payment or
1158
+ license.
1159
+
1160
+ 8.4. In the event of termination under Sections 8.1 or 8.2 above,
1161
+ all end user license agreements (excluding distributors and resellers)
1162
+ which have been validly granted by You or any distributor hereunder
1163
+ prior to termination shall survive termination.
1164
+
1165
+ 9. LIMITATION OF LIABILITY.
1166
+
1167
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
1168
+ (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
1169
+ DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
1170
+ OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
1171
+ ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
1172
+ CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
1173
+ WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
1174
+ COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
1175
+ INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
1176
+ LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
1177
+ RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
1178
+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
1179
+ EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
1180
+ THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
1181
+
1182
+ 10. U.S. GOVERNMENT END USERS.
1183
+
1184
+ The Covered Code is a "commercial item," as that term is defined in
1185
+ 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
1186
+ software" and "commercial computer software documentation," as such
1187
+ terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
1188
+ C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
1189
+ all U.S. Government End Users acquire Covered Code with only those
1190
+ rights set forth herein.
1191
+
1192
+ 11. MISCELLANEOUS.
1193
+
1194
+ This License represents the complete agreement concerning subject
1195
+ matter hereof. If any provision of this License is held to be
1196
+ unenforceable, such provision shall be reformed only to the extent
1197
+ necessary to make it enforceable. This License shall be governed by
1198
+ California law provisions (except to the extent applicable law, if
1199
+ any, provides otherwise), excluding its conflict-of-law provisions.
1200
+ With respect to disputes in which at least one party is a citizen of,
1201
+ or an entity chartered or registered to do business in the United
1202
+ States of America, any litigation relating to this License shall be
1203
+ subject to the jurisdiction of the Federal Courts of the Northern
1204
+ District of California, with venue lying in Santa Clara County,
1205
+ California, with the losing party responsible for costs, including
1206
+ without limitation, court costs and reasonable attorneys' fees and
1207
+ expenses. The application of the United Nations Convention on
1208
+ Contracts for the International Sale of Goods is expressly excluded.
1209
+ Any law or regulation which provides that the language of a contract
1210
+ shall be construed against the drafter shall not apply to this
1211
+ License.
1212
+
1213
+ 12. RESPONSIBILITY FOR CLAIMS.
1214
+
1215
+ As between Initial Developer and the Contributors, each party is
1216
+ responsible for claims and damages arising, directly or indirectly,
1217
+ out of its utilization of rights under this License and You agree to
1218
+ work with Initial Developer and Contributors to distribute such
1219
+ responsibility on an equitable basis. Nothing herein is intended or
1220
+ shall be deemed to constitute any admission of liability.
1221
+
1222
+ 13. MULTIPLE-LICENSED CODE.
1223
+
1224
+ Initial Developer may designate portions of the Covered Code as
1225
+ "Multiple-Licensed". "Multiple-Licensed" means that the Initial
1226
+ Developer permits you to utilize portions of the Covered Code under
1227
+ Your choice of the NPL or the alternative licenses, if any, specified
1228
+ by the Initial Developer in the file described in Exhibit A.
1229
+
1230
+ EXHIBIT A -Mozilla Public License.
1231
+
1232
+ ``The contents of this file are subject to the Mozilla Public License
1233
+ Version 1.1 (the "License"); you may not use this file except in
1234
+ compliance with the License. You may obtain a copy of the License at
1235
+ http://www.mozilla.org/MPL/
1236
+
1237
+ Software distributed under the License is distributed on an "AS IS"
1238
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
1239
+ License for the specific language governing rights and limitations
1240
+ under the License.
1241
+
1242
+ The Original Code is ______________________________________.
1243
+
1244
+ The Initial Developer of the Original Code is ________________________.
1245
+ Portions created by ______________________ are Copyright (C) ______
1246
+ _______________________. All Rights Reserved.
1247
+
1248
+ Contributor(s): ______________________________________.
1249
+
1250
+ Alternatively, the contents of this file may be used under the terms
1251
+ of the _____ license (the "[___] License"), in which case the
1252
+ provisions of [______] License are applicable instead of those
1253
+ above. If you wish to allow use of your version of this file only
1254
+ under the terms of the [____] License and not to allow others to use
1255
+ your version of this file under the MPL, indicate your decision by
1256
+ deleting the provisions above and replace them with the notice and
1257
+ other provisions required by the [___] License. If you do not delete
1258
+ the provisions above, a recipient may use your version of this file
1259
+ under either the MPL or the [___] License."
1260
+
1261
+ [NOTE: The text of this Exhibit A may differ slightly from the text of
1262
+ the notices in the Source Code files of the Original Code. You should
1263
+ use the text of this Exhibit A rather than the text found in the
1264
+ Original Code Source Code for Your Modifications.]
wordpress-creation-kit-api/assets/js/ckeditor/README.md CHANGED
@@ -1,39 +1,39 @@
1
- CKEditor 4
2
- ==========
3
-
4
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
5
- http://ckeditor.com - See LICENSE.md for license information.
6
-
7
- CKEditor is a text editor to be used inside web pages. It's not a replacement
8
- for desktop text editors like Word or OpenOffice, but a component to be used as
9
- part of web applications and websites.
10
-
11
- ## Documentation
12
-
13
- The full editor documentation is available online at the following address:
14
- http://docs.ckeditor.com
15
-
16
- ## Installation
17
-
18
- Installing CKEditor is an easy task. Just follow these simple steps:
19
-
20
- 1. **Download** the latest version from the CKEditor website:
21
- http://ckeditor.com. You should have already completed this step, but be
22
- sure you have the very latest version.
23
- 2. **Extract** (decompress) the downloaded file into the root of your website.
24
-
25
- **Note:** CKEditor is by default installed in the `ckeditor` folder. You can
26
- place the files in whichever you want though.
27
-
28
- ## Checking Your Installation
29
-
30
- The editor comes with a few sample pages that can be used to verify that
31
- installation proceeded properly. Take a look at the `samples` directory.
32
-
33
- To test your installation, just call the following page at your website:
34
-
35
- http://<your site>/<CKEditor installation path>/samples/index.html
36
-
37
- For example:
38
-
39
- http://www.example.com/ckeditor/samples/index.html
1
+ CKEditor 4
2
+ ==========
3
+
4
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
5
+ http://ckeditor.com - See LICENSE.md for license information.
6
+
7
+ CKEditor is a text editor to be used inside web pages. It's not a replacement
8
+ for desktop text editors like Word or OpenOffice, but a component to be used as
9
+ part of web applications and websites.
10
+
11
+ ## Documentation
12
+
13
+ The full editor documentation is available online at the following address:
14
+ http://docs.ckeditor.com
15
+
16
+ ## Installation
17
+
18
+ Installing CKEditor is an easy task. Just follow these simple steps:
19
+
20
+ 1. **Download** the latest version from the CKEditor website:
21
+ http://ckeditor.com. You should have already completed this step, but be
22
+ sure you have the very latest version.
23
+ 2. **Extract** (decompress) the downloaded file into the root of your website.
24
+
25
+ **Note:** CKEditor is by default installed in the `ckeditor` folder. You can
26
+ place the files in whichever you want though.
27
+
28
+ ## Checking Your Installation
29
+
30
+ The editor comes with a few sample pages that can be used to verify that
31
+ installation proceeded properly. Take a look at the `samples` directory.
32
+
33
+ To test your installation, just call the following page at your website:
34
+
35
+ http://<your site>/<CKEditor installation path>/samples/index.html
36
+
37
+ For example:
38
+
39
+ http://www.example.com/ckeditor/samples/index.html
wordpress-creation-kit-api/assets/js/ckeditor/ckeditor.js CHANGED
@@ -1,904 +1,904 @@
1
- /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
- (function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;window.CKEDITOR||(window.CKEDITOR=function(){var a={timestamp:"E2PC",version:"4.3.4",revision:"40ccd20",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var b=window.CKEDITOR_BASEPATH||"";if(!b)for(var e=document.getElementsByTagName("script"),a=0;a<e.length;a++){var d=e[a].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(d){b=d[1];break}}-1==b.indexOf(":/")&&"//"!=b.slice(0,2)&&(b=0===b.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+
6
- b:location.href.match(/^[^\?]*\/(?:)/)[0]+b);if(!b)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return b}(),getUrl:function(b){-1==b.indexOf(":/")&&0!==b.indexOf("/")&&(b=this.basePath+b);this.timestamp&&("/"!=b.charAt(b.length-1)&&!/[&?]t=/.test(b))&&(b+=(0<=b.indexOf("?")?"&":"?")+"t="+this.timestamp);return b},domReady:function(){function b(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",
7
- b,!1),e()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",b),e())}catch(a){}}function e(){for(var e;e=a.shift();)e()}var a=[];return function(e){a.push(e);"complete"===document.readyState&&setTimeout(b,1);if(1==a.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",b,!1),window.addEventListener("load",b,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",b);window.attachEvent("onload",b);e=!1;try{e=
8
- !window.frameElement}catch(d){}if(document.documentElement.doScroll&&e){var h=function(){try{document.documentElement.doScroll("left")}catch(e){setTimeout(h,1);return}b()};h()}}}}()},d=window.CKEDITOR_GETURL;if(d){var b=a.getUrl;a.getUrl=function(c){return d.call(a,c)||b.call(a,c)}}return a}());
9
- CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var d=CKEDITOR.event.prototype,b;for(b in d)a[b]==void 0&&(a[b]=d[b])},CKEDITOR.event.prototype=function(){function a(a){var e=d(this);return e[a]||(e[a]=new b(a))}var d=function(b){b=b.getPrivate&&b.getPrivate()||b._||(b._={});return b.events||(b.events={})},b=function(b){this.name=b;this.listeners=[]};b.prototype={getListenerIndex:function(b){for(var e=0,a=this.listeners;e<a.length;e++)if(a[e].fn==b)return e;return-1}};
10
- return{define:function(b,e){var i=a.call(this,b);CKEDITOR.tools.extend(i,e,true)},on:function(b,e,i,d,l){function h(a,f,o,s){a={name:b,sender:this,editor:a,data:f,listenerData:d,stop:o,cancel:s,removeListener:k};return e.call(i,a)===false?false:a.data}function k(){s.removeListener(b,e)}var o=a.call(this,b);if(o.getListenerIndex(e)<0){o=o.listeners;i||(i=this);isNaN(l)&&(l=10);var s=this;h.fn=e;h.priority=l;for(var q=o.length-1;q>=0;q--)if(o[q].priority<=l){o.splice(q+1,0,h);return{removeListener:k}}o.unshift(h)}return{removeListener:k}},
11
- once:function(){var b=arguments[1];arguments[1]=function(e){e.removeListener();return b.apply(this,arguments)};return this.on.apply(this,arguments)},capture:function(){CKEDITOR.event.useCapture=1;var b=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return b},fire:function(){var b=0,e=function(){b=1},a=0,g=function(){a=1};return function(l,h,k){var o=d(this)[l],l=b,s=a;b=a=0;if(o){var q=o.listeners;if(q.length)for(var q=q.slice(0),u,f=0;f<q.length;f++){if(o.errorProof)try{u=q[f].call(this,
12
- k,h,e,g)}catch(p){}else u=q[f].call(this,k,h,e,g);u===false?a=1:typeof u!="undefined"&&(h=u);if(b||a)break}}h=a?false:typeof h=="undefined"?true:h;b=l;a=s;return h}}(),fireOnce:function(b,e,a){e=this.fire(b,e,a);delete d(this)[b];return e},removeListener:function(b,e){var a=d(this)[b];if(a){var g=a.getListenerIndex(e);g>=0&&a.listeners.splice(g,1)}},removeAllListeners:function(){var b=d(this),e;for(e in b)delete b[e]},hasListeners:function(b){return(b=d(this)[b])&&b.listeners.length>0}}}());
13
- CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,d){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,a,d,this)},CKEDITOR.editor.prototype.fireOnce=function(a,d){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,d,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype));
14
- CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),d=window.opera,b={ie:a.indexOf("trident/")>-1,opera:!!d&&d.version,webkit:a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")>-1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var b=document.domain,e=window.location.hostname;return b!=
15
- e&&b!="["+e+"]"},secure:location.protocol=="https:"};b.gecko=navigator.product=="Gecko"&&!b.webkit&&!b.opera&&!b.ie;if(b.webkit)a.indexOf("chrome")>-1?b.chrome=true:b.safari=true;var c=0;if(b.ie){c=b.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;b.ie9Compat=c==9;b.ie8Compat=c==8;b.ie7Compat=c==7;b.ie6Compat=c<7||b.quirks}if(b.gecko){var e=a.match(/rv:([\d\.]+)/);if(e){e=e[1].split(".");c=e[0]*1E4+(e[1]||0)*100+(e[2]||0)*1}}b.opera&&(c=parseFloat(d.version()));
16
- b.air&&(c=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(c=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));b.version=c;b.isCompatible=b.iOS&&c>=534||!b.mobile&&(b.ie&&c>6||b.gecko&&c>=10801||b.opera&&c>=9.5||b.air&&c>=1||b.webkit&&c>=522||false);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller=b.gecko||b.webkit||b.ie&&c>10;b.needsNbspFiller=b.ie&&c<11;b.cssClass="cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.opera?"opera":b.webkit?"webkit":"unknown");if(b.quirks)b.cssClass=b.cssClass+" cke_browser_quirks";
17
- if(b.ie){b.cssClass=b.cssClass+(" cke_browser_ie"+(b.quirks||b.version<7?"6":b.version));if(b.quirks)b.cssClass=b.cssClass+" cke_browser_iequirks"}if(b.gecko)if(c<10900)b.cssClass=b.cssClass+" cke_browser_gecko18";else if(c<=11E3)b.cssClass=b.cssClass+" cke_browser_gecko19";if(b.air)b.cssClass=b.cssClass+" cke_browser_air";if(b.iOS)b.cssClass=b.cssClass+" cke_browser_ios";if(b.hidpi)b.cssClass=b.cssClass+" cke_hidpi";return b}());
18
- "unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=
19
- CKEDITOR.loadFullCore,d=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status="basic_ready";a&&a._load?a():d&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},d*1E3)}})})();CKEDITOR.status="basic_loaded"}();CKEDITOR.dom={};
20
- (function(){var a=[],d=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.opera?"-o-":CKEDITOR.env.ie?"-ms-":"";CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(b,a){if(!b&&!a)return true;if(!b||!a||b.length!=a.length)return false;for(var e=0;e<b.length;e++)if(b[e]!=a[e])return false;return true},clone:function(b){var a;if(b&&b instanceof Array){a=[];for(var e=0;e<b.length;e++)a[e]=CKEDITOR.tools.clone(b[e]);return a}if(b===null||typeof b!="object"||
21
- b instanceof String||b instanceof Number||b instanceof Boolean||b instanceof Date||b instanceof RegExp)return b;a=new b.constructor;for(e in b)a[e]=CKEDITOR.tools.clone(b[e]);return a},capitalize:function(b,a){return b.charAt(0).toUpperCase()+(a?b.slice(1):b.slice(1).toLowerCase())},extend:function(b){var a=arguments.length,e,i;if(typeof(e=arguments[a-1])=="boolean")a--;else if(typeof(e=arguments[a-2])=="boolean"){i=arguments[a-1];a=a-2}for(var d=1;d<a;d++){var l=arguments[d],h;for(h in l)if(e===
22
- true||b[h]==void 0)if(!i||h in i)b[h]=l[h]}return b},prototypedCopy:function(b){var a=function(){};a.prototype=b;return new a},copy:function(b){var a={},e;for(e in b)a[e]=b[e];return a},isArray:function(b){return Object.prototype.toString.call(b)=="[object Array]"},isEmpty:function(b){for(var a in b)if(b.hasOwnProperty(a))return false;return true},cssVendorPrefix:function(b,a,e){if(e)return d+b+":"+a+";"+b+":"+a;e={};e[b]=a;e[d+b]=a;return e},cssStyleToDomStyle:function(){var b=document.createElement("div").style,
23
- a=typeof b.cssFloat!="undefined"?"cssFloat":typeof b.styleFloat!="undefined"?"styleFloat":"float";return function(b){return b=="float"?a:b.replace(/-./g,function(b){return b.substr(1).toUpperCase()})}}(),buildStyleHtml:function(b){for(var b=[].concat(b),a,e=[],i=0;i<b.length;i++)if(a=b[i])/@import|[{}]/.test(a)?e.push("<style>"+a+"</style>"):e.push('<link type="text/css" rel=stylesheet href="'+a+'">');return e.join("")},htmlEncode:function(b){return(""+b).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,
24
- "&lt;")},htmlEncodeAttr:function(b){return b.replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},htmlDecodeAttr:function(b){return b.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">")},getNextNumber:function(){var b=0;return function(){return++b}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(b,a){var e=a(b);e.prototype=b.prototype;return e},setTimeout:function(b,a,e,i,d){d||(d=window);e||(e=d);return d.setTimeout(function(){i?b.apply(e,[].concat(i)):
25
- b.apply(e)},a||0)},trim:function(){var b=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(a){return a.replace(b,"")}}(),ltrim:function(){var b=/^[ \t\n\r]+/g;return function(a){return a.replace(b,"")}}(),rtrim:function(){var b=/[ \t\n\r]+$/g;return function(a){return a.replace(b,"")}}(),indexOf:function(b,a){if(typeof a=="function")for(var e=0,i=b.length;e<i;e++){if(a(b[e]))return e}else{if(b.indexOf)return b.indexOf(a);e=0;for(i=b.length;e<i;e++)if(b[e]===a)return e}return-1},search:function(b,
26
- a){var e=CKEDITOR.tools.indexOf(b,a);return e>=0?b[e]:null},bind:function(b,a){return function(){return b.apply(a,arguments)}},createClass:function(b){var a=b.$,e=b.base,i=b.privates||b._,d=b.proto,b=b.statics;!a&&(a=function(){e&&this.base.apply(this,arguments)});if(i)var l=a,a=function(){var a=this._||(this._={}),b;for(b in i){var e=i[b];a[b]=typeof e=="function"?CKEDITOR.tools.bind(e,this):e}l.apply(this,arguments)};if(e){a.prototype=this.prototypedCopy(e.prototype);a.prototype.constructor=a;a.base=
27
- e;a.baseProto=e.prototype;a.prototype.base=function(){this.base=e.prototype.base;e.apply(this,arguments);this.base=arguments.callee}}d&&this.extend(a.prototype,d,true);b&&this.extend(a,b,true);return a},addFunction:function(b,c){return a.push(function(){return b.apply(c||this,arguments)})-1},removeFunction:function(b){a[b]=null},callFunction:function(b){var c=a[b];return c&&c.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,c;return function(e){c=
28
- CKEDITOR.tools.trim(e+"")+"px";return a.test(c)?c:e||""}}(),convertToPx:function(){var a;return function(c){if(!a){a=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document);CKEDITOR.document.getBody().append(a)}if(!/%$/.test(c)){a.setStyle("width",c);return a.$.clientWidth}return c}}(),repeat:function(a,c){return Array(c+1).join(a)},tryThese:function(){for(var a,c=0,e=arguments.length;c<e;c++){var i=
29
- arguments[c];try{a=i();break}catch(d){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var c=arguments,e=this;window.setTimeout(function(){a.apply(e,c)},0)}},normalizeCssText:function(a,c){var e=[],i,d=CKEDITOR.tools.parseCssText(a,true,c);for(i in d)e.push(i+":"+d[i]);e.sort();return e.length?e.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,b,i,d){a=
30
- [b,i,d];for(b=0;b<3;b++)a[b]=("0"+parseInt(a[b],10).toString(16)).slice(-2);return"#"+a.join("")})},parseCssText:function(a,c,e){var i={};if(e){e=new CKEDITOR.dom.element("span");e.setAttribute("style",a);a=CKEDITOR.tools.convertRgbToHex(e.getAttribute("style")||"")}if(!a||a==";")return i;a.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,b,e){if(c){b=b.toLowerCase();b=="font-family"&&(e=e.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));e=CKEDITOR.tools.trim(e)}i[b]=
31
- e});return i},writeCssText:function(a,c){var e,i=[];for(e in a)i.push(e+":"+a[e]);c&&i.sort();return i.join("; ")},objectCompare:function(a,c,e){var i;if(!a&&!c)return true;if(!a||!c)return false;for(i in a)if(a[i]!=c[i])return false;if(!e)for(i in c)if(a[i]!=c[i])return false;return true},objectKeys:function(a){var c=[],e;for(e in a)c.push(e);return c},convertArrayToObject:function(a,c){var e={};arguments.length==1&&(c=true);for(var i=0,d=a.length;i<d;++i)e[a[i]]=c;return e},fixDomain:function(){for(var a;;)try{a=
32
- window.parent.document.domain;break}catch(c){a=a?a.replace(/.+?(?:\.|$)/,""):document.domain;if(!a)break;document.domain=a}return!!a},eventsBuffer:function(a,c){function e(){d=(new Date).getTime();i=false;c()}var i,d=0;return{input:function(){if(!i){var c=(new Date).getTime()-d;c<a?i=setTimeout(e,a-c):e()}},reset:function(){i&&clearTimeout(i);i=d=0}}},enableHtml5Elements:function(a,c){for(var e=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption","figure","footer",
33
- "header","hgroup","mark","meter","nav","output","progress","section","summary","time","video"],i=e.length,d;i--;){d=a.createElement(e[i]);c&&a.appendChild(d)}}}})();
34
- CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,d=function(a,e){for(var b=CKEDITOR.tools.clone(a),i=1;i<arguments.length;i++){var e=arguments[i],c;for(c in e)delete b[c]}return b},b={},c={},e={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},i={command:1,link:1,meta:1,noscript:1,script:1,style:1},g={},l={"#":1},h={center:1,dir:1,noframes:1};
35
- a(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},l,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(c,e,b,h);d={a:d(b,{a:1,button:1}),abbr:b,address:c,
36
- area:g,article:a({style:1},c),aside:a({style:1},c),audio:a({source:1,track:1},c),b:b,base:g,bdi:b,bdo:b,blockquote:c,body:c,br:g,button:d(b,{a:1,button:1}),canvas:b,caption:c,cite:b,code:b,col:g,colgroup:{col:1},command:g,datalist:a({option:1},b),dd:c,del:b,details:a({summary:1},c),dfn:b,div:a({style:1},c),dl:{dt:1,dd:1},dt:c,em:b,embed:g,fieldset:a({legend:1},c),figcaption:c,figure:a({figcaption:1},c),footer:c,form:c,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:a({title:1,base:1},i),header:c,hgroup:{h1:1,
37
- h2:1,h3:1,h4:1,h5:1,h6:1},hr:g,html:a({head:1,body:1},c,i),i:b,iframe:l,img:g,input:g,ins:b,kbd:b,keygen:g,label:b,legend:b,li:c,link:g,map:c,mark:b,menu:a({li:1},c),meta:g,meter:d(b,{meter:1}),nav:c,noscript:a({link:1,meta:1,style:1},b),object:a({param:1},b),ol:{li:1},optgroup:{option:1},option:l,output:b,p:b,param:g,pre:b,progress:d(b,{progress:1}),q:b,rp:b,rt:b,ruby:a({rp:1,rt:1},b),s:b,samp:b,script:l,section:a({style:1},c),select:{optgroup:1,option:1},small:b,source:g,span:b,strong:b,style:l,
38
- sub:b,summary:b,sup:b,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:c,textarea:l,tfoot:{tr:1},th:c,thead:{tr:1},time:d(b,{time:1}),title:l,tr:{th:1,td:1},track:g,u:b,ul:{li:1},"var":b,video:a({source:1,track:1},c),wbr:g,acronym:b,applet:a({param:1},c),basefont:g,big:b,center:c,dialog:g,dir:{li:1},font:b,isindex:g,noframes:c,strike:b,tt:b};a(d,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},e,h),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,
39
- div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,
40
- wbr:1},$inline:b,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:a({body:1,head:1,html:1},d.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,
41
- small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return d}();
42
- CKEDITOR.dom.event=function(a){this.$=a};
43
- CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a=a+CKEDITOR.CTRL;this.$.shiftKey&&(a=a+CKEDITOR.SHIFT);this.$.altKey&&(a=a+CKEDITOR.ALT);return a},preventDefault:function(a){var d=this.$;d.preventDefault?d.preventDefault():d.returnValue=false;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=true},getTarget:function(){var a=
44
- this.$.target||this.$.srcElement;return a?new CKEDITOR.dom.node(a):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||this.$.clientY+(a.documentElement.scrollTop||a.body.scrollTop)}}};CKEDITOR.CTRL=1114112;CKEDITOR.SHIFT=2228224;CKEDITOR.ALT=4456448;CKEDITOR.EVENT_PHASE_CAPTURING=1;CKEDITOR.EVENT_PHASE_AT_TARGET=2;
45
- CKEDITOR.EVENT_PHASE_BUBBLING=3;CKEDITOR.dom.domObject=function(a){if(a)this.$=a};
46
- CKEDITOR.dom.domObject.prototype=function(){var a=function(a,b){return function(c){typeof CKEDITOR!="undefined"&&a.fire(b,new CKEDITOR.dom.event(c))}};return{getPrivate:function(){var a;if(!(a=this.getCustomData("_")))this.setCustomData("_",a={});return a},on:function(d){var b=this.getCustomData("_cke_nativeListeners");if(!b){b={};this.setCustomData("_cke_nativeListeners",b)}if(!b[d]){b=b[d]=a(this,d);this.$.addEventListener?this.$.addEventListener(d,b,!!CKEDITOR.event.useCapture):this.$.attachEvent&&
47
- this.$.attachEvent("on"+d,b)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(a){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(a)){var b=this.getCustomData("_cke_nativeListeners"),c=b&&b[a];if(c){this.$.removeEventListener?this.$.removeEventListener(a,c,false):this.$.detachEvent&&this.$.detachEvent("on"+a,c);delete b[a]}}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),b;for(b in a){var c=a[b];this.$.detachEvent?
48
- this.$.detachEvent("on"+b,c):this.$.removeEventListener&&this.$.removeEventListener(b,c,false);delete a[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}();
49
- (function(a){var d={};CKEDITOR.on("reset",function(){d={}});a.equals=function(a){try{return a&&a.$===this.$}catch(c){return false}};a.setCustomData=function(a,c){var e=this.getUniqueId();(d[e]||(d[e]={}))[a]=c;return this};a.getCustomData=function(a){var c=this.$["data-cke-expando"];return(c=c&&d[c])&&a in c?c[a]:null};a.removeCustomData=function(a){var c=this.$["data-cke-expando"],c=c&&d[c],e,i;if(c){e=c[a];i=a in c;delete c[a]}return i?e:null};a.clearCustomData=function(){this.removeAllListeners();
50
- var a=this.$["data-cke-expando"];a&&delete d[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)})(CKEDITOR.dom.domObject.prototype);
51
- CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT?"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](a):this};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject;CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_DOCUMENT=9;CKEDITOR.NODE_TEXT=3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;
52
- CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;
53
- CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(a,d){a.append(this,d);return a},clone:function(a,d){var b=this.$.cloneNode(a),c=function(e){e["data-cke-expando"]&&(e["data-cke-expando"]=false);if(e.nodeType==CKEDITOR.NODE_ELEMENT){d||e.removeAttribute("id",false);if(a)for(var e=e.childNodes,b=0;b<e.length;b++)c(e[b])}};c(b);return new CKEDITOR.dom.node(b)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,
54
- a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var d=[],b=this.getDocument().$.documentElement,c=this.$;c&&c!=b;){var e=c.parentNode;e&&d.unshift(this.getIndex.call({$:c},a));c=e}return d},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){var d=this.$,b=-1,
55
- c;if(!this.$.parentNode)return b;do if(!a||!(d!=this.$&&d.nodeType==CKEDITOR.NODE_TEXT&&(c||!d.nodeValue))){b++;c=d.nodeType==CKEDITOR.NODE_TEXT}while(d=d.previousSibling);return b},getNextSourceNode:function(a,d,b){if(b&&!b.call)var c=b,b=function(a){return!a.equals(c)};var a=!a&&this.getFirst&&this.getFirst(),e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getNext()}for(;!a&&(e=(e||this).getParent());){if(b&&b(e,true)===false)return null;a=e.getNext()}return!a||
56
- b&&b(a)===false?null:d&&d!=a.type?a.getNextSourceNode(false,d,b):a},getPreviousSourceNode:function(a,d,b){if(b&&!b.call)var c=b,b=function(a){return!a.equals(c)};var a=!a&&this.getLast&&this.getLast(),e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getPrevious()}for(;!a&&(e=(e||this).getParent());){if(b&&b(e,true)===false)return null;a=e.getPrevious()}return!a||b&&b(a)===false?null:d&&a.type!=d?a.getPreviousSourceNode(false,d,b):a},getPrevious:function(a){var d=
57
- this.$,b;do b=(d=d.previousSibling)&&d.nodeType!=10&&new CKEDITOR.dom.node(d);while(b&&a&&!a(b));return b},getNext:function(a){var d=this.$,b;do b=(d=d.nextSibling)&&new CKEDITOR.dom.node(d);while(b&&a&&!a(b));return b},getParent:function(a){var d=this.$.parentNode;return d&&(d.nodeType==CKEDITOR.NODE_ELEMENT||a&&d.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(d):null},getParents:function(a){var d=this,b=[];do b[a?"push":"unshift"](d);while(d=d.getParent());return b},getCommonAncestor:function(a){if(a.equals(this))return this;
58
- if(a.contains&&a.contains(this))return a;var d=this.contains?this:this.getParent();do if(d.contains(a))return d;while(d=d.getParent());return null},getPosition:function(a){var d=this.$,b=a.$;if(d.compareDocumentPosition)return d.compareDocumentPosition(b);if(d==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(d.contains){if(d.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(d))return CKEDITOR.POSITION_IS_CONTAINED+
59
- CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in d)return d.sourceIndex<0||b.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:d.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var d=this.getAddress(),a=a.getAddress(),b=Math.min(d.length,a.length),c=0;c<=b-1;c++)if(d[c]!=a[c]){if(c<b)return d[c]<a[c]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return d.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+
60
- CKEDITOR.POSITION_FOLLOWING},getAscendant:function(a,d){var b=this.$,c;if(!d)b=b.parentNode;for(;b;){if(b.nodeName&&(c=b.nodeName.toLowerCase(),typeof a=="string"?c==a:c in a))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(e){b=null}}return null},hasAscendant:function(a,d){var b=this.$;if(!d)b=b.parentNode;for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==a)return true;b=b.parentNode}return false},move:function(a,d){a.append(this.remove(),d)},remove:function(a){var d=this.$,b=d.parentNode;
61
- if(b){if(a)for(;a=d.firstChild;)b.insertBefore(d.removeChild(a),d);b.removeChild(d)}return this},replace:function(a){this.insertBefore(a);a.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.ltrim(a.getText()),b=a.getLength();if(d){if(d.length<b){a.split(b-d.length);this.$.removeChild(this.$.firstChild)}}else{a.remove();continue}}break}},rtrim:function(){for(var a;this.getLast&&(a=
62
- this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.rtrim(a.getText()),b=a.getLength();if(d){if(d.length<b){a.split(d.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{a.remove();continue}}break}if(CKEDITOR.env.needsBrFiller)(a=this.$.lastChild)&&(a.type==1&&a.nodeName.toLowerCase()=="br")&&a.parentNode.removeChild(a)},isReadOnly:function(){var a=this;this.type!=CKEDITOR.NODE_ELEMENT&&(a=this.getParent());if(a&&typeof a.$.isContentEditable!="undefined")return!(a.$.isContentEditable||
63
- a.data("cke-editable"));for(;a;){if(a.data("cke-editable"))break;if(a.getAttribute("contentEditable")=="false")return true;if(a.getAttribute("contentEditable")=="true")break;a=a.getParent()}return!a}});CKEDITOR.dom.window=function(a){CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject;
64
- CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var a=this.$.document,d=a.compatMode=="CSS1Compat";return{width:(d?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(d?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$;if("pageXOffset"in a)return{x:a.pageXOffset||0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||
65
- a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a?new CKEDITOR.dom.element.get(a):null}});CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject;
66
- CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);else{var d=new CKEDITOR.dom.element("link");d.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(d)}},appendStyleText:function(a){if(this.$.createStyleSheet){var d=this.$.createStyleSheet("");d.cssText=a}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(a,this));this.getHead().append(b)}return d||
67
- b.$.sheet},createElement:function(a,d){var b=new CKEDITOR.dom.element(a,this);if(d){d.attributes&&b.setAttributes(d.attributes);d.styles&&b.setStyles(d.styles)}return b},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){return new CKEDITOR.dom.element(this.$.activeElement)},getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,d){for(var b=this.$.documentElement,c=
68
- 0;b&&c<a.length;c++){var e=a[c];if(d)for(var i=-1,g=0;g<b.childNodes.length;g++){var l=b.childNodes[g];if(!(d===true&&l.nodeType==3&&l.previousSibling&&l.previousSibling.nodeType==3)){i++;if(i==e){b=l;break}}}else b=b.childNodes[e]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(a,d){if((!CKEDITOR.env.ie||document.documentMode>8)&&d)a=d+":"+a;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=
69
- a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+
70
- ")();<\/script>"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");if(!a){a=this.$.createDocumentFragment();CKEDITOR.tools.enableHtml5Elements(a,true);this.setCustomData("html5ShivFrag",a)}return a}});CKEDITOR.dom.nodeList=function(a){this.$=a};
71
- CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){if(a<0||a>=this.$.length)return null;return(a=this.$[a])?new CKEDITOR.dom.node(a):null}};CKEDITOR.dom.element=function(a,d){typeof a=="string"&&(a=(d?d.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.element.get=function(a){return(a=typeof a=="string"?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))};
72
- CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node;CKEDITOR.dom.element.createFromHtml=function(a,d){var b=new CKEDITOR.dom.element("div",d);b.setHtml(a);return b.getFirst().remove()};
73
- CKEDITOR.dom.element.setMarker=function(a,d,b,c){var e=d.getCustomData("list_marker_id")||d.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),i=d.getCustomData("list_marker_names")||d.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[e]=d;i[b]=1;return d.setCustomData(b,c)};CKEDITOR.dom.element.clearAllMarkers=function(a){for(var d in a)CKEDITOR.dom.element.clearMarkers(a,a[d],1)};
74
- CKEDITOR.dom.element.clearMarkers=function(a,d,b){var c=d.getCustomData("list_marker_names"),e=d.getCustomData("list_marker_id"),i;for(i in c)d.removeCustomData(i);d.removeCustomData("list_marker_names");if(b){d.removeCustomData("list_marker_id");delete a[e]}};
75
- (function(){function a(a){var b=true;if(!a.$.id){a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber();b=false}return function(){b||a.removeAttribute("id")}}function d(a,b){return"#"+a.$.id+" "+b.split(/,\s*/).join(", #"+a.$.id+" ")}function b(a){for(var b=0,d=0,l=c[a].length;d<l;d++)b=b+(parseInt(this.getComputedStyle(c[a][d])||0,10)||0);return b}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(a){var b=this.$.className;b&&(RegExp("(?:^|\\s)"+a+"(?:\\s|$)",
76
- "").test(b)||(b=b+(" "+a)));this.$.className=b||a},removeClass:function(a){var b=this.getAttribute("class");if(b){a=RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","i");if(a.test(b))(b=b.replace(a,"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class")}return this},hasClass:function(a){return RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(a,b){typeof a=="string"&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):
77
- this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=void 0?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller||CKEDITOR.env.opera){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||
78
- !a.is("br")){a=CKEDITOR.env.opera?this.getDocument().createText(""):this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}}},breakParent:function(a){var b=new CKEDITOR.dom.range(this.getDocument());b.setStartAfter(this);b.setEndAfter(a);a=b.extractContents();b.insertNode(this.remove());a.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=
79
- a.$&&b.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(true));return a.innerHTML},
80
- getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(b);b.innerHTML=a;c.removeChild(b);return a}catch(d){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));
81
- return a}}:function(a){return this.$.innerHTML=a},setText:function(a){CKEDITOR.dom.element.prototype.setText=this.$.innerText!=void 0?function(a){return this.$.innerText=a}:function(a){return this.$.textContent=a};return this.setText(a)},getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;
82
- case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a=this.$.attributes.getNamedItem(a);return(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},
83
- getComputedStyle:CKEDITOR.env.ie?function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var a=this.$.tabIndex;a===0&&(!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),
84
- 10)!==0)&&(a=-1);return a}:CKEDITOR.env.webkit?function(){var a=this.$.tabIndex;if(a==void 0){a=parseInt(this.getAttribute("tabindex"),10);isNaN(a)&&(a=-1)}return a}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&!(document.documentMode>
85
- 8)){var b=this.$.scopeName;b!="HTML"&&(a=b.toLowerCase()+":"+a)}return(this.getName=function(){return a})()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();
86
- if(typeof arguments[0]=="object")return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return true;return false},isEditable:function(a){var b=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span;
87
- return!(!a||!a["#"])}return true},isIdentical:function(a){var b=this.clone(0,1),a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode){b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return b.$.isEqualNode(a.$)}b=b.getOuterHtml();a=a.getOuterHtml();
88
- if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var c=this.getParent();if(c.type==CKEDITOR.NODE_ELEMENT){c=c.clone();c.setHtml(b);b=c.getHtml();c.setHtml(a);a=c.getHtml()}}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",b,c;if(a&&(CKEDITOR.env.webkit||CKEDITOR.env.opera)){b=this.getWindow();if(!b.equals(CKEDITOR.document.getWindow())&&(c=b.$.frameElement))a=(new CKEDITOR.dom.element(c)).isVisible()}return!!a},
89
- isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(),b=0,c=a.count();b<c;b++){var d=a.getItem(b);if(!(d.type==CKEDITOR.NODE_ELEMENT&&d.data("cke-bookmark"))&&(d.type==CKEDITOR.NODE_ELEMENT&&!d.isEmptyInlineRemoveable()||d.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(d.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){for(var a=this.$.attributes,b=0;b<
90
- a.length;b++){var c=a[b];switch(c.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;default:if(c.specified)return true}}return false}:function(){var a=this.$.attributes,b=a.length,c={"data-cke-expando":1,_moz_dirty:1};return b>0&&(b>2||!c[a[0].nodeName]||b==2&&!c[a[1].nodeName])},hasAttribute:function(){function a(b){b=this.$.attributes.getNamedItem(b);return!(!b||!b.specified)}return CKEDITOR.env.ie&&CKEDITOR.env.version<8?function(b){return b=="name"?
91
- !!this.$.name:a.call(this,b)}:a}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var c=this.$,a=a.$;if(c!=a){var d;if(b)for(;d=c.lastChild;)a.insertBefore(c.removeChild(d),a.firstChild);else for(;d=c.firstChild;)a.appendChild(c.removeChild(d))}},mergeSiblings:function(){function a(b,e,c){if(e&&e.type==CKEDITOR.NODE_ELEMENT){for(var d=[];e.data("cke-bookmark")||e.isEmptyInlineRemoveable();){d.push(e);e=c?e.getNext():e.getPrevious();if(!e||e.type!=CKEDITOR.NODE_ELEMENT)return}if(b.isIdentical(e)){for(var k=
92
- c?b.getLast():b.getFirst();d.length;)d.shift().move(b,!c);e.moveChildren(b,!c);e.remove();k&&k.type==CKEDITOR.NODE_ELEMENT&&k.mergeSiblings()}}}return function(b){if(b===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,b){this.$.setAttribute(a,b);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?
93
- function(b,c){b=="class"?this.$.className=c:b=="style"?this.$.style.cssText=c:b=="tabindex"?this.$.tabIndex=c:b=="checked"?this.$.checked=c:b=="contenteditable"?a.call(this,"contentEditable",c):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,c){if(b=="src"&&c.match(/^http:\/\//))try{a.apply(this,arguments)}catch(d){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=
94
- a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=
95
- this.$.style;if(!b.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var c=["top","left","right","bottom"],d;a=="border"&&(d=["color","style","width"]);for(var b=[],h=0;h<c.length;h++)if(d)for(var k=0;k<d.length;k++)b.push([a,c[h],d[k]].join("-"));else b.push([a,c[h]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,
96
- b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie||CKEDITOR.env.opera){this.setAttribute("unselectable",
97
- "on");for(var a,b=this.getElementsByTag("*"),c=0,d=b.count();c<d;c++){a=b.getItem(c);a.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,c=0,d=this.getDocument(),h=d.getBody(),k=d.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var o=this.$.getBoundingClientRect(),s=d.$.documentElement,q=s.clientTop||
98
- h.$.clientTop||0,u=s.clientLeft||h.$.clientLeft||0,f=true;if(CKEDITOR.env.ie){f=d.getDocumentElement().contains(this);d=d.getBody().contains(this);f=k&&d||!k&&f}if(f){b=o.left+(!k&&s.scrollLeft||h.$.scrollLeft);b=b-u;c=o.top+(!k&&s.scrollTop||h.$.scrollTop);c=c-q}}else{h=this;for(d=null;h&&!(h.getName()=="body"||h.getName()=="html");){b=b+(h.$.offsetLeft-h.$.scrollLeft);c=c+(h.$.offsetTop-h.$.scrollTop);if(!h.equals(this)){b=b+(h.$.clientLeft||0);c=c+(h.$.clientTop||0)}for(;d&&!d.equals(h);){b=b-
99
- d.$.scrollLeft;c=c-d.$.scrollTop;d=d.getParent()}d=h;h=(o=h.$.offsetParent)?new CKEDITOR.dom.element(o):null}}if(a){h=this.getWindow();d=a.getWindow();if(!h.equals(d)&&h.$.frameElement){a=(new CKEDITOR.dom.element(h.$.frameElement)).getDocumentPosition(a);b=b+a.x;c=c+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!k){b=b+(this.$.clientLeft?1:0);c=c+(this.$.clientTop?1:0)}return{x:b,y:c}},scrollIntoView:function(a){var b=this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth<
100
- b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1);if(b.is("html")){var c=b.getWindow();try{var d=c.$.frameElement;d&&(b=new CKEDITOR.dom.element(d))}catch(h){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,c){var d,h,k,o;function s(b,f){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(b,f);else{a.$.scrollLeft=a.$.scrollLeft+b;a.$.scrollTop=a.$.scrollTop+f}}function q(a,b){var c={x:0,y:0};if(!a.is(f?"body":"html")){var e=
101
- a.$.getBoundingClientRect();c.x=e.left;c.y=e.top}e=a.getWindow();if(!e.equals(b)){e=q(CKEDITOR.dom.element.get(e.$.frameElement),b);c.x=c.x+e.x;c.y=c.y+e.y}return c}function u(a,b){return parseInt(a.getComputedStyle("margin-"+b)||0,10)||0}!a&&(a=this.getWindow());k=a.getDocument();var f=k.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=f?k.getBody():k.getDocumentElement());k=a.getWindow();h=q(this,k);var p=q(a,k),y=this.$.offsetHeight;d=this.$.offsetWidth;var A=a.$.clientHeight,m=
102
- a.$.clientWidth;k=h.x-u(this,"left")-p.x||0;o=h.y-u(this,"top")-p.y||0;d=h.x+d+u(this,"right")-(p.x+m)||0;h=h.y+y+u(this,"bottom")-(p.y+A)||0;if(o<0||h>0)s(0,b===true?o:b===false?h:o<0?o:h);if(c&&(k<0||d>0))s(k<0?k:d,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");c&&this.setAttribute("aria-pressed",true);c&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+
103
- "_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");c&&this.setAttribute("aria-disabled",true);c&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+"_disabled");c&&this.removeAttribute("aria-pressed");c&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,
104
- b){for(var c=this.$.attributes,b=b||{},d=0;d<c.length;d++){var h=c[d],k=h.nodeName.toLowerCase(),o;if(!(k in b))if(k=="checked"&&(o=this.getAttribute(k)))a.setAttribute(k,o);else if(h.specified||CKEDITOR.env.ie&&h.nodeValue&&k=="value"){o=this.getAttribute(k);if(o===null)o=h.nodeValue;a.setAttribute(k,o)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);
105
- this.moveChildren(a);this.getParent()&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,c){var e=b.childNodes;if(c>=0&&c<e.length)return e[c]}return function(b){var c=this.$;if(b.slice)for(;b.length>0&&c;)c=a(c,b.shift());else c=a(c,b);return c?new CKEDITOR.dom.node(c):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(a){a.data.getTarget().hasClass("cke_enable_context_menu")||
106
- a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(){var a=CKEDITOR.instances,b,c;for(b in a){c=a[b];if(c.element.equals(this)&&c.elementMode!=
107
- CKEDITOR.ELEMENT_MODE_APPENDTO)return c}return null},find:function(b){var c=a(this),b=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(d(this,b)));c();return b},findOne:function(b){var c=a(this),b=this.$.querySelector(d(this,b));c();return b?new CKEDITOR.dom.element(b):null},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var d=a(this);if(d!==false)for(var c=this.getChildren(),h=0;h<c.count();h++){d=c.getItem(h);d.type==CKEDITOR.NODE_ELEMENT?d.forEach(a,b):(!b||d.type==b)&&a(d)}}});var c={width:["border-left-width",
108
- "border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(a,c,d){if(typeof c=="number"){if(d&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))c=c-b.call(this,a);this.setStyle(a,c+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,c){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;c&&(d=d-b.call(this,a));return d}})();
109
- CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a};
110
- CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)}},!0,{append:1,appendBogus:1,getFirst:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});
111
- (function(){function a(a,b){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed){this.end();return null}c.optimize()}var f,e=c.startContainer;f=c.endContainer;var o=c.startOffset,d=c.endOffset,m,j=this.guard,n=this.type,i=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var h=f.type==CKEDITOR.NODE_ELEMENT?f:f.getParent(),t=f.type==CKEDITOR.NODE_ELEMENT?f.getChild(d):f.getNext();this._.guardLTR=function(a,b){return(!b||!h.equals(a))&&(!t||
112
- !a.equals(t))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}if(a&&!this._.guardRTL){var g=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),k=e.type==CKEDITOR.NODE_ELEMENT?o?e.getChild(o-1):null:e.getPrevious();this._.guardRTL=function(a,b){return(!b||!g.equals(a))&&(!k||!a.equals(k))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}var l=a?this._.guardRTL:this._.guardLTR;m=j?function(a,b){return l(a,b)===false?false:j(a,b)}:l;if(this.current)f=this.current[i](false,n,m);else{if(a)f.type==
113
- CKEDITOR.NODE_ELEMENT&&(f=d>0?f.getChild(d-1):m(f,true)===false?null:f.getPreviousSourceNode(true,n,m));else{f=e;if(f.type==CKEDITOR.NODE_ELEMENT&&!(f=f.getChild(o)))f=m(e,true)===false?null:e.getNextSourceNode(true,n,m)}f&&m(f)===false&&(f=null)}for(;f&&!this._.end;){this.current=f;if(!this.evaluator||this.evaluator(f)!==false){if(!b)return f}else if(b&&this.evaluator)return false;f=f[i](false,n,m)}this.end();return this.current=null}function d(b){for(var c,e=null;c=a.call(this,b);)e=c;return e}
114
- function b(a){if(k(a))return false;if(a.type==CKEDITOR.NODE_TEXT)return true;if(a.type==CKEDITOR.NODE_ELEMENT){if(a.is(CKEDITOR.dtd.$inline)||a.getAttribute("contenteditable")=="false")return true;var b;if(b=!CKEDITOR.env.needsBrFiller)if(b=a.is(o))a:{b=0;for(var c=a.getChildCount();b<c;++b)if(!k(a.getChild(b))){b=false;break a}b=true}if(b)return true}return false}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)},
115
- previous:function(){return a.call(this,1)},checkForward:function(){return a.call(this,0,1)!==false},checkBackward:function(){return a.call(this,1,1)!==false},lastForward:function(){return d.call(this)},lastBackward:function(){return d.call(this,1)},reset:function(){delete this.current;this._={}}}});var c={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},e={absolute:1,
116
- fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in e)&&c[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a))};CKEDITOR.dom.walker.blockBoundary=function(a){return function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,b){function c(a){return a&&
117
- a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(f){var e,o;e=f&&f.type!=CKEDITOR.NODE_ELEMENT&&(o=f.getParent())&&c(o);e=a?e:e||c(f);return!!(b^e)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var c;b&&b.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible=function(a){var b=CKEDITOR.dom.walker.whitespaces();return function(c){if(b(c))c=1;else{c.type==CKEDITOR.NODE_TEXT&&
118
- (c=c.getParent());c=!c.$.offsetHeight}return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(c){return!!(b^c.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!g(a)&&!l(a)}return function(c){var f=CKEDITOR.env.needsBrFiller?c.is&&c.is("br"):c.getText&&i.test(c.getText());if(f){f=c.getParent();c=c.getNext(b);f=f.isBlockBoundary()&&(!c||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())}return!!(a^f)}};CKEDITOR.dom.walker.temp=function(a){return function(b){b.type!=
119
- CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b=b&&b.hasAttribute("data-cke-temp");return!!(a^b)}};var i=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,g=CKEDITOR.dom.walker.whitespaces(),l=CKEDITOR.dom.walker.bookmark(),h=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(b){b=g(b)||l(b)||h(b);return!!(a^b)}};var k=CKEDITOR.dom.walker.ignored(),o=function(a){var b={},c;for(c in a)CKEDITOR.dtd[c]["#"]&&(b[c]=1);return b}(CKEDITOR.dtd.$block);CKEDITOR.dom.walker.editable=function(a){return function(c){return!!(a^
120
- b(c))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(l(a)||g(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&i.test(a.getText()))?a:false}})();
121
- CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true;var d=a instanceof CKEDITOR.dom.document;this.document=d?a:a.getDocument();this.root=d?a.getBody():a};
122
- (function(){function a(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),e=CKEDITOR.dom.walker.bogus();return function(f){if(c(f)||b(f))return true;if(e(f)&&!a)return a=true;return f.type==CKEDITOR.NODE_TEXT&&(f.hasAscendant("pre")||CKEDITOR.tools.trim(f.getText()).length)||f.type==CKEDITOR.NODE_ELEMENT&&!f.is(i)?false:true}}function d(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(e){return c(e)||b(e)?true:!a&&g(e)||
123
- e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function b(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&k(a)&&(b=a);return h(a)&&!(g(a)&&a.equals(b))})}}var c=function(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset},e=function(a,b,c,e){a.optimizeBookmark();var f=a.startContainer,d=a.endContainer,i=a.startOffset,h=a.endOffset,m,j;if(d.type==CKEDITOR.NODE_TEXT)d=d.split(h);
124
- else if(d.getChildCount()>0)if(h>=d.getChildCount()){d=d.append(a.document.createText(""));j=true}else d=d.getChild(h);if(f.type==CKEDITOR.NODE_TEXT){f.split(i);f.equals(d)&&(d=f.getNext())}else if(i)if(i>=f.getChildCount()){f=f.append(a.document.createText(""));m=true}else f=f.getChild(i).getPrevious();else{f=f.append(a.document.createText(""),1);m=true}var i=f.getParents(),h=d.getParents(),n,r,g;for(n=0;n<i.length;n++){r=i[n];g=h[n];if(!r.equals(g))break}for(var t=c,k,G,l,B=n;B<i.length;B++){k=
125
- i[B];t&&!k.equals(f)&&(G=t.append(k.clone()));for(k=k.getNext();k;){if(k.equals(h[B])||k.equals(d))break;l=k.getNext();if(b==2)t.append(k.clone(true));else{k.remove();b==1&&t.append(k)}k=l}t&&(t=G)}t=c;for(c=n;c<h.length;c++){k=h[c];b>0&&!k.equals(d)&&(G=t.append(k.clone()));if(!i[c]||k.$.parentNode!=i[c].$.parentNode)for(k=k.getPrevious();k;){if(k.equals(i[c])||k.equals(f))break;l=k.getPrevious();if(b==2)t.$.insertBefore(k.$.cloneNode(true),t.$.firstChild);else{k.remove();b==1&&t.$.insertBefore(k.$,
126
- t.$.firstChild)}k=l}t&&(t=G)}if(b==2){r=a.startContainer;if(r.type==CKEDITOR.NODE_TEXT){r.$.data=r.$.data+r.$.nextSibling.data;r.$.parentNode.removeChild(r.$.nextSibling)}a=a.endContainer;if(a.type==CKEDITOR.NODE_TEXT&&a.$.nextSibling){a.$.data=a.$.data+a.$.nextSibling.data;a.$.parentNode.removeChild(a.$.nextSibling)}}else{if(r&&g&&(f.$.parentNode!=r.$.parentNode||d.$.parentNode!=g.$.parentNode)){b=g.getIndex();m&&g.$.parentNode==f.$.parentNode&&b--;if(e&&r.type==CKEDITOR.NODE_ELEMENT){e=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',
127
- a.document);e.insertAfter(r);r.mergeSiblings(false);a.moveToBookmark({startNode:e})}else a.setStart(g.getParent(),b)}a.collapse(true)}m&&f.remove();j&&d.$.parentNode&&d.remove()},i={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},g=CKEDITOR.dom.walker.bogus(),l=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,h=CKEDITOR.dom.walker.editable(),k=CKEDITOR.dom.walker.ignored(true);CKEDITOR.dom.range.prototype=
128
- {clone:function(){var a=new CKEDITOR.dom.range(this.root);a.startContainer=this.startContainer;a.startOffset=this.startOffset;a.endContainer=this.endContainer;a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this.endContainer=this.startContainer;this.endOffset=this.startOffset}else{this.startContainer=this.endContainer;this.startOffset=this.endOffset}this.collapsed=true},cloneContents:function(){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||
129
- e(this,2,a);return a},deleteContents:function(a){this.collapsed||e(this,0,null,a)},extractContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,1,b,a);return b},createBookmark:function(a){var b,c,e,f,d=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("&nbsp;");if(a){e="cke_bm_"+CKEDITOR.tools.getNextNumber();b.setAttribute("id",e+(d?"C":"S"))}if(!d){c=b.clone();c.setHtml("&nbsp;");a&&c.setAttribute("id",
130
- e+"E");f=this.clone();f.collapse();f.insertNode(c)}f=this.clone();f.collapse(true);f.insertNode(b);if(c){this.setStartAfter(b);this.setEndBefore(c)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?e+(d?"C":"S"):b,endNode:a?e+"E":c,serializable:a,collapsed:d}},createBookmark2:function(){function a(b){var c=b.container,e=b.offset,f;f=c;var d=e;f=f.type!=CKEDITOR.NODE_ELEMENT||d===0||d==f.getChildCount()?0:f.getChild(d-1).type==CKEDITOR.NODE_TEXT&&f.getChild(d).type==CKEDITOR.NODE_TEXT;
131
- if(f){c=c.getChild(e-1);e=c.getLength()}c.type==CKEDITOR.NODE_ELEMENT&&e>1&&(e=c.getChild(e-1).getIndex(true)+1);if(c.type==CKEDITOR.NODE_TEXT){f=c;for(d=0;(f=f.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;)d=d+f.getLength();e=e+d}b.container=c;b.offset=e}return function(b){var c=this.collapsed,e={container:this.startContainer,offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};if(b){a(e);c||a(f)}return{start:e.container.getAddress(b),end:c?null:f.container.getAddress(b),
132
- startOffset:e.offset,endOffset:f.offset,normalized:b,collapsed:c,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,e=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);e?this.setEnd(e,a):this.collapse(true)}else{b=(c=a.serializable)?this.document.getById(a.startNode):a.startNode;a=c?this.document.getById(a.endNode):a.endNode;this.setStartBefore(b);b.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},
133
- getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,c=this.startOffset,e=this.endOffset,f;if(a.type==CKEDITOR.NODE_ELEMENT){f=a.getChildCount();if(f>c)a=a.getChild(c);else if(f<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(b.type==CKEDITOR.NODE_ELEMENT){f=b.getChildCount();if(f>e)b=b.getChild(e).getPreviousSourceNode(true);else if(f<1)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=
134
- b.lastChild;b=new CKEDITOR.dom.node(b)}}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,e=this.endContainer,c=c.equals(e)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(e);return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):
135
- this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&(b.is&&b.is("span")&&b.data("cke-bookmark"))&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,e=this.startOffset,f=this.collapsed;
136
- if((!a||f)&&c&&c.type==CKEDITOR.NODE_TEXT){if(e)if(e>=c.getLength()){e=c.getIndex()+1;c=c.getParent()}else{var d=c.split(e),e=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(d,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{e=c.getIndex();c=c.getParent()}this.setStart(c,e);if(f){this.collapse(true);return}}c=this.endContainer;e=this.endOffset;if(!b&&!f&&c&&c.type==CKEDITOR.NODE_TEXT){if(e){e>=c.getLength()||
137
- c.split(e);e=c.getIndex()+1}else e=c.getIndex();c=c.getParent();this.setEnd(c,e)}},enlarge:function(a,b){function c(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var e=RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var f=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var d=this.getCommonAncestor(),i=this.root,k,m,j,n,r,h=false,t,g;t=this.startContainer;var l=this.startOffset;if(t.type==CKEDITOR.NODE_TEXT){if(l){t=!CKEDITOR.tools.trim(t.substring(0,
138
- l)).length&&t;h=!!t}if(t&&!(n=t.getPrevious()))j=t.getParent()}else{l&&(n=t.getChild(l-1)||t.getLast());n||(j=t)}for(j=c(j);j||n;){if(j&&!n){!r&&j.equals(d)&&(r=true);if(f?j.isBlockBoundary():!i.contains(j))break;if(!h||j.getComputedStyle("display")!="inline"){h=false;r?k=j:this.setStartBefore(j)}n=j.getPrevious()}for(;n;){t=false;if(n.type==CKEDITOR.NODE_COMMENT)n=n.getPrevious();else{if(n.type==CKEDITOR.NODE_TEXT){g=n.getText();e.test(g)&&(n=null);t=/[\s\ufeff]$/.test(g)}else if((n.$.offsetWidth>
139
- 0||b&&n.is("br"))&&!n.data("cke-bookmark"))if(h&&CKEDITOR.dtd.$removeEmpty[n.getName()]){g=n.getText();if(e.test(g))n=null;else for(var l=n.$.getElementsByTagName("*"),I=0,B;B=l[I++];)if(!CKEDITOR.dtd.$removeEmpty[B.nodeName.toLowerCase()]){n=null;break}n&&(t=!!g.length)}else n=null;t&&(h?r?k=j:j&&this.setStartBefore(j):h=true);if(n){t=n.getPrevious();if(!j&&!t){j=n;n=null;break}n=t}else j=null}}j&&(j=c(j.getParent()))}t=this.endContainer;l=this.endOffset;j=n=null;r=h=false;var N=function(a,b){var c=
140
- new CKEDITOR.dom.range(i);c.setStart(a,b);c.setEndAt(i,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),f;for(c.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};f=c.next();){if(f.type!=CKEDITOR.NODE_TEXT)return false;g=f!=a?f.getText():f.substring(b);if(e.test(g))return false}return true};if(t.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(t.substring(l)).length)h=true;else{h=!t.getLength();if(l==t.getLength()){if(!(n=t.getNext()))j=t.getParent()}else N(t,
141
- l)&&(j=t.getParent())}else(n=t.getChild(l))||(j=t);for(;j||n;){if(j&&!n){!r&&j.equals(d)&&(r=true);if(f?j.isBlockBoundary():!i.contains(j))break;if(!h||j.getComputedStyle("display")!="inline"){h=false;r?m=j:j&&this.setEndAfter(j)}n=j.getNext()}for(;n;){t=false;if(n.type==CKEDITOR.NODE_TEXT){g=n.getText();N(n,0)||(n=null);t=/^[\s\ufeff]/.test(g)}else if(n.type==CKEDITOR.NODE_ELEMENT){if((n.$.offsetWidth>0||b&&n.is("br"))&&!n.data("cke-bookmark"))if(h&&CKEDITOR.dtd.$removeEmpty[n.getName()]){g=n.getText();
142
- if(e.test(g))n=null;else{l=n.$.getElementsByTagName("*");for(I=0;B=l[I++];)if(!CKEDITOR.dtd.$removeEmpty[B.nodeName.toLowerCase()]){n=null;break}}n&&(t=!!g.length)}else n=null}else t=1;t&&h&&(r?m=j:this.setEndAfter(j));if(n){t=n.getNext();if(!j&&!t){j=n;n=null;break}n=t}else j=null}j&&(j=c(j.getParent()))}if(k&&m){d=k.contains(m)?m:k;this.setStartBefore(d);this.setEndAfter(d)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:j=new CKEDITOR.dom.range(this.root);i=
143
- this.root;j.setStartAt(i,CKEDITOR.POSITION_AFTER_START);j.setEnd(this.startContainer,this.startOffset);j=new CKEDITOR.dom.walker(j);var H,v,x=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),C=null,D=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="false")if(C){if(C.equals(a)){C=null;return}}else C=a;else if(C)return;var b=x(a);b||(H=a);return b},f=function(a){var b=D(a);!b&&(a.is&&a.is("br"))&&(v=a);return b};j.guard=D;j=j.lastBackward();
144
- H=H||i;this.setStartAt(H,!H.is("br")&&(!j&&this.checkStartOfBlock()||j&&H.contains(j))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){j=this.clone();j=new CKEDITOR.dom.walker(j);var z=CKEDITOR.dom.walker.whitespaces(),T=CKEDITOR.dom.walker.bookmark();j.evaluator=function(a){return!z(a)&&!T(a)};if((j=j.previous())&&j.type==CKEDITOR.NODE_ELEMENT&&j.is("br"))break}j=this.clone();j.collapse();j.setEndAt(i,CKEDITOR.POSITION_BEFORE_END);j=new CKEDITOR.dom.walker(j);
145
- j.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?f:D;H=null;j=j.lastForward();H=H||i;this.setEndAt(H,!j&&this.checkEndOfBlock()||j&&H.contains(j)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);v&&this.setEndAfter(v)}},shrink:function(a,b,c){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,e=this.clone(),f=this.startContainer,d=this.endContainer,i=this.startOffset,h=this.endOffset,m=1,j=1;if(f&&f.type==CKEDITOR.NODE_TEXT)if(i)if(i>=f.getLength())e.setStartAfter(f);else{e.setStartBefore(f);
146
- m=0}else e.setStartBefore(f);if(d&&d.type==CKEDITOR.NODE_TEXT)if(h)if(h>=d.getLength())e.setEndAfter(d);else{e.setEndAfter(d);j=0}else e.setEndBefore(d);var e=new CKEDITOR.dom.walker(e),n=CKEDITOR.dom.walker.bookmark();e.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var r;e.guard=function(b,f){if(n(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||f&&b.equals(r)||c===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||
147
- b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return false;!f&&b.type==CKEDITOR.NODE_ELEMENT&&(r=b);return true};if(m)(f=e[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(f,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(j){e.reset();(e=e[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(e,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!m&&!j)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,
148
- true);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(true)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(a,
149
- b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=a.getIndex();a=a.getParent()}this.startContainer=a;this.startOffset=b;if(!this.endContainer){this.endContainer=a;this.endOffset=b}c(this)},setEnd:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=a.getIndex()+1;a=a.getParent()}this.endContainer=a;this.endOffset=b;if(!this.startContainer){this.startContainer=a;this.startOffset=b}c(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+
150
- 1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}c(this)},
151
- setEndAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}c(this)},fixBlock:function(a,b){var c=this.createBookmark(),e=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(e);
152
- e.trim();e.appendBogus();this.insertNode(e);this.moveToBookmark(c);return e},splitBlock:function(a){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),e=b.block,f=c.block,d=null;if(!b.blockLimit.equals(c.blockLimit))return null;if(a!="br"){if(!e){e=this.fixBlock(true,a);f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}f||(f=this.fixBlock(false,a))}a=e&&this.checkStartOfBlock();b=f&&this.checkEndOfBlock();
153
- this.deleteContents();if(e&&e.equals(f))if(b){d=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END);f=null}else if(a){d=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e=null}else{f=this.splitElement(e);e.is("ul","ol")||e.appendBogus()}return{previousBlock:e,nextBlock:f,wasStartOfBlock:a,wasEndOfBlock:b,elementPath:d}},splitElement:function(a){if(!this.collapsed)return null;
154
- this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(),c=a.clone(false);b.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(e){return function(a){return b(a)||(c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||e.is("table")&&a.is("caption")?false:true}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var c=this.createBookmark(),
155
- e=this[b?"endPath":"startPath"](),d=e.block||e.blockLimit,i;d&&!d.equals(e.root)&&!d.getFirst(a(d));){i=d.getParent();this[b?"setEndAt":"setStartAt"](d,CKEDITOR.POSITION_AFTER_END);d.remove(1);d=i}this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,b){var c=b==CKEDITOR.START,e=this.clone();e.collapse(c);e[c?"setStartAt":
156
- "setEndAt"](a,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);e=new CKEDITOR.dom.walker(e);e.evaluator=d(c);return e[c?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var b=this.startContainer,c=this.startOffset;if(CKEDITOR.env.ie&&c&&b.type==CKEDITOR.NODE_TEXT){b=CKEDITOR.tools.ltrim(b.substring(0,c));l.test(b)&&this.trim(0,1)}this.trim();b=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(true);c.setStartAt(b.block||b.blockLimit,
157
- CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(c);b.evaluator=a();return b.checkBackward()},checkEndOfBlock:function(){var b=this.endContainer,c=this.endOffset;if(CKEDITOR.env.ie&&b.type==CKEDITOR.NODE_TEXT){b=CKEDITOR.tools.rtrim(b.substring(c));l.test(b)&&this.trim(1,0)}this.trim();b=new CKEDITOR.dom.elementPath(this.endContainer,this.root);c=this.clone();c.collapse(false);c.setEndAt(b.block||b.blockLimit,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(c);b.evaluator=a();return b.checkForward()},
158
- getPreviousNode:function(a,b,c){var e=this.clone();e.collapse(1);e.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(e);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var e=this.clone();e.collapse();e.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(e);c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if(b.getAttribute("contentEditable")==
159
- "false"&&!b.data("cke-editable"))return 0;if(b.is("html")||b.getAttribute("contentEditable")=="true"&&(b.contains(c)||b.equals(c)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(false)){this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var c=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&
160
- this.checkEndOfBlock()&&l.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);c=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable()){this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);c=1}else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if(a.getAttribute("contenteditable")=="false"&&
161
- a.is(CKEDITOR.dtd.$block)){this.setStartBefore(a);this.setEndAfter(a);return true}var e=a,f=c,d=void 0;e.type==CKEDITOR.NODE_ELEMENT&&e.isEditable(false)&&(d=e[b?"getLast":"getFirst"](k));!f&&!d&&(d=e[b?"getPrevious":"getNext"](k));a=d}return!!c},moveToClosestEditablePosition:function(a,b){var c=new CKEDITOR.dom.range(this.root),e=0,f,d=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];c.moveToPosition(a,d[b?0:1]);if(a.is(CKEDITOR.dtd.$block)){if(f=c[b?"getNextEditableNode":"getPreviousEditableNode"]()){e=
162
- 1;if(f.type==CKEDITOR.NODE_ELEMENT&&f.is(CKEDITOR.dtd.$block)&&f.getAttribute("contenteditable")=="false"){c.setStartAt(f,CKEDITOR.POSITION_BEFORE_START);c.setEndAt(f,CKEDITOR.POSITION_AFTER_END)}else c.moveToPosition(f,d[b?1:0])}}else e=1;e&&this.moveToRange(c);return!!e},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,true)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=
163
- CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(false,true),c=CKEDITOR.dom.walker.whitespaces(true);a.evaluator=function(a){return c(a)&&b(a)};var e=a.next();a.reset();return e&&e.equals(a.previous())?e:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;
164
- return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:b(),getPreviousEditableNode:b(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",this.document),b,c,e,f=this.clone();f.optimize();if(e=f.startContainer.type==CKEDITOR.NODE_TEXT){c=f.startContainer.getText();b=f.startContainer.split(f.startOffset);a.insertAfter(f.startContainer)}else f.insertNode(a);a.scrollIntoView();if(e){f.startContainer.setText(c);
165
- b.remove()}a.remove()}}})();CKEDITOR.POSITION_AFTER_START=1;CKEDITOR.POSITION_BEFORE_END=2;CKEDITOR.POSITION_BEFORE_START=3;CKEDITOR.POSITION_AFTER_END=4;CKEDITOR.ENLARGE_ELEMENT=1;CKEDITOR.ENLARGE_BLOCK_CONTENTS=2;CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3;CKEDITOR.ENLARGE_INLINE=4;CKEDITOR.START=1;CKEDITOR.END=2;CKEDITOR.SHRINK_ELEMENT=1;CKEDITOR.SHRINK_TEXT=2;"use strict";
166
- (function(){function a(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function d(a,b,c){for(a=a.getNextSourceNode(b,null,c);!i(a);)a=a.getNextSourceNode(b,null,c);return a}function b(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function c(a,e,d,i){a:{i==void 0&&(i=b(d));for(var g;g=i.shift();)if(g.getDtd().p){i={element:g,remaining:i};
167
- break a}i=null}if(!i)return 0;if((g=CKEDITOR.filter.instances[i.element.data("cke-filter")])&&!g.check(e))return c(a,e,d,i.remaining);e=new CKEDITOR.dom.range(i.element);e.selectNodeContents(i.element);e=e.createIterator();e.enlargeBr=a.enlargeBr;e.enforceRealBlocks=a.enforceRealBlocks;e.activeFilter=e.filter=g;a._.nestedEditable={element:i.element,container:d,remaining:i.remaining,iterator:e};return 1}var e=/^[\r\n\t ]+$/,i=CKEDITOR.dom.walker.bookmark(false,true),g=CKEDITOR.dom.walker.whitespaces(true),
168
- l=function(a){return i(a)&&g(a)};a.prototype={getNextParagraph:function(a){var b,g,s,q,u,a=a||"p";if(this._.nestedEditable){if(b=this._.nestedEditable.iterator.getNextParagraph(a)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return b}this.activeFilter=this.filter;if(c(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return this._.nestedEditable.iterator.getNextParagraph(a)}this._.nestedEditable=
169
- null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var f=this.range.clone();f.shrink(CKEDITOR.SHRINK_ELEMENT,true);g=f.endContainer.hasAscendant("pre",true)||f.startContainer.hasAscendant("pre",true);f.enlarge(this.forceBrBreak&&!g||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!f.collapsed){g=new CKEDITOR.dom.walker(f.clone());var p=CKEDITOR.dom.walker.bookmark(true,true);g.evaluator=p;this._.nextNode=g.next();g=new CKEDITOR.dom.walker(f.clone());
170
- g.evaluator=p;g=g.previous();this._.lastNode=g.getNextSourceNode(true);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){p=this.range.clone();p.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);if(p.checkEndOfBlock()){p=new CKEDITOR.dom.elementPath(p.endContainer,p.root);this._.lastNode=(p.block||p.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode||!f.root.contains(this._.lastNode)){this._.lastNode=
171
- this._.docEndMarker=f.document.createText("");this._.lastNode.insertAfter(g)}f=null}this._.started=1;g=f}p=this._.nextNode;f=this._.lastNode;for(this._.nextNode=null;p;){var y=0,A=p.hasAscendant("pre"),m=p.type!=CKEDITOR.NODE_ELEMENT,j=0;if(m)p.type==CKEDITOR.NODE_TEXT&&e.test(p.getText())&&(m=0);else{var n=p.getName();if(CKEDITOR.dtd.$block[n]&&p.getAttribute("contenteditable")=="false"){b=p;c(this,a,b);break}else if(p.isBlockBoundary(this.forceBrBreak&&!A&&{br:1})){if(n=="br")m=1;else if(!g&&!p.getChildCount()&&
172
- n!="hr"){b=p;s=p.equals(f);break}if(g){g.setEndAt(p,CKEDITOR.POSITION_BEFORE_START);if(n!="br")this._.nextNode=p}y=1}else{if(p.getFirst()){if(!g){g=this.range.clone();g.setStartAt(p,CKEDITOR.POSITION_BEFORE_START)}p=p.getFirst();continue}m=1}}if(m&&!g){g=this.range.clone();g.setStartAt(p,CKEDITOR.POSITION_BEFORE_START)}s=(!y||m)&&p.equals(f);if(g&&!y)for(;!p.getNext(l)&&!s;){n=p.getParent();if(n.isBlockBoundary(this.forceBrBreak&&!A&&{br:1})){y=1;m=0;s||n.equals(f);g.setEndAt(n,CKEDITOR.POSITION_BEFORE_END);
173
- break}p=n;m=1;s=p.equals(f);j=1}m&&g.setEndAt(p,CKEDITOR.POSITION_AFTER_END);p=d(p,j,f);if((s=!p)||y&&g)break}if(!b){if(!g){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}b=new CKEDITOR.dom.elementPath(g.startContainer,g.root);p=b.blockLimit;y={div:1,th:1,td:1};b=b.block;if(!b&&p&&!this.enforceRealBlocks&&y[p.getName()]&&g.checkStartOfBlock()&&g.checkEndOfBlock()&&!p.equals(g.root))b=p;else if(!b||this.enforceRealBlocks&&b.getName()=="li"){b=this.range.document.createElement(a);
174
- g.extractContents().appendTo(b);b.trim();g.insertNode(b);q=u=true}else if(b.getName()!="li"){if(!g.checkStartOfBlock()||!g.checkEndOfBlock()){b=b.clone(false);g.extractContents().appendTo(b);b.trim();u=g.splitBlock();q=!u.wasStartOfBlock;u=!u.wasEndOfBlock;g.insertNode(b)}}else if(!s)this._.nextNode=b.equals(f)?null:d(g.getBoundaryNodes().endNode,1,f)}if(q)(q=b.getPrevious())&&q.type==CKEDITOR.NODE_ELEMENT&&(q.getName()=="br"?q.remove():q.getLast()&&q.getLast().$.nodeName.toLowerCase()=="br"&&q.getLast().remove());
175
- if(u)(q=b.getLast())&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()=="br"&&(!CKEDITOR.env.needsBrFiller||q.getPrevious(i)||q.getNext(i))&&q.remove();if(!this._.nextNode)this._.nextNode=s||b.equals(f)||!f?null:d(b,1,f);return b}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}})();
176
- CKEDITOR.command=function(a,d){this.uiItems=[];this.exec=function(b){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false;this.editorFocus&&a.focus();return this.fire("exec")===false?true:d.exec.call(this,a,b)!==false};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}if(!this.checkAllowed(true)){this.disable();return true}this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&
177
- this.disable();return this.fire("refresh",{editor:a,path:b})===false?true:d.refresh&&d.refresh.apply(this,arguments)!==false};var b;this.checkAllowed=function(c){return!c&&typeof b=="boolean"?b:b=a.activeFilter.checkFeature(this)};CKEDITOR.tools.extend(this,d,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!d.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)};
178
- CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return false;this.previousState=this.state;this.state=a;this.fire("state");return true},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?
179
- this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.event.implementOn(CKEDITOR.command.prototype);CKEDITOR.ENTER_P=1;CKEDITOR.ENTER_BR=2;CKEDITOR.ENTER_DIV=3;
180
- CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85,CKEDITOR.CTRL+89,CKEDITOR.CTRL+90,CKEDITOR.CTRL+CKEDITOR.SHIFT+90]};
181
- (function(){function a(a,b,c,f,z){var j=b.name;if((f||typeof a.elements!="function"||a.elements(j))&&(!a.match||a.match(b))){if(f=!z){a:if(a.nothingRequired)f=true;else{if(z=a.requiredClasses){j=b.classes;for(f=0;f<z.length;++f)if(CKEDITOR.tools.indexOf(j,z[f])==-1){f=false;break a}}f=e(b.styles,a.requiredStyles)&&e(b.attributes,a.requiredAttributes)}f=!f}if(!f){if(!a.propertiesOnly)c.valid=true;if(!c.allAttributes)c.allAttributes=d(a.attributes,b.attributes,c.validAttributes);if(!c.allStyles)c.allStyles=
182
- d(a.styles,b.styles,c.validStyles);if(!c.allClasses){a=a.classes;b=b.classes;f=c.validClasses;if(a)if(a===true)b=true;else{for(var z=0,j=b.length,i;z<j;++z){i=b[z];f[i]||(f[i]=a(i))}b=false}else b=false;c.allClasses=b}}}}function d(a,b,c){if(!a)return false;if(a===true)return true;for(var e in b)c[e]||(c[e]=a(e,b[e]));return false}function b(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=J(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?
183
- CKEDITOR.tools.convertArrayToObject(a):false;var c={},e=0,f;for(f in a){c[f]=a[f];e++}return e?c:false}function c(b){if(b._.filterFunction)return b._.filterFunction;var c=/^cke:(object|embed|param)$/,e=/^(object|embed|param)$/;return b._.filterFunction=function(f,d,j,i,m,n,t){var g=f.name,r,y=false;if(m)f.name=g=g.replace(c,"$1");if(j=j&&j[g]){h(f);for(g=0;g<j.length;++g)p(b,f,j[g]);k(f)}if(d){var g=f.name,j=d.elements[g],l=d.generic,d={valid:false,validAttributes:{},validClasses:{},validStyles:{},
184
- allAttributes:false,allClasses:false,allStyles:false};if(!j&&!l){i.push(f);return true}h(f);if(j){g=0;for(r=j.length;g<r;++g)a(j[g],f,d,true,n)}if(l){g=0;for(r=l.length;g<r;++g)a(l[g],f,d,false,n)}if(!d.valid){i.push(f);return true}n=d.validAttributes;g=d.validStyles;j=d.validClasses;r=f.attributes;var l=f.styles,J=r["class"],G=r.style,w,B,A=[],I=[],s=/^data-cke-/,q=false;delete r.style;delete r["class"];if(!d.allAttributes)for(w in r)if(!n[w])if(s.test(w)){if(w!=(B=w.replace(/^data-cke-saved-/,""))&&
185
- !n[B]){delete r[w];q=true}}else{delete r[w];q=true}if(d.allStyles){if(G)r.style=G}else{for(w in l)g[w]?A.push(w+":"+l[w]):q=true;if(A.length)r.style=A.sort().join("; ")}if(d.allClasses)J&&(r["class"]=J);else{for(w in j)j[w]&&I.push(w);I.length&&(r["class"]=I.sort().join(" "));J&&I.length<J.split(/\s+/).length&&(q=true)}q&&(y=true);if(!t&&!o(f)){i.push(f);return true}}if(m)f.name=f.name.replace(e,"cke:$1");return y}}function e(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;
186
- return true}function i(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=t;return b}function g(a){for(var b,c,e,f,d={},j=1,a=J(a);b=a.match(B);){if(c=b[2]){e=l(c,"styles");f=l(c,"attrs");c=l(c,"classes")}else e=f=c=null;d["$"+j++]={elements:b[1],classes:c,styles:e,attributes:f};a=a.slice(b[0].length)}return d}function l(a,b){var c=a.match(N[b]);return c?J(c[1]):null}function h(a){if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(a.attributes.style||"",1);if(!a.classes)a.classes=
187
- a.attributes["class"]?a.attributes["class"].split(/\s+/):[]}function k(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function o(a){switch(a.name){case "a":if(!a.children.length&&!a.attributes.name)return false;break;case "img":if(!a.attributes.src)return false}return true}function s(a){return!a?false:a===true?true:function(b){return b in a}}function q(){return new CKEDITOR.htmlParser.element("br")}
188
- function u(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||n.$block[a.name])}function f(a,b,c){var e=a.name;if(n.$empty[e]||!a.children.length)if(e=="hr"&&b=="br")a.replaceWith(q());else{a.parent&&c.push({check:"it",el:a.parent});a.remove()}else if(n.$block[e]||e=="tr")if(b=="br"){if(a.previous&&!u(a.previous)){b=q();b.insertBefore(a)}if(a.next&&!u(a.next)){b=q();b.insertAfter(a)}a.replaceWithChildren()}else{var e=a.children,f;b:{f=n[b];for(var d=0,j=e.length,i;d<j;++d){i=e[d];if(i.type==
189
- CKEDITOR.NODE_ELEMENT&&!f[i.name]){f=false;break b}}f=true}if(f){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{f=a.parent;for(var d=f.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||f.name=="body",m,j=e.length;j>0;){i=e[--j];if(d&&(i.type==CKEDITOR.NODE_TEXT||i.type==CKEDITOR.NODE_ELEMENT&&n.$inline[i.name])){if(!m){m=new CKEDITOR.htmlParser.element(b);m.insertAfter(a);c.push({check:"parent-down",el:m})}m.add(i,0)}else{m=null;i.insertAfter(a);f.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i.type==
190
- CKEDITOR.NODE_ELEMENT&&!n[f.name][i.name])&&c.push({check:"el-up",el:i})}}a.remove()}}else if(e=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function p(a,b,c){var e,f;for(e=0;e<c.length;++e){f=c[e];if((!f.check||a.check(f.check,false))&&(!f.left||f.left(b))){f.right(b,H);break}}}function y(a,b){var c=b.getDefinition(),e=c.attributes,f=c.styles,d,j,i,m;if(a.name!=c.element)return false;for(d in e)if(d=="class"){c=e[d].split(/\s+/);for(i=a.classes.join("|");m=
191
- c.pop();)if(i.indexOf(m)==-1)return false}else if(a.attributes[d]!=e[d])return false;for(j in f)if(a.styles[j]!=f[j])return false;return true}function A(a,b){var c,e;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)e=a;else{c=a[0];e=a[1]}return[{element:c,left:e,right:function(a,c){c.transform(a,b)}}]}function m(a){return function(b){return y(b,a)}}function j(a){return function(b,c){c[a](b)}}var n=CKEDITOR.dtd,r=CKEDITOR.tools.copy,J=CKEDITOR.tools.trim,t="cke-test",w=["","p","br","div"];
192
- CKEDITOR.filter=function(a){this.allowedContent=[];this.disabled=false;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={rules:{},transformations:{},cachedTests:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=true;var b=a.config.allowedContent;if(b===true)this.disabled=true;else{if(!b)this.customConfig=false;this.allow(b,"config",1);this.allow(a.config.extraAllowedContent,"extra",1);this.allow(w[a.enterMode]+" "+w[a.shiftEnterMode],
193
- "default",1)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(a,c,e){if(this.disabled||this.customConfig&&!e||!a)return false;this._.cachedChecks={};var f,d;if(typeof a=="string")a=g(a);else if(a instanceof CKEDITOR.style){d=a.getDefinition();e={};a=d.attributes;e[d.element]=d={styles:d.styles,requiredStyles:d.styles&&CKEDITOR.tools.objectKeys(d.styles)};if(a){a=r(a);d.classes=a["class"]?a["class"].split(/\s+/):null;d.requiredClasses=
194
- d.classes;delete a["class"];d.attributes=a;d.requiredAttributes=a&&CKEDITOR.tools.objectKeys(a)}a=e}else if(CKEDITOR.tools.isArray(a)){for(f=0;f<a.length;++f)d=this.allow(a[f],c,e);return d}var j,e=[];for(j in a){d=a[j];d=typeof d=="boolean"?{}:typeof d=="function"?{match:d}:r(d);if(j.charAt(0)!="$")d.elements=j;if(c)d.featureName=c.toLowerCase();var i=d;i.elements=b(i.elements,/\s+/)||null;i.propertiesOnly=i.propertiesOnly||i.elements===true;var m=/\s*,\s*/,n=void 0;for(n in G){i[n]=b(i[n],m)||null;
195
- var p=i,t=I[n],h=b(i[I[n]],m),k=i[n],y=[],l=true,w=void 0;h?l=false:h={};for(w in k)if(w.charAt(0)=="!"){w=w.slice(1);y.push(w);h[w]=true;l=false}for(;w=y.pop();){k[w]=k["!"+w];delete k["!"+w]}p[t]=(l?false:h)||null}i.match=i.match||null;this.allowedContent.push(d);e.push(d)}c=this._.rules;j=c.elements||{};a=c.generic||[];d=0;for(i=e.length;d<i;++d){m=r(e[d]);n=m.classes===true||m.styles===true||m.attributes===true;p=m;t=void 0;for(t in G)p[t]=s(p[t]);h=true;for(t in I){t=I[t];p[t]=CKEDITOR.tools.objectKeys(p[t]);
196
- p[t]&&(h=false)}p.nothingRequired=h;if(m.elements===true||m.elements===null){m.elements=s(m.elements);a[n?"unshift":"push"](m)}else{p=m.elements;delete m.elements;for(f in p)if(j[f])j[f][n?"unshift":"push"](m);else j[f]=[m]}}c.elements=j;c.generic=a.length?a:null;return true},applyTo:function(a,b,e,d){if(this.disabled)return false;var j=[],i=!e&&this._.rules,m=this._.transformations,p=c(this),g=this.editor&&this.editor.config.protectedSource,t=false;a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(a.attributes["data-cke-filter"]==
197
- "off")return false;if(!b||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-")))p(a,i,m,j,b)&&(t=true)}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var f,d,n;if(g)for(d=0;d<g.length;++d)if((n=e.match(g[d]))&&n[0].length==e.length){c=true;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);e.children.length==1&&(f=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&
198
- p(f,i,m,c,b);c=!c.length}c||j.push(a)}},null,true);j.length&&(t=true);for(var r,a=[],d=w[d||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];e=j.pop();)e.type==CKEDITOR.NODE_ELEMENT?f(e,d,a):e.remove();for(;r=a.pop();){e=r.el;if(e.parent)switch(r.check){case "it":n.$removeEmpty[e.name]&&!e.children.length?f(e,d,a):o(e)||f(e,d,a);break;case "el-up":e.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!n[e.parent.name][e.name]&&f(e,d,a);break;case "parent-down":e.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&
199
- !n[e.parent.name][e.name]&&f(e.parent,d,a)}}return t},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true},addContentForms:function(a){if(!this.disabled&&a){var b,c,e=[],f;for(b=0;b<a.length&&!f;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))f=c}if(f){for(b=0;b<a.length;++b)e.push(A(a[b],f));this.addTransformations(e)}}},addFeature:function(a){if(this.disabled||
200
- !a)return true;a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return this.customConfig&&a.requiredContent?this.check(a.requiredContent):true},addTransformations:function(a){var b,c;if(!this.disabled&&a){var e=this._.transformations,f;for(f=0;f<a.length;++f){b=a[f];var d=void 0,i=void 0,n=void 0,p=void 0,g=void 0,t=void 0;c=[];for(i=0;i<b.length;++i){n=b[i];if(typeof n=="string"){n=
201
- n.split(/\s*:\s*/);p=n[0];g=null;t=n[1]}else{p=n.check;g=n.left;t=n.right}if(!d){d=n;d=d.element?d.element:p?p.match(/^([a-z0-9]+)/i)[0]:d.left.getDefinition().element}g instanceof CKEDITOR.style&&(g=m(g));c.push({check:p==d?null:p,left:g,right:typeof t=="string"?j(t):t})}b=d;e[b]||(e[b]=[]);e[b].push(c)}}},check:function(a,b,e){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var f=a.length;f--;)if(this.check(a[f],b,e))return true;return false}var d,j;if(typeof a=="string"){j=a+"<"+
202
- (b===false?"0":"1")+(e?"1":"0")+">";if(j in this._.cachedChecks)return this._.cachedChecks[j];f=g(a).$1;d=f.styles;var m=f.classes;f.name=f.elements;f.classes=m=m?m.split(/\s*,\s*/):[];f.styles=i(d);f.attributes=i(f.attributes);f.children=[];m.length&&(f.attributes["class"]=m.join(" "));if(d)f.attributes.style=CKEDITOR.tools.writeCssText(f.styles);d=f}else{f=a.getDefinition();d=f.styles;m=f.attributes||{};if(d){d=r(d);m.style=CKEDITOR.tools.writeCssText(d,true)}else d={};d={name:f.element,attributes:m,
203
- classes:m["class"]?m["class"].split(/\s+/):[],styles:d,children:[]}}var m=CKEDITOR.tools.clone(d),n=[],t;if(b!==false&&(t=this._.transformations[d.name])){for(f=0;f<t.length;++f)p(this,d,t[f]);k(d)}c(this)(m,this._.rules,b===false?false:this._.transformations,n,false,!e,!e);b=n.length>0?false:CKEDITOR.tools.objectCompare(d.attributes,m.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[j]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,
204
- br:CKEDITOR.ENTER_BR};return function(c,e){var f=a.slice(),d;if(this.check(w[c]))return c;for(e||(f=f.reverse());d=f.pop();)if(this.check(d))return b[d];return CKEDITOR.ENTER_BR}}()};var G={styles:1,attributes:1,classes:1},I={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},B=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,N={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},H=CKEDITOR.filter.transformationsTools=
205
- {sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var e=a.attributes[b];if(e){/^\d+$/.test(e)&&(e=e+"px");a.styles[c]=e}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var e=a.styles[b],f=e&&e.match(/^(\d+)(?:\.\d*)?px$/);f?a.attributes[c]=f[1]:e==t&&(a.attributes[c]=
206
- t)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if(b=="left"||b=="right")a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];if(b=="left"||b=="right")a.attributes.align=b}delete a.styles["float"]},matchesStyle:y,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),e=c.styles,f=c.attributes,d,j,i,m;a.name=c.element;for(d in f)if(d==
207
- "class"){c=a.classes.join("|");for(i=f[d].split(/\s+/);m=i.pop();)c.indexOf(m)==-1&&a.classes.push(m)}else a.attributes[d]=f[d];for(j in e)a.styles[j]=e[j]}}}})();
208
- (function(){CKEDITOR.focusManager=function(a){if(a.focusManager)return a.focusManager;this.hasFocus=false;this.currentActive=null;this._={editor:a};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(a){this._.timer&&clearTimeout(this._.timer);if(a)this.currentActive=a;if(!this.hasFocus&&!this._.locked){(a=CKEDITOR.currentInstance)&&a.focusManager.blur(1);this.hasFocus=true;(a=this._.editor.container)&&a.addClass("cke_focus");this._.editor.fire("focus")}},
209
- lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(a){function d(){if(this.hasFocus){this.hasFocus=false;var a=this._.editor.container;a&&a.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var b=CKEDITOR.focusManager._.blurDelay;a||!b?d.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;d.call(this)},b,this)}},add:function(a,d){var b=a.getCustomData("focusmanager");if(!b||
210
- b!=this){b&&b.remove(a);var b="focus",c="blur";if(d)if(CKEDITOR.env.ie){b="focusin";c="focusout"}else CKEDITOR.event.useCapture=1;var e={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}};a.on(b,e.focus,this);a.on(c,e.blur,this);if(d)CKEDITOR.event.useCapture=0;a.setCustomData("focusmanager",this);a.setCustomData("focusmanager_handlers",e)}},remove:function(a){a.removeCustomData("focusmanager");var d=a.removeCustomData("focusmanager_handlers");a.removeListener("blur",
211
- d.blur);a.removeListener("focus",d.focus)}}})();CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)return a.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:a};return this};
212
- (function(){var a,d=function(b){var b=b.data,e=b.getKeystroke(),d=this.keystrokes[e],g=this._.editor;a=g.fire("key",{keyCode:e})===false;if(!a){d&&(a=g.execCommand(d,{from:"keystrokeHandler"})!==false);a||(a=!!this.blockedKeystrokes[e])}a&&b.preventDefault(true);return!a},b=function(b){if(a){a=false;b.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",d,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",b,this)}}})();
213
- (function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(a,d,b){if(!a||!CKEDITOR.lang.languages[a])a=this.detect(d,
214
- a);this[a]?b(a,this[a]):CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+a+".js"),function(){this[a].dir=this.rtl[a]?"rtl":"ltr";b(a,this[a])},this)},detect:function(a,d){var b=this.languages,d=d||navigator.userLanguage||navigator.language||a,c=d.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),e=c[1],c=c[2];b[e+"-"+c]?e=e+"-"+c:b[e]||(e=null);CKEDITOR.lang.detect=e?function(){return e}:function(a){return a};return e||a}}})();
215
- CKEDITOR.scriptLoader=function(){var a={},d={};return{load:function(b,c,e,i){var g=typeof b=="string";g&&(b=[b]);e||(e=CKEDITOR);var l=b.length,h=[],k=[],o=function(a){c&&(g?c.call(e,a):c.call(e,h,k))};if(l===0)o(true);else{var s=function(a,b){(b?h:k).push(a);if(--l<=0){i&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");o(b)}},q=function(b,c){a[b]=1;var e=d[b];delete d[b];for(var f=0;f<e.length;f++)e[f](b,c)},u=function(b){if(a[b])s(b,true);else{var e=d[b]||(d[b]=[]);e.push(s);if(!(e.length>
216
- 1)){var f=new CKEDITOR.dom.element("script");f.setAttributes({type:"text/javascript",src:b});if(c)if(CKEDITOR.env.ie&&CKEDITOR.env.version<11)f.$.onreadystatechange=function(){if(f.$.readyState=="loaded"||f.$.readyState=="complete"){f.$.onreadystatechange=null;q(b,true)}};else{f.$.onload=function(){setTimeout(function(){q(b,true)},0)};f.$.onerror=function(){q(b,false)}}f.appendTo(CKEDITOR.document.getHead())}}};i&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var f=0;f<l;f++)u(b[f])}},
217
- queue:function(){function a(){var b;(b=c[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var c=[];return function(e,d){var g=this;c.push({scriptUrl:e,callback:function(){d&&d.apply(this,arguments);c.shift();a.call(g)}});c.length==1&&a.call(this)}}()}}();CKEDITOR.resourceManager=function(a,d){this.basePath=a;this.fileName=d;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}};
218
- CKEDITOR.resourceManager.prototype={add:function(a,d){if(this.registered[a])throw'[CKEDITOR.resourceManager.add] The resource name "'+a+'" is already registered.';var b=this.registered[a]=d||{};b.name=a;b.path=this.getPath(a);CKEDITOR.fire(a+CKEDITOR.tools.capitalize(this.fileName)+"Ready",b);return this.get(a)},get:function(a){return this.registered[a]||null},getPath:function(a){var d=this.externals[a];return CKEDITOR.getUrl(d&&d.dir||this.basePath+a+"/")},getFilePath:function(a){var d=this.externals[a];
219
- return CKEDITOR.getUrl(this.getPath(a)+(d?d.file:this.fileName+".js"))},addExternal:function(a,d,b){for(var a=a.split(","),c=0;c<a.length;c++){var e=a[c];b||(d=d.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[e]={dir:d,file:b||this.fileName+".js"}}},load:function(a,d,b){CKEDITOR.tools.isArray(a)||(a=a?[a]:[]);for(var c=this.loaded,e=this.registered,i=[],g={},l={},h=0;h<a.length;h++){var k=a[h];if(k)if(!c[k]&&!e[k]){var o=this.getFilePath(k);i.push(o);o in g||(g[o]=[]);g[o].push(k)}else l[k]=
220
- this.get(k)}CKEDITOR.scriptLoader.load(i,function(a,e){if(e.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+g[e[0]].join(",")+'" was not found at "'+e[0]+'".';for(var i=0;i<a.length;i++)for(var f=g[a[i]],p=0;p<f.length;p++){var h=f[p];l[h]=this.get(h);c[h]=1}d.call(b,l)},this)}};CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin");
221
- CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var d={};return function(b,c,e){var i={},g=function(b){a.call(this,b,function(a){CKEDITOR.tools.extend(i,a);var b=[],l;for(l in a){var s=a[l],q=s&&s.requires;if(!d[l]){if(s.icons)for(var u=s.icons.split(","),f=u.length;f--;)CKEDITOR.skin.addIcon(u[f],s.path+"icons/"+(CKEDITOR.env.hidpi&&s.hidpi?"hidpi/":"")+u[f]+".png");d[l]=1}if(q){q.split&&(q=q.split(","));for(s=0;s<q.length;s++)i[q[s]]||b.push(q[s])}}if(b.length)g.call(this,
222
- b);else{for(l in i){s=i[l];if(s.onLoad&&!s.onLoad._called){s.onLoad()===false&&delete i[l];s.onLoad._called=1}}c&&c.call(e||window,i)}},this)};g.call(this,b)}});CKEDITOR.plugins.setLang=function(a,d,b){var c=this.get(a),a=c.langEntries||(c.langEntries={}),c=c.lang||(c.lang=[]);c.split&&(c=c.split(","));CKEDITOR.tools.indexOf(c,d)==-1&&c.push(d);a[d]=b};CKEDITOR.ui=function(a){if(a.ui)return a.ui;this.items={};this.instances={};this.editor=a;this._={handlers:{}};return this};
223
- CKEDITOR.ui.prototype={add:function(a,d,b){b.name=a.toLowerCase();var c=this.items[a]={type:d,command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(c,b)},get:function(a){return this.instances[a]},create:function(a){var d=this.items[a],b=d&&this._.handlers[d.type],c=d&&d.command&&this.editor.getCommand(d.command),b=b&&b.create.apply(this,d.args);this.instances[a]=b;c&&c.uiItems.push(b);if(b&&!b.type)b.type=d.type;return b},addHandler:function(a,d){this._.handlers[a]=
224
- d},space:function(a){return CKEDITOR.document.getById(this.spaceId(a))},spaceId:function(a){return this.editor.id+"_"+a}};CKEDITOR.event.implementOn(CKEDITOR.ui);
225
- (function(){function a(a,c,i){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!i)throw Error("One of the element modes must be specified.");}else throw Error("Expect element of type CKEDITOR.dom.element.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&i==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(i==CKEDITOR.ELEMENT_MODE_INLINE?c.is(CKEDITOR.dtd.$editable)||c.is("textarea"):i==CKEDITOR.ELEMENT_MODE_REPLACE?
226
- !c.is(CKEDITOR.dtd.$nonBodyContent):1))throw Error('The specified element mode is not supported on element: "'+c.getName()+'".');this.element=c;this.elementMode=i;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(c.getId()||c.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||d();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);
227
- this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",b);this.on("selectionChange",function(a){e(this,a.data.path)});this.on("activeFilterChange",function(){e(this,this.elementPath(),true)});this.on("mode",b);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){g(this,a)},0,this)}function d(){do var a="editor"+
228
- ++q;while(CKEDITOR.instances[a]);return a}function b(){var a=this.commands,b;for(b in a)c(this,a[b])}function c(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function e(a,b,c){if(b){var e,d,j=a.commands;for(d in j){e=j[d];(c||e.contextSensitive)&&e.refresh(a,b)}}}function i(a){var b=a.config.customConfig;if(!b)return false;var b=CKEDITOR.getUrl(b),c=u[b]||(u[b]={});if(c.fn){c.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==b||
229
- !i(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(b,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};i(a)});return true}function g(a,b){a.on("customConfigLoaded",function(){if(b){if(b.on)for(var c in b.on)a.on(c,b.on[c]);CKEDITOR.tools.extend(a.config,b,true);delete a.config.on}c=a.config;a.readOnly=!(!c.readOnly&&!(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled"):a.element.isReadOnly():a.elementMode==
230
- CKEDITOR.ELEMENT_MODE_REPLACE&&a.element.hasAttribute("disabled")));a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):false;a.tabIndex=c.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:c.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:c.shiftEnterMode;if(c.skin)CKEDITOR.skinName=c.skin;a.fireOnce("configLoaded");a.dataProcessor=
231
- new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);l(a)});if(b&&b.customConfig!=void 0)a.config.customConfig=b.customConfig;i(a)||a.fireOnce("customConfigLoaded")}function l(a){CKEDITOR.skin.loadPart("editor",function(){h(a)})}function h(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){var e=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);a.title=typeof e=="string"||e===false?e:[a.lang.editor,a.name].join(", ");if(CKEDITOR.env.gecko&&
232
- CKEDITOR.env.version<10900&&a.lang.dir=="rtl")a.lang.dir="ltr";if(!a.config.contentsLangDirection)a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded");k(a)})}function k(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);o(a)})}function o(a){var b=a.config,c=b.plugins,e=b.extraPlugins,d=b.removePlugins;if(e)var j=RegExp("(?:^|,)(?:"+e.replace(/\s*,\s*/g,"|")+")(?=,|$)",
233
- "g"),c=c.replace(j,""),c=c+(","+e);if(d)var i=RegExp("(?:^|,)(?:"+d.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(i,"");CKEDITOR.env.air&&(c=c+",adobeair");CKEDITOR.plugins.load(c.split(","),function(c){var e=[],d=[],j=[];a.plugins=c;for(var m in c){var g=c[m],h=g.lang,k=null,l=g.requires,v;CKEDITOR.tools.isArray(l)&&(l=l.join(","));if(l&&(v=l.match(i)))for(;l=v.pop();)CKEDITOR.tools.setTimeout(function(a,b){throw Error('Plugin "'+a.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+
234
- b+'" plugin.');},0,null,[l,m]);if(h&&!a.lang[m]){h.split&&(h=h.split(","));if(CKEDITOR.tools.indexOf(h,a.langCode)>=0)k=a.langCode;else{k=a.langCode.replace(/-.*/,"");k=k!=a.langCode&&CKEDITOR.tools.indexOf(h,k)>=0?k:CKEDITOR.tools.indexOf(h,"en")>=0?"en":h[0]}if(!g.langEntries||!g.langEntries[k])j.push(CKEDITOR.getUrl(g.path+"lang/"+k+".js"));else{a.lang[m]=g.langEntries[k];k=null}}d.push(k);e.push(g)}CKEDITOR.scriptLoader.load(j,function(){for(var c=["beforeInit","init","afterInit"],j=0;j<c.length;j++)for(var i=
235
- 0;i<e.length;i++){var m=e[i];j===0&&(d[i]&&m.lang&&m.langEntries)&&(a.lang[m.name]=m.langEntries[d[i]]);if(m[c[j]])m[c[j]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(i=0;i<a.config.blockedKeystrokes.length;i++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[i]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function s(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();
236
- this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return true}return false}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var q=0,u={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var e=new CKEDITOR.command(this,b);this.mode&&c(this,e);return this.commands[a]=e},_attachToForm:function(){var a=this,b=a.element,c=new CKEDITOR.dom.element(b.$.form);if(b.is("textarea")&&c){var e=function(c){a.updateElement();
237
- a._.required&&(!b.getValue()&&a.fire("required")===false)&&c.data.preventDefault()};c.on("submit",e);if(c.$.submit&&c.$.submit.call&&c.$.submit.apply)c.$.submit=CKEDITOR.tools.override(c.$.submit,function(a){return function(){e();a.apply?a.apply(this):a()}});a.on("destroy",function(){c.removeListener("submit",e)})}},destroy:function(a){this.fire("beforeDestroy");!a&&s.call(this);this.editable(null);this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",
238
- null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var c=this.getCommand(a),e={name:a,commandData:b,command:c};if(c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",e)!==false){e.returnValue=c.exec(e.commandData);if(!c.async&&this.fire("afterCommandExec",
239
- e)!==false)return e.returnValue}return false},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;if(typeof b!="string")b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"";b={dataValue:b};!a&&this.fire("getData",b);return b.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string"){var b=this.element;b&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&
240
- (a=b.is("textarea")?b.getValue():b.getHtml())}return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,b,c){if(b)this.on("dataReady",function(a){a.removeListener();b.call(a.editor)});a={dataValue:a};!c&&this.fire("setData",a);this._.data=a.dataValue;!c&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==void 0||a;if(this.readOnly!=a){this.readOnly=a;this.keystrokeHandler.blockedKeystrokes[8]=+a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,
241
- b){this.fire("insertHtml",{dataValue:a,mode:b})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement",a)},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return s.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?
242
- arguments[0]:[[].slice.call(arguments,0)],c,e,d=b.length;d--;){c=b[d];e=0;if(CKEDITOR.tools.isArray(c)){e=c[1];c=c[0]}e?a[c]=e:delete a[c]}},addFeature:function(a){return this.filter.addFeature(a)},setActiveFilter:function(a){if(!a)a=this.filter;if(this.activeFilter!==a){this.activeFilter=a;this.fire("activeFilterChange");a===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(a.getAllowedEnterMode(this.enterMode),a.getAllowedEnterMode(this.shiftEnterMode,true))}},setActiveEnterMode:function(a,
243
- b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b){this.activeEnterMode=a;this.activeShiftEnterMode=b;this.fire("activeEnterModeChange")}}})})();CKEDITOR.ELEMENT_MODE_NONE=0;CKEDITOR.ELEMENT_MODE_REPLACE=1;CKEDITOR.ELEMENT_MODE_APPENDTO=2;CKEDITOR.ELEMENT_MODE_INLINE=3;
244
- CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)--\>)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))","g")}};
245
- (function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,d={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(b){for(var c,e,i=0,g;c=this._.htmlPartsRegex.exec(b);){e=c.index;if(e>i){i=b.substring(i,e);if(g)g.push(i);else this.onText(i)}i=
246
- this._.htmlPartsRegex.lastIndex;if(e=c[1]){e=e.toLowerCase();if(g&&CKEDITOR.dtd.$cdata[e]){this.onCDATA(g.join(""));g=null}if(!g){this.onTagClose(e);continue}}if(g)g.push(c[0]);else if(e=c[3]){e=e.toLowerCase();if(!/="/.test(e)){var l={},h;c=c[4];var k=!!(c&&c.charAt(c.length-1)=="/");if(c)for(;h=a.exec(c);){var o=h[1].toLowerCase();h=h[2]||h[3]||h[4]||"";l[o]=!h&&d[o]?o:CKEDITOR.tools.htmlDecodeAttr(h)}this.onTagOpen(e,l,k);!g&&CKEDITOR.dtd.$cdata[e]&&(g=[])}}else if(e=c[2])this.onComment(e)}if(b.length>
247
- i)this.onText(b.substring(i,b.length))}}})();
248
- CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(a){this._.output.push("<",a)},openTagClose:function(a,d){d?this._.output.push(" />"):this._.output.push(">")},attribute:function(a,d){typeof d=="string"&&(d=CKEDITOR.tools.htmlEncodeAttr(d));this._.output.push(" ",a,'="',d,'"')},closeTag:function(a){this._.output.push("</",a,">")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("<\!--",a,"--\>")},write:function(a){this._.output.push(a)},
249
- reset:function(){this._.output=[];this._.indent=false},getHtml:function(a){var d=this._.output.join("");a&&this.reset();return d}}});"use strict";
250
- (function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,d=CKEDITOR.tools.indexOf(a,this),b=this.previous,c=this.next;b&&(b.next=c);c&&(c.previous=b);a.splice(d,1);this.parent=null},replaceWith:function(a){var d=this.parent.children,b=CKEDITOR.tools.indexOf(d,this),c=a.previous=this.previous,e=a.next=this.next;c&&(c.next=a);e&&(e.previous=a);d[b]=a;a.parent=this.parent;this.parent=null},insertAfter:function(a){var d=a.parent.children,
251
- b=CKEDITOR.tools.indexOf(d,a),c=a.next;d.splice(b+1,0,this);this.next=a.next;this.previous=a;a.next=this;c&&(c.previous=this);this.parent=a.parent},insertBefore:function(a){var d=a.parent.children,b=CKEDITOR.tools.indexOf(d,a);d.splice(b,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var d=typeof a=="function"?a:typeof a=="string"?function(b){return b.name==a}:function(b){return b.name in a},b=this.parent;for(;b&&
252
- b.type==CKEDITOR.NODE_ELEMENT;){if(d(b))return b;b=b.parent}return null},wrapWith:function(a){this.replaceWith(a);a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}})();"use strict";CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:false}};
253
- CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(a,d){var b=this.value;if(!(b=a.onComment(d,b,this))){this.remove();return false}if(typeof b!="string"){this.replaceWith(b);return false}this.value=b;return true},writeHtml:function(a,d){d&&this.filter(d);a.comment(this.value)}});"use strict";
254
- (function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a,d){if(!(this.value=a.onText(d,this.value,this))){this.remove();return false}},writeHtml:function(a,d){d&&this.filter(d);a.text(this.value)}})})();"use strict";
255
- (function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})})();"use strict";CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false}};
256
- (function(){function a(a){return a.attributes["data-cke-survive"]?false:a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var d=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),b={ol:1,ul:1},c=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),e={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=
257
- function(i,g,l){function h(a){var b;if(y.length>0)for(var c=0;c<y.length;c++){var e=y[c],d=e.name,f=CKEDITOR.dtd[d],j=m.name&&CKEDITOR.dtd[m.name];if((!j||j[d])&&(!a||!f||f[a]||!CKEDITOR.dtd[a])){if(!b){k();b=1}e=e.clone();e.parent=m;m=e;y.splice(c,1);c--}else if(d==m.name){s(m,m.parent,1);c--}}}function k(){for(;A.length;)s(A.shift(),m)}function o(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var b=a.children.length,c=a.children[b-1],e;if(c&&c.type==CKEDITOR.NODE_TEXT)(e=CKEDITOR.tools.rtrim(c.value))?
258
- c.value=e:a.children.length=b-1}}function s(b,c,e){var c=c||m||p,d=m;if(b.previous===void 0){if(q(c,b)){m=c;f.onTagOpen(l,{});b.returnPoint=c=m}o(b);(!a(b)||b.children.length)&&c.add(b);b.name=="pre"&&(n=false);b.name=="textarea"&&(j=false)}if(b.returnPoint){m=b.returnPoint;delete b.returnPoint}else m=e?c:d}function q(a,b){if((a==p||a.name=="body")&&l&&(!a.name||CKEDITOR.dtd[a.name][l])){var c,e;return(c=b.attributes&&(e=b.attributes["data-cke-real-element-type"])?e:b.name)&&c in CKEDITOR.dtd.$inline&&
259
- !(c in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function u(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||a=="dt"&&b=="dd"||a=="dd"&&b=="dt":false}var f=new CKEDITOR.htmlParser,p=g instanceof CKEDITOR.htmlParser.element?g:typeof g=="string"?new CKEDITOR.htmlParser.element(g):new CKEDITOR.htmlParser.fragment,y=[],A=[],m=p,j=p.name=="textarea",n=p.name=="pre";f.onTagOpen=function(e,i,g,p){i=new CKEDITOR.htmlParser.element(e,i);if(i.isUnknown&&g)i.isEmpty=
260
- true;i.isOptionalClose=p;if(a(i))y.push(i);else{if(e=="pre")n=true;else{if(e=="br"&&n){m.add(new CKEDITOR.htmlParser.text("\n"));return}e=="textarea"&&(j=true)}if(e=="br")A.push(i);else{for(;;){p=(g=m.name)?CKEDITOR.dtd[g]||(m._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):c;if(!i.isUnknown&&!m.isUnknown&&!p[e])if(m.isOptionalClose)f.onTagClose(g);else if(e in b&&g in b){g=m.children;(g=g[g.length-1])&&g.name=="li"||s(g=new CKEDITOR.htmlParser.element("li"),m);!i.returnPoint&&(i.returnPoint=m);
261
- m=g}else if(e in CKEDITOR.dtd.$listItem&&!u(e,g))f.onTagOpen(e=="li"?"ul":"dl",{},0,1);else if(g in d&&!u(e,g)){!i.returnPoint&&(i.returnPoint=m);m=m.parent}else{g in CKEDITOR.dtd.$inline&&y.unshift(m);if(m.parent)s(m,m.parent,1);else{i.isOrphan=1;break}}else break}h(e);k();i.parent=m;i.isEmpty?s(i):m=i}}};f.onTagClose=function(a){for(var b=y.length-1;b>=0;b--)if(a==y[b].name){y.splice(b,1);return}for(var c=[],e=[],d=m;d!=p&&d.name!=a;){d._.isBlockLike||e.unshift(d);c.push(d);d=d.returnPoint||d.parent}if(d!=
262
- p){for(b=0;b<c.length;b++){var f=c[b];s(f,f.parent)}m=d;d._.isBlockLike&&k();s(d,d.parent);if(d==m)m=m.parent;y=y.concat(e)}a=="body"&&(l=false)};f.onText=function(a){if((!m._.hasInlineStarted||A.length)&&!n&&!j){a=CKEDITOR.tools.ltrim(a);if(a.length===0)return}var b=m.name,i=b?CKEDITOR.dtd[b]||(m._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):c;if(!j&&!i["#"]&&b in d){f.onTagOpen(e[b]||"");f.onText(a)}else{k();h();!n&&!j&&(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=new CKEDITOR.htmlParser.text(a);
263
- if(q(m,a))this.onTagOpen(l,{},0,1);m.add(a)}};f.onCDATA=function(a){m.add(new CKEDITOR.htmlParser.cdata(a))};f.onComment=function(a){k();h();m.add(new CKEDITOR.htmlParser.comment(a))};f.parse(i);for(k();m!=p;)s(m,m.parent,1);o(p);return p};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var c=b>0?this.children[b-1]:null;if(c){if(a._.isBlockLike&&c.type==CKEDITOR.NODE_TEXT){c.value=CKEDITOR.tools.rtrim(c.value);if(c.value.length===
264
- 0){this.children.pop();this.add(a);return}}c.next=a}a.previous=c;a.parent=this;this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a,b){b=this.getFilterContext(b);a.onRoot(b,this);this.filterChildren(a,false,b)},filterChildren:function(a,b,c){if(this.childrenFilteredBy!=a.id){c=this.getFilterContext(c);if(b&&!this.parent)a.onRoot(c,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)this.children[b].filter(a,
265
- c)===false&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,c){var e=this.getFilterContext();if(c&&!this.parent&&b)b.onRoot(e,this);b&&this.filterChildren(b,false,e);b=0;c=this.children;for(e=c.length;b<e;b++)c[b].writeHtml(a)},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var e=a(this);if(e!==false)for(var c=this.children,d=0;d<c.length;d++){e=c[d];e.type==CKEDITOR.NODE_ELEMENT?e.forEach(a,b):(!b||e.type==b)&&a(e)}},getFilterContext:function(a){return a||
266
- {}}}})();"use strict";
267
- (function(){function a(){this.rules=[]}function d(b,c,e,d){var g,l;for(g in c){(l=b[g])||(l=b[g]=new a);l.add(c[g],e,d)}}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(b){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new a;this.attributeNameRules=new a;this.elementsRules={};this.attributesRules={};this.textRules=new a;this.commentRules=new a;this.rootRules=new a;b&&this.addRules(b,10)},proto:{addRules:function(a,c){var e;if(typeof c=="number")e=c;else if(c&&"priority"in
268
- c)e=c.priority;typeof e!="number"&&(e=10);typeof c!="object"&&(c={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,e,c);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames,e,c);a.elements&&d(this.elementsRules,a.elements,e,c);a.attributes&&d(this.attributesRules,a.attributes,e,c);a.text&&this.textRules.add(a.text,e,c);a.comment&&this.commentRules.add(a.comment,e,c);a.root&&this.rootRules.add(a.root,e,c)},applyTo:function(a){a.filter(this)},onElementName:function(a,c){return this.elementNameRules.execOnName(a,
269
- c)},onAttributeName:function(a,c){return this.attributeNameRules.execOnName(a,c)},onText:function(a,c,e){return this.textRules.exec(a,c,e)},onComment:function(a,c,e){return this.commentRules.exec(a,c,e)},onRoot:function(a,c){return this.rootRules.exec(a,c)},onElement:function(a,c){for(var e=[this.elementsRules["^"],this.elementsRules[c.name],this.elementsRules.$],d,g=0;g<3;g++)if(d=e[g]){d=d.exec(a,c,this);if(d===false)return null;if(d&&d!=c)return this.onNode(a,d);if(c.parent&&!c.name)break}return c},
270
- onNode:function(a,c){var e=c.type;return e==CKEDITOR.NODE_ELEMENT?this.onElement(a,c):e==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,c.value)):e==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,c.value)):null},onAttribute:function(a,c,e,d){return(e=this.attributesRules[e])?e.exec(a,d,c,this):d}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,c,e){this.rules.splice(this.findIndex(c),0,{value:a,priority:c,options:e})},addMany:function(a,
271
- c,e){for(var d=[this.findIndex(c),0],g=0,l=a.length;g<l;g++)d.push({value:a[g],priority:c,options:e});this.rules.splice.apply(this.rules,d)},findIndex:function(a){for(var c=this.rules,e=c.length-1;e>=0&&a<c[e].priority;)e--;return e+1},exec:function(a,c){var e=c instanceof CKEDITOR.htmlParser.node||c instanceof CKEDITOR.htmlParser.fragment,d=Array.prototype.slice.call(arguments,1),g=this.rules,l=g.length,h,k,o,s;for(s=0;s<l;s++){if(e){h=c.type;k=c.name}o=g[s];if(!(a.nonEditable&&!o.options.applyToAll||
272
- a.nestedEditable&&o.options.excludeNestedEditable)){o=o.value.apply(null,d);if(o===false||e&&o&&(o.name!=k||o.type!=h))return o;o!=void 0&&(d[0]=c=o)}}return c},execOnName:function(a,c){for(var e=0,d=this.rules,g=d.length,l;c&&e<g;e++){l=d[e];!(a.nonEditable&&!l.options.applyToAll||a.nestedEditable&&l.options.excludeNestedEditable)&&(c=c.replace(l.value[0],l.value[1]))}return c}}})();
273
- (function(){function a(a,d){function f(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function j(a,e){return function(d){if(d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var j=[],m=b(d),n,g;if(m)for(t(m,1)&&j.push(m);m;){if(i(m)&&(n=c(m))&&t(n))if((g=c(n))&&!i(g))j.push(n);else{f(h).insertAfter(n);n.remove()}m=m.previous}for(m=0;m<j.length;m++)j[m].remove();if(j=CKEDITOR.env.opera&&!a||(typeof e=="function"?e(d)!==
274
- false:e))if(!h&&!CKEDITOR.env.needsBrFiller&&d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)j=false;else if(!h&&!CKEDITOR.env.needsBrFiller&&(document.documentMode>7||d.name in CKEDITOR.dtd.tr||d.name in CKEDITOR.dtd.$listItem))j=false;else{j=b(d);j=!j||d.name=="form"&&j.name=="input"}j&&d.add(f(a))}}}function t(a,b){if((!h||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var c;if(a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(y))){if(c.index){(new CKEDITOR.htmlParser.text(a.value.substring(0,
275
- c.index))).insertBefore(a);a.value=c[0]}if(!CKEDITOR.env.needsBrFiller&&h&&(!b||a.parent.name in p))return true;if(!h)if((c=a.previous)&&c.name=="br"||!c||i(c))return true}return false}var v={elements:{}},h=d=="html",p=CKEDITOR.tools.extend({},n),r;for(r in p)"#"in m[r]||delete p[r];for(r in p)v.elements[r]=j(h,a.config.fillEmptyBlocks!==false);v.root=j(h);v.elements.br=function(a){return function(b){if(b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var d=b.attributes;if("data-cke-bogus"in d||"data-cke-eol"in
276
- d)delete d["data-cke-bogus"];else{for(d=b.next;d&&e(d);)d=d.next;var j=c(b);!d&&i(b.parent)?g(b.parent,f(a)):i(d)&&(j&&!i(j))&&f(a).insertBefore(d)}}}}(h);return v}function d(a,b){return a!=CKEDITOR.ENTER_BR&&b!==false?a==CKEDITOR.ENTER_DIV?"div":"p":false}function b(a){for(a=a.children[a.children.length-1];a&&e(a);)a=a.previous;return a}function c(a){for(a=a.previous;a&&e(a);)a=a.previous;return a}function e(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&
277
- a.attributes["data-cke-bookmark"]}function i(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in n||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function g(a,b){var c=a.children[a.children.length-1];a.children.push(b);b.parent=a;if(c){c.next=b;b.previous=c}}function l(a){a=a.attributes;a.contenteditable!="false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function h(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}
278
- function k(a){return a.replace(G,function(a,b,c){return"<"+b+c.replace(I,function(a,b){return B.test(b)&&c.indexOf("data-cke-saved-"+b)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function o(a,b){return a.replace(b,function(a,b,c){a.indexOf("<textarea")===0&&(a=b+u(c).replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function s(a){return a.replace(v,function(a,b){return decodeURIComponent(b)})}function q(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,
279
- function(a){return"<\!--"+A+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function u(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)})}function f(a,b){var c=b._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return c&&c[b]||""})}function p(a,b){for(var c=[],e=b.config.protectedSource,d=b._.dataStore||(b._.dataStore=
280
- {id:1}),f=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,e=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(e),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(c.push(a)-1)+"--\>"}),j=0;j<e.length;j++)a=a.replace(e[j],function(a){a=a.replace(f,function(a,b,e){return c[e]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(c.push(a)-1)+"--\>"});a=a.replace(f,function(a,b,e){return"<\!--"+A+(b?"{C}":"")+encodeURIComponent(c[e]).replace(/--/g,"%2D%2D")+
281
- "--\>"});return a.replace(/<\w([^'">]+|'[^']*'|"[^"]*")+>/g,function(a){return a.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(a,b){d[d.id]=decodeURIComponent(b);return"{cke_protected_"+d.id++ +"}"})})}CKEDITOR.htmlDataProcessor=function(b){var c,e,j=this;this.editor=b;this.dataFilter=c=new CKEDITOR.htmlParser.filter;this.htmlFilter=e=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;c.addRules(r);c.addRules(J,{applyToAll:true});c.addRules(a(b,"data"),{applyToAll:true});
282
- e.addRules(t);e.addRules(w,{applyToAll:true});e.addRules(a(b,"html"),{applyToAll:true});b.on("toHtml",function(a){var a=a.data,c=a.dataValue,c=p(c,b),c=o(c,H),c=k(c),c=o(c,N),c=c.replace(x,"$1cke:$2"),c=c.replace(D,"<cke:$1$2></cke:$1>"),c=CKEDITOR.env.opera?c:c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),c=c.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2"),e=a.context||b.editable().getName(),f;if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&e=="pre"){e="div";c="<pre>"+c+"</pre>";
283
- f=1}e=b.document.createElement(e);e.setHtml("a"+c);c=e.getHtml().substr(1);c=c.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");f&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(C,"$1$2");c=s(c);c=u(c);a.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,a.context,a.fixForBody===false?false:d(a.enterMode,b.config.autoParagraph))},null,null,5);b.on("toHtml",function(a){a.data.filter.applyTo(a.data.dataValue,true,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",
284
- function(a){a.data.dataValue.filterChildren(j.dataFilter,true)},null,null,10);b.on("toHtml",function(a){var a=a.data,b=a.dataValue,c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(true);a.dataValue=q(b)},null,null,15);b.on("toDataFormat",function(a){var c=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&(c=c.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,a.data.context,d(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",
285
- function(a){a.data.dataValue.filterChildren(j.htmlFilter,true)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,false,true)},null,null,11);b.on("toDataFormat",function(a){var c=a.data.dataValue,e=j.writer;e.reset();c.writeChildrenHtml(e);c=e.getHtml(true);c=u(c);c=f(c,b);a.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,e){var d=this.editor,f,j,m;if(b&&typeof b=="object"){f=b.context;c=b.fixForBody;e=b.dontFilter;j=
286
- b.filter;m=b.enterMode}else f=b;!f&&f!==null&&(f=d.editable().getName());return d.fire("toHtml",{dataValue:a,context:f,fixForBody:c,dontFilter:e,filter:j||d.filter,enterMode:m||d.enterMode}).dataValue},toDataFormat:function(a,b){var c,e,d;if(b){c=b.context;e=b.filter;d=b.enterMode}!c&&c!==null&&(c=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:e||this.editor.filter,context:c,enterMode:d||this.editor.enterMode}).dataValue}};var y=/(?:&nbsp;|\xa0)$/,A="{cke_protected}",
287
- m=CKEDITOR.dtd,j=["caption","colgroup","col","thead","tfoot","tbody"],n=CKEDITOR.tools.extend({},m.$blockLimit,m.$block),r={elements:{input:l,textarea:l}},J={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},t={elements:{embed:function(a){var b=a.parent;if(b&&b.name=="object"){var c=b.attributes.width,b=b.attributes.height;if(c)a.attributes.width=c;if(b)a.attributes.height=b}},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false}}},
288
- w={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return false;for(var c=["name","href","src"],e,d=0;d<c.length;d++){e="data-cke-saved-"+c[d];e in b&&delete b[c[d]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,e;if(a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type){c=CKEDITOR.tools.indexOf(j,a.name);e=CKEDITOR.tools.indexOf(j,
289
- b.name)}if(!(c>-1&&e>-1&&c!=e)){c=a.parent?a.getIndex():-1;e=b.parent?b.getIndex():-1}return c>e?1:-1})},param:function(a){a.children=[];a.isEmpty=true;return a},span:function(a){a.attributes["class"]=="Apple-style-span"&&delete a.name},html:function(a){delete a.attributes.contenteditable;delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var b=a.children[0];if(b&&b.value)b.value=CKEDITOR.tools.trim(b.value);if(!a.attributes.type)a.attributes.type=
290
- "text/css"},title:function(a){var b=a.children[0];!b&&g(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:h,textarea:h},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||false}}};if(CKEDITOR.env.ie)w.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};var G=/<(a|area|img|input|source)\b([^>]*)>/gi,I=/([\w-]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,B=/^(href|src|name)$/i,
291
- N=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,H=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,v=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,x=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,C=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,D=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi})();"use strict";
292
- CKEDITOR.htmlParser.element=function(a,d){this.name=a;this.attributes=d||{};this.children=[];var b=a||"",c=b.match(/^cke:(.*)/);c&&(b=c[1]);b=!(!CKEDITOR.dtd.$nonBodyContent[b]&&!CKEDITOR.dtd.$block[b]&&!CKEDITOR.dtd.$listItem[b]&&!CKEDITOR.dtd.$tableContent[b]&&!(CKEDITOR.dtd.$nonEditable[b]||b=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:b,hasInlineStarted:this.isEmpty||!b}};
293
- CKEDITOR.htmlParser.cssStyle=function(a){var d={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,c,e){c=="font-family"&&(e=e.replace(/["']/g,""));d[c.toLowerCase()]=e});return{rules:d,populate:function(a){var c=this.toString();if(c)a instanceof CKEDITOR.dom.element?a.setAttribute("style",c):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=c:a.style=c},toString:function(){var a=[],c;
294
- for(c in d)d[c]&&a.push(c,":",d[c],";");return a.join("")}}};
295
- (function(){function a(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&(typeof a=="string"?b.name==a:b.name in a)}}var d=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},b=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:b.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,b){var d=this,g,l,b=d.getFilterContext(b);if(b.off)return true;
296
- if(!d.parent)a.onRoot(b,d);for(;;){g=d.name;if(!(l=a.onElementName(b,g))){this.remove();return false}d.name=l;if(!(d=a.onElement(b,d))){this.remove();return false}if(d!==this){this.replaceWith(d);return false}if(d.name==g)break;if(d.type!=CKEDITOR.NODE_ELEMENT){this.replaceWith(d);return false}if(!d.name){this.replaceWithChildren();return false}}g=d.attributes;var h,k;for(h in g){k=h;for(l=g[h];;)if(k=a.onAttributeName(b,h))if(k!=h){delete g[h];h=k}else break;else{delete g[h];break}k&&((l=a.onAttribute(b,
297
- d,k,l))===false?delete g[k]:g[k]=l)}d.isEmpty||this.filterChildren(a,false,b);return true},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var i=this.name,g=[],l=this.attributes,h,k;a.openTag(i,l);for(h in l)g.push([h,l[h]]);a.sortAttributes&&g.sort(d);h=0;for(k=g.length;h<k;h++){l=g[h];a.attribute(l[0],l[1])}a.openTagClose(i,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(i)},writeChildrenHtml:b.writeChildrenHtml,replaceWithChildren:function(){for(var a=
298
- this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()},forEach:b.forEach,getFirst:function(b){if(!b)return this.children.length?this.children[0]:null;typeof b!="function"&&(b=a(b));for(var e=0,d=this.children.length;e<d;++e)if(b(this.children[e]))return this.children[e];return null},getHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){for(var a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children,b=0,
299
- d=a.length;b<d;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),d=this.clone(),g=0;g<b.length;++g)b[g].parent=d;d.children=b;if(b[0])b[0].previous=null;if(a>0)this.children[a-1].next=null;this.parent.add(d,this.getIndex()+1);return d},removeClass:function(a){var b=this.attributes["class"];if(b)(b=CKEDITOR.tools.trim(b.replace(RegExp("(?:\\s+|^)"+a+
300
- "(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"]},hasClass:function(a){var b=this.attributes["class"];return!b?false:RegExp("(?:^|\\s)"+a+"(?=\\s|$)").test(b)},getFilterContext:function(a){var b=[];a||(a={off:false,nonEditable:false,nestedEditable:false});!a.off&&this.attributes["data-cke-processor"]=="off"&&b.push("off",true);!a.nonEditable&&this.attributes.contenteditable=="false"?b.push("nonEditable",true):this.name!="body"&&(!a.nestedEditable&&this.attributes.contenteditable==
301
- "true")&&b.push("nestedEditable",true);if(b.length)for(var a=CKEDITOR.tools.copy(a),d=0;d<b.length;d=d+2)a[b[d]]=b[d+1];return a}},true)})();(function(){var a={},d=/{([^}]+)}/g,b=/([\\'])/g,c=/\n/g,e=/\r/g;CKEDITOR.template=function(i){if(a[i])this.output=a[i];else{var g=i.replace(b,"\\$1").replace(c,"\\n").replace(e,"\\r").replace(d,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+b+"'],'"});this.output=a[i]=Function("data","buffer","return buffer?buffer.push('"+g+"'):['"+g+"'].join('');")}}})();
302
- delete CKEDITOR.loadFullCore;CKEDITOR.instances={};CKEDITOR.document=new CKEDITOR.dom.document(document);CKEDITOR.add=function(a){CKEDITOR.instances[a.name]=a;a.on("focus",function(){if(CKEDITOR.currentInstance!=a){CKEDITOR.currentInstance=a;CKEDITOR.fire("currentInstance")}});a.on("blur",function(){if(CKEDITOR.currentInstance==a){CKEDITOR.currentInstance=null;CKEDITOR.fire("currentInstance")}});CKEDITOR.fire("instance",null,a)};CKEDITOR.remove=function(a){delete CKEDITOR.instances[a.name]};
303
- (function(){var a={};CKEDITOR.addTemplate=function(d,b){var c=a[d];if(c)return c;c={name:d,source:b};CKEDITOR.fire("template",c);return a[d]=new CKEDITOR.template(c.source)};CKEDITOR.getTemplate=function(d){return a[d]}})();(function(){var a=[];CKEDITOR.addCss=function(d){a.push(d)};CKEDITOR.getCss=function(){return a.join("\n")}})();CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")});CKEDITOR.TRISTATE_ON=1;CKEDITOR.TRISTATE_OFF=2;
304
- CKEDITOR.TRISTATE_DISABLED=0;
305
- (function(){CKEDITOR.inline=function(a,d){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(d,a,CKEDITOR.ELEMENT_MODE_INLINE),c=a.is("textarea")?a:null;if(c){b.setData(c.getValue(),null,true);a=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!b.readOnly+'" class="cke_textarea_inline">'+c.getValue()+"</div>",CKEDITOR.document);
306
- a.insertAfter(c);c.hide();c.$.form&&b._attachToForm()}else b.setData(a.getHtml(),null,true);b.on("loaded",function(){b.fire("uiReady");b.editable(a);b.container=a;b.setData(b.getData(1));b.resetDirty();b.fire("contentDom");b.mode="wysiwyg";b.fire("mode");b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)},null,null,1E4);b.on("destroy",function(){if(c){b.container.clearCustomData();b.container.remove();c.show()}b.element.clearCustomData();delete b.element});return b};
307
- CKEDITOR.inlineAll=function(){var a,d,b;for(b in CKEDITOR.dtd.$editable)for(var c=CKEDITOR.document.getElementsByTag(b),e=0,i=c.count();e<i;e++){a=c.getItem(e);if(a.getAttribute("contenteditable")=="true"){d={element:a,config:{}};CKEDITOR.fire("inline",d)!==false&&CKEDITOR.inline(a,d.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})})();CKEDITOR.replaceClass="ckeditor";
308
- (function(){function a(a,c,g,l){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var h=new CKEDITOR.editor(c,a,l);if(l==CKEDITOR.ELEMENT_MODE_REPLACE){a.setStyle("visibility","hidden");h._.required=a.hasAttribute("required");a.removeAttribute("required")}g&&h.setData(g,null,true);h.on("loaded",function(){b(h);l==CKEDITOR.ELEMENT_MODE_REPLACE&&(h.config.autoUpdateElement&&
309
- a.$.form)&&h._attachToForm();h.setMode(h.config.startupMode,function(){h.resetDirty();h.status="ready";h.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,h)})});h.on("destroy",d);return h}function d(){var a=this.container,b=this.element;if(a){a.clearCustomData();a.remove()}if(b){b.clearCustomData();if(this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){b.show();this._.required&&b.setAttribute("required","required")}delete this.element}}function b(a){var b=a.name,d=a.element,l=a.elementMode,
310
- h=a.fire("uiSpace",{space:"top",html:""}).html,k=a.fire("uiSpace",{space:"bottom",html:""}).html;c||(c=CKEDITOR.addTemplate("maincontainer",'<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application" aria-labelledby="cke_{name}_arialbl"><span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span><{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'));
311
- b=CKEDITOR.dom.element.createFromHtml(c.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:[a.lang.editor,a.name].join(", "),topHtml:h?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+h+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:k?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+k+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(l==CKEDITOR.ELEMENT_MODE_REPLACE){d.hide();
312
- b.insertAfter(d)}else d.append(b);a.container=b;h&&a.ui.space("top").unselectable();k&&a.ui.space("bottom").unselectable();d=a.config.width;l=a.config.height;d&&b.setStyle("width",CKEDITOR.tools.cssLength(d));l&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(l));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(b,c){return a(b,c,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(b,c,d){return a(b,
313
- c,d,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var c=null,d=a[b];if(d.name||d.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(d.className))continue}else if(typeof arguments[0]=="function"){c={};if(arguments[0](d,c)===false)continue}this.replace(d,c)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=
314
- function(a,b){var c=this,d=this._.modes;if(!(a==c.mode||!d||!d[a])){c.fire("beforeSetMode",a);if(c.mode){var h=c.checkDirty();c._.previousMode=c.mode;c.fire("beforeModeUnload");c.editable(0);c.ui.space("contents").setHtml("");c.mode=""}this._.modes[a](function(){c.mode=a;h!==void 0&&!h&&c.resetDirty();setTimeout(function(){c.fire("mode");b&&b.call(c)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,c,d){var h=this.container,k=this.ui.space("contents"),o=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,
315
- d=d?h.getChild(1):h;d.setSize("width",a,true);o&&(o.style.width="1%");k.setStyle("height",Math.max(b-(c?0:(d.$.offsetHeight||0)-(k.$.clientHeight||0)),0)+"px");o&&(o.style.width="100%");this.fire("resize")};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};var c;CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})})();CKEDITOR.config.startupMode="wysiwyg";
316
- (function(){function a(a){var b=a.editor,e=a.data.path,i=e.blockLimit,m=a.data.selection,j=m.getRanges()[0],n;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(m=d(m,e)){m.appendBogus();n=CKEDITOR.env.ie}if(b.config.autoParagraph!==false&&b.activeEnterMode!=CKEDITOR.ENTER_BR&&b.editable().equals(i)&&!e.block&&j.collapsed&&!j.getCommonAncestor().isReadOnly()){e=j.clone();e.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);i=new CKEDITOR.dom.walker(e);i.guard=function(a){return!c(a)||a.type==
317
- CKEDITOR.NODE_COMMENT||a.isReadOnly()};if(!i.checkForward()||e.checkStartOfBlock()&&e.checkEndOfBlock()){b=j.fixBlock(true,b.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p");if(!CKEDITOR.env.needsBrFiller)(b=b.getFirst(c))&&(b.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(b.getText()).match(/^(?:&nbsp;|\xa0)$/))&&b.remove();n=1;a.cancel()}}n&&j.select()}function d(a,b){if(a.isFake)return 0;var d=b.block||b.blockLimit,e=d&&d.getLast(c);if(d&&d.isBlockBoundary()&&(!e||!(e.type==CKEDITOR.NODE_ELEMENT&&
318
- e.isBlockBoundary()))&&!d.is("pre")&&!d.getBogus())return d}function b(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&&a.data.preventDefault()}}function c(a){return o(a)&&s(a)}function e(a,b){return function(c){var d=CKEDITOR.dom.element.get(c.data.$.toElement||c.data.$.fromElement||c.data.$.relatedTarget);(!d||!b.equals(d)&&!b.contains(d))&&a.call(this,c)}}function i(a){var b,d=a.getRanges()[0],e=a.root,m={table:1,ul:1,ol:1,dl:1};if(d.startPath().contains(m)){var a=
319
- function(a){return function(d,e){e&&(d.type==CKEDITOR.NODE_ELEMENT&&d.is(m))&&(b=d);if(!e&&c(d)&&(!a||!h(d)))return false}},j=d.clone();j.collapse(1);j.setStartAt(e,CKEDITOR.POSITION_AFTER_START);e=new CKEDITOR.dom.walker(j);e.guard=a();e.checkBackward();if(b){j=d.clone();j.collapse();j.setEndAt(b,CKEDITOR.POSITION_AFTER_END);e=new CKEDITOR.dom.walker(j);e.guard=a(true);b=false;e.checkForward();return b}}return null}function g(a){a.editor.focus();a.editor.fire("saveSnapshot")}function l(a,b){var c=
320
- a.editor;!b&&c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);this.editor=a;this.hasFocus=false;this.setup()},proto:{focus:function(){var a;if(CKEDITOR.env.webkit&&!this.hasFocus){a=this.editor._.previousActive||this.getDocument().getActive();if(this.contains(a)){a.focus();return}}try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":
321
- "focus"]()}catch(b){if(!CKEDITOR.env.ie)throw b;}if(CKEDITOR.env.safari&&!this.isInline()){a=CKEDITOR.document.getActive();a.equals(this.getWindow().getFrame())||this.getWindow().focus()}},on:function(a,b){var c=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=a=="focus"?"focusin":"focusout";b=e(b,this);c[0]=a;c[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(a,b,c,d,e,j){!this._.listeners&&(this._.listeners=[]);var n=Array.prototype.slice.call(arguments,
322
- 1),n=a.on.apply(a,n);this._.listeners.push(n);return n},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,c;for(c in a)if(a.hasOwnProperty(c)){b=a[c];b!==null?this.setAttribute(c,b):this.removeAttribute(c)}},attachClass:function(a){var b=this.getCustomData("classes");if(!this.hasClass(a)){!b&&(b=[]);b.push(a);this.setCustomData("classes",b);this.addClass(a)}},changeAttr:function(a,b){var c=this.getAttribute(a);
323
- if(b!==c){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=c);this.setAttribute(a,b)}},insertHtml:function(a,b){g(this);q(this,b||"html",a)},insertText:function(a){g(this);var b=this.editor,c=b.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:b.activeEnterMode,b=c==CKEDITOR.ENTER_BR,d=CKEDITOR.tools,a=d.htmlEncode(a.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"&nbsp;&nbsp; &nbsp;"),c=c==CKEDITOR.ENTER_P?"p":"div";if(!b){var e=/\n{2}/g;
324
- if(e.test(a))var j="<"+c+">",n="</"+c+">",a=j+a.replace(e,function(){return n+j})+n}a=a.replace(/\n/g,"<br>");b||(a=a.replace(RegExp("<br>(?=</"+c+">)"),function(a){return d.repeat(a,2)}));a=a.replace(/^ | $/g,"&nbsp;");a=a.replace(/(>|\s) /g,function(a,b){return b+"&nbsp;"}).replace(/ (?=<)/g,"&nbsp;");q(this,"text",a)},insertElement:function(a,b){b?this.insertElementIntoRange(a,b):this.insertElementIntoSelection(a)},insertElementIntoRange:function(a,b){var c=this.editor,d=c.config.enterMode,e=a.getName(),
325
- j=CKEDITOR.dtd.$block[e];if(b.checkReadOnly())return false;b.deleteContents(1);b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&u(b);var n,i;if(j)for(;(n=b.getCommonAncestor(0,1))&&(i=CKEDITOR.dtd[n.getName()])&&(!i||!i[e]);)if(n.getName()in CKEDITOR.dtd.span)b.splitElement(n);else if(b.checkStartOfBlock()&&b.checkEndOfBlock()){b.setStartBefore(n);b.collapse(true);n.remove()}else b.splitBlock(d==CKEDITOR.ENTER_DIV?"div":"p",c.editable());b.insertNode(a);
326
- return true},insertElementIntoSelection:function(a){var b=this.editor,d=b.activeEnterMode,b=b.getSelection(),e=b.getRanges()[0],m=a.getName(),m=CKEDITOR.dtd.$block[m];g(this);if(this.insertElementIntoRange(a,e)){e.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);if(m)if((m=a.getNext(function(a){return c(a)&&!h(a)}))&&m.type==CKEDITOR.NODE_ELEMENT&&m.is(CKEDITOR.dtd.$block))m.getDtd()["#"]?e.moveToElementEditStart(m):e.moveToElementEditEnd(a);else if(!m&&d!=CKEDITOR.ENTER_BR){m=e.fixBlock(true,d==CKEDITOR.ENTER_DIV?
327
- "div":"p");e.moveToElementEditStart(m)}}b.selectRanges([e]);l(this,CKEDITOR.env.opera)},setData:function(a,b){b||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},
328
- setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b=this.getData();this.is("textarea")||a.config.ignoreEmptyParagraph!==false&&(b=b.replace(k,function(a,b){return b}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",
329
- function(){var b=a.getSelection();(b=b&&b.getNative())&&b.type=="Control"||this.focus()},this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode)},this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");this.attachClass(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"cke_editable_inline":
330
- a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO?"cke_editable_themed":"");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(a){CKEDITOR.env.opera&&CKEDITOR.document.getActive().equals(this.isInline()?this:this.getWindow().getFrame())?a.cancel():this.hasFocus=false},null,null,-1);this.on("focus",function(){this.hasFocus=true},null,null,
331
- -1);a.focusManager.add(this);if(this.equals(CKEDITOR.document.getActive())){this.hasFocus=true;a.once("contentDom",function(){a.focusManager.focus()})}this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document=this.getDocument();a.window=this.getWindow();var d=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var e=a.config.contentsLangDirection;this.getDirection(1)!=e&&this.changeAttr("dir",e);var g=CKEDITOR.getCss();if(g){e=d.getHead();
332
- if(!e.getCustomData("stylesheet")){g=d.appendStyleText(g);g=new CKEDITOR.dom.element(g.ownerNode||g.owningElement);e.setCustomData("stylesheet",g);g.data("cke-temp",1)}}e=d.getCustomData("stylesheet_ref")||0;d.setCustomData("stylesheet_ref",e+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");b&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});
333
- var m={8:1,46:1};this.attachListener(a,"key",function(b){if(a.readOnly)return true;var c=b.data.keyCode,d;if(c in m){var b=a.getSelection(),e,g=b.getRanges()[0],h=g.startPath(),k,l,p,c=c==8;if(CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(e=b.getSelectedElement())||(e=i(b))){a.fire("saveSnapshot");g.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove();g.select();a.fire("saveSnapshot");d=1}else if(g.collapsed)if((k=h.block)&&(p=k[c?"getPrevious":"getNext"](o))&&p.type==CKEDITOR.NODE_ELEMENT&&p.is("table")&&
334
- g[c?"checkStartOfBlock":"checkEndOfBlock"]()){a.fire("saveSnapshot");g[c?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove();g["moveToElementEdit"+(c?"End":"Start")](p);g.select();a.fire("saveSnapshot");d=1}else if(h.blockLimit&&h.blockLimit.is("td")&&(l=h.blockLimit.getAscendant("table"))&&g.checkBoundaryOfElement(l,c?CKEDITOR.START:CKEDITOR.END)&&(p=l[c?"getPrevious":"getNext"](o))){a.fire("saveSnapshot");g["moveToElementEdit"+(c?"End":"Start")](p);g.checkStartOfBlock()&&g.checkEndOfBlock()?p.remove():
335
- g.select();a.fire("saveSnapshot");d=1}else if((l=h.contains(["td","th","caption"]))&&g.checkBoundaryOfElement(l,c?CKEDITOR.START:CKEDITOR.END))d=1}return!d});a.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(b){if(b.data.getKeystroke()in m&&!this.getFirst(c)){this.appendBogus();b=a.createRange();b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START);b.select()}});this.attachListener(this,"dblclick",function(b){if(a.readOnly)return false;b={element:b.data.getTarget()};
336
- a.fire("doubleclick",b)});CKEDITOR.env.ie&&this.attachListener(this,"click",b);!CKEDITOR.env.ie&&!CKEDITOR.env.opera&&this.attachListener(this,"mousedown",function(b){var c=b.data.getTarget();if(c.is("img","hr","input","textarea","select")){a.getSelection().selectElement(c);c.is("input","textarea","select")&&b.data.preventDefault()}});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(b.data.$.button==2){b=b.data.getTarget();if(!b.getOuterHtml().replace(k,"")){var c=a.createRange();
337
- c.moveToElementEditStart(b);c.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()});this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()})}}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop());if(!this.is("textarea")){a=
338
- this.getDocument();var b=a.getHead();if(b.getCustomData("stylesheet")){var c=a.getCustomData("stylesheet_ref");if(--c)a.setCustomData("stylesheet_ref",c);else{a.removeCustomData("stylesheet_ref");b.removeCustomData("stylesheet").remove()}}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(arguments.length)b=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),
339
- null);return b};var h=CKEDITOR.dom.walker.bogus(),k=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,o=CKEDITOR.dom.walker.whitespaces(true),s=CKEDITOR.dom.walker.bookmark(false,true);CKEDITOR.on("instanceLoaded",function(b){var c=b.editor;c.on("insertElement",function(a){a=a.data;if(a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))){a.getAttribute("contentEditable")!="false"&&a.data("cke-editable",a.hasAttribute("contenteditable")?
340
- "true":"1");a.setAttribute("contentEditable",false)}});c.on("selectionChange",function(b){if(!c.readOnly){var d=c.getSelection();if(d&&!d.isLocked){d=c.checkDirty();c.fire("lockSnapshot");a(b);c.fire("unlockSnapshot");!d&&c.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var c=b.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",c);c&&a.changeAttr("title",c);if(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?
341
- "top":"contents")){var d=CKEDITOR.tools.getNextId(),e=CKEDITOR.dom.element.createFromHtml('<span id="'+d+'" class="cke_voice_label">'+this.lang.common.editorHelp+"</span>");c.append(e);a.changeAttr("aria-describedby",d)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var q=function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT}function b(c,d){var e,j,m,i,g=[],t=d.range.startContainer;e=d.range.startPath();for(var t=
342
- n[t.getName()],h=0,k=c.getChildren(),r=k.count(),l=-1,o=-1,q=0,s=e.contains(n.$list);h<r;++h){e=k.getItem(h);if(a(e)){m=e.getName();if(s&&m in CKEDITOR.dtd.$list)g=g.concat(b(e,d));else{i=!!t[m];if(m=="br"&&e.data("cke-eol")&&(!h||h==r-1)){q=(j=h?g[h-1].node:k.getItem(h+1))&&(!a(j)||!j.is("br"));j=j&&a(j)&&n.$block[j.getName()]}l==-1&&!i&&(l=h);i||(o=h);g.push({isElement:1,isLineBreak:q,isBlock:e.isBlockBoundary(),hasBlockSibling:j,node:e,name:m,allowed:i});j=q=0}}else g.push({isElement:0,node:e,
343
- allowed:1})}if(l>-1)g[l].firstNotAllowed=1;if(o>-1)g[o].lastNotAllowed=1;return g}function d(b,c){var e=[],j=b.getChildren(),m=j.count(),i,g=0,t=n[c],h=!b.is(n.$inline)||b.is("br");for(h&&e.push(" ");g<m;g++){i=j.getItem(g);a(i)&&!i.is(t)?e=e.concat(d(i,c)):e.push(i)}h&&e.push(" ");return e}function e(b){return b&&a(b)&&(b.is(n.$removeEmpty)||b.is("a")&&!b.isBlockBoundary())}function m(b,c,d,e){var j=b.clone(),g,n;j.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((g=(new CKEDITOR.dom.walker(j)).next())&&
344
- a(g)&&i[g.getName()]&&(n=g.getPrevious())&&a(n)&&!n.getParent().equals(b.startContainer)&&d.contains(n)&&e.contains(g)&&g.isIdentical(n)){g.moveChildren(n);g.remove();m(b,c,d,e)}}function j(b,c){function d(b,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&a(b)&&b.is("br")){b.remove();return 1}}var e=c.endContainer.getChild(c.endOffset),j=c.endContainer.getChild(c.endOffset-1);e&&d(e,b[b.length-1]);if(j&&d(j,b[0])){c.setEnd(c.endContainer,c.endOffset-1);c.collapse()}}var n=CKEDITOR.dtd,i={p:1,div:1,
345
- h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},g={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},t=CKEDITOR.tools.extend({},n.$inline);delete t.br;return function(i,h,k){var r=i.editor;i.getDocument();var o=r.getSelection().getRanges()[0],q=false;if(h=="unfiltered_html"){h="html";q=true}if(!o.checkReadOnly()){var v=(new CKEDITOR.dom.elementPath(o.startContainer,o.root)).blockLimit||o.root,h={type:h,dontFilter:q,editable:i,editor:r,range:o,blockLimit:v,mergeCandidates:[],zombies:[]},
346
- r=h.range,q=h.mergeCandidates,x,C,D,z;if(h.type=="text"&&r.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){x=CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",r.document);r.insertNode(x);r.setStartAfter(x)}C=new CKEDITOR.dom.elementPath(r.startContainer);h.endPath=D=new CKEDITOR.dom.elementPath(r.endContainer);if(!r.collapsed){var v=D.block||D.blockLimit,T=r.getCommonAncestor();v&&(!v.equals(T)&&!v.contains(T)&&r.checkEndOfBlock())&&h.zombies.push(v);r.deleteContents()}for(;(z=a(r.startContainer)&&
347
- r.startContainer.getChild(r.startOffset-1))&&a(z)&&z.isBlockBoundary()&&C.contains(z);)r.moveToPosition(z,CKEDITOR.POSITION_BEFORE_END);m(r,h.blockLimit,C,D);if(x){r.setEndBefore(x);r.collapse();x.remove()}x=r.startPath();if(v=x.contains(e,false,1)){r.splitElement(v);h.inlineStylesRoot=v;h.inlineStylesPeak=x.lastElement}x=r.createBookmark();(v=x.startNode.getPrevious(c))&&a(v)&&e(v)&&q.push(v);(v=x.startNode.getNext(c))&&a(v)&&e(v)&&q.push(v);for(v=x.startNode;(v=v.getParent())&&e(v);)q.push(v);r.moveToBookmark(x);
348
- if(x=k){x=h.range;if(h.type=="text"&&h.inlineStylesRoot){z=h.inlineStylesPeak;r=z.getDocument().createText("{cke-peak}");for(q=h.inlineStylesRoot.getParent();!z.equals(q);){r=r.appendTo(z.clone());z=z.getParent()}k=r.getOuterHtml().split("{cke-peak}").join(k)}z=h.blockLimit.getName();if(/^\s+|\s+$/.test(k)&&"span"in CKEDITOR.dtd[z])var s='<span data-cke-marker="1">&nbsp;</span>',k=s+k+s;k=h.editor.dataProcessor.toHtml(k,{context:null,fixForBody:false,dontFilter:h.dontFilter,filter:h.editor.activeFilter,
349
- enterMode:h.editor.activeEnterMode});z=x.document.createElement("body");z.setHtml(k);if(s){z.getFirst().remove();z.getLast().remove()}if((s=x.startPath().block)&&!(s.getChildCount()==1&&s.getBogus()))a:{var E;if(z.getChildCount()==1&&a(E=z.getFirst())&&E.is(g)){s=E.getElementsByTag("*");x=0;for(q=s.count();x<q;x++){r=s.getItem(x);if(!r.is(t))break a}E.moveChildren(E.getParent(1));E.remove()}}h.dataWrapper=z;x=k}if(x){E=h.range;var s=E.document,u,k=h.blockLimit;x=0;var K;z=[];var F,O,q=r=0,L,Q;C=E.startContainer;
350
- var v=h.endPath.elements[0],R;D=v.getPosition(C);T=!!v.getCommonAncestor(C)&&D!=CKEDITOR.POSITION_IDENTICAL&&!(D&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);C=b(h.dataWrapper,h);for(j(C,E);x<C.length;x++){D=C[x];if(u=D.isLineBreak){u=E;L=k;var M=void 0,U=void 0;if(D.hasBlockSibling)u=1;else{M=u.startContainer.getAscendant(n.$block,1);if(!M||!M.is({div:1,p:1}))u=0;else{U=M.getPosition(L);if(U==CKEDITOR.POSITION_IDENTICAL||U==CKEDITOR.POSITION_CONTAINS)u=0;else{L=u.splitElement(M);u.moveToPosition(L,
351
- CKEDITOR.POSITION_AFTER_START);u=1}}}}if(u)q=x>0;else{u=E.startPath();if(!D.isBlock&&h.editor.config.autoParagraph!==false&&(h.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&h.editor.editable().equals(u.blockLimit)&&!u.block)&&(O=h.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&h.editor.config.autoParagraph!==false?h.editor.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":false)){O=s.createElement(O);O.appendBogus();E.insertNode(O);CKEDITOR.env.needsBrFiller&&(K=O.getBogus())&&K.remove();E.moveToPosition(O,
352
- CKEDITOR.POSITION_BEFORE_END)}if((u=E.startPath().block)&&!u.equals(F)){if(K=u.getBogus()){K.remove();z.push(u)}F=u}D.firstNotAllowed&&(r=1);if(r&&D.isElement){u=E.startContainer;for(L=null;u&&!n[u.getName()][D.name];){if(u.equals(k)){u=null;break}L=u;u=u.getParent()}if(u){if(L){Q=E.splitElement(L);h.zombies.push(Q);h.zombies.push(L)}}else{L=k.getName();R=!x;u=x==C.length-1;L=d(D.node,L);for(var M=[],U=L.length,X=0,Z=void 0,$=0,aa=-1;X<U;X++){Z=L[X];if(Z==" "){if(!$&&(!R||X)){M.push(new CKEDITOR.dom.text(" "));
353
- aa=M.length}$=1}else{M.push(Z);$=0}}u&&aa==M.length&&M.pop();R=M}}if(R){for(;u=R.pop();)E.insertNode(u);R=0}else E.insertNode(D.node);if(D.lastNotAllowed&&x<C.length-1){(Q=T?v:Q)&&E.setEndAt(Q,CKEDITOR.POSITION_AFTER_START);r=0}E.collapse()}}h.dontMoveCaret=q;h.bogusNeededBlocks=z}K=h.range;var V;Q=h.bogusNeededBlocks;for(R=K.createBookmark();F=h.zombies.pop();)if(F.getParent()){O=K.clone();O.moveToElementEditStart(F);O.removeEmptyBlocksAtEnd()}if(Q)for(;F=Q.pop();)CKEDITOR.env.needsBrFiller?F.appendBogus():
354
- F.append(K.document.createText(" "));for(;F=h.mergeCandidates.pop();)F.mergeSiblings();K.moveToBookmark(R);if(!h.dontMoveCaret){for(F=a(K.startContainer)&&K.startContainer.getChild(K.startOffset-1);F&&a(F)&&!F.is(n.$empty);){if(F.isBlockBoundary())K.moveToPosition(F,CKEDITOR.POSITION_BEFORE_END);else{if(e(F)&&F.getHtml().match(/(\s|&nbsp;)$/g)){V=null;break}V=K.clone();V.moveToPosition(F,CKEDITOR.POSITION_BEFORE_END)}F=F.getLast(c)}V&&K.moveToRange(V)}o.select();l(i)}}}(),u=function(){function a(b){b=
355
- new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return false;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b}function b(a,c,d){c=a.getDocument().createElement(c);a.append(c,d);return c}function c(a){var b=a.count(),d;for(b;b-- >0;){d=a.getItem(b);if(!CKEDITOR.tools.trim(d.getHtml())){d.appendBogus();CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&d.getChildCount())&&d.getFirst().remove()}}}return function(d){var e=
356
- d.startContainer,j=e.getAscendant("table",1),i=false;c(j.getElementsByTag("td"));c(j.getElementsByTag("th"));j=d.clone();j.setStart(e,0);j=a(j).lastBackward();if(!j){j=d.clone();j.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);j=a(j).lastForward();i=true}j||(j=e);if(j.is("table")){d.setStartAt(j,CKEDITOR.POSITION_BEFORE_START);d.collapse(true);j.remove()}else{j.is({tbody:1,thead:1,tfoot:1})&&(j=b(j,"tr",i));j.is("tr")&&(j=b(j,j.getParent().is("thead")?"th":"td",i));(e=j.getBogus())&&e.remove();d.moveToPosition(j,
357
- i?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END)}}}()})();
358
- (function(){function a(){var a=this._.fakeSelection,b;if(a){b=this.getSelection(1);if(!b||!b.isHidden()){a.reset();a=0}}if(!a){a=b||this.getSelection(1);if(!a||a.getType()==CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",a);b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){if(CKEDITOR.env.webkit)this._.previousActive=this.document.getActive();this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}function d(){q=true;if(!s){b.call(this);s=CKEDITOR.tools.setTimeout(b,
359
- 200,this)}}function b(){s=null;if(q){CKEDITOR.tools.setTimeout(a,0,this);q=false}}function c(a){function b(c,d){return!c||c.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(d?"End":"Start")](c)}if(!(a.root instanceof CKEDITOR.editable))return false;var c=a.startContainer,d=a.getPreviousNode(u,null,c),e=a.getNextNode(u,null,c);return b(d)||b(e,1)||!d&&!e&&!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()&&c.getBogus())?true:false}function e(a){return a.getCustomData("cke-fillingChar")}
360
- function i(a,b){var c=a&&a.removeCustomData("cke-fillingChar");if(c){if(b!==false){var d,e=a.getDocument().getSelection().getNative(),f=e&&e.type!="None"&&e.getRangeAt(0);if(c.getLength()>1&&f&&f.intersectsNode(c.$)){d=[e.anchorOffset,e.focusOffset];f=e.focusNode==c.$&&e.focusOffset>0;e.anchorNode==c.$&&e.anchorOffset>0&&d[0]--;f&&d[1]--;var i;f=e;if(!f.isCollapsed){i=f.getRangeAt(0);i.setStart(f.anchorNode,f.anchorOffset);i.setEnd(f.focusNode,f.focusOffset);i=i.collapsed}i&&d.unshift(d.pop())}}c.setText(g(c.getText()));
361
- if(d){c=e.getRangeAt(0);c.setStart(c.startContainer,d[0]);c.setEnd(c.startContainer,d[1]);e.removeAllRanges();e.addRange(c)}}}function g(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function l(a,b,c){var d=a.on("focus",function(a){a.cancel()},null,null,-100);if(CKEDITOR.env.ie)var e=a.getDocument().on("selectionchange",function(a){a.cancel()},null,null,-100);else{var f=new CKEDITOR.dom.range(a);f.moveToElementEditStart(a);var i=a.getDocument().$.createRange();i.setStart(f.startContainer.$,
362
- f.startOffset);i.collapse(1);b.removeAllRanges();b.addRange(i)}c&&a.focus();d.removeListener();e&&e.removeListener()}function h(a){var b=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'">&nbsp;</div>',a.document);a.fire("lockSnapshot");a.editable().append(b);var c=a.getSelection(1),d=a.createRange(),e=c.root.on("selectionchange",function(a){a.cancel()},null,null,0);d.setStartAt(b,CKEDITOR.POSITION_AFTER_START);
363
- d.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);c.selectRanges([d]);e.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=b}function k(a){var b={37:1,39:1,8:1,46:1};return function(c){var d=c.data.getKeystroke();if(b[d]){var e=a.getSelection().getRanges(),f=e[0];if(e.length==1&&f.collapsed)if((d=f[d<38?"getPreviousEditableNode":"getNextEditableNode"]())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getAttribute("contenteditable")=="false"){a.getSelection().fake(d);c.data.preventDefault();c.cancel()}}}}
364
- function o(a){for(var b=0;b<a.length;b++){var c=a[b];c.getCommonAncestor().isReadOnly()&&a.splice(b,1);if(!c.collapsed){if(c.startContainer.isReadOnly())for(var d=c.startContainer,e;d;){if((e=d.type==CKEDITOR.NODE_ELEMENT)&&d.is("body")||!d.isReadOnly())break;e&&d.getAttribute("contentEditable")=="false"&&c.setStartAfter(d);d=d.getParent()}d=c.startContainer;e=c.endContainer;var f=c.startOffset,i=c.endOffset,g=c.clone();d&&d.type==CKEDITOR.NODE_TEXT&&(f>=d.getLength()?g.setStartAfter(d):g.setStartBefore(d));
365
- e&&e.type==CKEDITOR.NODE_TEXT&&(i?g.setEndAfter(e):g.setEndBefore(e));d=new CKEDITOR.dom.walker(g);d.evaluator=function(d){if(d.type==CKEDITOR.NODE_ELEMENT&&d.isReadOnly()){var e=c.clone();c.setEndBefore(d);c.collapsed&&a.splice(b--,1);if(!(d.getPosition(g.endContainer)&CKEDITOR.POSITION_CONTAINS)){e.setStartAfter(d);e.collapsed||a.splice(b+1,0,e)}return true}return false};d.next()}}return a}var s,q,u=CKEDITOR.dom.walker.invisible(1),f=function(){function a(b){return function(a){var c=a.editor.createRange();
366
- c.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([c]);return false}}function b(a){return function(b){var c=b.editor,d=c.createRange(),e;if(!(e=d.moveToClosestEditablePosition(b.selected,a)))e=d.moveToClosestEditablePosition(b.selected,!a);e&&c.getSelection().selectRanges([d]);c.fire("saveSnapshot");b.selected.remove();if(!e){d.moveToElementEditablePosition(c.editable());c.getSelection().selectRanges([d])}c.fire("saveSnapshot");return false}}var c=a(),d=a(1);return{37:c,
367
- 38:c,39:d,40:d,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(b){function c(){var a=e.getSelection();a&&a.removeAllRanges()}var e=b.editor;e.on("contentDom",function(){var b=e.document,c=CKEDITOR.document,f=e.editable(),j=b.getBody(),g=b.getDocumentElement(),m=f.isInline(),h,l;CKEDITOR.env.gecko&&f.attachListener(f,"focus",function(a){a.removeListener();if(h!==0)if((a=e.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==f.$){a=e.createRange();a.moveToElementEditStart(f);a.select()}},
368
- null,null,-2);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){h&&CKEDITOR.env.webkit&&(h=e._.previousActive&&e._.previousActive.equals(b.getActive()));e.unlockSelection(h);h=0},null,null,-1);f.attachListener(f,"mousedown",function(){h=0});if(CKEDITOR.env.ie||CKEDITOR.env.opera||m){var o=function(){l=new CKEDITOR.dom.selection(e.getSelection());l.lock()};p?f.attachListener(f,"beforedeactivate",o,null,null,-1):f.attachListener(e,"selectionCheck",o,null,null,-1);f.attachListener(f,
369
- CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){e.lockSelection(l);h=1},null,null,-1);f.attachListener(f,"mousedown",function(){h=0})}if(CKEDITOR.env.ie&&!m){var v;f.attachListener(f,"mousedown",function(a){if(a.data.$.button==2){a=e.document.getSelection();if(!a||a.getType()==CKEDITOR.SELECTION_NONE)v=e.window.getScrollPosition()}});f.attachListener(f,"mouseup",function(a){if(a.data.$.button==2&&v){e.document.$.documentElement.scrollLeft=v.x;e.document.$.documentElement.scrollTop=v.y}v=null});
370
- if(b.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)g.on("mousedown",function(a){function b(a){a=a.data.$;if(e){var c=j.$.createTextRange();try{c.moveToPoint(a.x,a.y)}catch(d){}e.setEndPoint(i.compareEndPoints("StartToStart",c)<0?"EndToEnd":"StartToStart",c);e.select()}}function d(){g.removeListener("mousemove",b);c.removeListener("mouseup",d);g.removeListener("mouseup",d);e.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<g.$.clientHeight&&a.$.x<g.$.clientWidth){var e=
371
- j.$.createTextRange();try{e.moveToPoint(a.$.x,a.$.y)}catch(f){}var i=e.duplicate();g.on("mousemove",b);c.on("mouseup",d);g.on("mouseup",d)}});if(CKEDITOR.env.version>7&&CKEDITOR.env.version<11){g.on("mousedown",function(a){if(a.data.getTarget().is("html")){c.on("mouseup",x);g.on("mouseup",x)}});var x=function(){c.removeListener("mouseup",x);g.removeListener("mouseup",x);var a=CKEDITOR.document.$.selection,d=a.createRange();a.type!="None"&&d.parentElement().ownerDocument==b.$&&d.select()}}}}f.attachListener(f,
372
- "selectionchange",a,e);f.attachListener(f,"keyup",d,e);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){e.forceNextSelectionCheck();e.selectionChange(1)});if(m?CKEDITOR.env.webkit||CKEDITOR.env.gecko:CKEDITOR.env.opera){var C;f.attachListener(f,"mousedown",function(){C=1});f.attachListener(b.getDocumentElement(),"mouseup",function(){C&&d.call(e);C=0})}else f.attachListener(CKEDITOR.env.ie?f:b.getDocumentElement(),"mouseup",d,e);CKEDITOR.env.webkit&&f.attachListener(b,"keydown",
373
- function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:i(f)}},null,null,-1);f.attachListener(f,"keydown",k(e),null,null,-1)});e.on("contentDomUnload",e.forceNextSelectionCheck,e);e.on("dataReady",function(){delete e._.fakeSelection;delete e._.hiddenSelectionContainer;e.selectionChange(1)});e.on("loadSnapshot",function(){var a=e.editable().getLast(function(a){return a.type==CKEDITOR.NODE_ELEMENT});a&&a.hasAttribute("data-cke-hidden-sel")&&
374
- a.remove()},null,null,100);CKEDITOR.env.ie9Compat&&e.on("beforeDestroy",c,null,null,9);CKEDITOR.env.webkit&&e.on("setData",c);e.on("contentDomUnload",function(){e.unlockSelection()});e.on("key",function(a){if(e.mode=="wysiwyg"){var b=e.getSelection();if(b.isFake){var c=f[a.data.keyCode];if(c)return c({editor:e,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});CKEDITOR.on("instanceReady",function(a){var b=a.editor;if(CKEDITOR.env.webkit){b.on("selectionChange",function(){var a=b.editable(),
375
- c=e(a);c&&(c.getCustomData("ready")?i(a):c.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){i(b.editable())},null,null,-1);var c,d,a=function(){var a=b.editable();if(a)if(a=e(a)){var f=b.document.$.defaultView.getSelection();f.type=="Caret"&&f.anchorNode==a.$&&(d=1);c=a.getText();a.setText(g(c))}},f=function(){var a=b.editable();if(a)if(a=e(a)){a.setText(c);if(d){b.document.$.defaultView.getSelection().setPosition(a.$,a.getLength());d=0}}};b.on("beforeUndoImage",a);b.on("afterUndoImage",
376
- f);b.on("beforeGetData",a,null,null,0);b.on("getData",f)}});CKEDITOR.editor.prototype.selectionChange=function(b){(b?a:d).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){if((this._.savedSelection||this._.fakeSelection)&&!a)return this._.savedSelection||this._.fakeSelection;return(a=this.editable())&&this.mode=="wysiwyg"?new CKEDITOR.dom.selection(a):null};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){!a.isLocked&&
377
- a.lock();this._.savedSelection=a;return true}return false};CKEDITOR.editor.prototype.unlockSelection=function(a){var b=this._.savedSelection;if(b){b.unlock(a);delete this._.savedSelection;return true}return false};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?
378
- this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;var p=typeof window.getSelection!="function",y=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection)var b=a,a=a.root;var c=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:y++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=a=c?a:this.document.getBody();this.isLocked=
379
- 0;this._={cache:{}};if(b){CKEDITOR.tools.extend(this._.cache,b._.cache);this.isFake=b.isFake;this.isLocked=b.isLocked;return this}b=p?this.document.$.selection:this.document.getWindow().$.getSelection();if(CKEDITOR.env.webkit)(b.type=="None"&&this.document.getActive().equals(a)||b.type=="Caret"&&b.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT)&&l(a,b);else if(CKEDITOR.env.gecko)b&&(this.document.getActive().equals(a)&&b.anchorNode&&b.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT)&&l(a,b,true);else if(CKEDITOR.env.ie){var d;
380
- try{d=this.document.getActive()}catch(e){}if(p)b.type=="None"&&(d&&d.equals(this.document.getDocumentElement()))&&l(a,null,true);else{(b=b&&b.anchorNode)&&(b=new CKEDITOR.dom.node(b));d&&(d.equals(this.document.getDocumentElement())&&b&&(a.equals(b)||a.contains(b)))&&l(a,null,true)}}d=this.getNative();var f,i;if(d)if(d.getRangeAt)f=(i=d.rangeCount&&d.getRangeAt(0))&&new CKEDITOR.dom.node(i.commonAncestorContainer);else{try{i=d.createRange()}catch(g){}f=i&&CKEDITOR.dom.element.get(i.item&&i.item(0)||
381
- i.parentElement())}if(!f||!(f.type==CKEDITOR.NODE_ELEMENT||f.type==CKEDITOR.NODE_TEXT)||!this.root.equals(f)&&!this.root.contains(f)){this._.cache.type=CKEDITOR.SELECTION_NONE;this._.cache.startElement=null;this._.cache.selectedElement=null;this._.cache.selectedText="";this._.cache.ranges=new CKEDITOR.dom.rangeList}return this};var A={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype=
382
- {getNative:function(){return this._.cache.nativeSel!==void 0?this._.cache.nativeSel:this._.cache.nativeSel=p?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:p?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;try{var c=this.getNative(),d=c.type;if(d=="Text")b=CKEDITOR.SELECTION_TEXT;if(d=="Control")b=CKEDITOR.SELECTION_ELEMENT;if(c.createRange().parentElement())b=CKEDITOR.SELECTION_TEXT}catch(e){}return a.type=b}:function(){var a=this._.cache;
383
- if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(c.rangeCount==1){var c=c.getRangeAt(0),d=c.startContainer;if(d==c.endContainer&&d.nodeType==1&&c.endOffset-c.startOffset==1&&A[d.childNodes[c.startOffset].nodeName.toLowerCase()])b=CKEDITOR.SELECTION_ELEMENT}return a.type=b},getRanges:function(){var a=p?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);
384
- var d=b.parentElement();if(!d.hasChildNodes())return{container:d,offset:0};for(var e=d.children,f,i,g=b.duplicate(),h=0,m=e.length-1,v=-1,k,n;h<=m;){v=Math.floor((h+m)/2);f=e[v];g.moveToElementText(f);k=g.compareEndPoints("StartToStart",b);if(k>0)m=v-1;else if(k<0)h=v+1;else return{container:d,offset:a(f)}}if(v==-1||v==e.length-1&&k<0){g.moveToElementText(d);g.setEndPoint("StartToStart",b);g=g.text.replace(/(\r\n|\r)/g,"\n").length;e=d.childNodes;if(!g){f=e[e.length-1];return f.nodeType!=CKEDITOR.NODE_TEXT?
385
- {container:d,offset:e.length}:{container:f,offset:f.nodeValue.length}}for(d=e.length;g>0&&d>0;){i=e[--d];if(i.nodeType==CKEDITOR.NODE_TEXT){n=i;g=g-i.nodeValue.length}}return{container:n,offset:-g}}g.collapse(k>0?true:false);g.setEndPoint(k>0?"StartToStart":"EndToStart",b);g=g.text.replace(/(\r\n|\r)/g,"\n").length;if(!g)return{container:d,offset:a(f)+(k>0?0:1)};for(;g>0;)try{i=f[k>0?"previousSibling":"nextSibling"];if(i.nodeType==CKEDITOR.NODE_TEXT){g=g-i.nodeValue.length;n=i}f=i}catch(l){return{container:d,
386
- offset:a(f)}}return{container:n,offset:k>0?-g:n.nodeValue.length+g}};return function(){var a=this.getNative(),c=a&&a.createRange(),d=this.getType();if(!a)return[];if(d==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);d=b(c,true);a.setStart(new CKEDITOR.dom.node(d.container),d.offset);d=b(c);a.setEnd(new CKEDITOR.dom.node(d.container),d.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(d==
387
- CKEDITOR.SELECTION_ELEMENT){for(var d=[],e=0;e<c.length;e++){for(var f=c.item(e),g=f.parentNode,i=0,a=new CKEDITOR.dom.range(this.root);i<g.childNodes.length&&g.childNodes[i]!=f;i++);a.setStart(new CKEDITOR.dom.node(g),i);a.setEnd(new CKEDITOR.dom.node(g),i+1);d.push(a)}return d}return[]}}():function(){var a=[],b,c=this.getNative();if(!c)return a;for(var d=0;d<c.rangeCount;d++){var e=c.getRangeAt(d);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(e.startContainer),e.startOffset);
388
- b.setEnd(new CKEDITOR.dom.node(e.endContainer),e.endOffset);a.push(b)}return a};return function(b){var c=this._.cache,d=c.ranges;if(!d)c.ranges=d=new CKEDITOR.dom.rangeList(a.call(this));return!b?d:o(new CKEDITOR.dom.rangeList(d.slice()))}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!==void 0)return a.startElement;var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var c=this.getRanges()[0];if(c){if(c.collapsed){b=
389
- c.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent())}else{for(c.optimize();;){b=c.startContainer;if(c.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary())c.setStartAfter(b);else break}b=c.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();b=b.getChild(c.startOffset);if(!b||b.type!=CKEDITOR.NODE_ELEMENT)b=c.startContainer;else for(c=b.getFirst();c&&c.type==CKEDITOR.NODE_ELEMENT;){b=c;c=c.getFirst()}}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):
390
- null},getSelectedElement:function(){var a=this._.cache;if(a.selectedElement!==void 0)return a.selectedElement;var b=this,c=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),c,d,e=2;e&&(!(c=a.getEnclosedNode())||!(c.type==CKEDITOR.NODE_ELEMENT&&A[c.getName()]&&(d=c)));e--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return d&&d.$});return a.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;
391
- if(a.selectedText!==void 0)return a.selectedText;var b=this.getNative(),b=p?b.type=="Control"?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var b=this.getSelectedElement(),c=!b&&this.getRanges(),d=this.isFake;this.isLocked=0;this.reset();if(a)(a=b||c[0]&&c[0].getCommonAncestor())&&a.getAscendant("body",
392
- 1)&&(d?this.fake(b):b?this.selectElement(b):this.selectRanges(c))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection&&this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var b=a._.hiddenSelectionContainer;if(b){a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot")}delete a._.hiddenSelectionContainer}this.rev=y++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var b=
393
- this.root.editor,b=b&&b._.hiddenSelectionContainer;this.reset();if(b)for(var b=this.root,d,e=0;e<a.length;++e){d=a[e];if(d.endContainer.equals(b))d.endOffset=Math.min(d.endOffset,b.getChildCount())}if(a.length)if(this.isLocked){var f=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();!f.equals(this.root)&&f.focus()}else{var g;a:{var h,k;if(a.length==1&&!(k=a[0]).collapsed&&(g=k.getEnclosedNode())&&g.type==CKEDITOR.NODE_ELEMENT){k=k.clone();k.shrink(CKEDITOR.SHRINK_ELEMENT,
394
- true);if((h=k.getEnclosedNode())&&h.type==CKEDITOR.NODE_ELEMENT)g=h;if(g.getAttribute("contenteditable")=="false")break a}g=void 0}if(g)this.fake(g);else{if(p){k=CKEDITOR.dom.walker.whitespaces(true);h=/\ufeff|\u00a0/;b={table:1,tbody:1,tr:1};if(a.length>1){g=a[a.length-1];a[0].setEnd(g.endContainer,g.endOffset)}g=a[0];var a=g.collapsed,l,o,q;if((d=g.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in A&&(!d.is("a")||!d.getText()))try{q=d.$.createControlRange();q.addElement(d.$);q.select();
395
- return}catch(s){}(g.startContainer.type==CKEDITOR.NODE_ELEMENT&&g.startContainer.getName()in b||g.endContainer.type==CKEDITOR.NODE_ELEMENT&&g.endContainer.getName()in b)&&g.shrink(CKEDITOR.NODE_ELEMENT,true);q=g.createBookmark();b=q.startNode;if(!a)f=q.endNode;q=g.document.$.body.createTextRange();q.moveToElementText(b.$);q.moveStart("character",1);if(f){h=g.document.$.body.createTextRange();h.moveToElementText(f.$);q.setEndPoint("EndToEnd",h);q.moveEnd("character",-1)}else{l=b.getNext(k);o=b.hasAscendant("pre");
396
- l=!(l&&l.getText&&l.getText().match(h))&&(o||!b.hasPrevious()||b.getPrevious().is&&b.getPrevious().is("br"));o=g.document.createElement("span");o.setHtml("&#65279;");o.insertBefore(b);l&&g.document.createText("").insertBefore(b)}g.setStartBefore(b);b.remove();if(a){if(l){q.moveStart("character",-1);q.select();g.document.$.selection.clear()}else q.select();g.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START);o.remove()}else{g.setEndBefore(f);f.remove();q.select()}}else{f=this.getNative();if(!f)return;
397
- if(CKEDITOR.env.opera){q=this.document.$.createRange();q.selectNodeContents(this.root.$);f.addRange(q)}this.removeAllRanges();for(q=0;q<a.length;q++){if(q<a.length-1){g=a[q];l=a[q+1];h=g.clone();h.setStart(g.endContainer,g.endOffset);h.setEnd(l.startContainer,l.startOffset);if(!h.collapsed){h.shrink(CKEDITOR.NODE_ELEMENT,true);o=h.getCommonAncestor();h=h.getEnclosedNode();if(o.isReadOnly()||h&&h.isReadOnly()){l.setStart(g.startContainer,g.startOffset);a.splice(q--,1);continue}}}g=a[q];o=this.document.$.createRange();
398
- l=g.startContainer;if(CKEDITOR.env.opera&&g.collapsed&&l.type==CKEDITOR.NODE_ELEMENT){h=l.getChild(g.startOffset-1);k=l.getChild(g.startOffset);if(!h&&!k&&l.is(CKEDITOR.dtd.$removeEmpty)||h&&h.type==CKEDITOR.NODE_ELEMENT||k&&k.type==CKEDITOR.NODE_ELEMENT){g.insertNode(this.document.createText(""));g.collapse(1)}}if(g.collapsed&&CKEDITOR.env.webkit&&c(g)){l=this.root;i(l,false);h=l.getDocument().createText("​");l.setCustomData("cke-fillingChar",h);g.insertNode(h);if((l=h.getNext())&&!h.getPrevious()&&
399
- l.type==CKEDITOR.NODE_ELEMENT&&l.getName()=="br"){i(this.root);g.moveToPosition(l,CKEDITOR.POSITION_BEFORE_START)}else g.moveToPosition(h,CKEDITOR.POSITION_AFTER_END)}o.setStart(g.startContainer.$,g.startOffset);try{o.setEnd(g.endContainer.$,g.endOffset)}catch(v){if(v.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){g.collapse(1);o.setEnd(g.endContainer.$,g.endOffset)}else throw v;}f.addRange(o)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a){var b=this.root.editor;this.reset();
400
- h(b);var c=this._.cache,d=new CKEDITOR.dom.range(this.root);d.setStartBefore(a);d.setEndAfter(a);c.ranges=new CKEDITOR.dom.rangeList(d);c.selectedElement=c.startElement=a;c.type=CKEDITOR.SELECTION_ELEMENT;c.selectedText=c.nativeSel=null;this.isFake=1;this.rev=y++;b._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},createBookmarks:function(a){a=this.getRanges().createBookmarks(a);
401
- this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var b=[],c=0;c<a.length;c++){var d=new CKEDITOR.dom.range(this.root);d.moveToBookmark(a[c]);b.push(d)}a.isFake?this.fake(b[0].getEnclosedNode()):this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return!a.length?null:a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer)},scrollIntoView:function(){this.type!=
402
- CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[p?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}})();"use strict";
403
- CKEDITOR.editor.prototype.attachStyleStateChange=function(a,d){var b=this._.styleStateChangeCallbacks;if(!b){b=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(a){for(var d=0;d<b.length;d++){var i=b[d],g=i.style.checkActive(a.data.path)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;i.fn.call(this,g)}})}b.push({style:a,fn:d})};CKEDITOR.STYLE_BLOCK=1;CKEDITOR.STYLE_INLINE=2;CKEDITOR.STYLE_OBJECT=3;
404
- (function(){function a(a,b){for(var c,d;a=a.getParent();){if(a.equals(b))break;if(a.getAttribute("data-nostyle"))c=a;else if(!d){var e=a.getAttribute("contentEditable");e=="false"?c=a:e=="true"&&(d=1)}}return c}function d(b){var e=b.document;if(b.collapsed){e=y(this,e);b.insertNode(e);b.moveToPosition(e,CKEDITOR.POSITION_BEFORE_END)}else{var f=this.element,g=this._.definition,i,h=g.ignoreReadonly,j=h||g.includeReadonly;j==void 0&&(j=b.root.getCustomData("cke_includeReadonly"));var k=CKEDITOR.dtd[f];
405
- if(!k){i=true;k=CKEDITOR.dtd.span}b.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.trim();var l=b.createBookmark(),m=l.startNode,n=l.endNode,o=m,q;if(!h){var p=b.getCommonAncestor(),h=a(m,p),p=a(n,p);h&&(o=h.getNextSourceNode(true));p&&(n=p)}for(o.getPosition(n)==CKEDITOR.POSITION_FOLLOWING&&(o=0);o;){h=false;if(o.equals(n)){o=null;h=true}else{var s=o.type==CKEDITOR.NODE_ELEMENT?o.getName():null,p=s&&o.getAttribute("contentEditable")=="false",r=s&&o.getAttribute("data-nostyle");if(s&&o.data("cke-bookmark")){o=
406
- o.getNextSourceNode(true);continue}if(p&&j&&CKEDITOR.dtd.$block[s])for(var t=o,w=c(t),A=void 0,B=w.length,G=0,t=B&&new CKEDITOR.dom.range(t.getDocument());G<B;++G){var A=w[G],J=CKEDITOR.filter.instances[A.data("cke-filter")];if(J?J.check(this):1){t.selectNodeContents(A);d.call(this,t)}}w=s?!k[s]||r?0:p&&!j?0:(o.getPosition(n)|N)==N&&(!g.childRule||g.childRule(o)):1;if(w)if((w=o.getParent())&&((w.getDtd()||CKEDITOR.dtd.span)[f]||i)&&(!g.parentRule||g.parentRule(w))){if(!q&&(!s||!CKEDITOR.dtd.$removeEmpty[s]||
407
- (o.getPosition(n)|N)==N)){q=b.clone();q.setStartBefore(o)}s=o.type;if(s==CKEDITOR.NODE_TEXT||p||s==CKEDITOR.NODE_ELEMENT&&!o.getChildCount()){for(var s=o,W;(h=!s.getNext(I))&&(W=s.getParent(),k[W.getName()])&&(W.getPosition(m)|H)==H&&(!g.childRule||g.childRule(W));)s=W;q.setEndAfter(s)}}else h=true;else h=true;o=o.getNextSourceNode(r||p)}if(h&&q&&!q.collapsed){for(var h=y(this,e),p=h.hasAttributes(),r=q.getCommonAncestor(),s={},w={},A={},B={},S,P,Y;h&&r;){if(r.getName()==f){for(S in g.attributes)if(!B[S]&&
408
- (Y=r.getAttribute(P)))h.getAttribute(S)==Y?w[S]=1:B[S]=1;for(P in g.styles)if(!A[P]&&(Y=r.getStyle(P)))h.getStyle(P)==Y?s[P]=1:A[P]=1}r=r.getParent()}for(S in w)h.removeAttribute(S);for(P in s)h.removeStyle(P);p&&!h.hasAttributes()&&(h=null);if(h){q.extractContents().appendTo(h);q.insertNode(h);u.call(this,h);h.mergeSiblings();CKEDITOR.env.ie||h.$.normalize()}else{h=new CKEDITOR.dom.element("span");q.extractContents().appendTo(h);q.insertNode(h);u.call(this,h);h.remove(true)}q=null}}b.moveToBookmark(l);
409
- b.shrink(CKEDITOR.SHRINK_TEXT);b.shrink(CKEDITOR.NODE_ELEMENT,true)}}function b(a){function b(){for(var a=new CKEDITOR.dom.elementPath(d.getParent()),c=new CKEDITOR.dom.elementPath(l.getParent()),e=null,f=null,g=0;g<a.elements.length;g++){var h=a.elements[g];if(h==a.block||h==a.blockLimit)break;m.checkElementRemovable(h)&&(e=h)}for(g=0;g<c.elements.length;g++){h=c.elements[g];if(h==c.block||h==c.blockLimit)break;m.checkElementRemovable(h)&&(f=h)}f&&l.breakParent(f);e&&d.breakParent(e)}a.enlarge(CKEDITOR.ENLARGE_INLINE,
410
- 1);var c=a.createBookmark(),d=c.startNode;if(a.collapsed){for(var e=new CKEDITOR.dom.elementPath(d.getParent(),a.root),g,i=0,h;i<e.elements.length&&(h=e.elements[i]);i++){if(h==e.block||h==e.blockLimit)break;if(this.checkElementRemovable(h)){var k;if(a.collapsed&&(a.checkBoundaryOfElement(h,CKEDITOR.END)||(k=a.checkBoundaryOfElement(h,CKEDITOR.START)))){g=h;g.match=k?"start":"end"}else{h.mergeSiblings();h.is(this.element)?q.call(this,h):f(h,j(this)[h.getName()])}}}if(g){h=d;for(i=0;;i++){k=e.elements[i];
411
- if(k.equals(g))break;else if(k.match)continue;else k=k.clone();k.append(h);h=k}h[g.match=="start"?"insertBefore":"insertAfter"](g)}}else{var l=c.endNode,m=this;b();for(e=d;!e.equals(l);){g=e.getNextSourceNode();if(e.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(e)){e.getName()==this.element?q.call(this,e):f(e,j(this)[e.getName()]);if(g.type==CKEDITOR.NODE_ELEMENT&&g.contains(d)){b();g=d.getNext()}}e=g}}a.moveToBookmark(c);a.shrink(CKEDITOR.NODE_ELEMENT,true)}function c(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")==
412
- "true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function e(a){var b=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&A(a,this)}function i(a){var b=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,c=b.attributes;if(c)for(var d in c)a.removeAttribute(d,c[d]);if(b.styles)for(var e in b.styles)b.styles.hasOwnProperty(e)&&
413
- a.removeStyle(e)}}function g(a){var b=a.createBookmark(true),c=a.createIterator();c.enforceRealBlocks=true;if(this._.enterMode)c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var d,e=a.document,f;d=c.getNextParagraph();)if(!d.isReadOnly()&&(c.activeFilter?c.activeFilter.check(this):1)){f=y(this,e,d);h(d,f)}a.moveToBookmark(b)}function l(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=true;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var d,e;d=c.getNextParagraph();)if(this.checkElementRemovable(d))if(d.is("pre")){(e=
414
- this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&d.copyAttributes(e);h(d,e)}else q.call(this,d);a.moveToBookmark(b)}function h(a,b){var c=!b;if(c){b=a.getDocument().createElement("div");a.copyAttributes(b)}var d=b&&b.is("pre"),e=a.is("pre"),f=!d&&e;if(d&&!e){e=b;(f=a.getBogus())&&f.remove();f=a.getHtml();f=o(f,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");f=f.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");f=f.replace(/([ \t\n\r]+|&nbsp;)/g,
415
- " ");f=f.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var g=a.getDocument().createElement("div");g.append(e);e.$.outerHTML="<pre>"+f+"</pre>";e.copyAttributes(g.getFirst());e=g.getFirst().remove()}else e.setHtml(f);b=e}else f?b=s(c?[a.getHtml()]:k(a),b):a.moveChildren(b);b.replace(a);if(d){var c=b,h;if((h=c.getPrevious(B))&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("pre")){d=o(h.getHtml(),/\n$/,"")+"\n\n"+o(c.getHtml(),/^\n/,"");CKEDITOR.env.ie?c.$.outerHTML="<pre>"+d+"</pre>":c.setHtml(d);h.remove()}}else c&&
416
- p(b)}function k(a){a.getName();var b=[];o(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,c){return b+"</pre>"+c+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function o(a,b,c){var d="",e="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(d=b);c&&(e=c);return""});return d+a.replace(b,c)+e}function s(a,b){var c;a.length>1&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));
417
- for(var d=0;d<a.length;d++){var e=a[d],e=e.replace(/(\r\n|\r)/g,"\n"),e=o(e,/^[ \t]*\n/,""),e=o(e,/\n$/,""),e=o(e,/^[ \t]+|[ \t]+$/g,function(a,b){return a.length==1?"&nbsp;":b?" "+CKEDITOR.tools.repeat("&nbsp;",a.length-1):CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "}),e=e.replace(/\n/g,"<br>"),e=e.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "});if(c){var f=b.clone();f.setHtml(e);c.append(f)}else b.setHtml(e)}return c||b}function q(a,b){var c=this._.definition,
418
- d=c.attributes,c=c.styles,e=j(this)[a.getName()],g=CKEDITOR.tools.isEmpty(d)&&CKEDITOR.tools.isEmpty(c),h;for(h in d)if(!((h=="class"||this._.definition.fullMatch)&&a.getAttribute(h)!=n(h,d[h]))&&!(b&&h.slice(0,5)=="data-")){g=a.hasAttribute(h);a.removeAttribute(h)}for(var i in c)if(!(this._.definition.fullMatch&&a.getStyle(i)!=n(i,c[i],true))){g=g||!!a.getStyle(i);a.removeStyle(i)}f(a,e,J[a.getName()]);g&&(this._.definition.alwaysRemoveElement?p(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==
419
- CKEDITOR.ENTER_BR&&!a.hasAttributes()?p(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function u(a){for(var b=j(this),c=a.getElementsByTag(this.element),d,e=c.count();--e>=0;){d=c.getItem(e);d.isReadOnly()||q.call(this,d,true)}for(var g in b)if(g!=this.element){c=a.getElementsByTag(g);for(e=c.count()-1;e>=0;e--){d=c.getItem(e);d.isReadOnly()||f(d,b[g])}}}function f(a,b,c){if(b=b&&b.attributes)for(var d=0;d<b.length;d++){var e=b[d][0],f;if(f=a.getAttribute(e)){var g=b[d][1];(g===null||
420
- g.test&&g.test(f)||typeof g=="string"&&f==g)&&a.removeAttribute(e)}}c||p(a)}function p(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(B),d=a.getNext(B);c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br",1);d&&(d.type==CKEDITOR.NODE_TEXT||!d.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{c=a.getFirst();d=a.getLast();a.remove(true);if(c){c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings();d&&(!c.equals(d)&&d.type==CKEDITOR.NODE_ELEMENT)&&
421
- d.mergeSiblings()}}}function y(a,b,c){var d;d=a.element;d=="*"&&(d="span");d=new CKEDITOR.dom.element(d,b);c&&c.copyAttributes(d);d=A(d,a);b.getCustomData("doc_processing_style")&&d.hasAttribute("id")?d.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return d}function A(a,b){var c=b._.definition,d=c.attributes,c=CKEDITOR.style.getStyleText(c);if(d)for(var e in d)a.setAttribute(e,d[e]);c&&a.setAttribute("style",c);return a}function m(a,b){for(var c in a)a[c]=a[c].replace(G,function(a,
422
- c){return b[c]})}function j(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},c=a._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var d=0;d<c.length;d++){var e=c[d],f,g;if(typeof e=="string")f=e.toLowerCase();else{f=e.element?e.element.toLowerCase():a.element;g=e.attributes}e=b[f]||(b[f]={});if(g){var e=e.attributes=e.attributes||[],h;for(h in g)e.push([h.toLowerCase(),g[h]])}}}return b}function n(a,b,c){var d=new CKEDITOR.dom.element("span");d[c?"setStyle":"setAttribute"](a,
423
- b);return d[c?"getStyle":"getAttribute"](a)}function r(a,b){for(var c=a.document,d=a.getRanges(),e=b?this.removeFromRange:this.applyToRange,f,g=d.createIterator();f=g.getNextRange();)e.call(this,f);a.selectRanges(d);c.removeCustomData("doc_processing_style")}var J={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},t={a:1,
424
- embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},w=/\s*(?:;\s*|$)/,G=/#\((.+?)\)/g,I=CKEDITOR.dom.walker.bookmark(0,1),B=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(a,b){var c=a.attributes;if(c&&c.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(c.style));delete c.style}if(b){a=CKEDITOR.tools.clone(a);m(a.attributes,b);m(a.styles,b)}c=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():
425
- a.element:"*";this.type=a.type||(J[c]?CKEDITOR.STYLE_BLOCK:t[c]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element=="object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.editor.prototype.applyStyle=function(a){a.checkApplicable(this.elementPath())&&r.call(a,this.getSelection())};CKEDITOR.editor.prototype.removeStyle=function(a){a.checkApplicable(this.elementPath())&&r.call(a,this.getSelection(),1)};CKEDITOR.style.prototype={apply:function(a){r.call(this,a.getSelection())},
426
- remove:function(a){r.call(this,a.getSelection(),1)},applyToRange:function(a){return(this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?d:this.type==CKEDITOR.STYLE_BLOCK?g:this.type==CKEDITOR.STYLE_OBJECT?e:null).call(this,a)},removeFromRange:function(a){return(this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?l:this.type==CKEDITOR.STYLE_OBJECT?i:null).call(this,a)},applyToObject:function(a){A(a,this)},checkActive:function(a){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||
427
- a.blockLimit,true);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,c=0,d;c<b.length;c++){d=b[c];if(!(this.type==CKEDITOR.STYLE_INLINE&&(d==a.block||d==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var e=d.getName();if(!(typeof this.element=="string"?e==this.element:e in this.element))continue}if(this.checkElementRemovable(d,true))return true}}}return false},checkApplicable:function(a,b){if(b&&!b.check(this))return false;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);
428
- case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return true},checkElementMatch:function(a,b){var c=this._.definition;if(!a||!c.ignoreReadonly&&a.isReadOnly())return false;var d=a.getName();if(typeof this.element=="string"?d==this.element:d in this.element){if(!b&&!a.hasAttributes())return true;if(d=c._AC)c=d;else{var d={},e=0,f=c.attributes;if(f)for(var g in f){e++;d[g]=f[g]}if(g=CKEDITOR.style.getStyleText(c)){d.style||e++;d.style=g}d._length=e;c=c._AC=d}if(c._length){for(var h in c)if(h!=
429
- "_length"){e=a.getAttribute(h)||"";if(h=="style")a:{d=c[h];typeof d=="string"&&(d=CKEDITOR.tools.parseCssText(d));typeof e=="string"&&(e=CKEDITOR.tools.parseCssText(e,true));g=void 0;for(g in d)if(!(g in e&&(e[g]==d[g]||d[g]=="inherit"||e[g]=="inherit"))){d=false;break a}d=true}else d=c[h]==e;if(d){if(!b)return true}else if(b)return false}if(b)return true}else return true}return false},checkElementRemovable:function(a,b){if(this.checkElementMatch(a,b))return true;var c=j(this)[a.getName()];if(c){var d;
430
- if(!(c=c.attributes))return true;for(var e=0;e<c.length;e++){d=c[e][0];if(d=a.getAttribute(d)){var f=c[e][1];if(f===null||typeof f=="string"&&d==f||f.test(d))return true}}}return false},buildPreview:function(a){var b=this._.definition,c=[],d=b.element;d=="bdo"&&(d="span");var c=["<",d],e=b.attributes;if(e)for(var f in e)c.push(" ",f,'="',e[f],'"');(e=CKEDITOR.style.getStyleText(b))&&c.push(' style="',e,'"');c.push(">",a||b.name,"</",d,">");return c.join("")},getDefinition:function(){return this._.definition}};
431
- CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;var b=a.styles,c=a.attributes&&a.attributes.style||"",d="";c.length&&(c=c.replace(w,";"));for(var e in b){var f=b[e],g=(e+":"+f).replace(w,";");f=="inherit"?d=d+g:c=c+g}c.length&&(c=CKEDITOR.tools.normalizeCssText(c,true));return a._ST=c+d};var N=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,H=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED})();
432
- CKEDITOR.styleCommand=function(a,d){this.requiredContent=this.allowedContent=this.style=a;CKEDITOR.tools.extend(this,d,true)};CKEDITOR.styleCommand.prototype.exec=function(a){a.focus();this.state==CKEDITOR.TRISTATE_OFF?a.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&a.removeStyle(this.style)};CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet");CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet);
433
- CKEDITOR.loadStylesSet=function(a,d,b){CKEDITOR.stylesSet.addExternal(a,d,"");CKEDITOR.stylesSet.load(a,b)};
434
- CKEDITOR.editor.prototype.getStylesSet=function(a){if(this._.stylesDefinitions)a(this._.stylesDefinitions);else{var d=this,b=d.config.stylesCombo_stylesSet||d.config.stylesSet;if(b===false)a(null);else if(b instanceof Array){d._.stylesDefinitions=b;a(b)}else{b||(b="default");var b=b.split(":"),c=b[0];CKEDITOR.stylesSet.addExternal(c,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(c,function(b){d._.stylesDefinitions=b[c];a(d._.stylesDefinitions)})}}};
435
- CKEDITOR.dom.comment=function(a,d){typeof a=="string"&&(a=(d?d.$:document).createComment(a));CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node;CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+"--\>"}});"use strict";
436
- (function(){var a={},d={},b;for(b in CKEDITOR.dtd.$blockLimit)b in CKEDITOR.dtd.$list||(a[b]=1);for(b in CKEDITOR.dtd.$block)b in CKEDITOR.dtd.$blockLimit||b in CKEDITOR.dtd.$empty||(d[b]=1);CKEDITOR.dom.elementPath=function(b,e){var i=null,g=null,l=[],h=b,k,e=e||b.getDocument().getBody();do if(h.type==CKEDITOR.NODE_ELEMENT){l.push(h);if(!this.lastElement){this.lastElement=h;if(h.is(CKEDITOR.dtd.$object)||h.getAttribute("contenteditable")=="false")continue}if(h.equals(e))break;if(!g){k=h.getName();
437
- h.getAttribute("contenteditable")=="true"?g=h:!i&&d[k]&&(i=h);if(a[k]){var o;if(o=!i){if(k=k=="div"){a:{k=h.getChildren();o=0;for(var s=k.count();o<s;o++){var q=k.getItem(o);if(q.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[q.getName()]){k=true;break a}}k=false}k=!k}o=k}o?i=h:g=h}}}while(h=h.getParent());g||(g=e);this.block=i;this.blockLimit=g;this.root=e;this.elements=l}})();
438
- CKEDITOR.dom.elementPath.prototype={compare:function(a){var d=this.elements,a=a&&a.elements;if(!a||d.length!=a.length)return false;for(var b=0;b<d.length;b++)if(!d[b].equals(a[b]))return false;return true},contains:function(a,d,b){var c;typeof a=="string"&&(c=function(b){return b.getName()==a});a instanceof CKEDITOR.dom.element?c=function(b){return b.equals(a)}:CKEDITOR.tools.isArray(a)?c=function(b){return CKEDITOR.tools.indexOf(a,b.getName())>-1}:typeof a=="function"?c=a:typeof a=="object"&&(c=
439
- function(b){return b.getName()in a});var e=this.elements,i=e.length;d&&i--;if(b){e=Array.prototype.slice.call(e,0);e.reverse()}for(d=0;d<i;d++)if(c(e[d]))return e[d];return null},isContextFor:function(a){var d;if(a in CKEDITOR.dtd.$block){d=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!d.getDtd()[a]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}};
440
- CKEDITOR.dom.text=function(a,d){typeof a=="string"&&(a=(d?d.$:document).createTextNode(a));this.$=a};CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node;
441
- CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(a){this.$.nodeValue=a},split:function(a){var d=this.$.parentNode,b=d.childNodes.length,c=this.getLength(),e=this.getDocument(),i=new CKEDITOR.dom.text(this.$.splitText(a),e);if(d.childNodes.length==b)if(a>=c){i=e.createText("");i.insertAfter(this)}else{a=e.createText("");a.insertAfter(i);a.remove()}return i},substring:function(a,
442
- d){return typeof d!="number"?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,d)}});
443
- (function(){function a(a,c,d){var i=a.serializable,g=c[d?"endContainer":"startContainer"],l=d?"endOffset":"startOffset",h=i?c.document.getById(a.startNode):a.startNode,a=i?c.document.getById(a.endNode):a.endNode;if(g.equals(h.getPrevious())){c.startOffset=c.startOffset-g.getLength()-a.getPrevious().getLength();g=a.getNext()}else if(g.equals(a.getPrevious())){c.startOffset=c.startOffset-g.getLength();g=a.getNext()}g.equals(h.getParent())&&c[l]++;g.equals(a.getParent())&&c[l]++;c[d?"endContainer":"startContainer"]=
444
- g;return c}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,d)};var d={createIterator:function(){var a=this,c=CKEDITOR.dom.walker.bookmark(),d=[],i;return{getNextRange:function(g){i=i==void 0?0:i+1;var l=a[i];if(l&&a.length>1){if(!i)for(var h=a.length-1;h>=0;h--)d.unshift(a[h].createBookmark(true));if(g)for(var k=0;a[i+k+1];){for(var o=l.document,g=0,h=o.getById(d[k].endNode),o=o.getById(d[k+
445
- 1].startNode);;){h=h.getNextSourceNode(false);if(o.equals(h))g=1;else if(c(h)||h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary())continue;break}if(!g)break;k++}for(l.moveToBookmark(d.shift());k--;){h=a[++i];h.moveToBookmark(d.shift());l.setEnd(h.endContainer,h.endOffset)}}return l}}},createBookmarks:function(b){for(var c=[],d,i=0;i<this.length;i++){c.push(d=this[i].createBookmark(b,true));for(var g=i+1;g<this.length;g++){this[g]=a(d,this[g]);this[g]=a(d,this[g],true)}}return c},createBookmarks2:function(a){for(var c=
446
- [],d=0;d<this.length;d++)c.push(this[d].createBookmark2(a));return c},moveToBookmarks:function(a){for(var c=0;c<this.length;c++)this[c].moveToBookmark(a[c])}}})();
447
- (function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function d(b){var c=CKEDITOR.skin["ua_"+b],d=CKEDITOR.env;if(c)for(var c=c.split(",").sort(function(a,b){return a>b?-1:1}),e=0,g;e<c.length;e++){g=c[e];if(d.ie&&(g.replace(/^ie/,"")==d.version||d.quirks&&g=="iequirks"))g="ie";if(d[g]){b=b+("_"+c[e]);break}}return CKEDITOR.getUrl(a()+b+".css")}function b(a,b){if(!i[a]){CKEDITOR.document.appendStyleSheet(d(a));i[a]=1}b&&b()}
448
- function c(a){var b=a.getById(g);if(!b){b=a.getHead().append("style");b.setAttribute("id",g);b.setAttribute("type","text/css")}return b}function e(a,b,c){var d,e,f;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(e=0;e<b.length;e++)b[e]=b[e].split("{")}for(var g=0;g<a.length;g++)if(CKEDITOR.env.webkit)for(e=0;e<b.length;e++){f=b[e][1];for(d=0;d<c.length;d++)f=f.replace(c[d][0],c[d][1]);a[g].$.sheet.addRule(b[e][0],f)}else{f=b;for(d=0;d<c.length;d++)f=f.replace(c[d][0],c[d][1]);CKEDITOR.env.ie&&
449
- CKEDITOR.env.version<11?a[g].$.styleSheet.cssText=a[g].$.styleSheet.cssText+f:a[g].$.innerHTML=a[g].$.innerHTML+f}}var i={};CKEDITOR.skin={path:a,loadPart:function(c,d){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){b(c,d)}):b(c,d)},getPath:function(a){return CKEDITOR.getUrl(d(a))},icons:{},addIcon:function(a,b,c,d){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:d||"16px"})},getIconStyle:function(a,
450
- b,c,d,e){var f;if(a){a=a.toLowerCase();b&&(f=this.icons[a+"-rtl"]);f||(f=this.icons[a])}a=c||f&&f.path||"";d=d||f&&f.offset;e=e||f&&f.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+d+"px;background-size:"+e+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=c(CKEDITOR.document);return(this.setUiColor=function(a){var c=CKEDITOR.skin.chameleon,d=[[h,a]];this.uiColor=a;e([b],c(this,
451
- "editor"),d);e(l,c(this,"panel"),d)}).call(this,a)}});var g="cke_ui_color",l=[],h=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var b=a.editor,a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!a.getById("cke_ui_color")){a=c(a);l.push(a);var d=b.getUiColor();d&&e([a],CKEDITOR.skin.chameleon(b,"panel"),[[h,d]])}};b.on("panelShow",a);b.on("menuShow",a);b.config.uiColor&&b.setUiColor(b.config.uiColor)}})})();
452
- (function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=false;else{var a=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var d=a.getComputedStyle("border-top-color"),b=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!(d&&d==b)}catch(c){CKEDITOR.env.hc=false}a.remove()}if(CKEDITOR.env.hc)CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc";
453
- CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending){delete CKEDITOR._.pending;for(d=0;d<a.length;d++){CKEDITOR.editor.prototype.constructor.apply(a[d][0],a[d][1]);CKEDITOR.add(a[d][0])}}})();/*
454
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
455
- For licensing, see LICENSE.md or http://ckeditor.com/license
456
- */
457
- CKEDITOR.skin.name="moono";CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko";CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8,opera";
458
- CKEDITOR.skin.chameleon=function(){var b=function(){return function(b,e){for(var a=b.match(/[^#]./g),c=0;3>c;c++){var f=a,h=c,d;d=parseInt(a[c],16);d=("0"+(0>e?0|d*(1+e):0|d+(255-d)*e).toString(16)).slice(-2);f[h]=d}return"#"+a.join("")}}(),c=function(){var b=new CKEDITOR.template("background:#{to};background-image:-webkit-gradient(linear,lefttop,leftbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{from},{to});background-image:-webkit-linear-gradient(top,{from},{to});background-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");return function(c,
459
- a){return b.output({from:c,to:a})}}(),f={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),
460
- panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
461
- return function(g,e){var a=g.uiColor,a={id:"."+g.id,defaultBorder:b(a,-0.1),defaultGradient:c(b(a,0.9),a),lightGradient:c(b(a,1),b(a,0.7)),mediumGradient:c(b(a,0.8),b(a,0.5)),ckeButtonOn:c(b(a,0.6),b(a,0.7)),ckeResizer:b(a,-0.4),ckeToolbarSeparator:b(a,0.5),ckeColorauto:b(a,0.8),dialogBody:b(a,0.7),dialogTabSelected:c("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:b(a,-0.6),elementsPathBg:a,menubuttonIcon:b(a,0.5),menubuttonIconHover:b(a,0.3)};return f[e].output(a).replace(/\[/g,
462
- "{").replace(/\]/g,"}")}}();CKEDITOR.plugins.add("dialogui",{onLoad:function(){var i=function(b){this._||(this._={});this._["default"]=this._.initValue=b["default"]||"";this._.required=b.required||!1;for(var a=[this._],d=1;d<arguments.length;d++)a.push(arguments[d]);a.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,a);return this._},r={build:function(b,a,d){return new CKEDITOR.ui.dialog.textInput(b,a,d)}},l={build:function(b,a,d){return new CKEDITOR.ui.dialog[a.type](b,a,d)}},n={isChanged:function(){return this.getValue()!=
463
- this.getInitValue()},reset:function(b){this.setValue(this.getInitValue(),b)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},o=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(b,a){this._.domOnChangeRegistered||(b.on("load",function(){this.getInputElement().on("change",function(){b.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},
464
- this)},this),this._.domOnChangeRegistered=!0);this.on("change",a)}},!0),s=/^on([A-Z]\w+)/,p=function(b){for(var a in b)(s.test(a)||"title"==a||"type"==a)&&delete b[a];return b};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(b,a,d,e){if(!(4>arguments.length)){var c=i.call(this,a);c.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];CKEDITOR.ui.dialog.uiElement.call(this,b,a,d,"div",null,{role:"presentation"},function(){var f=[],d=a.required?" cke_required":"";"horizontal"!=
465
- a.labelLayout?f.push('<label class="cke_dialog_ui_labeled_label'+d+'" ',' id="'+c.labelId+'"',c.inputId?' for="'+c.inputId+'"':"",(a.labelStyle?' style="'+a.labelStyle+'"':"")+">",a.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',a.controlStyle?' style="'+a.controlStyle+'"':"",' role="radiogroup" aria-labelledby="'+c.labelId+'">',e.call(this,b,a),"</div>"):(d={type:"hbox",widths:a.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+d+'" id="'+c.labelId+
466
- '" for="'+c.inputId+'"'+(a.labelStyle?' style="'+a.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(a.label)+"</span>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(a.controlStyle?' style="'+a.controlStyle+'"':"")+">"+e.call(this,b,a)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,d,f));return f.join("")})}},textInput:function(b,a,d){if(!(3>arguments.length)){i.call(this,a);var e=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",c={"class":"cke_dialog_ui_input_"+
467
- a.type,id:e,type:a.type};a.validate&&(this.validate=a.validate);a.maxLength&&(c.maxlength=a.maxLength);a.size&&(c.size=a.size);a.inputStyle&&(c.style=a.inputStyle);var f=this,h=!1;b.on("load",function(){f.getInputElement().on("keydown",function(a){a.data.getKeystroke()==13&&(h=true)});f.getInputElement().on("keyup",function(a){if(a.data.getKeystroke()==13&&h){b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0);h=false}},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,
468
- b,a,d,function(){var b=['<div class="cke_dialog_ui_input_',a.type,'" role="presentation"'];a.width&&b.push('style="width:'+a.width+'" ');b.push("><input ");c["aria-labelledby"]=this._.labelId;this._.required&&(c["aria-required"]=this._.required);for(var d in c)b.push(d+'="'+c[d]+'" ');b.push(" /></div>");return b.join("")})}},textarea:function(b,a,d){if(!(3>arguments.length)){i.call(this,a);var e=this,c=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",f={};a.validate&&(this.validate=a.validate);
469
- f.rows=a.rows||5;f.cols=a.cols||20;f["class"]="cke_dialog_ui_input_textarea "+(a["class"]||"");"undefined"!=typeof a.inputStyle&&(f.style=a.inputStyle);a.dir&&(f.dir=a.dir);CKEDITOR.ui.dialog.labeledElement.call(this,b,a,d,function(){f["aria-labelledby"]=this._.labelId;this._.required&&(f["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',c,'" '],b;for(b in f)a.push(b+'="'+CKEDITOR.tools.htmlEncode(f[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(e._["default"]),
470
- "</textarea></div>");return a.join("")})}},checkbox:function(b,a,d){if(!(3>arguments.length)){var e=i.call(this,a,{"default":!!a["default"]});a.validate&&(this.validate=a.validate);CKEDITOR.ui.dialog.uiElement.call(this,b,a,d,"span",null,null,function(){var c=CKEDITOR.tools.extend({},a,{id:a.id?a.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),d=[],h=CKEDITOR.tools.getNextId()+"_label",g={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":h};p(c);if(a["default"])g.checked=
471
- "checked";if(typeof c.inputStyle!="undefined")c.style=c.inputStyle;e.checkbox=new CKEDITOR.ui.dialog.uiElement(b,c,d,"input",null,g);d.push(' <label id="',h,'" for="',g.id,'"'+(a.labelStyle?' style="'+a.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(a.label),"</label>");return d.join("")})}},radio:function(b,a,d){if(!(3>arguments.length)){i.call(this,a);this._["default"]||(this._["default"]=this._.initValue=a.items[0][1]);a.validate&&(this.validate=a.valdiate);var e=[],c=this;CKEDITOR.ui.dialog.labeledElement.call(this,
472
- b,a,d,function(){for(var d=[],h=[],g=(a.id?a.id:CKEDITOR.tools.getNextId())+"_radio",k=0;k<a.items.length;k++){var j=a.items[k],i=j[2]!==void 0?j[2]:j[0],l=j[1]!==void 0?j[1]:j[0],m=CKEDITOR.tools.getNextId()+"_radio_input",n=m+"_label",m=CKEDITOR.tools.extend({},a,{id:m,title:null,type:null},true),i=CKEDITOR.tools.extend({},m,{title:i},true),o={type:"radio","class":"cke_dialog_ui_radio_input",name:g,value:l,"aria-labelledby":n},q=[];if(c._["default"]==l)o.checked="checked";p(m);p(i);if(typeof m.inputStyle!=
473
- "undefined")m.style=m.inputStyle;m.keyboardFocusable=true;e.push(new CKEDITOR.ui.dialog.uiElement(b,m,q,"input",null,o));q.push(" ");new CKEDITOR.ui.dialog.uiElement(b,i,q,"label",null,{id:n,"for":o.id},j[0]);d.push(q.join(""))}new CKEDITOR.ui.dialog.hbox(b,e,d,h);return h.join("")});this._.children=e}},button:function(b,a,d){if(arguments.length){"function"==typeof a&&(a=a(b.getParentEditor()));i.call(this,a,{disabled:a.disabled||!1});CKEDITOR.event.implementOn(this);var e=this;b.on("load",function(){var a=
474
- this.getElement();(function(){a.on("click",function(a){e.click();a.data.preventDefault()});a.on("keydown",function(a){a.data.getKeystroke()in{32:1}&&(e.click(),a.data.preventDefault())})})();a.unselectable()},this);var c=CKEDITOR.tools.extend({},a);delete c.style;var f=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,c,d,"a",null,{style:a.style,href:"javascript:void(0)",title:a.label,hidefocus:"true","class":a["class"],role:"button","aria-labelledby":f},'<span id="'+f+
475
- '" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(a.label)+"</span>")}},select:function(b,a,d){if(!(3>arguments.length)){var e=i.call(this,a);a.validate&&(this.validate=a.validate);e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,a,d,function(){var c=CKEDITOR.tools.extend({},a,{id:a.id?a.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),d=[],h=[],g={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};d.push('<div class="cke_dialog_ui_input_',
476
- a.type,'" role="presentation"');a.width&&d.push('style="width:'+a.width+'" ');d.push(">");if(a.size!=void 0)g.size=a.size;if(a.multiple!=void 0)g.multiple=a.multiple;p(c);for(var k=0,j;k<a.items.length&&(j=a.items[k]);k++)h.push('<option value="',CKEDITOR.tools.htmlEncode(j[1]!==void 0?j[1]:j[0]).replace(/"/g,"&quot;"),'" /> ',CKEDITOR.tools.htmlEncode(j[0]));if(typeof c.inputStyle!="undefined")c.style=c.inputStyle;e.select=new CKEDITOR.ui.dialog.uiElement(b,c,d,"select",null,g,h.join(""));d.push("</div>");
477
- return d.join("")})}},file:function(b,a,d){if(!(3>arguments.length)){void 0===a["default"]&&(a["default"]="");var e=CKEDITOR.tools.extend(i.call(this,a),{definition:a,buttons:[]});a.validate&&(this.validate=a.validate);b.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,a,d,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var b=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',
478
- e.frameId,'" title="',a.label,'" src="javascript:void('];b.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");b.push(')"></iframe>');return b.join("")})}},fileButton:function(b,a,d){if(!(3>arguments.length)){i.call(this,a);var e=this;a.validate&&(this.validate=a.validate);var c=CKEDITOR.tools.extend({},a),f=c.onClick;c.className=(c.className?c.className+" ":"")+"cke_dialog_ui_button";c.onClick=function(c){var d=
479
- a["for"];if(!f||f.call(this,c)!==false){b.getContentElement(d[0],d[1]).submit();this.disable()}};b.on("load",function(){b.getContentElement(a["for"][0],a["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,b,c,d)}},html:function(){var b=/^\s*<[\w:]+\s+([^>]*)?>/,a=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,d=/\/$/;return function(e,c,f){if(!(3>arguments.length)){var h=[],g=c.html;"<"!=g.charAt(0)&&(g="<span>"+g+"</span>");var k=c.focus;if(k){var j=this.focus;this.focus=function(){("function"==
480
- typeof k?k:j).call(this);this.fire("focus")};c.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,e,c,h,"span",null,null,"");h=h.join("").match(b);g=g.match(a)||["","",""];d.test(g[1])&&(g[1]=g[1].slice(0,-1),g[2]="/"+g[2]);f.push([g[1]," ",h[1]||"",g[2]].join(""))}}}(),fieldset:function(b,a,d,e,c){var f=c.label;this._={children:a};CKEDITOR.ui.dialog.uiElement.call(this,b,c,e,"fieldset",null,null,function(){var a=[];f&&a.push("<legend"+
481
- (c.labelStyle?' style="'+c.labelStyle+'"':"")+">"+f+"</legend>");for(var b=0;b<d.length;b++)a.push(d[b]);return a.join("")})}},!0);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(b){var a=CKEDITOR.document.getById(this._.labelId);1>a.getChildCount()?(new CKEDITOR.dom.text(b,CKEDITOR.document)).appendTo(a):a.getChild(0).$.nodeValue=b;return this},getLabel:function(){var b=
482
- CKEDITOR.document.getById(this._.labelId);return!b||1>b.getChildCount()?"":b.getChild(0).getText()},eventProcessors:o},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):!1},enable:function(){this._.disabled=!1;var b=this.getElement();b&&b.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},
483
- isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(b,a){this.on("click",function(){a.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},
484
- focus:function(){var b=this.selectParentTab();setTimeout(function(){var a=b.getInputElement();a&&a.$.focus()},0)},select:function(){var b=this.selectParentTab();setTimeout(function(){var a=b.getInputElement();a&&(a.$.focus(),a.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(b){!b&&(b="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},keyboardFocusable:!0},n,!0);CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype=
485
- CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(b,a,d){var e=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),c=this.getInputElement().$;e.$.text=b;e.$.value=void 0===a||null===a?b:a;void 0===d||null===d?CKEDITOR.env.ie?c.add(e.$):c.add(e.$,null):c.add(e.$,d);return this},remove:function(b){this.getInputElement().$.remove(b);return this},clear:function(){for(var b=this.getInputElement().$;0<
486
- b.length;)b.remove(0);return this},keyboardFocusable:!0},n,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(b,a){this.getInputElement().$.checked=b;!a&&this.fire("change",{value:b})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(b,a){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return o.onChange.apply(this,
487
- arguments);b.on("load",function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){b=b.data.$;"checked"==b.propertyName&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",a);return null}},keyboardFocusable:!0},n,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(b,a){for(var d=this._.children,e,c=0;c<d.length&&(e=d[c]);c++)e.getElement().$.checked=e.getValue()==b;!a&&this.fire("change",{value:b})},
488
- getValue:function(){for(var b=this._.children,a=0;a<b.length;a++)if(b[a].getElement().$.checked)return b[a].getValue();return null},accessKeyUp:function(){var b=this._.children,a;for(a=0;a<b.length;a++)if(b[a].getElement().$.checked){b[a].getElement().focus();return}b[0].getElement().focus()},eventProcessors:{onChange:function(b,a){if(CKEDITOR.env.ie)b.on("load",function(){for(var a=this._.children,b=this,c=0;c<a.length;c++)a[c].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&
489
- this.$.checked&&b.fire("change",{value:this.getAttribute("value")})})},this),this.on("change",a);else return o.onChange.apply(this,arguments);return null}}},n,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,n,{getInputElement:function(){var b=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<b.$.forms.length?new CKEDITOR.dom.element(b.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();
490
- return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(b){var a=/^on([A-Z]\w+)/,d,e=function(a,b,c,d){a.on("formLoaded",function(){a.getInputElement().on(c,d,a)})},c;for(c in b)if(d=c.match(a))this.eventProcessors[c]?this.eventProcessors[c].call(this,this._.dialog,b[c]):e(this,this._.dialog,d[1].toLowerCase(),b[c]);return this},reset:function(){function b(){d.$.open();var b="";e.size&&(b=e.size-(CKEDITOR.env.ie?7:0));var i=a.frameId+"_input";
491
- d.$.write(['<html dir="'+g+'" lang="'+k+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+g+'" lang="'+k+'" action="',CKEDITOR.tools.htmlEncode(e.action),'"><label id="',a.labelId,'" for="',i,'" style="display:none">',CKEDITOR.tools.htmlEncode(e.label),'</label><input style="width:100%" id="',i,'" aria-labelledby="',a.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(e.id||"cke_upload"),
492
- '" size="',CKEDITOR.tools.htmlEncode(0<b?b:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+f+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+h+")}","<\/script>"].join(""));d.$.close();for(b=0;b<c.length;b++)c[b].enable()}var a=this._,d=CKEDITOR.document.getById(a.frameId).getFrameDocument(),e=a.definition,c=a.buttons,f=this.formLoadedNumber,h=this.formUnloadNumber,g=a.dialog._.editor.lang.dir,
493
- k=a.dialog._.editor.langCode;f||(f=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),h=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(f);CKEDITOR.tools.removeFunction(h)}));CKEDITOR.env.gecko?setTimeout(b,500):b()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=
494
- ""},eventProcessors:{onChange:function(b,a){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0);this.on("change",a)}},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",r);CKEDITOR.dialog.addUIElement("password",
495
- r);CKEDITOR.dialog.addUIElement("textarea",l);CKEDITOR.dialog.addUIElement("checkbox",l);CKEDITOR.dialog.addUIElement("radio",l);CKEDITOR.dialog.addUIElement("button",l);CKEDITOR.dialog.addUIElement("select",l);CKEDITOR.dialog.addUIElement("file",l);CKEDITOR.dialog.addUIElement("fileButton",l);CKEDITOR.dialog.addUIElement("html",l);CKEDITOR.dialog.addUIElement("fieldset",{build:function(b,a,d){for(var e=a.children,c,f=[],h=[],g=0;g<e.length&&(c=e[g]);g++){var i=[];f.push(i);h.push(CKEDITOR.dialog._.uiElementBuilders[c.type].build(b,
496
- c,i))}return new CKEDITOR.ui.dialog[a.type](b,h,f,d,a)}})}});CKEDITOR.DIALOG_RESIZE_NONE=0;CKEDITOR.DIALOG_RESIZE_WIDTH=1;CKEDITOR.DIALOG_RESIZE_HEIGHT=2;CKEDITOR.DIALOG_RESIZE_BOTH=3;
497
- (function(){function t(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,c=b-1;c>b-a;c--)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function u(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),c=b+1;c<b+a;c++)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function G(a,b){for(var c=a.$.getElementsByTagName("input"),
498
- e=0,d=c.length;e<d;e++){var g=new CKEDITOR.dom.element(c[e]);"text"==g.getAttribute("type").toLowerCase()&&(b?(g.setAttribute("value",g.getCustomData("fake_value")||""),g.removeCustomData("fake_value")):(g.setCustomData("fake_value",g.getAttribute("value")),g.setAttribute("value","")))}}function P(a,b){var c=this.getInputElement();c&&(a?c.removeAttribute("aria-invalid"):c.setAttribute("aria-invalid",!0));a||(this.select?this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}
499
- function Q(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function R(a){var a=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",S).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),b=a.getChild([0,0,0,0,0]),c=b.getChild(0),e=b.getChild(1);if(CKEDITOR.env.ie&&!CKEDITOR.env.ie6Compat){var d=
500
- "javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+d+'" tabIndex="-1"></iframe>').appendTo(b.getParent())}c.unselectable();e.unselectable();return{element:a,parts:{dialog:a.getChild(0),title:c,close:e,tabs:b.getChild(2),contents:b.getChild([3,0,0,0]),footer:b.getChild([3,0,1,0])}}}function H(a,b,c){this.element=b;this.focusIndex=c;this.tabIndex=
501
- 0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});b.on("blur",function(){this.fire("mouseout")})}function T(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function I(a,b){this._=
502
- {dialog:a};CKEDITOR.tools.extend(this,b)}function U(a){function b(b){var c=a.getSize(),h=CKEDITOR.document.getWindow().getViewPaneSize(),o=b.data.$.screenX,j=b.data.$.screenY,n=o-e.x,m=j-e.y;e={x:o,y:j};d.x+=n;d.y+=m;a.move(d.x+i[3]<f?-i[3]:d.x-i[1]>h.width-c.width-f?h.width-c.width+("rtl"==g.lang.dir?0:i[1]):d.x,d.y+i[0]<f?-i[0]:d.y-i[2]>h.height-c.height-f?h.height-c.height+i[2]:d.y,1);b.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",
503
- c);if(CKEDITOR.env.ie6Compat){var a=q.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var e=null,d=null;a.getElement().getFirst();var g=a.getParentEditor(),f=g.config.dialog_magnetDistance,i=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof f&&(f=20);a.parts.title.on("mousedown",function(f){e={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);d=a.getPosition();if(CKEDITOR.env.ie6Compat){var k=
504
- q.getChild(0).getFrameDocument();k.on("mousemove",b);k.on("mouseup",c)}f.data.preventDefault()},a)}function V(a){var b,c;function e(d){var e="rtl"==i.lang.dir,j=o.width,C=o.height,D=j+(d.data.$.screenX-b)*(e?-1:1)*(a._.moved?1:2),n=C+(d.data.$.screenY-c)*(a._.moved?1:2),x=a._.element.getFirst(),x=e&&x.getComputedStyle("right"),y=a.getPosition();y.y+n>h.height&&(n=h.height-y.y);if((e?x:y.x)+D>h.width)D=h.width-(e?x:y.x);if(f==CKEDITOR.DIALOG_RESIZE_WIDTH||f==CKEDITOR.DIALOG_RESIZE_BOTH)j=Math.max(g.minWidth||
505
- 0,D-l);if(f==CKEDITOR.DIALOG_RESIZE_HEIGHT||f==CKEDITOR.DIALOG_RESIZE_BOTH)C=Math.max(g.minHeight||0,n-k);a.resize(j,C);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",e);j&&(j.remove(),j=null);if(CKEDITOR.env.ie6Compat){var a=q.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",e)}}var g=a.definition,f=g.resizable;if(f!=CKEDITOR.DIALOG_RESIZE_NONE){var i=a.getParentEditor(),
506
- l,k,h,o,j,n=CKEDITOR.tools.addFunction(function(f){o=a.getSize();var g=a.parts.contents;g.$.getElementsByTagName("iframe").length&&(j=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),g.append(j));k=o.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks));l=o.width-a.parts.contents.getSize("width",1);b=f.screenX;c=f.screenY;h=CKEDITOR.document.getWindow().getViewPaneSize();
507
- CKEDITOR.document.on("mousemove",e);CKEDITOR.document.on("mouseup",d);CKEDITOR.env.ie6Compat&&(g=q.getChild(0).getFrameDocument(),g.on("mousemove",e),g.on("mouseup",d));f.preventDefault&&f.preventDefault()});a.on("load",function(){var b="";f==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":f==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+i.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(i.lang.common.resize)+
508
- '" onmousedown="CKEDITOR.tools.callFunction('+n+', event )">'+("ltr"==i.lang.dir?"◢":"◣")+"</div>");a.parts.footer.append(b,1)});i.on("destroy",function(){CKEDITOR.tools.removeFunction(n)})}}function E(a){a.data.preventDefault(1)}function J(a){var b=CKEDITOR.document.getWindow(),c=a.config,e=c.dialog_backgroundCoverColor||"white",d=c.dialog_backgroundCoverOpacity,g=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(e,d,g),f=w[c];f?f.show():(g=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?
509
- "absolute":"fixed","; z-index: ",g,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+e:"",'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(e="<html><body style=\\'background-color:"+e+";\\'></body></html>",g.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),g.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())"),g.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),
510
- g.push("</div>"),f=CKEDITOR.dom.element.createFromHtml(g.join("")),f.setOpacity(void 0!=d?d:0.5),f.on("keydown",E),f.on("keypress",E),f.on("keyup",E),f.appendTo(CKEDITOR.document.getBody()),w[c]=f);a.focusManager.add(f);q=f;var a=function(){var a=b.getViewPaneSize();f.setStyles({width:a.width+"px",height:a.height+"px"})},i=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;f.setStyles({left:a.x+"px",top:a.y+"px"});if(c){do{a=c.getPosition();c.move(a.x,a.y)}while(c=c._.parentDialog)
511
- }};F=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&f.focus();if(CKEDITOR.env.ie6Compat){var l=function(){i();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){l.prevScrollHandler=window.onscroll||function(){};window.onscroll=l},0);i()}}function K(a){q&&(a.focusManager.remove(q),a=CKEDITOR.document.getWindow(),q.hide(),a.removeListener("resize",F),CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||
512
- null},0),F=null)}var r=CKEDITOR.tools.cssLength,S='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';
513
- CKEDITOR.dialog=function(a,b){function c(){var a=m._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,c=0;c<b;c++)a[c].focusIndex=c}function e(a){var b=m._.focusList,a=a||0;if(!(1>b.length)){var c=m._.currentFocusIndex;try{b[c].getInputElement().$.blur()}catch(f){}for(var d=c=(c+a+b.length)%b.length;a&&!b[d].isFocusable()&&!(d=(d+a+b.length)%b.length,d==c););b[d].focus();"text"==b[d].type&&b[d].select()}}function d(b){if(m==
514
- CKEDITOR.dialog._.currentTop){var c=b.data.getKeystroke(),d="rtl"==a.lang.dir;o=j=0;if(9==c||c==CKEDITOR.SHIFT+9)c=c==CKEDITOR.SHIFT+9,m._.tabBarMode?(c=c?t.call(m):u.call(m),m.selectPage(c),m._.tabs[c][0].focus()):e(c?-1:1),o=1;else if(c==CKEDITOR.ALT+121&&!m._.tabBarMode&&1<m.getPageCount())m._.tabBarMode=!0,m._.tabs[m._.currentTabId][0].focus(),o=1;else if((37==c||39==c)&&m._.tabBarMode)c=c==(d?39:37)?t.call(m):u.call(m),m.selectPage(c),m._.tabs[c][0].focus(),o=1;else if((13==c||32==c)&&m._.tabBarMode)this.selectPage(this._.currentTabId),
515
- this._.tabBarMode=!1,this._.currentFocusIndex=-1,e(1),o=1;else if(13==c){c=b.data.getTarget();if(!c.is("a","button","select","textarea")&&(!c.is("input")||"button"!=c.$.type))(c=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(c.click,0,c),o=1;j=1}else if(27==c)(c=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(c.click,0,c):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),j=1;else return;g(b)}}function g(a){o?a.data.preventDefault(1):j&&a.data.stopPropagation()}var f=CKEDITOR.dialog._.dialogDefinitions[b],
516
- i=CKEDITOR.tools.clone(W),l=a.config.dialog_buttonsOrder||"OS",k=a.lang.dir,h={},o,j;("OS"==l&&CKEDITOR.env.mac||"rtl"==l&&"ltr"==k||"ltr"==l&&"rtl"==k)&&i.buttons.reverse();f=CKEDITOR.tools.extend(f(a),i);f=CKEDITOR.tools.clone(f);f=new L(this,f);i=R(a);this._={editor:a,element:i.element,name:b,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],
517
- currentFocusIndex:0,hasFocus:!1};this.parts=i.parts;CKEDITOR.tools.setTimeout(function(){a.fire("ariaWidget",this.parts.contents)},0,this);i={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};i["rtl"==k?"right":"left"]=0;this.parts.dialog.setStyles(i);CKEDITOR.event.call(this);this.definition=f=CKEDITOR.fire("dialogDefinition",{name:b,definition:f},a).definition;if(!("removeDialogTabs"in a._)&&a.config.removeDialogTabs){i=a.config.removeDialogTabs.split(";");for(k=0;k<
518
- i.length;k++)if(l=i[k].split(":"),2==l.length){var n=l[0];h[n]||(h[n]=[]);h[n].push(l[1])}a._.removeDialogTabs=h}if(a._.removeDialogTabs&&(h=a._.removeDialogTabs[b]))for(k=0;k<h.length;k++)f.removeContents(h[k]);if(f.onLoad)this.on("load",f.onLoad);if(f.onShow)this.on("show",f.onShow);if(f.onHide)this.on("hide",f.onHide);if(f.onOk)this.on("ok",function(b){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0);!1===f.onOk.call(this,b)&&(b.data.hide=!1)});if(f.onCancel)this.on("cancel",
519
- function(a){!1===f.onCancel.call(this,a)&&(a.data.hide=!1)});var m=this,p=function(a){var b=m._.contents,c=!1,d;for(d in b)for(var f in b[d])if(c=a.call(this,b[d][f]))return};this.on("ok",function(a){p(function(b){if(b.validate){var c=b.validate(this),d="string"==typeof c||!1===c;d&&(a.data.hide=!1,a.stop());P.call(b,!d,"string"==typeof c?c:void 0);return d}})},this,null,0);this.on("cancel",function(b){p(function(c){if(c.isChanged())return!a.config.dialog_noConfirmCancel&&!confirm(a.lang.common.confirmCancel)&&
520
- (b.data.hide=!1),!0})},this,null,0);this.parts.close.on("click",function(a){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide();a.data.preventDefault()},this);this.changeFocus=e;var v=this._.element;a.focusManager.add(v,1);this.on("show",function(){v.on("keydown",d,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko)v.on("keypress",g,this)});this.on("hide",function(){v.removeListener("keydown",d);(CKEDITOR.env.opera||CKEDITOR.env.gecko)&&v.removeListener("keypress",g);p(function(a){Q.apply(a)})});this.on("iframeAdded",
521
- function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",d,this,null,0)});this.on("show",function(){c();if(a.config.dialog_startupFocusTab&&1<m._.pageCount)m._.tabBarMode=!0,m._.tabs[m._.currentTabId][0].focus();else if(!this._.hasFocus)if(this._.currentFocusIndex=-1,f.onFocus){var b=f.onFocus.call(this);b&&b.focus()}else e(1)},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},
522
- this);U(this);V(this);(new CKEDITOR.dom.text(f.title,CKEDITOR.document)).appendTo(this.parts.title);for(k=0;k<f.contents.length;k++)(h=f.contents[k])&&this.addPage(h);this.parts.tabs.on("click",function(a){var b=a.data.getTarget();b.hasClass("cke_dialog_tab")&&(b=b.$.id,this.selectPage(b.substring(4,b.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,e(1)),a.data.preventDefault())},this);k=[];h=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",
523
- className:"cke_dialog_footer_buttons",widths:[],children:f.buttons},k).getChild();this.parts.footer.setHtml(k.join(""));for(k=0;k<h.length;k++)this._.buttons[h[k].id]=h[k]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,b){if(!this._.contentSize||!(this._.contentSize.width==a&&this._.contentSize.height==b))CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:b},this._.editor),this.fire("resize",{width:a,height:b},this._.editor),
524
- this.parts.contents.setStyles({width:a+"px",height:b+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:a,height:b}}}(),getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,b,c){var e=this._.element.getFirst(),d="rtl"==this._.editor.lang.dir,
525
- g="fixed"==e.getComputedStyle("position");CKEDITOR.env.ie&&e.setStyle("zoom","100%");if(!g||!this._.position||!(this._.position.x==a&&this._.position.y==b))this._.position={x:a,y:b},g||(g=CKEDITOR.document.getWindow().getScrollPosition(),a+=g.x,b+=g.y),d&&(g=this.getSize(),a=CKEDITOR.document.getWindow().getViewPaneSize().width-g.width-a),b={top:(0<b?b:0)+"px"},b[d?"right":"left"]=(0<a?a:0)+"px",e.setStyles(b),c&&(this._.moved=1)},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},
526
- show:function(){var a=this._.element,b=this.definition;!a.getParent()||!a.getParent().equals(CKEDITOR.document.getBody())?a.appendTo(CKEDITOR.document.getBody()):a.setStyle("display","block");if(CKEDITOR.env.gecko&&10900>CKEDITOR.env.version){var c=this.parts.dialog;c.setStyle("position","absolute");setTimeout(function(){c.setStyle("position","fixed")},0)}this.resize(this._.contentSize&&this._.contentSize.width||b.width||b.minWidth,this._.contentSize&&this._.contentSize.height||b.height||b.minHeight);
527
- this.reset();this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,J(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/
528
- 2),CKEDITOR.dialog._.currentTop=this);a.on("keydown",M);a.on(CKEDITOR.env.opera?"keypress":"keyup",N);this._.hasFocus=!1;for(var e in b.contents)if(b.contents[e]){var a=b.contents[e],d=this._.tabs[a.id],g=a.requiredContent,f=0;if(d){for(var i in this._.contents[a.id]){var l=this._.contents[a.id][i];"hbox"==l.type||("vbox"==l.type||!l.getInputElement())||(l.requiredContent&&!this._.editor.activeFilter.check(l.requiredContent)?l.disable():(l.enable(),f++))}!f||g&&!this._.editor.activeFilter.check(g)?
529
- d[0].addClass("cke_dialog_tab_disabled"):d[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();T(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a=this.parts.dialog,b=this.getSize(),c=CKEDITOR.document.getWindow().getViewPaneSize(),
530
- e=(c.width-b.width)/2,d=(c.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(0<d?d:0)>c.height||b.width+(0<e?e:0)>c.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:e,this._.moved?this._.position.y:d)},foreach:function(a){for(var b in this._.contents)for(var c in this._.contents[b])a.call(this,this._.contents[b][c]);return this},reset:function(){var a=function(a){a.reset&&a.reset(1)};return function(){this.foreach(a);return this}}(),
531
- setupContent:function(){var a=arguments;this.foreach(function(b){b.setup&&b.setup.apply(b,a)})},commitContent:function(){var a=arguments;this.foreach(function(b){CKEDITOR.env.ie&&this._.currentFocusIndex==b.focusIndex&&b.getInputElement().$.blur();b.commit&&b.commit.apply(b,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility",
532
- "hidden");for(X(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else K(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",M);a.removeListener(CKEDITOR.env.opera?"keypress":"keyup",
533
- N);var c=this._.editor;c.focus();setTimeout(function(){c.focusManager.unlock()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()})}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],c=a.label?' title="'+CKEDITOR.tools.htmlEncode(a.label)+'"':"",e=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:a.elements,expand:!!a.expand,padding:a.padding,
534
- style:a.style||"width: 100%;"},b),d=this._.contents[a.id]={},g=e.getChild(),f=0;e=g.shift();)!e.notAllowed&&("hbox"!=e.type&&"vbox"!=e.type)&&f++,d[e.id]=e,"function"==typeof e.getChild&&g.push.apply(g,e.getChild());f||(a.hidden=!0);b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");e=CKEDITOR.env;d="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();c=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",c,a.hidden?
535
- ' style="display:none"':"",' id="',d,'"',e.gecko&&10900<=e.version&&!e.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));b.setAttribute("aria-labelledby",d);this._.tabs[a.id]=[c,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=c;this.updateStyle();b.setAttribute("name",a.id);b.appendTo(this.parts.contents);c.unselectable();this.parts.tabs.append(c);a.accessKey&&(O(this,this,"CTRL+"+a.accessKey,Y,Z),this._.accessKeyMap["CTRL+"+
536
- a.accessKey]=a.id)}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:a,currentPage:this._.currentTabId})){for(var b in this._.tabs){var c=this._.tabs[b][0],e=this._.tabs[b][1];b!=a&&(c.removeClass("cke_dialog_tab_selected"),e.hide());e.setAttribute("aria-hidden",b!=a)}var d=this._.tabs[a];d[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(G(d[1]),d[1].show(),setTimeout(function(){G(d[1],
537
- 1)},0)):d[1].show();this._.currentTabId=a;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,a)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var b=this._.tabs[a]&&this._.tabs[a][0];b&&(1!=this._.pageCount&&b.isVisible())&&(a==this._.currentTabId&&this.selectPage(t.call(this)),b.hide(),this._.pageCount--,this.updateStyle())},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0])a.show(),this._.pageCount++,
538
- this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,b){var c=this._.contents[a];return c&&c[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},setValueOf:function(a,b,c){return this.getContentElement(a,b).setValue(c)},getButton:function(a){return this._.buttons[a]},click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},
539
- getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,b){if("undefined"==typeof b)b=this._.focusList.length,this._.focusList.push(new H(this,a,b));else{this._.focusList.splice(b,0,new H(this,a,b));for(var c=b+1;c<this._.focusList.length;c++)this._.focusList[c].focusIndex++}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,b){if(!this._.dialogDefinitions[a]||
540
- "function"==typeof b)this._.dialogDefinitions[a]=b},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,c){a=a.config.removeDialogTabs;return!(a&&a.match(RegExp("(?:^|;)"+b+":"+c+"(?:$|;)","i")))},okButton:function(){var a=function(a,c){c=c||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;!1!==a.fire("ok",{hide:!0}).hide&&
541
- a.hide()}},c,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,b)},{type:"button"},!0)};return a}(),cancelButton:function(){var a=function(a,c){c=c||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;!1!==a.fire("cancel",{hide:!0}).hide&&a.hide()}},c,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,
542
- b)},{type:"button"},!0)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var W={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},z=function(a,b,c){for(var e=0,d;d=a[e];e++)if(d.id==b||c&&d[c]&&(d=z(d[c],
543
- b,c)))return d;return null},A=function(a,b,c,e,d){if(c){for(var g=0,f;f=a[g];g++){if(f.id==c)return a.splice(g,0,b),b;if(e&&f[e]&&(f=A(f[e],b,c,e,!0)))return f}if(d)return null}a.push(b);return b},B=function(a,b,c){for(var e=0,d;d=a[e];e++){if(d.id==b)return a.splice(e,1);if(c&&d[c]&&(d=B(d[c],b,c)))return d}return null},L=function(a,b){this.dialog=a;for(var c=b.contents,e=0,d;d=c[e];e++)c[e]=d&&new I(a,d);CKEDITOR.tools.extend(this,b)};L.prototype={getContents:function(a){return z(this.contents,
544
- a)},getButton:function(a){return z(this.buttons,a)},addContents:function(a,b){return A(this.contents,a,b)},addButton:function(a,b){return A(this.buttons,a,b)},removeContents:function(a){B(this.contents,a)},removeButton:function(a){B(this.buttons,a)}};I.prototype={get:function(a){return z(this.elements,a,"children")},add:function(a,b){return A(this.elements,a,b,"children")},remove:function(a){B(this.elements,a,"children")}};var F,w={},q,s={},M=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=
545
- a.data.$.altKey,e=a.data.$.shiftKey,d=String.fromCharCode(a.data.$.keyCode);if((b=s[(b?"CTRL+":"")+(c?"ALT+":"")+(e?"SHIFT+":"")+d])&&b.length)b=b[b.length-1],b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key),a.data.preventDefault()},N=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,e=a.data.$.shiftKey,d=String.fromCharCode(a.data.$.keyCode);if((b=s[(b?"CTRL+":"")+(c?"ALT+":"")+(e?"SHIFT+":"")+d])&&b.length)b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key),
546
- a.data.preventDefault())},O=function(a,b,c,e,d){(s[c]||(s[c]=[])).push({uiElement:a,dialog:b,key:c,keyup:d||a.accessKeyUp,keydown:e||a.accessKeyDown})},X=function(a){for(var b in s){for(var c=s[b],e=c.length-1;0<=e;e--)(c[e].dialog==a||c[e].uiElement==a)&&c.splice(e,1);0===c.length&&delete s[b]}},Z=function(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},Y=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,e,d,g,f){if(!(4>arguments.length)){var i=(e.call?e(b):e)||"div",
547
- l=["<",i," "],k=(d&&d.call?d(b):d)||{},h=(g&&g.call?g(b):g)||{},o=(f&&f.call?f.call(this,a,b):f)||"",j=this.domId=h.id||CKEDITOR.tools.getNextId()+"_uiElement";this.id=b.id;b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(k.display="none",this.notAllowed=!0);h.id=j;var n={};b.type&&(n["cke_dialog_ui_"+b.type]=1);b.className&&(n[b.className]=1);b.disabled&&(n.cke_disabled=1);for(var m=h["class"]&&h["class"].split?h["class"].split(" "):[],j=0;j<m.length;j++)m[j]&&(n[m[j]]=1);
548
- m=[];for(j in n)m.push(j);h["class"]=m.join(" ");b.title&&(h.title=b.title);n=(b.style||"").split(";");b.align&&(m=b.align,k["margin-left"]="left"==m?0:"auto",k["margin-right"]="right"==m?0:"auto");for(j in k)n.push(j+":"+k[j]);b.hidden&&n.push("display:none");for(j=n.length-1;0<=j;j--)""===n[j]&&n.splice(j,1);0<n.length&&(h.style=(h.style?h.style+"; ":"")+n.join("; "));for(j in h)l.push(j+'="'+CKEDITOR.tools.htmlEncode(h[j])+'" ');l.push(">",o,"</",i,">");c.push(l.join(""));(this._||(this._={})).dialog=
549
- a;"boolean"==typeof b.isChanged&&(this.isChanged=function(){return b.isChanged});"function"==typeof b.isChanged&&(this.isChanged=b.isChanged);"function"==typeof b.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(c){a.call(this,b.setValue.call(this,c))}}));"function"==typeof b.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(a){return function(){return b.getValue.call(this,a.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(b);
550
- this.accessKeyUp&&(this.accessKeyDown&&b.accessKey)&&O(this,a,"CTRL+"+b.accessKey);var p=this;a.on("load",function(){var b=p.getInputElement();if(b){var c=p.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=false;a._.hasFocus=true;p.fire("focus");c&&this.addClass(c)});b.on("blur",function(){p.fire("blur");c&&this.removeClass(c)})}});CKEDITOR.tools.extend(this,b);this.keyboardFocusable&&(this.tabIndex=b.tabIndex||
551
- 0,this.focusIndex=a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=p.focusIndex}))}},hbox:function(a,b,c,e,d){if(!(4>arguments.length)){this._||(this._={});var g=this._.children=b,f=d&&d.widths||null,i=d&&d.height||null,l,k={role:"presentation"};d&&d.align&&(k.align=d.align);CKEDITOR.ui.dialog.uiElement.call(this,a,d||{type:"hbox"},e,"table",{},k,function(){var a=['<tbody><tr class="cke_dialog_ui_hbox">'];for(l=0;l<c.length;l++){var b="cke_dialog_ui_hbox_child",e=[];0===
552
- l&&(b="cke_dialog_ui_hbox_first");l==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');f?f[l]&&e.push("width:"+r(f[l])):e.push("width:"+Math.floor(100/c.length)+"%");i&&e.push("height:"+r(i));d&&void 0!=d.padding&&e.push("padding:"+r(d.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&g[l].align)&&e.push("text-align:"+g[l].align);0<e.length&&a.push('style="'+e.join("; ")+'" ');a.push(">",c[l],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,
553
- b,c,e,d){if(!(3>arguments.length)){this._||(this._={});var g=this._.children=b,f=d&&d.width||null,i=d&&d.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,d||{type:"vbox"},e,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];b.push('style="');d&&d.expand&&b.push("height:100%;");b.push("width:"+r(f||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(d&&d.align||("ltr"==a.getParentEditor().lang.dir?
554
- "left":"right")),'" ');b.push("><tbody>");for(var e=0;e<c.length;e++){var h=[];b.push('<tr><td role="presentation" ');f&&h.push("width:"+r(f||"100%"));i?h.push("height:"+r(i[e])):d&&d.expand&&h.push("height:"+Math.floor(100/c.length)+"%");d&&void 0!=d.padding&&h.push("padding:"+r(d.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&g[e].align)&&h.push("text-align:"+g[e].align);0<h.length&&b.push('style="',h.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[e],"</td></tr>")}b.push("</tbody></table>");
555
- return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,b){this.getInputElement().setValue(a);!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&
556
- -1==a.$.className.search("cke_dialog_page_contents"););if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var b=/^on([A-Z]\w+)/,c,e=function(a,b,c,d){b.on("load",function(){a.getInputElement().on(c,d,a)})},d;for(d in a)if(c=d.match(b))this.eventProcessors[d]?this.eventProcessors[d].call(this,this._.dialog,a[d]):e(this,this._.dialog,
557
- c[1].toLowerCase(),a[d]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},
558
- isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!this.isEnabled()||!this.isVisible()?!1:!0}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(a){if(1>arguments.length)return this._.children.concat();a.splice||(a=[a]);return 2>a.length?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=
559
- new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,c,e){for(var d=c.children,g,f=[],i=[],l=0;l<d.length&&(g=d[l]);l++){var k=[];f.push(k);i.push(CKEDITOR.dialog._.uiElementBuilders[g.type].build(a,g,k))}return new CKEDITOR.ui.dialog[c.type](a,i,f,e,c)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,b){this.dialogName=a;CKEDITOR.tools.extend(this,b,!0)};CKEDITOR.dialogCommand.prototype={exec:function(a){CKEDITOR.env.opera?
560
- CKEDITOR.tools.setTimeout(function(){a.openDialog(this.dialogName)},0,this):a.openDialog(this.dialogName)},canUndo:!1,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,c=/^\d*(?:\.\d+)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,d=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,g=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var b=this&&this.getValue?this.getValue():
561
- a[0],c=void 0,d=CKEDITOR.VALIDATE_AND,e=[],g;for(g=0;g<a.length;g++)if("function"==typeof a[g])e.push(a[g]);else break;g<a.length&&"string"==typeof a[g]&&(c=a[g],g++);g<a.length&&"number"==typeof a[g]&&(d=a[g]);var j=d==CKEDITOR.VALIDATE_AND?!0:!1;for(g=0;g<e.length;g++)j=d==CKEDITOR.VALIDATE_AND?j&&e[g](b):j||e[g](b);return!j?c:!0}},regex:function(a,b){return function(c){c=this&&this.getValue?this.getValue():c;return!a.test(c)?b:!0}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,
562
- a)},number:function(a){return this.regex(c,a)},cssLength:function(a){return this.functions(function(a){return d.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return g.test(CKEDITOR.tools.trim(a))},a)},equals:function(a,b){return this.functions(function(b){return b==a},b)},notEqual:function(a,b){return this.functions(function(b){return b!=a},b)}};CKEDITOR.on("instanceDestroyed",
563
- function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var b;b=CKEDITOR.dialog._.currentTop;)b.hide();for(var c in w)w[c].remove();w={}}var a=a.editor._.storedDialogs,d;for(d in a)a[d].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var c=null,e=CKEDITOR.dialog._.dialogDefinitions[a];null===CKEDITOR.dialog._.currentTop&&J(this);if("function"==typeof e)c=this._.storedDialogs||(this._.storedDialogs={}),c=c[a]||(c[a]=new CKEDITOR.dialog(this,a)),b&&b.call(c,
564
- c),c.show();else{if("failed"==e)throw K(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');"string"==typeof e&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[a]&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return c}})})();
565
- CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(t){t.on("doubleclick",function(u){u.data.dialog&&t.openDialog(u.data.dialog)},null,null,999)}});CKEDITOR.plugins.add("about",{requires:"dialog",init:function(a){var b=a.addCommand("about",new CKEDITOR.dialogCommand("about"));b.modes={wysiwyg:1,source:1};b.canUndo=!1;b.readOnly=1;a.ui.addButton&&a.ui.addButton("About",{label:a.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}});(function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(b){var c=this;b.addCommand("a11yHelp",{exec:function(){var a=b.langCode,a=c.availableLangs[a]?a:c.availableLangs[a.replace(/-.*/,
566
- "")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c.path+"dialogs/lang/"+a+".js"),function(){b.lang.a11yhelp=c.langEntries[a];b.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1});b.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js")}})})();CKEDITOR.plugins.add("basicstyles",{init:function(c){var e=0,d=function(g,d,b,a){if(a){var a=new CKEDITOR.style(a),f=h[b];f.unshift(a);c.attachStyleStateChange(a,function(a){!c.readOnly&&c.getCommand(b).setState(a)});c.addCommand(b,new CKEDITOR.styleCommand(a,{contentForms:f}));c.ui.addButton&&c.ui.addButton(g,{label:d,command:b,toolbar:"basicstyles,"+(e+=10)})}},h={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return"bold"==a||700<=+a}]],italic:["em","i",["span",function(a){return"italic"==
567
- a.styles["font-style"]}]],underline:["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]],strike:["s","strike",["span",function(a){return"line-through"==a.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},b=c.config,a=c.lang.basicstyles;d("Bold",a.bold,"bold",b.coreStyles_bold);d("Italic",a.italic,"italic",b.coreStyles_italic);d("Underline",a.underline,"underline",b.coreStyles_underline);d("Strike",a.strike,"strike",b.coreStyles_strike);d("Subscript",a.subscript,
568
- "subscript",b.coreStyles_subscript);d("Superscript",a.superscript,"superscript",b.coreStyles_superscript);c.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}});CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"};CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"};CKEDITOR.config.coreStyles_underline={element:"u"};CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"};CKEDITOR.config.coreStyles_subscript={element:"sub"};
569
- CKEDITOR.config.coreStyles_superscript={element:"sup"};(function(){var k={exec:function(g){var a=g.getCommand("blockquote").state,i=g.getSelection(),c=i&&i.getRanges()[0];if(c){var h=i.createBookmarks();if(CKEDITOR.env.ie){var e=h[0].startNode,b=h[0].endNode,d;if(e&&"blockquote"==e.getParent().getName())for(d=e;d=d.getNext();)if(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()){e.move(d,!0);break}if(b&&"blockquote"==b.getParent().getName())for(d=b;d=d.getPrevious();)if(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()){b.move(d);break}}var f=c.createIterator();
570
- f.enlargeBr=g.config.enterMode!=CKEDITOR.ENTER_BR;if(a==CKEDITOR.TRISTATE_OFF){for(e=[];a=f.getNextParagraph();)e.push(a);1>e.length&&(a=g.document.createElement(g.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),b=h.shift(),c.insertNode(a),a.append(new CKEDITOR.dom.text("",g.document)),c.moveToBookmark(b),c.selectNodeContents(a),c.collapse(!0),b=c.createBookmark(),e.push(a),h.unshift(b));d=e[0].getParent();c=[];for(b=0;b<e.length;b++)a=e[b],d=d.getCommonAncestor(a.getParent());for(a={table:1,tbody:1,
571
- tr:1,ol:1,ul:1};a[d.getName()];)d=d.getParent();for(b=null;0<e.length;){for(a=e.shift();!a.getParent().equals(d);)a=a.getParent();a.equals(b)||c.push(a);b=a}for(;0<c.length;)if(a=c.shift(),"blockquote"==a.getName()){for(b=new CKEDITOR.dom.documentFragment(g.document);a.getFirst();)b.append(a.getFirst().remove()),e.push(b.getLast());b.replace(a)}else e.push(a);c=g.document.createElement("blockquote");for(c.insertBefore(e[0]);0<e.length;)a=e.shift(),c.append(a)}else if(a==CKEDITOR.TRISTATE_ON){b=[];
572
- for(d={};a=f.getNextParagraph();){for(e=c=null;a.getParent();){if("blockquote"==a.getParent().getName()){c=a.getParent();e=a;break}a=a.getParent()}c&&(e&&!e.getCustomData("blockquote_moveout"))&&(b.push(e),CKEDITOR.dom.element.setMarker(d,e,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(d);a=[];e=[];for(d={};0<b.length;)f=b.shift(),c=f.getParent(),f.getPrevious()?f.getNext()?(f.breakParent(f.getParent()),e.push(f.getNext())):f.remove().insertAfter(c):f.remove().insertBefore(c),c.getCustomData("blockquote_processed")||
573
- (e.push(c),CKEDITOR.dom.element.setMarker(d,c,"blockquote_processed",!0)),a.push(f);CKEDITOR.dom.element.clearAllMarkers(d);for(b=e.length-1;0<=b;b--){c=e[b];a:{d=c;for(var f=0,k=d.getChildCount(),j=void 0;f<k&&(j=d.getChild(f));f++)if(j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary()){d=!1;break a}d=!0}d&&c.remove()}if(g.config.enterMode==CKEDITOR.ENTER_BR)for(c=!0;a.length;)if(f=a.shift(),"div"==f.getName()){b=new CKEDITOR.dom.documentFragment(g.document);c&&(f.getPrevious()&&!(f.getPrevious().type==
574
- CKEDITOR.NODE_ELEMENT&&f.getPrevious().isBlockBoundary()))&&b.append(g.document.createElement("br"));for(c=f.getNext()&&!(f.getNext().type==CKEDITOR.NODE_ELEMENT&&f.getNext().isBlockBoundary());f.getFirst();)f.getFirst().remove().appendTo(b);c&&b.append(g.document.createElement("br"));b.replace(f);c=!1}}i.selectBookmarks(h);g.focus()}},refresh:function(g,a){this.setState(g.elementPath(a.block||a.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",
575
- allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(g){g.blockless||(g.addCommand("blockquote",k),g.ui.addButton&&g.ui.addButton("Blockquote",{label:g.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})})();(function(){function w(b){function a(){var e=b.editable();e.on(q,function(b){(!CKEDITOR.env.ie||!n)&&u(b)});CKEDITOR.env.ie&&e.on("paste",function(e){r||(f(),e.data.preventDefault(),u(e),l("paste")||b.openDialog("paste"))});CKEDITOR.env.ie&&(e.on("contextmenu",h,null,null,0),e.on("beforepaste",function(b){b.data&&!b.data.$.ctrlKey&&h()},null,null,0));e.on("beforecut",function(){!n&&i(b)});var a;e.attachListener(CKEDITOR.env.ie?e:b.document.getDocumentElement(),"mouseup",function(){a=setTimeout(function(){s()},
576
- 0)});b.on("destroy",function(){clearTimeout(a)});e.on("keyup",s)}function c(e){return{type:e,canUndo:"cut"==e,startDisabled:!0,exec:function(){"cut"==this.type&&i();var e;var a=this.type;if(CKEDITOR.env.ie)e=l(a);else try{e=b.document.$.execCommand(a,!1,null)}catch(d){e=!1}e||alert(b.lang.clipboard[this.type+"Error"]);return e}}}function d(){return{canUndo:!1,async:!0,exec:function(b,a){var d=function(a,d){a&&g(a.type,a.dataValue,!!d);b.fire("afterCommandExec",{name:"paste",command:c,returnValue:!!a})},
577
- c=this;"string"==typeof a?d({type:"auto",dataValue:a},1):b.getClipboardData(d)}}}function f(){r=1;setTimeout(function(){r=0},100)}function h(){n=1;setTimeout(function(){n=0},10)}function l(e){var a=b.document,d=a.getBody(),c=!1,i=function(){c=!0};d.on(e,i);(7<CKEDITOR.env.version?a.$:a.$.selection.createRange()).execCommand(e);d.removeListener(e,i);return c}function g(e,a,d){e={type:e};if(d&&!1===b.fire("beforePaste",e)||!a)return!1;e.dataValue=a;return b.fire("paste",e)}function i(){if(CKEDITOR.env.ie&&
578
- !CKEDITOR.env.quirks){var e=b.getSelection(),a,d,c;if(e.getType()==CKEDITOR.SELECTION_ELEMENT&&(a=e.getSelectedElement()))d=e.getRanges()[0],c=b.document.createText(""),c.insertBefore(a),d.setStartBefore(c),d.setEndAfter(a),e.selectRanges([d]),setTimeout(function(){a.getParent()&&(c.remove(),e.selectElement(a))},0)}}function k(a,d){var c=b.document,i=b.editable(),k=function(b){b.cancel()},f=CKEDITOR.env.gecko&&10902>=CKEDITOR.env.version,h;if(!c.getById("cke_pastebin")){var o=b.getSelection(),v=o.createBookmarks(),
579
- j=new CKEDITOR.dom.element((CKEDITOR.env.webkit||i.is("body"))&&!CKEDITOR.env.ie&&!CKEDITOR.env.opera?"body":"div",c);j.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});CKEDITOR.env.opera&&j.appendBogus();var g=0,c=c.getWindow();f?(j.insertAfter(v[0].startNode),j.setStyle("display","inline")):(CKEDITOR.env.webkit?(i.append(j),j.addClass("cke_editable"),i.is("body")||(f="static"!=i.getComputedStyle("position")?i:CKEDITOR.dom.element.get(i.$.offsetParent),g=f.getDocumentPosition().y)):i.getAscendant(CKEDITOR.env.ie||
580
- CKEDITOR.env.opera?"body":"html",1).append(j),j.setStyles({position:"absolute",top:c.getScrollPosition().y-g+10+"px",width:"1px",height:Math.max(1,c.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0}));(f=j.getParent().isReadOnly())?(j.setOpacity(0),j.setAttribute("contenteditable",!0)):j.setStyle("ltr"==b.config.contentsLangDirection?"left":"right","-1000px");b.on("selectionChange",k,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)h=i.once("blur",k,null,null,-100);f&&
581
- j.focus();f=new CKEDITOR.dom.range(j);f.selectNodeContents(j);var l=f.select();CKEDITOR.env.ie&&(h=i.once("blur",function(){b.lockSelection(l)}));var m=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit||CKEDITOR.env.opera)CKEDITOR.document[CKEDITOR.env.webkit?"getBody":"getDocumentElement"]().$.scrollTop=m;h&&h.removeListener();CKEDITOR.env.ie&&i.focus();o.selectBookmarks(v);j.remove();var a;if(CKEDITOR.env.webkit&&(a=j.getFirst())&&a.is&&a.hasClass("Apple-style-span"))j=
582
- a;b.removeListener("selectionChange",k);d(j.getHtml())},0)}}function o(){if(CKEDITOR.env.ie){b.focus();f();var a=b.focusManager;a.lock();if(b.editable().fire(q)&&!l("paste"))return a.unlock(),!1;a.unlock()}else try{if(b.editable().fire(q)&&!b.document.$.execCommand("Paste",!1,null))throw 0;}catch(d){return!1}return!0}function p(a){if("wysiwyg"==b.mode)switch(a.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:a=b.editable();f();!CKEDITOR.env.ie&&a.fire("beforepaste");(CKEDITOR.env.opera||
583
- CKEDITOR.env.gecko&&10900>CKEDITOR.env.version)&&a.fire("paste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:b.fire("saveSnapshot"),setTimeout(function(){b.fire("saveSnapshot")},50)}}function u(a){var d={type:"auto"},c=b.fire("beforePaste",d);k(a,function(b){b=b.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");c&&g(d.type,b,0,1)})}function s(){if("wysiwyg"==b.mode){var a=m("paste");b.getCommand("cut").setState(m("cut"));b.getCommand("copy").setState(m("copy"));b.getCommand("paste").setState(a);
584
- b.fire("pasteState",a)}}function m(a){if(t&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==a)return CKEDITOR.TRISTATE_OFF;var a=b.getSelection(),d=a.getRanges();return a.getType()==CKEDITOR.SELECTION_NONE||1==d.length&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var n=0,r=0,t=0,q=CKEDITOR.env.ie?"beforepaste":"paste";(function(){b.on("key",p);b.on("contentDom",a);b.on("selectionChange",function(a){t=a.data.selection.getRanges()[0].checkReadOnly();s()});b.contextMenu&&
585
- b.contextMenu.addListener(function(a,b){t=b.getRanges()[0].checkReadOnly();return{cut:m("cut"),copy:m("copy"),paste:m("paste")}})})();(function(){function a(d,c,i,e,f){var k=b.lang.clipboard[c];b.addCommand(c,i);b.ui.addButton&&b.ui.addButton(d,{label:k,command:c,toolbar:"clipboard,"+e});b.addMenuItems&&b.addMenuItem(c,{label:k,command:c,group:"clipboard",order:f})}a("Cut","cut",c("cut"),10,1);a("Copy","copy",c("copy"),20,4);a("Paste","paste",d(),30,8)})();b.getClipboardData=function(a,d){function c(a){a.removeListener();
586
- a.cancel();d(a.data)}function i(a){a.removeListener();a.cancel();g=!0;d({type:h,dataValue:a.data})}function f(){this.customTitle=a&&a.title}var k=!1,h="auto",g=!1;d||(d=a,a=null);b.on("paste",c,null,null,0);b.on("beforePaste",function(a){a.removeListener();k=true;h=a.data.type},null,null,1E3);!1===o()&&(b.removeListener("paste",c),k&&b.fire("pasteDialog",f)?(b.on("pasteDialogCommit",i),b.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",i);setTimeout(function(){g||
587
- d(null)},10)})):d(null))}}function x(b){if(CKEDITOR.env.webkit){if(!b.match(/^[^<]*$/g)&&!b.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!b.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!b.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko||CKEDITOR.env.opera){if(!b.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function y(b,a){function c(a){return CKEDITOR.tools.repeat("</p><p>",
588
- ~~(a/2))+(1==a%2?"<br>":"")}a=a.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>");a=a.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(a.match(/^[^<]$/))return a;CKEDITOR.env.webkit&&-1<a.indexOf("<div>")&&(a=a.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>"),a.match(/<div>(<br>|)<\/div>/)&&(a="<p>"+a.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return c(a.split("</div><div>").length+1)})+
589
- "</p>"),a=a.replace(/<\/div><div>/g,"<br>"),a=a.replace(/<\/?div>/g,""));if((CKEDITOR.env.gecko||CKEDITOR.env.opera)&&b.enterMode!=CKEDITOR.ENTER_BR)CKEDITOR.env.gecko&&(a=a.replace(/^<br><br>$/,"<br>")),-1<a.indexOf("<br><br>")&&(a="<p>"+a.replace(/(<br>){2,}/g,function(a){return c(a.length/4)})+"</p>");return p(b,a)}function z(){var b=new CKEDITOR.htmlParser.filter,a={blockquote:1,dl:1,fieldset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ol:1,p:1,table:1,ul:1},c=CKEDITOR.tools.extend({br:0},CKEDITOR.dtd.$inline),
590
- d={p:1,br:1,"cke:br":1},f=CKEDITOR.dtd,h=CKEDITOR.tools.extend({area:1,basefont:1,embed:1,iframe:1,map:1,object:1,param:1},CKEDITOR.dtd.$nonBodyContent,CKEDITOR.dtd.$cdata),l=function(a){delete a.name;a.add(new CKEDITOR.htmlParser.text(" "))},g=function(a){for(var b=a,c;(b=b.next)&&b.name&&b.name.match(/^h\d$/);){c=new CKEDITOR.htmlParser.element("cke:br");c.isEmpty=!0;for(a.add(c);c=b.children.shift();)a.add(c)}};b.addRules({elements:{h1:g,h2:g,h3:g,h4:g,h5:g,h6:g,img:function(a){var a=CKEDITOR.tools.trim(a.attributes.alt||
591
- ""),b=" ";a&&!a.match(/(^http|\.(jpe?g|gif|png))/i)&&(b=" ["+a+"] ");return new CKEDITOR.htmlParser.text(b)},td:l,th:l,$:function(b){var k=b.name,g;if(h[k])return!1;b.attributes={};if("br"==k)return b;if(a[k])b.name="p";else if(c[k])delete b.name;else if(f[k]){g=new CKEDITOR.htmlParser.element("cke:br");g.isEmpty=!0;if(CKEDITOR.dtd.$empty[k])return g;b.add(g,0);g=g.clone();g.isEmpty=!0;b.add(g);delete b.name}d[b.name]||delete b.name;return b}}},{applyToAll:!0});return b}function A(b,a,c){var a=new CKEDITOR.htmlParser.fragment.fromHtml(a),
592
- d=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(d,c);var a=d.getHtml(),a=a.replace(/\s*(<\/?[a-z:]+ ?\/?>)\s*/g,"$1").replace(/(<cke:br \/>){2,}/g,"<cke:br />").replace(/(<cke:br \/>)(<\/?p>|<br \/>)/g,"$2").replace(/(<\/?p>|<br \/>)(<cke:br \/>)/g,"$1").replace(/<(cke:)?br( \/)?>/g,"<br>").replace(/<p><\/p>/g,""),f=0,a=a.replace(/<\/?p>/g,function(a){if("<p>"==a){if(1<++f)return"</p><p>"}else if(0<--f)return"</p><p>";return a}).replace(/<p><\/p>/g,"");return p(b,a)}function p(b,a){b.enterMode==
593
- CKEDITOR.ENTER_BR?a=a.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("<br>",2*(a.length/7))}).replace(/<\/?p>/g,""):b.enterMode==CKEDITOR.ENTER_DIV&&(a=a.replace(/<(\/)?p>/g,"<$1div>"));return a}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(b){var a;w(b);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));b.on("paste",function(a){var b=a.data.dataValue,f=CKEDITOR.dtd.$block;-1<b.indexOf("Apple-")&&(b=b.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi,
594
- " "),"html"!=a.data.type&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,"&nbsp;&nbsp; &nbsp;")})),-1<b.indexOf('<br class="Apple-interchange-newline">')&&(a.data.startsWithEOL=1,a.data.preSniffing="html",b=b.replace(/<br class="Apple-interchange-newline">/,"")),b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(b.match(/^<[^<]+cke_(editable|contents)/i)){var h,l,g=new CKEDITOR.dom.element("div");for(g.setHtml(b);1==g.getChildCount()&&(h=
595
- g.getFirst())&&h.type==CKEDITOR.NODE_ELEMENT&&(h.hasClass("cke_editable")||h.hasClass("cke_contents"));)g=l=h;l&&(b=l.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,d){if(d.toLowerCase()in f){a.data.preSniffing="html";return"<"+d}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,d){if(d in f){a.data.endsWithEOL=1;return"</"+d+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,
596
- null,3);b.on("paste",function(c){var c=c.data,d=c.type,f=c.dataValue,h,l=b.config.clipboard_defaultContentType||"html";h="html"==d||"html"==c.preSniffing?"html":x(f);"htmlifiedtext"==h?f=y(b.config,f):"text"==d&&"html"==h&&(f=A(b.config,f,a||(a=z(b))));c.startsWithEOL&&(f='<br data-cke-eol="1">'+f);c.endsWithEOL&&(f+='<br data-cke-eol="1">');"auto"==d&&(d="html"==h||"html"==l?"html":"text");c.type=d;c.dataValue=f;delete c.preSniffing;delete c.startsWithEOL;delete c.endsWithEOL},null,null,6);b.on("paste",
597
- function(a){a=a.data;b.insertHtml(a.dataValue,a.type);setTimeout(function(){b.fire("afterPaste")},0)},null,null,1E3);b.on("pasteDialog",function(a){setTimeout(function(){b.openDialog("paste",a.data)},0)})}})})();(function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var f=CKEDITOR.addTemplate("panel",
598
- '<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),g=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),h=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');
599
- CKEDITOR.ui.panel.prototype={render:function(a,b){this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),b=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&b.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});b=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));a.write(h.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+
600
- b+");"},d)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("key"+(CKEDITOR.env.opera?"press":"down"),function(a){var b=a.data.getKeystroke(),c=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(b)?a.data.preventDefault():(27==b||b==("rtl"==c?39:37))&&this.onEscape&&!1===this.onEscape(b)&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(b)}else a=this.document.getById(this.id);this._.holder=a}return a};var d=
601
- {editorId:a.id,id:this.id,langCode:a.langCode,dir:a.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":a.config.baseFloatZIndex+1};if(this.isFramed){var e=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";d.frame=g.output({id:this.id+"_frame",src:e})}e=f.output(d);b&&b.push(e);return e},addBlock:function(a,b){b=this._.blocks[a]=b instanceof CKEDITOR.ui.panel.block?
602
- b:new CKEDITOR.ui.panel.block(this.getHolderElement(),b);this._.currentBlock||this.showBlock(a);return b},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){var a=this._.blocks[a],b=this._.currentBlock,d=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",d);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&
603
- this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},
604
- _:{markItem:function(a){-1!=a&&(a=this.element.getElementsByTag("a").getItem(this._.focusIndex=a),(CKEDITOR.env.webkit||CKEDITOR.env.opera)&&a.getDocument().getWindow().focus(),a.focus(),this.onMark&&this.onMark(a))}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){(!this.onHide||!0!==this.onHide.call(this))&&this.element.setStyle("display","none")},onKeyDown:function(a,b){var d=this.keys[a];switch(d){case "next":for(var e=this._.focusIndex,d=this.element.getElementsByTag("a"),
605
- c;c=d.getItem(++e);)if(c.getAttribute("_cke_focus")&&c.$.offsetWidth){this._.focusIndex=e;c.focus();break}return!c&&!b?(this._.focusIndex=-1,this.onKeyDown(a,1)):!1;case "prev":e=this._.focusIndex;for(d=this.element.getElementsByTag("a");0<e&&(c=d.getItem(--e));){if(c.getAttribute("_cke_focus")&&c.$.offsetWidth){this._.focusIndex=e;c.focus();break}c=null}return!c&&!b?(this._.focusIndex=d.count(),this.onKeyDown(a,1)):!1;case "click":case "mouseup":return e=this._.focusIndex,(c=0<=e&&this.element.getElementsByTag("a").getItem(e))&&
606
- (c.$[d]?c.$[d]():c.$["on"+d]()),!1}return!0}}})})();CKEDITOR.plugins.add("floatpanel",{requires:"panel"});
607
- (function(){function q(a,b,c,i,f){var f=CKEDITOR.tools.genKey(b.getUniqueId(),c.getUniqueId(),a.lang.dir,a.uiColor||"",i.css||"",f||""),h=g[f];h||(h=g[f]=new CKEDITOR.ui.panel(b,i),h.element=c.append(CKEDITOR.dom.element.createFromHtml(h.render(a),b)),h.element.setStyles({display:"none",position:"absolute"}));return h}var g={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(a,b,c,i){function f(){d.hide()}c.forceIFrame=1;c.toolbarRelated&&a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&
608
- (b=CKEDITOR.document.getById("cke_"+a.name));var h=b.getDocument(),i=q(a,h,b,c,i||0),j=i.element,l=j.getFirst(),d=this;j.disableContextMenu();this.element=j;this._={editor:a,panel:i,parentElement:b,definition:c,document:h,iframe:l,children:[],dir:a.lang.dir};a.on("mode",f);a.on("resize",f);h.getWindow().on("resize",f)},proto:{addBlock:function(a,b){return this._.panel.addBlock(a,b)},addListBlock:function(a,b){return this._.panel.addListBlock(a,b)},getBlock:function(a){return this._.panel.getBlock(a)},
609
- showBlock:function(a,b,c,i,f,h){var j=this._.panel,l=j.showBlock(a);this.allowBlur(!1);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);var d=this.element,a=this._.iframe,a=CKEDITOR.env.ie?a:new CKEDITOR.dom.window(a.$.contentWindow),g=d.getDocument(),o=this._.parentElement.getPositionedAncestor(),p=b.getDocumentPosition(g),g=o?o.getDocumentPosition(g):{x:0,y:0},m="rtl"==this._.dir,e=p.x+(i||0)-g.x,k=p.y+(f||0)-g.y;if(m&&(1==c||
610
- 4==c))e+=b.$.offsetWidth;else if(!m&&(2==c||3==c))e+=b.$.offsetWidth-1;if(3==c||4==c)k+=b.$.offsetHeight-1;this._.panel._.offsetParentId=b.getId();d.setStyles({top:k+"px",left:0,display:""});d.setOpacity(0);d.getFirst().removeStyle("width");this._.editor.focusManager.add(a);this._.blurSet||(CKEDITOR.event.useCapture=!0,a.on("blur",function(a){this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&(this.visible&&!this._.activeChild)&&(delete this._.returnFocus,this.hide())},this),a.on("focus",
611
- function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.event.useCapture=!1,this._.blurSet=1);j.onEscape=CKEDITOR.tools.bind(function(a){if(this.onEscape&&this.onEscape(a)===false)return false},this);CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.tools.bind(function(){d.removeStyle("width");if(l.autoSize){var a=l.element.getDocument(),a=(CKEDITOR.env.webkit?l.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((d.$.offsetWidth||0)-(d.$.clientWidth||
612
- 0)+3));d.setStyle("width",a+10+"px");a=l.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((d.$.offsetHeight||0)-(d.$.clientHeight||0)+3));d.setStyle("height",a+"px");j._.currentBlock.element.setStyle("display","none").removeStyle("display")}else d.removeStyle("height");m&&(e=e-d.$.offsetWidth);d.setStyle("left",e+"px");var b=j.element.getWindow(),a=d.$.getBoundingClientRect(),b=b.getViewPaneSize(),c=a.width||a.right-a.left,f=a.height||a.bottom-a.top,i=m?a.right:b.width-a.left,
613
- g=m?b.width-a.right:a.left;m?i<c&&(e=g>c?e+c:b.width>c?e-a.left:e-a.right+b.width):i<c&&(e=g>c?e-c:b.width>c?e-a.right+b.width:e-a.left);c=a.top;b.height-a.top<f&&(k=c>f?k-f:b.height>f?k-a.bottom+b.height:k-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(d.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(e=CKEDITOR.env.ie8Compat?e-d.getDocument().getDocumentElement().$.scrollLeft*2:e-(a.$.scrollWidth-a.$.clientWidth))}var a=d.getFirst(),
614
- n;(n=a.getCustomData("activePanel"))&&n.onHide&&n.onHide.call(this,1);a.setCustomData("activePanel",this);d.setStyles({top:k+"px",left:e+"px"});d.setOpacity(1);h&&h()},this);j.isLoaded?a():j.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();l.element.focus();if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=a;this.allowBlur(true);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:
615
- 0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive();!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||!0!==this.onHide.call(this))){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();
616
- this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a=a&&this._.returnFocus)CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus(),a.focus();delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var b=this._.panel;void 0!=a&&(b.allowBlur=a);return b.allowBlur},showAsChild:function(a,b,c,g,f,h){this._.activeChild==a&&a._.panel._.offsetParentId==c.getId()||(this.hideChild(),a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||
617
- this.hide()},0,this)},this),this._.activeChild=a,this._.focused=!1,a.showBlock(b,c,g,f,h),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(a){var b=this._.activeChild;b&&(delete b.onHide,delete this._.activeChild,b.hide(),a&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),b;for(b in g){var c=g[b];a?c.destroy():c.element.hide()}a&&(g=
618
- {})})})();CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(g){for(var h=g.config.menu_groups.split(","),m=g._.menuGroups={},l=g._.menuItems={},a=0;a<h.length;a++)m[h[a]]=a+1;g.addMenuGroup=function(b,a){m[b]=a||100};g.addMenuItem=function(a,c){m[c.group]&&(l[a]=new CKEDITOR.menuItem(this,a,c))};g.addMenuItems=function(a){for(var c in a)this.addMenuItem(c,a[c])};g.getMenuItem=function(a){return l[a]};g.removeMenuItem=function(a){delete l[a]}}});
619
- (function(){function g(a){a.sort(function(a,c){return a.group<c.group?-1:a.group>c.group?1:a.order<c.order?-1:a.order>c.order?1:0})}var h='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="{role}" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked}';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)h+=' onkeypress="return false;"';
620
- CKEDITOR.env.gecko&&(h+=' onblur="this.style.cssText = this.style.cssText;"');var h=h+(' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">'),m=CKEDITOR.addTemplate("menuItem",h+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'),
621
- l=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var c=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),k=c.block.attributes=c.attributes||{};!k.role&&(k.role="menu");this._.panelDefinition=c},_:{onShow:function(){var a=
622
- this.editor.getSelection(),b=a&&a.getStartElement(),c=this.editor.elementPath(),k=this._.listeners;this.removeAll();for(var e=0;e<k.length;e++){var j=k[e](b,a,c);if(j)for(var i in j){var f=this.editor.getMenuItem(i);if(f&&(!f.command||this.editor.getCommand(f.command).state))f.state=j[i],this.add(f)}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):27==a&&this.hide(1);return!1},
623
- onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu,c=this.items[a];if(c=c.getItems&&c.getItems()){b?b.removeAll():(b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),b.parent=this,b._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var k in c){var e=this.editor.getMenuItem(k);e&&(e.state=c[k],b.add(e))}var j=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+(""+a));setTimeout(function(){b.show(j,
624
- 2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){a.order||(a.order=this.items.length);this.items.push(a)},removeAll:function(){this.items=[]},show:function(a,b,c,k){if(!this.parent&&(this._.onShow(),!this.items.length))return;var b=b||("rtl"==this.editor.lang.dir?2:1),e=this.items,j=this.editor,i=this._.panel,f=this._.element;if(!i){i=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);i.onEscape=CKEDITOR.tools.bind(function(a){if(!1===
625
- this._.onEscape(a))return!1},this);i.onShow=function(){i._.panel.getHolderElement().getParent().addClass("cke cke_reset_all")};i.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);f=i.addBlock(this.id,this._.panelDefinition.block);f.autoSize=!0;var d=f.keys;d[40]="next";d[9]="next";d[38]="prev";d[CKEDITOR.SHIFT+9]="prev";d["rtl"==j.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";d[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(d[13]="mouseup");f=this._.element=
626
- f.element;d=f.getDocument();d.getBody().setStyle("overflow","hidden");d.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,j.config.menu_subMenuDelay||400,this,[a])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=
627
- this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)},this)}g(e);for(var d=j.elementPath(),d=['<div class="cke_menu'+(d&&d.direction()!=j.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],h=e.length,m=h&&e[0].group,l=0;l<h;l++){var n=e[l];m!=n.group&&(d.push('<div class="cke_menuseparator" role="separator"></div>'),m=n.group);n.render(this,l,d)}d.push("</div>");f.setHtml(d.join(""));CKEDITOR.ui.fire("ready",
628
- this);this.parent?this.parent._.panel.showAsChild(i,this.id,a,b,c,k):i.showBlock(this.id,a,b,c,k);j.fire("menuShow",[i])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,c){CKEDITOR.tools.extend(this,c,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];this.editor=a;this.name=b},proto:{render:function(a,b,c){var h=a.id+(""+
629
- b),e="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,j="",i=e==CKEDITOR.TRISTATE_ON?"on":e==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(j=' aria-checked="'+(e==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var f=this.getItems,d="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",g=this.name;this.icon&&!/\./.test(this.icon)&&(g=this.icon);a={id:h,name:this.name,iconName:g,label:this.label,cls:this.className||"",state:i,hasPopup:f?"true":
630
- "false",disabled:e==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:a._.itemOverFn,moveOutFn:a._.itemOutFn,clickFn:a._.itemClickFn,index:b,iconStyle:CKEDITOR.skin.getIconStyle(g,"rtl"==this.editor.lang.dir,g==this.icon?null:this.icon,this.iconOffset),arrowHtml:f?l.output({label:d}):"",role:this.role?this.role:"menuitem",ariaChecked:j};m.output(a,c)}}})})();CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div";CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(a){this.base.call(this,a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.contextmenu.options}}})},proto:{addTarget:function(a,c){a.on("contextmenu",function(a){var a=a.data,b=CKEDITOR.env.webkit?d:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey;if(!c||!b){a.preventDefault();var e=a.getTarget().getDocument(),f=a.getTarget().getDocument().getDocumentElement(),
631
- b=!e.equals(CKEDITOR.document),e=e.getWindow().getScrollPosition(),g=b?a.$.clientX:a.$.pageX||e.x+a.$.clientX,h=b?a.$.clientY:a.$.pageY||e.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(f,null,g,h)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var d,b=function(){d=0};a.on("keydown",function(a){d=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});a.on("keyup",b);a.on("contextmenu",b)}},open:function(a,c,d,b){this.editor.focus();a=a||CKEDITOR.document.getDocumentElement();
632
- this.editor.selectionChange(1);this.show(a,c,d,b)}}})},beforeInit:function(a){var c=a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.on("contentDom",function(){c.addTarget(a.editable(),!1!==a.config.browserContextMenuOnCtrl)});a.addCommand("contextMenu",{exec:function(){a.contextMenu.open(a.document.getBody())}});a.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");a.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}});CKEDITOR.plugins.add("resize",{init:function(b){var f,g,n,o,a=b.config,q=b.ui.spaceId("resizer"),h=b.element?b.element.getDirection(1):"ltr";!a.resize_dir&&(a.resize_dir="vertical");void 0==a.resize_maxWidth&&(a.resize_maxWidth=3E3);void 0==a.resize_maxHeight&&(a.resize_maxHeight=3E3);void 0==a.resize_minWidth&&(a.resize_minWidth=750);void 0==a.resize_minHeight&&(a.resize_minHeight=250);if(!1!==a.resize_enabled){var c=null,i=("both"==a.resize_dir||"horizontal"==a.resize_dir)&&a.resize_minWidth!=a.resize_maxWidth,
633
- l=("both"==a.resize_dir||"vertical"==a.resize_dir)&&a.resize_minHeight!=a.resize_maxHeight,j=function(d){var e=f,m=g,c=e+(d.data.$.screenX-n)*("rtl"==h?-1:1),d=m+(d.data.$.screenY-o);i&&(e=Math.max(a.resize_minWidth,Math.min(c,a.resize_maxWidth)));l&&(m=Math.max(a.resize_minHeight,Math.min(d,a.resize_maxHeight)));b.resize(i?e:null,m)},k=function(){CKEDITOR.document.removeListener("mousemove",j);CKEDITOR.document.removeListener("mouseup",k);b.document&&(b.document.removeListener("mousemove",j),b.document.removeListener("mouseup",
634
- k))},p=CKEDITOR.tools.addFunction(function(d){c||(c=b.getResizable());f=c.$.offsetWidth||0;g=c.$.offsetHeight||0;n=d.screenX;o=d.screenY;a.resize_minWidth>f&&(a.resize_minWidth=f);a.resize_minHeight>g&&(a.resize_minHeight=g);CKEDITOR.document.on("mousemove",j);CKEDITOR.document.on("mouseup",k);b.document&&(b.document.on("mousemove",j),b.document.on("mouseup",k));d.preventDefault&&d.preventDefault()});b.on("destroy",function(){CKEDITOR.tools.removeFunction(p)});b.on("uiSpace",function(a){if("bottom"==
635
- a.data.space){var e="";i&&!l&&(e=" cke_resizer_horizontal");!i&&l&&(e=" cke_resizer_vertical");var c='<span id="'+q+'" class="cke_resizer'+e+" cke_resizer_"+h+'" title="'+CKEDITOR.tools.htmlEncode(b.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+p+', event)">'+("ltr"==h?"◢":"◣")+"</span>";"ltr"==h&&"ltr"==e?a.data.html+=c:a.data.html=c+a.data.html}},b,null,100);b.on("maximize",function(a){b.ui.space("resizer")[a.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}});(function(){var c='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&10900<=CKEDITOR.env.version&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)c+=' onkeypress="return false;"';CKEDITOR.env.gecko&&(c+=' onblur="this.style.cssText = this.style.cssText;"');
636
- var c=c+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" onmousedown="return CKEDITOR.tools.callFunction({mousedownFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'),c=c+'>&nbsp;</span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>',
637
- m=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"&#9660;":"")+"</span>"),n=CKEDITOR.addTemplate("button",c);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};
638
- CKEDITOR.ui.button.prototype={render:function(a,b){var c=CKEDITOR.env,i=this._.id=CKEDITOR.tools.getNextId(),f="",e=this.command,l;this._.editor=a;var d={id:i,button:this,editor:a,focus:function(){CKEDITOR.document.getById(i).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}},o=CKEDITOR.tools.addFunction(function(a){if(d.onkey)return a=new CKEDITOR.dom.event(a),!1!==d.onkey(d,a.getKeystroke())}),p=CKEDITOR.tools.addFunction(function(a){var b;d.onfocus&&(b=
639
- !1!==d.onfocus(d,new CKEDITOR.dom.event(a)));CKEDITOR.env.gecko&&10900>CKEDITOR.env.version&&a.preventBubble();return b}),j=0,q=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var b=a.editable();b.isInline()&&b.hasFocus&&(a.lockSelection(),j=1)}});d.clickFn=l=CKEDITOR.tools.addFunction(function(){j&&(a.unlockSelection(1),j=0);d.execute()});if(this.modes){var k={},g=function(){var b=a.mode;b&&(b=this.modes[b]?void 0!=k[b]?k[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,b=a.readOnly&&
640
- !this.readOnly?CKEDITOR.TRISTATE_DISABLED:b,this.setState(b),this.refresh&&this.refresh())};a.on("beforeModeUnload",function(){a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(k[a.mode]=this._.state)},this);a.on("activeFilterChange",g,this);a.on("mode",g,this);!this.readOnly&&a.on("readOnly",g,this)}else if(e&&(e=a.getCommand(e)))e.on("state",function(){this.setState(e.state)},this),f+=e.state==CKEDITOR.TRISTATE_ON?"on":e.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";if(this.directional)a.on("contentDirChanged",
641
- function(b){var c=CKEDITOR.document.getById(this._.id),d=c.getFirst(),b=b.data;b!=a.lang.dir?c.addClass("cke_"+b):c.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",CKEDITOR.skin.getIconStyle(h,"rtl"==b,this.icon,this.iconOffset))},this);e||(f+="off");var h=g=this.name||this.command;this.icon&&!/\./.test(this.icon)&&(h=this.icon,this.icon=null);c={id:i,name:g,iconName:h,label:this.label,cls:this.className||"",state:f,ariaDisabled:"disabled"==f?"true":"false",title:this.title,titleJs:c.gecko&&
642
- 10900<=c.version&&!c.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:o,mousedownFn:q,focusFn:p,clickFn:l,style:CKEDITOR.skin.getIconStyle(h,"rtl"==a.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?m.output():""};n.output(c,b);if(this.onRender)this.onRender();return d},setState:function(a){if(this._.state==a)return!1;this._.state=a;var b=CKEDITOR.document.getById(this._.id);return b?(b.setState(a,"cke_button"),a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",
643
- !0):b.removeAttribute("aria-disabled"),this.hasArrow?(a=a==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(a)):a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",!0):b.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&&(!this.requiredContent&&this.command)&&(b=a.getCommand(this.command)||
644
- b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b)}})();(function(){function w(a){function d(){for(var b=g(),e=CKEDITOR.tools.clone(a.config.toolbarGroups)||n(a),f=0;f<e.length;f++){var k=e[f];if("/"!=k){"string"==typeof k&&(k=e[f]={name:k});var i,d=k.groups;if(d)for(var h=0;h<d.length;h++)i=d[h],(i=b[i])&&c(k,i);(i=b[k.name])&&c(k,i)}}return e}function g(){var b={},c,f,e;for(c in a.ui.items)f=a.ui.items[c],e=f.toolbar||"others",e=e.split(","),f=e[0],e=parseInt(e[1]||-1,10),b[f]||(b[f]=[]),b[f].push({name:c,order:e});for(f in b)b[f]=b[f].sort(function(b,
645
- a){return b.order==a.order?0:0>a.order?-1:0>b.order?1:b.order<a.order?-1:1});return b}function c(c,e){if(e.length){c.items?c.items.push(a.ui.create("-")):c.items=[];for(var f;f=e.shift();)if(f="string"==typeof f?f:f.name,!b||-1==CKEDITOR.tools.indexOf(b,f))(f=a.ui.create(f))&&a.addFeature(f)&&c.items.push(f)}}function h(b){var a=[],e,d,h;for(e=0;e<b.length;++e)d=b[e],h={},"/"==d?a.push(d):CKEDITOR.tools.isArray(d)?(c(h,CKEDITOR.tools.clone(d)),a.push(h)):d.items&&(c(h,CKEDITOR.tools.clone(d.items)),
646
- h.name=d.name,a.push(h));return a}var b=a.config.removeButtons,b=b&&b.split(","),e=a.config.toolbar;"string"==typeof e&&(e=a.config["toolbar_"+e]);return a.toolbar=e?h(e):d()}function n(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list",
647
- "indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var u=function(){this.toolbars=[];this.focusCommandExecuted=!1};u.prototype.focus=function(){for(var a=0,d;d=this.toolbars[a++];)for(var g=0,c;c=d.items[g++];)if(c.focus){c.focus();return}};var x={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){a.toolbox&&(a.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},
648
- 100):a.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(a){var d,g=function(c,h){var b,e="rtl"==a.lang.dir,j=a.config.toolbarGroupCycling,o=e?37:39,e=e?39:37,j=void 0===j||j;switch(h){case 9:case CKEDITOR.SHIFT+9:for(;!b||!b.items.length;)if(b=9==h?(b?b.next:c.toolbar.next)||a.toolbox.toolbars[0]:(b?b.previous:c.toolbar.previous)||a.toolbox.toolbars[a.toolbox.toolbars.length-1],b.items.length)for(c=b.items[d?b.items.length-1:0];c&&!c.focus;)(c=d?c.previous:c.next)||
649
- (b=0);c&&c.focus();return!1;case o:b=c;do b=b.next,!b&&j&&(b=c.toolbar.items[0]);while(b&&!b.focus);b?b.focus():g(c,9);return!1;case 40:return c.button&&c.button.hasArrow?(a.once("panelShow",function(b){b.data._.panel._.currentBlock.onKeyDown(40)}),c.execute()):g(c,40==h?o:e),!1;case e:case 38:b=c;do b=b.previous,!b&&j&&(b=c.toolbar.items[c.toolbar.items.length-1]);while(b&&!b.focus);b?b.focus():(d=1,g(c,CKEDITOR.SHIFT+9),d=0);return!1;case 27:return a.focus(),!1;case 13:case 32:return c.execute(),
650
- !1}return!0};a.on("uiSpace",function(c){if(c.data.space==a.config.toolbarLocation){c.removeListener();a.toolbox=new u;var d=CKEDITOR.tools.getNextId(),b=['<span id="',d,'" class="cke_voice_label">',a.lang.toolbar.toolbars,"</span>",'<span id="'+a.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',d,'" onmousedown="return false;">'],d=!1!==a.config.toolbarStartupExpanded,e,j;a.config.toolbarCanCollapse&&a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&b.push('<span class="cke_toolbox_main"'+
651
- (d?">":' style="display:none">'));for(var o=a.toolbox.toolbars,f=w(a),k=0;k<f.length;k++){var i,l=0,r,m=f[k],s;if(m)if(e&&(b.push("</span>"),j=e=0),"/"===m)b.push('<span class="cke_toolbar_break"></span>');else{s=m.items||m;for(var t=0;t<s.length;t++){var p=s[t],n;if(p)if(p.type==CKEDITOR.UI_SEPARATOR)j=e&&p;else{n=!1!==p.canGroup;if(!l){i=CKEDITOR.tools.getNextId();l={id:i,items:[]};r=m.name&&(a.lang.toolbar.toolbarGroups[m.name]||m.name);b.push('<span id="',i,'" class="cke_toolbar"',r?' aria-labelledby="'+
652
- i+'_label"':"",' role="toolbar">');r&&b.push('<span id="',i,'_label" class="cke_voice_label">',r,"</span>");b.push('<span class="cke_toolbar_start"></span>');var q=o.push(l)-1;0<q&&(l.previous=o[q-1],l.previous.next=l)}n?e||(b.push('<span class="cke_toolgroup" role="presentation">'),e=1):e&&(b.push("</span>"),e=0);i=function(c){c=c.render(a,b);q=l.items.push(c)-1;if(q>0){c.previous=l.items[q-1];c.previous.next=c}c.toolbar=l;c.onkey=g;c.onfocus=function(){a.toolbox.focusCommandExecuted||a.focus()}};
653
- j&&(i(j),j=0);i(p)}}e&&(b.push("</span>"),j=e=0);l&&b.push('<span class="cke_toolbar_end"></span></span>')}}a.config.toolbarCanCollapse&&b.push("</span>");if(a.config.toolbarCanCollapse&&a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var v=CKEDITOR.tools.addFunction(function(){a.execCommand("toolbarCollapse")});a.on("destroy",function(){CKEDITOR.tools.removeFunction(v)});a.addCommand("toolbarCollapse",{readOnly:1,exec:function(b){var a=b.ui.space("toolbar_collapser"),c=a.getPrevious(),e=b.ui.space("contents"),
654
- d=c.getParent(),f=parseInt(e.$.style.height,10),h=d.$.offsetHeight,g=a.hasClass("cke_toolbox_collapser_min");g?(c.show(),a.removeClass("cke_toolbox_collapser_min"),a.setAttribute("title",b.lang.toolbar.toolbarCollapse)):(c.hide(),a.addClass("cke_toolbox_collapser_min"),a.setAttribute("title",b.lang.toolbar.toolbarExpand));a.getFirst().setText(g?"▲":"◀");e.setStyle("height",f-(d.$.offsetHeight-h)+"px");b.fire("resize")},modes:{wysiwyg:1,source:1}});a.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?
655
- 189:109),"toolbarCollapse");b.push('<a title="'+(d?a.lang.toolbar.toolbarCollapse:a.lang.toolbar.toolbarExpand)+'" id="'+a.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');d||b.push(" cke_toolbox_collapser_min");b.push('" onclick="CKEDITOR.tools.callFunction('+v+')">','<span class="cke_arrow">&#9650;</span>',"</a>")}b.push("</span>");c.data.html+=b.join("")}});a.on("destroy",function(){if(this.toolbox){var a,d=0,b,e,g;for(a=this.toolbox.toolbars;d<a.length;d++){e=a[d].items;
656
- for(b=0;b<e.length;b++)g=e[b],g.clickFn&&CKEDITOR.tools.removeFunction(g.clickFn),g.keyDownFn&&CKEDITOR.tools.removeFunction(g.keyDownFn)}}});a.on("uiReady",function(){var c=a.ui.space("toolbox");c&&a.focusManager.add(c,1)});a.addCommand("toolbarFocus",x);a.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");a.ui.add("-",CKEDITOR.UI_SEPARATOR,{});a.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,d){d.push('<span class="cke_toolbar_separator" role="separator"></span>');return{}}}}})}});
657
- CKEDITOR.ui.prototype.addToolbarGroup=function(a,d,g){var c=n(this.editor),h=0===d,b={name:a};if(g){if(g=CKEDITOR.tools.search(c,function(a){return a.name==g})){!g.groups&&(g.groups=[]);if(d&&(d=CKEDITOR.tools.indexOf(g.groups,d),0<=d)){g.groups.splice(d+1,0,a);return}h?g.groups.splice(0,0,a):g.groups.push(a);return}d=null}d&&(d=CKEDITOR.tools.indexOf(c,function(a){return a.name==d}));h?c.splice(0,0,a):"number"==typeof d?c.splice(d+1,0,b):c.push(a)}})();CKEDITOR.UI_SEPARATOR="separator";
658
- CKEDITOR.config.toolbarLocation="top";(function(){var k;function n(a,c){function j(d){d=i.list[d];if(d.equals(a.editable())||"true"==d.getAttribute("contenteditable")){var e=a.createRange();e.selectNodeContents(d);e.select()}else a.getSelection().selectElement(d);a.focus()}function s(){l&&l.setHtml(o);delete i.list}var m=a.ui.spaceId("path"),l,i=a._.elementsPath,n=i.idBase;c.html+='<span id="'+m+'_label" class="cke_voice_label">'+a.lang.elementspath.eleLabel+'</span><span id="'+m+'" class="cke_path" role="group" aria-labelledby="'+m+
659
- '_label">'+o+"</span>";a.on("uiReady",function(){var d=a.ui.space("path");d&&a.focusManager.add(d,1)});i.onClick=j;var t=CKEDITOR.tools.addFunction(j),u=CKEDITOR.tools.addFunction(function(d,e){var g=i.idBase,b,e=new CKEDITOR.dom.event(e);b="rtl"==a.lang.dir;switch(e.getKeystroke()){case b?39:37:case 9:return(b=CKEDITOR.document.getById(g+(d+1)))||(b=CKEDITOR.document.getById(g+"0")),b.focus(),!1;case b?37:39:case CKEDITOR.SHIFT+9:return(b=CKEDITOR.document.getById(g+(d-1)))||(b=CKEDITOR.document.getById(g+
660
- (i.list.length-1))),b.focus(),!1;case 27:return a.focus(),!1;case 13:case 32:return j(d),!1}return!0});a.on("selectionChange",function(){a.editable();for(var d=[],e=i.list=[],g=[],b=i.filters,c=!0,j=a.elementPath().elements,f,k=j.length;k--;){var h=j[k],p=0;f=h.data("cke-display-name")?h.data("cke-display-name"):h.data("cke-real-element-type")?h.data("cke-real-element-type"):h.getName();c=h.hasAttribute("contenteditable")?"true"==h.getAttribute("contenteditable"):c;!c&&!h.hasAttribute("contenteditable")&&
661
- (p=1);for(var q=0;q<b.length;q++){var r=b[q](h,f);if(!1===r){p=1;break}f=r||f}p||(e.unshift(h),g.unshift(f))}e=e.length;for(b=0;b<e;b++)f=g[b],c=a.lang.elementspath.eleTitle.replace(/%1/,f),f=v.output({id:n+b,label:c,text:f,jsTitle:"javascript:void('"+f+"')",index:b,keyDownFn:u,clickFn:t}),d.unshift(f);l||(l=CKEDITOR.document.getById(m));g=l;g.setHtml(d.join("")+o);a.fire("elementsPathUpdate",{space:g})});a.on("readOnly",s);a.on("contentDomUnload",s);a.addCommand("elementsPathFocus",k);a.setKeystroke(CKEDITOR.ALT+
662
- 122,"elementsPathFocus")}k={editorFocus:!1,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var o='<span class="cke_path_empty">&nbsp;</span>',c="";if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)c+=' onkeypress="return false;"';CKEDITOR.env.gecko&&(c+=' onblur="this.style.cssText = this.style.cssText;"');var v=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+
663
- (CKEDITOR.env.gecko&&10900>CKEDITOR.env.version?' onfocus="event.preventBubble();"':"")+c+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(a){a._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};a.on("uiSpace",function(c){"bottom"==c.data.space&&
664
- n(a,c.data)})}})})();(function(){function l(e,c,b){b=e.config.forceEnterMode||b;"wysiwyg"==e.mode&&(c||(c=e.activeEnterMode),e.elementPath().isContextFor("p")||(c=CKEDITOR.ENTER_BR,b=1),e.fire("saveSnapshot"),c==CKEDITOR.ENTER_BR?o(e,c,null,b):p(e,c,null,b),e.fire("saveSnapshot"))}function q(e){for(var e=e.getSelection().getRanges(!0),c=e.length-1;0<c;c--)e[c].deleteContents();return e[0]}CKEDITOR.plugins.add("enterkey",{init:function(e){e.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(c){l(c)}});
665
- e.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(c){l(c,c.activeShiftEnterMode,1)}});e.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var t=CKEDITOR.dom.walker.whitespaces(),u=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(e,c,b,i){if(b=b||q(e)){var f=b.document,j=b.checkStartOfBlock(),h=b.checkEndOfBlock(),a=e.elementPath(b.startContainer).block,k=c==CKEDITOR.ENTER_DIV?"div":"p",d;if(j&&h){if(a&&(a.is("li")||a.getParent().is("li"))){b=
666
- a.getParent();d=b.getParent();var i=!a.hasPrevious(),m=!a.hasNext(),k=e.getSelection(),g=k.createBookmarks(),j=a.getDirection(1),h=a.getAttribute("class"),n=a.getAttribute("style"),l=d.getDirection(1)!=j,e=e.enterMode!=CKEDITOR.ENTER_BR||l||n||h;if(d.is("li"))if(i||m)a[i?"insertBefore":"insertAfter"](d);else a.breakParent(d);else{if(e)if(d=f.createElement(c==CKEDITOR.ENTER_P?"p":"div"),l&&d.setAttribute("dir",j),n&&d.setAttribute("style",n),h&&d.setAttribute("class",h),a.moveChildren(d),i||m)d[i?
667
- "insertBefore":"insertAfter"](b);else a.breakParent(b),d.insertAfter(b);else if(a.appendBogus(!0),i||m)for(;f=a[i?"getFirst":"getLast"]();)f[i?"insertBefore":"insertAfter"](b);else for(a.breakParent(b);f=a.getLast();)f.insertAfter(b);a.remove()}k.selectBookmarks(g);return}if(a&&a.getParent().is("blockquote")){a.breakParent(a.getParent());a.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||a.getPrevious().remove();a.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||a.getNext().remove();
668
- b.moveToElementEditStart(a);b.select();return}}else if(a&&a.is("pre")&&!h){o(e,c,b,i);return}if(h=b.splitBlock(k)){c=h.previousBlock;a=h.nextBlock;e=h.wasStartOfBlock;j=h.wasEndOfBlock;if(a)g=a.getParent(),g.is("li")&&(a.breakParent(g),a.move(a.getNext(),1));else if(c&&(g=c.getParent())&&g.is("li"))c.breakParent(g),g=c.getNext(),b.moveToElementEditStart(g),c.move(c.getPrevious());if(!e&&!j)a.is("li")&&(d=b.clone(),d.selectNodeContents(a),d=new CKEDITOR.dom.walker(d),d.evaluator=function(a){return!(u(a)||
669
- t(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))},(g=d.next())&&(g.type==CKEDITOR.NODE_ELEMENT&&g.is("ul","ol"))&&(CKEDITOR.env.needsBrFiller?f.createElement("br"):f.createText(" ")).insertBefore(g)),a&&b.moveToElementEditStart(a);else{if(c){if(c.is("li")||!r.test(c.getName())&&!c.is("pre"))d=c.clone()}else a&&(d=a.clone());d?i&&!d.is("li")&&d.renameNode(k):g&&g.is("li")?d=g:(d=f.createElement(k),c&&(m=c.getDirection())&&d.setAttribute("dir",
670
- m));if(f=h.elementPath){i=0;for(k=f.elements.length;i<k;i++){g=f.elements[i];if(g.equals(f.block)||g.equals(f.blockLimit))break;CKEDITOR.dtd.$removeEmpty[g.getName()]&&(g=g.clone(),d.moveChildren(g),d.append(g))}}d.appendBogus();d.getParent()||b.insertNode(d);d.is("li")&&d.removeAttribute("value");if(CKEDITOR.env.ie&&e&&(!j||!c.getChildCount()))b.moveToElementEditStart(j?c:d),b.select();b.moveToElementEditStart(e&&!j?a:d)}b.select();b.scrollIntoView()}}},enterBr:function(e,c,b,i){if(b=b||q(e)){var f=
671
- b.document,j=b.checkEndOfBlock(),h=new CKEDITOR.dom.elementPath(e.getSelection().getStartElement()),a=h.block,h=a&&h.block.getName();!i&&"li"==h?p(e,c,b,i):(!i&&j&&r.test(h)?(j=a.getDirection())?(f=f.createElement("div"),f.setAttribute("dir",j),f.insertAfter(a),b.setStart(f,0)):(f.createElement("br").insertAfter(a),CKEDITOR.env.gecko&&f.createText("").insertAfter(a),b.setStartAt(a.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a="pre"==h&&CKEDITOR.env.ie&&
672
- 8>CKEDITOR.env.version?f.createText("\r"):f.createElement("br"),b.deleteContents(),b.insertNode(a),CKEDITOR.env.needsBrFiller?(f.createText("").insertAfter(a),j&&a.getParent().appendBogus(),a.getNext().$.nodeValue="",b.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)):b.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),b.collapse(!0),b.select(),b.scrollIntoView())}}};var s=CKEDITOR.plugins.enterkey,o=s.enterBr,p=s.enterBlock,r=/^h[1-6]$/})();(function(){function j(a,b){var d={},e=[],f={nbsp:" ",shy:"­",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,h){var c=b?"&"+h+";":f[h];d[c]=b?f[h]:"&"+h+";";e.push(c);return""});if(!b&&a){var a=a.split(","),c=document.createElement("div"),g;c.innerHTML="&"+a.join(";&")+";";g=c.innerHTML;c=null;for(c=0;c<g.length;c++){var i=g.charAt(c);d[i]="&"+a[c]+";";e.push(i)}}d.regex=e.join(b?"|":"");return d}CKEDITOR.plugins.add("entities",{afterInit:function(a){var b=
673
- a.config;if(a=(a=a.dataProcessor)&&a.htmlFilter){var d=[];!1!==b.basicEntities&&d.push("nbsp,gt,lt,amp");b.entities&&(d.length&&d.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),
674
- b.entities_latin&&d.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),b.entities_greek&&d.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),
675
- b.entities_additional&&d.push(b.entities_additional));var e=j(d.join(",")),f=e.regex?"["+e.regex+"]":"a^";delete e.regex;b.entities&&b.entities_processNumerical&&(f="[^ -~]|"+f);var f=RegExp(f,"g"),c=function(a){return b.entities_processNumerical=="force"||!e[a]?"&#"+a.charCodeAt(0)+";":e[a]},g=j("nbsp,gt,lt,amp,shy",!0),i=RegExp(g.regex,"g"),k=function(a){return g[a]};a.addRules({text:function(a){return a.replace(i,k).replace(f,c)}},{applyToAll:!0,excludeNestedEditable:!0})}}})})();
676
- CKEDITOR.config.basicEntities=!0;CKEDITOR.config.entities=!0;CKEDITOR.config.entities_latin=!0;CKEDITOR.config.entities_greek=!0;CKEDITOR.config.entities_additional="#39";CKEDITOR.plugins.add("popup");
677
- CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(e,a,b,d){a=a||"80%";b=b||"70%";"string"==typeof a&&(1<a.length&&"%"==a.substr(a.length-1,1))&&(a=parseInt(window.screen.width*parseInt(a,10)/100,10));"string"==typeof b&&(1<b.length&&"%"==b.substr(b.length-1,1))&&(b=parseInt(window.screen.height*parseInt(b,10)/100,10));640>a&&(a=640);420>b&&(b=420);var f=parseInt((window.screen.height-b)/2,10),g=parseInt((window.screen.width-a)/2,10),d=(d||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+
678
- a+",height="+b+",top="+f+",left="+g,c=window.open("",null,d,!0);if(!c)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(c.moveTo(g,f),c.resizeTo(a,b)),c.focus(),c.location.href=e}catch(h){window.open(e,null,d,!0)}return!0}});(function(){function g(a,c){var d=[];if(c)for(var b in c)d.push(b+"="+encodeURIComponent(c[b]));else return a;return a+(-1!=a.indexOf("?")?"&":"?")+d.join("&")}function i(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)}function k(){var a=this.getDialog(),c=a.getParentEditor();c._.filebrowserSe=this;var d=c.config["filebrowser"+i(a.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",a=c.config["filebrowser"+i(a.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",
679
- b=this.filebrowser.params||{};b.CKEditor=c.name;b.CKEditorFuncNum=c._.filebrowserFn;b.langCode||(b.langCode=c.langCode);b=g(this.filebrowser.url,b);c.popup(b,d,a,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function l(){var a=this.getDialog();a.getParentEditor()._.filebrowserSe=this;return!a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!a.getContentElement(this["for"][0],this["for"][1]).getAction()?!1:!0}function m(a,c,d){var b=d.params||{};
680
- b.CKEditor=a.name;b.CKEditorFuncNum=a._.filebrowserFn;b.langCode||(b.langCode=a.langCode);c.action=g(d.url,b);c.filebrowser=d}function j(a,c,d,b){if(b&&b.length)for(var e,g=b.length;g--;)if(e=b[g],("hbox"==e.type||"vbox"==e.type||"fieldset"==e.type)&&j(a,c,d,e.children),e.filebrowser)if("string"==typeof e.filebrowser&&(e.filebrowser={action:"fileButton"==e.type?"QuickUpload":"Browse",target:e.filebrowser}),"Browse"==e.filebrowser.action){var f=e.filebrowser.url;void 0===f&&(f=a.config["filebrowser"+
681
- i(c)+"BrowseUrl"],void 0===f&&(f=a.config.filebrowserBrowseUrl));f&&(e.onClick=k,e.filebrowser.url=f,e.hidden=!1)}else if("QuickUpload"==e.filebrowser.action&&e["for"]&&(f=e.filebrowser.url,void 0===f&&(f=a.config["filebrowser"+i(c)+"UploadUrl"],void 0===f&&(f=a.config.filebrowserUploadUrl)),f)){var h=e.onClick;e.onClick=function(a){var b=a.sender;return h&&h.call(b,a)===false?false:l.call(b,a)};e.filebrowser.url=f;e.hidden=!1;m(a,d.getContents(e["for"][0]).get(e["for"][1]),e.filebrowser)}}function h(a,
682
- c,d){if(-1!==d.indexOf(";")){for(var d=d.split(";"),b=0;b<d.length;b++)if(h(a,c,d[b]))return!0;return!1}return(a=a.getContents(c).get(d).filebrowser)&&a.url}function n(a,c){var d=this._.filebrowserSe.getDialog(),b=this._.filebrowserSe["for"],e=this._.filebrowserSe.filebrowser.onSelect;b&&d.getContentElement(b[0],b[1]).reset();if(!("function"==typeof c&&!1===c.call(this._.filebrowserSe))&&!(e&&!1===e.call(this._.filebrowserSe,a,c))&&("string"==typeof c&&c&&alert(c),a&&(b=this._.filebrowserSe,d=b.getDialog(),
683
- b=b.filebrowser.target||null)))if(b=b.split(":"),e=d.getContentElement(b[0],b[1]))e.setValue(a),d.selectPage(b[0])}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(n,a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var c=a.data.definition,d,b=0;b<c.contents.length;++b)if(d=c.contents[b])j(a.editor,a.data.name,c,d.elements),
684
- d.hidden&&d.filebrowser&&(d.hidden=!h(c,d.id,d.filebrowser))})})();(function(){function q(a){var i=a.config,l=a.fire("uiSpace",{space:"top",html:""}).html,o=function(){function f(a,c,e){b.setStyle(c,t(e));b.setStyle("position",a)}function e(a){var b=r.getDocumentPosition();switch(a){case "top":f("absolute","top",b.y-m-n);break;case "pin":f("fixed","top",q);break;case "bottom":f("absolute","top",b.y+(c.height||c.bottom-c.top)+n)}j=a}var j,r,k,c,h,m,s,l=i.floatSpaceDockedOffsetX||0,n=i.floatSpaceDockedOffsetY||0,p=i.floatSpacePinnedOffsetX||0,q=i.floatSpacePinnedOffsetY||
685
- 0;return function(d){if(r=a.editable())if(d&&"focus"==d.name&&b.show(),b.removeStyle("left"),b.removeStyle("right"),k=b.getClientRect(),c=r.getClientRect(),h=g.getViewPaneSize(),m=k.height,s="pageXOffset"in g.$?g.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft,j){m+n<=c.top?e("top"):m+n>h.height-c.bottom?e("pin"):e("bottom");var d=h.width/2,d=0<c.left&&c.right<h.width&&c.width>k.width?"rtl"==a.config.contentsLangDirection?"right":"left":d-c.left>c.right-d?"left":"right",f;k.width>h.width?
686
- (d="left",f=0):(f="left"==d?0<c.left?c.left:0:c.right<h.width?h.width-c.right:0,f+k.width>h.width&&(d="left"==d?"right":"left",f=0));b.setStyle(d,t(("pin"==j?p:l)+f+("pin"==j?0:"left"==d?s:-s)))}else j="pin",e("pin"),o(d)}}();if(l){var b=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(u.output({content:l,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(i.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.lang.editorPanel+", "+
687
- a.name}))),p=CKEDITOR.tools.eventsBuffer(500,o),e=CKEDITOR.tools.eventsBuffer(100,o);b.unselectable();b.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){o(b);a.on("change",p.input);g.on("scroll",e.input);g.on("resize",e.input)});a.on("blur",function(){b.hide();a.removeListener("change",p.input);g.removeListener("scroll",e.input);g.removeListener("resize",e.input)});a.on("destroy",function(){g.removeListener("scroll",e.input);g.removeListener("resize",
688
- e.input);b.clearCustomData();b.remove()});a.focusManager.hasFocus&&b.show();a.focusManager.add(b,1)}}var u=CKEDITOR.addTemplate("floatcontainer",'<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}" aria-labelledby="cke_{name}_arialbl"><span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span><div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),
689
- g=CKEDITOR.document.getWindow(),t=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){q(this)},null,null,20)}})})();CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var f=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),g=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),h=CKEDITOR.addTemplate("panel-list-group",
690
- '<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),i=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){var b=b||{},c=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(c["aria-multiselectable"]=!0);!c.role&&(c.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",
691
- c.role);c=this.keys;c[40]="next";c[9]="next";c[38]="prev";c[CKEDITOR.SHIFT+9]="prev";c[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(c[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var a=f.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var b=this.toggle(a);
692
- if(this.onClick)this.onClick(a,b)},this));return this._.click}},proto:{add:function(a,b,c){var d=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[a]=d;var e;e=CKEDITOR.tools.htmlEncodeAttr(a).replace(i,"\\'");a={id:d,val:e,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(c||a),text:b||a};this._.pendingList.push(g.output(a))},startGroup:function(a){this._.close();
693
- var b=CKEDITOR.tools.getNextId();this._.groups[a]=b;this._.pendingHtml.push(h.output({id:b,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),b&&"ul"==b.getName()&&b.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display",
694
- "none")},showAll:function(){var a=this._.items,b=this._.groups,c=this.element.getDocument(),d;for(d in a)c.getById(a[d]).setStyle("display","");for(var e in b)a=c.getById(b[e]),d=a.getNext(),a.setStyle("display",""),d&&"ul"==d.getName()&&d.setStyle("display","")},mark:function(a){this.multiSelect||this.unmarkAll();var a=this._.items[a],b=this.element.getDocument().getById(a);b.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(b)},
695
- unmark:function(a){var b=this.element.getDocument(),a=this._.items[a],c=b.getById(a);c.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(c)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),c;for(c in a){var d=a[c];b.getById(d).removeClass("cke_selected");b.getById(d+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(a){return this.element.getDocument().getById(this._.items[a]).hasClass("cke_selected")},
696
- focus:function(a){this._.focusIndex=-1;var b=this.element.getElementsByTag("a"),c,d=-1;if(a)for(c=this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++d);){if(a.equals(c)){this._.focusIndex=d;break}}else this.element.focus();c&&setTimeout(function(){c.focus()},0)}}})}});CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(d){d.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}});
697
- (function(){var d='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" hidefocus=true title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&10900<=CKEDITOR.env.version&&!CKEDITOR.env.hc?"":'" href="javascript:void(\'{titleJs}\')"')+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)d+=' onkeypress="return false;"';
698
- CKEDITOR.env.gecko&&(d+=' onblur="this.style.cssText = this.style.cssText;"');var d=d+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onmousedown="return CKEDITOR.tools.callFunction({mousedownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+
699
- (CKEDITOR.env.hc?"&#9660;":CKEDITOR.env.air?"&nbsp;":"")+"</span></span></a></span>"),i=CKEDITOR.addTemplate("combo",d);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,a,{canGroup:!1,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,
700
- attributes:a.attributes};a.toolbarRelated=!0;this._={panelDefinition:a,items:{}}},proto:{renderHtml:function(a){var b=[];this.render(a,b);return b.join("")},render:function(a,b){function g(){var c=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a.readOnly&&!this.readOnly&&(c=CKEDITOR.TRISTATE_DISABLED);this.setState(c);this.setValue("");c!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}var d=CKEDITOR.env,h="cke_"+this.id,e=CKEDITOR.tools.addFunction(function(b){j&&(a.unlockSelection(1),
701
- j=0);c.execute(b)},this),f=this,c={id:h,combo:this,focus:function(){CKEDITOR.document.getById(h).getChild(1).focus()},execute:function(c){var b=f._;if(b.state!=CKEDITOR.TRISTATE_DISABLED)if(f.createPanel(a),b.on)b.panel.hide();else{f.commit();var d=f.getValue();d?b.list.mark(d):b.list.unmarkAll();b.panel.showBlock(f.id,new CKEDITOR.dom.element(c),4)}},clickFn:e};a.on("activeFilterChange",g,this);a.on("mode",g,this);a.on("selectionChange",g,this);!this.readOnly&&a.on("readOnly",g,this);var k=CKEDITOR.tools.addFunction(function(b,
702
- d){var b=new CKEDITOR.dom.event(b),g=b.getKeystroke();if(40==g)a.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});switch(g){case 13:case 32:case 40:CKEDITOR.tools.callFunction(e,d);break;default:c.onkey(c,g)}b.preventDefault()}),l=CKEDITOR.tools.addFunction(function(){c.onfocus&&c.onfocus()}),j=0,m=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var b=a.editable();b.isInline()&&b.hasFocus&&(a.lockSelection(),j=1)}});c.keyDownFn=k;d={id:h,name:this.name||this.command,
703
- label:this.label,title:this.title,cls:this.className||"",titleJs:d.gecko&&10900<=d.version&&!d.hc?"":(this.title||"").replace("'",""),keydownFn:k,mousedownFn:m,focusFn:l,clickFn:e};i.output(d,b);if(this.onRender)this.onRender();return c},createPanel:function(a){if(!this._.panel){var b=this._.panelDefinition,d=this._.panelDefinition.block,i=b.parent||CKEDITOR.document.getBody(),h="cke_combopanel__"+this.name,e=new CKEDITOR.ui.floatPanel(a,i,b),f=e.addListBlock(this.id,d),c=this;e.onShow=function(){this.element.addClass(h);
704
- c.setState(CKEDITOR.TRISTATE_ON);c._.on=1;c.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(c.onOpen)c.onOpen();a.once("panelShow",function(){f.focus(!f.multiSelect&&c.getValue())})};e.onHide=function(b){this.element.removeClass(h);c.setState(c.modes&&c.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);c._.on=0;if(!b&&c.onClose)c.onClose()};e.onEscape=function(){e.hide(1)};f.onClick=function(a,b){c.onClick&&c.onClick.call(c,a,b);e.hide()};this._.panel=e;this._.list=f;e.getBlock(this.id).onHide=
705
- function(){c._.on=0;c.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,b){this._.value=a;var d=this.document.getById("cke_"+this.id+"_text");d&&(!a&&!b?(b=this.label,d.addClass("cke_combo_inlinelabel")):d.removeClass("cke_combo_inlinelabel"),d.setText("undefined"!=typeof b?b:a))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},
706
- showAll:function(){this._.list.showAll()},add:function(a,b,d){this._.items[a]=d||a;this._.list.add(a,b,d)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(a){if(this._.state!=a){var b=this.document.getById("cke_"+this.id);b.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",!0):b.removeAttribute("aria-disabled");this._.state=
707
- a}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,b){this.add(a,CKEDITOR.UI_RICHCOMBO,b)}})();CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(a){if(!a.blockless){for(var f=a.config,c=a.lang.format,j=f.format_tags.split(";"),d={},k=0,l=[],g=0;g<j.length;g++){var h=j[g],i=new CKEDITOR.style(f["format_"+h]);if(!a.filter.customConfig||a.filter.check(i))k++,d[h]=i,d[h]._.enterMode=a.config.enterMode,l.push(i)}0!==k&&a.ui.addRichCombo("Format",{label:c.label,title:c.panelTitle,toolbar:"styles,20",allowedContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(f.contentsCss),
708
- multiSelect:!1,attributes:{"aria-label":c.panelTitle}},init:function(){this.startGroup(c.panelTitle);for(var b in d){var a=c["tag_"+b];this.add(b,d[b].buildPreview(a),a)}},onClick:function(b){a.focus();a.fire("saveSnapshot");var b=d[b],c=a.elementPath();a[b.checkActive(c)?"removeStyle":"applyStyle"](b);setTimeout(function(){a.fire("saveSnapshot")},0)},onRender:function(){a.on("selectionChange",function(b){var c=this.getValue(),b=b.data.path;this.refresh();for(var e in d)if(d[e].checkActive(b)){e!=
709
- c&&this.setValue(e,a.lang.format["tag_"+e]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var b in d)a.activeFilter.check(d[b])||this.hideItem(b)},refresh:function(){var b=a.elementPath();if(b){if(b.isContextFor("p"))for(var c in d)if(a.activeFilter.check(d[c]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}});CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div";CKEDITOR.config.format_p={element:"p"};CKEDITOR.config.format_div={element:"div"};
710
- CKEDITOR.config.format_pre={element:"pre"};CKEDITOR.config.format_address={element:"address"};CKEDITOR.config.format_h1={element:"h1"};CKEDITOR.config.format_h2={element:"h2"};CKEDITOR.config.format_h3={element:"h3"};CKEDITOR.config.format_h4={element:"h4"};CKEDITOR.config.format_h5={element:"h5"};CKEDITOR.config.format_h6={element:"h6"};(function(){var b={canUndo:!1,exec:function(a){var b=a.document.createElement("hr");a.insertElement(b)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(a){a.blockless||(a.addCommand("horizontalrule",b),a.ui.addButton&&a.ui.addButton("HorizontalRule",{label:a.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})})();CKEDITOR.plugins.add("htmlwriter",{init:function(b){var a=new CKEDITOR.htmlWriter;a.forceSimpleAmpersand=b.config.forceSimpleAmpersand;a.indentationChars=b.config.dataIndentationChars||"\t";b.dataProcessor.writer=a}});
711
- CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base();this.indentationChars="\t";this.selfClosingEnd=" />";this.lineBreakChars="\n";this.sortAttributes=1;this._.indent=0;this._.indentation="";this._.inPre=0;this._.rules={};var b=CKEDITOR.dtd,a;for(a in CKEDITOR.tools.extend({},b.$nonBodyContent,b.$block,b.$listItem,b.$tableContent))this.setRules(a,{indent:!b[a]["#"],breakBeforeOpen:1,breakBeforeClose:!b[a]["#"],breakAfterClose:1,needsSpace:a in
712
- b.$block&&!(a in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style",{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(b){var a=this._.rules[b];this._.afterCloser&&(a&&a.needsSpace&&this._.needsSpace)&&this._.output.push("\n");this._.indent?this.indentation():a&&a.breakBeforeOpen&&(this.lineBreak(),this.indentation());this._.output.push("<",b);this._.afterCloser=0},
713
- openTagClose:function(b,a){var c=this._.rules[b];a?(this._.output.push(this.selfClosingEnd),c&&c.breakAfterClose&&(this._.needsSpace=c.needsSpace)):(this._.output.push(">"),c&&c.indent&&(this._.indentation+=this.indentationChars));c&&c.breakAfterOpen&&this.lineBreak();"pre"==b&&(this._.inPre=1)},attribute:function(b,a){"string"==typeof a&&(this.forceSimpleAmpersand&&(a=a.replace(/&amp;/g,"&")),a=CKEDITOR.tools.htmlEncodeAttr(a));this._.output.push(" ",b,'="',a,'"')},closeTag:function(b){var a=this._.rules[b];
714
- a&&a.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length));this._.indent?this.indentation():a&&a.breakBeforeClose&&(this.lineBreak(),this.indentation());this._.output.push("</",b,">");"pre"==b&&(this._.inPre=0);a&&a.breakAfterClose&&(this.lineBreak(),this._.needsSpace=a.needsSpace);this._.afterCloser=1},text:function(b){this._.indent&&(this.indentation(),!this._.inPre&&(b=CKEDITOR.tools.ltrim(b)));this._.output.push(b)},comment:function(b){this._.indent&&this.indentation();
715
- this._.output.push("<\!--",b,"--\>")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars);this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation);this._.indent=0},reset:function(){this._.output=[];this._.indent=0;this._.indentation="";this._.afterCloser=0;this._.inPre=0},setRules:function(b,a){var c=this._.rules[b];c?CKEDITOR.tools.extend(c,a,!0):this._.rules[b]=a}}});(function(){function k(a){var d=this.editor,b=a.document,c=b.body;(a=b.getElementById("cke_actscrpt"))&&a.parentNode.removeChild(a);(a=b.getElementById("cke_shimscrpt"))&&a.parentNode.removeChild(a);CKEDITOR.env.gecko&&(c.contentEditable=!1,2E4>CKEDITOR.env.version&&(c.innerHTML=c.innerHTML.replace(/^.*<\!-- cke-content-start --\>/,""),setTimeout(function(){var a=new CKEDITOR.dom.range(new CKEDITOR.dom.document(b));a.setStart(new CKEDITOR.dom.node(c),0);d.getSelection().selectRanges([a])},0)));c.contentEditable=
716
- !0;CKEDITOR.env.ie&&(c.hideFocus=!0,c.disabled=!0,c.removeAttribute("disabled"));delete this._.isLoadingData;this.$=c;b=new CKEDITOR.dom.document(b);this.setup();CKEDITOR.env.ie&&(b.getDocumentElement().addClass(b.$.compatMode),d.config.enterMode!=CKEDITOR.ENTER_P&&this.attachListener(b,"selectionchange",function(){var a=b.getBody(),c=d.getSelection(),e=c&&c.getRanges()[0];e&&(a.getHtml().match(/^<p>(?:&nbsp;|<br>)<\/p>$/i)&&e.startContainer.equals(a))&&setTimeout(function(){e=d.getSelection().getRanges()[0];
717
- if(!e.startContainer.equals("body")){a.getFirst().remove(1);e.moveToElementEditEnd(a);e.select()}},0)}));if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)b.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&setTimeout(function(){d.editable().focus()})});try{d.document.$.execCommand("2D-position",!1,!0)}catch(e){}try{d.document.$.execCommand("enableInlineTableEditing",!1,!d.config.disableNativeTableHandles)}catch(g){}if(d.config.disableObjectResizing)try{this.getDocument().$.execCommand("enableObjectResizing",
718
- !1,!1)}catch(f){this.attachListener(this,CKEDITOR.env.ie?"resizestart":"resize",function(a){a.data.preventDefault()})}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==d.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(b==33||b==34)if(CKEDITOR.env.ie)setTimeout(function(){d.getSelection().scrollIntoView()},0);else if(d.window.$.innerHeight>this.$.offsetHeight){var c=d.createRange();c[b==33?"moveToElementEditStart":"moveToElementEditEnd"](this);
719
- c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(b,"blur",function(){try{b.$.selection.empty()}catch(a){}});d.document.getElementsByTag("title").getItem(0).data("cke-title",d.document.$.title);CKEDITOR.env.ie&&(d.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){d.fire("contentDom");if(this._.isPendingFocus){d.focus();this._.isPendingFocus=false}setTimeout(function(){d.fire("dataReady")},0);CKEDITOR.env.ie&&setTimeout(function(){if(d.document){var a=
720
- d.document.$.body;a.runtimeStyle.marginBottom="0px";a.runtimeStyle.marginBottom=""}},1E3)},0,this)}function l(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var d=[],b;for(b in CKEDITOR.dtd.$removeEmpty)d.push("html.CSS1Compat "+b+"[contenteditable=false]");a.push(d.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(a.push("html{height:100% !important}"),a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));
721
- a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});a.addMode("wysiwyg",function(d){function b(b){b&&b.removeListener();a.editable(new j(a,e.$.contentWindow.document.body));a.setData(a.getData(1),d)}var c="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+
722
- ")();":"")+"document.close();",c=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent(c)+"}())":"",e=CKEDITOR.dom.element.createFromHtml('<iframe src="'+c+'" frameBorder="0"></iframe>');e.setStyles({width:"100%",height:"100%"});e.addClass("cke_wysiwyg_frame cke_reset");var g=a.ui.space("contents");g.append(e);if(c=CKEDITOR.env.ie||CKEDITOR.env.gecko)e.on("load",b);var f=a.title,h=a.lang.common.editorHelp;f&&(CKEDITOR.env.ie&&(f+=", "+h),e.setAttribute("title",
723
- f));var f=CKEDITOR.tools.getNextId(),i=CKEDITOR.dom.element.createFromHtml('<span id="'+f+'" class="cke_voice_label">'+h+"</span>");g.append(i,1);a.on("beforeModeUnload",function(a){a.removeListener();i.remove()});e.setAttributes({"aria-describedby":f,tabIndex:a.tabIndex,allowTransparency:"true"});!c&&b();CKEDITOR.env.webkit&&(c=function(){g.setStyle("width","100%");e.hide();e.setSize("width",g.getSize("width"));g.removeStyle("width");e.show()},e.setCustomData("onResize",c),CKEDITOR.document.getWindow().on("resize",
724
- c));a.fire("ariaWidget",e)})}});var j=CKEDITOR.tools.createClass({$:function(a){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(k,0,this,a)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,d){var b=this.editor;if(d)this.setHtml(a),b.fire("dataReady");else{this._.isLoadingData=!0;b._.dataStore={id:1};var c=b.config,e=c.fullPage,g=c.docType,f=CKEDITOR.tools.buildStyleHtml(l()).replace(/<style>/,
725
- '<style data-cke-temp="1">');e||(f+=CKEDITOR.tools.buildStyleHtml(b.config.contentsCss));var h=c.baseHref?'<base href="'+c.baseHref+'" data-cke-temp="1" />':"";e&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){b.docType=g=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){b.xmlDeclaration=a;return""}));a=b.dataProcessor.toHtml(a);e?(/<body[\s|>]/.test(a)||(a="<body>"+a),/<html[\s|>]/.test(a)||(a="<html>"+a+"</html>"),/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$&<title></title>")):
726
- a=a.replace(/<html[^>]*>/,"$&<head><title></title></head>"),h&&(a=a.replace(/<head>/,"$&"+h)),a=a.replace(/<\/head\s*>/,f+"$&"),a=g+a):a=c.docType+'<html dir="'+c.contentsLangDirection+'" lang="'+(c.contentsLanguage||b.langCode)+'"><head><title>'+this._.docTitle+"</title>"+h+f+"</head><body"+(c.bodyId?' id="'+c.bodyId+'"':"")+(c.bodyClass?' class="'+c.bodyClass+'"':"")+">"+a+"</body></html>";CKEDITOR.env.gecko&&(a=a.replace(/<body/,'<body contenteditable="true" '),2E4>CKEDITOR.env.version&&(a=a.replace(/<body[^>]*>/,
727
- "$&<\!-- cke-content-start --\>")));c='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(c+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>');
728
- a=a.replace(/(?=\s*<\/(:?head)>)/,c);this.clearCustomData();this.clearListeners();b.fire("contentDomUnload");var i=this.getDocument();try{i.write(a)}catch(j){setTimeout(function(){i.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();var a=this.editor,d=a.config,b=d.fullPage,c=b&&a.docType,e=b&&a.xmlDeclaration,g=this.getDocument(),b=b?g.getDocumentElement().getOuterHtml():g.getBody().getHtml();CKEDITOR.env.gecko&&d.enterMode!=CKEDITOR.ENTER_BR&&(b=b.replace(/<br>(?=\s*(:?$|<\/body>))/,
729
- ""));b=a.dataProcessor.toDataFormat(b);e&&(b=e+"\n"+b);c&&(b=c+"\n"+b);return b},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:j.baseProto.focus.call(this)},detach:function(){var a=this.editor,d=a.document,a=a.window.getFrame();j.baseProto.detach.call(this);this.clearCustomData();d.getDocumentElement().clearCustomData();a.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(d=a.removeCustomData("onResize"))&&d.removeListener();a.remove()}}})})();
730
- CKEDITOR.config.disableObjectResizing=!1;CKEDITOR.config.disableNativeTableHandles=!0;CKEDITOR.config.disableNativeSpellChecker=!0;CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css");(function(){function e(b,a){a||(a=b.getSelection().getSelectedElement());if(a&&a.is("img")&&!a.data("cke-realelement")&&!a.isReadOnly())return a}function f(b){var a=b.getStyle("float");if("inherit"==a||"none"==a)a=0;a||(a=b.getAttribute("align"));return a}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(b){if(!b.plugins.image2){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var a="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";
731
- CKEDITOR.dialog.isTabEnabled(b,"image","advanced")&&(a="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");b.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:a,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]}));b.ui.addButton&&b.ui.addButton("Image",{label:b.lang.common.image,command:"image",toolbar:"insert,10"});b.on("doubleclick",function(b){var a=
732
- b.data.element;a.is("img")&&(!a.data("cke-realelement")&&!a.isReadOnly())&&(b.data.dialog="image")});b.addMenuItems&&b.addMenuItems({image:{label:b.lang.image.menu,command:"image",group:"image"}});b.contextMenu&&b.contextMenu.addListener(function(a){if(e(b,a))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(b){function a(a){var d=b.getCommand("justify"+a);if(d){if("left"==a||"right"==a)d.on("exec",function(d){var c=e(b),g;c&&(g=f(c),g==a?(c.removeStyle("float"),a==f(c)&&c.removeAttribute("align")):
733
- c.setStyle("float",a),d.cancel())});d.on("refresh",function(d){var c=e(b);c&&(c=f(c),this.setState(c==a?CKEDITOR.TRISTATE_ON:"right"==a||"left"==a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),d.cancel())})}}b.plugins.image2||(a("left"),a("right"),a("center"),a("block"))}})})();CKEDITOR.config.image_removeLinkByEmptyURL=!0;(function(){function k(a,b){var e,f;b.on("refresh",function(a){var b=[i],c;for(c in a.data.states)b.push(a.data.states[c]);this.setState(CKEDITOR.tools.search(b,m)?m:i)},b,null,100);b.on("exec",function(b){e=a.getSelection();f=e.createBookmarks(1);b.data||(b.data={});b.data.done=!1},b,null,0);b.on("exec",function(){a.forceNextSelectionCheck();e.selectBookmarks(f)},b,null,100)}var i=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var b=CKEDITOR.plugins.indent.genericDefinition;
734
- k(a,a.addCommand("indent",new b(!0)));k(a,a.addCommand("outdent",new b));a.ui.addButton&&(a.ui.addButton("Indent",{label:a.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));a.on("dirChanged",function(b){var f=a.createRange(),j=b.data.node;f.setStartBefore(j);f.setEndAfter(j);for(var l=new CKEDITOR.dom.walker(f),c;c=l.next();)if(c.type==CKEDITOR.NODE_ELEMENT)if(!c.equals(j)&&
735
- c.getDirection()){f.setStartAfter(c);l=new CKEDITOR.dom.walker(f)}else{var d=a.config.indentClasses;if(d)for(var g=b.data.dir=="ltr"?["_rtl",""]:["","_rtl"],h=0;h<d.length;h++)if(c.hasClass(d[h]+g[0])){c.removeClass(d[h]+g[0]);c.addClass(d[h]+g[1])}d=c.getStyle("margin-right");g=c.getStyle("margin-left");d?c.setStyle("margin-left",d):c.removeStyle("margin-left");g?c.setStyle("margin-right",g):c.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=
736
- !!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,e){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!e;this.relatedGlobal=e?"indent":"outdent";this.indentKey=e?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a,b){var e=a.getCommand(b.relatedGlobal),c;for(c in b.jobs)e.on("exec",function(d){d.data.done||(a.fire("lockSnapshot"),b.execJob(a,c)&&(d.data.done=
737
- !0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(b.database))},this,null,c),e.on("refresh",function(d){d.data.states||(d.data.states={});d.data.states[b.name+"@"+c]=b.refreshJob(a,c,d.data.path)},this,null,c);a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(a,b){var e=this.jobs[b];if(e.state!=i)return e.exec.call(this,a)},refreshJob:function(a,
738
- b,e){b=this.jobs[b];b.state=a.activeFilter.checkFeature(this)?b.refresh.call(this,a,e):i;return b.state},getContext:function(a){return a.contains(this.context)}}})();(function(){function s(e){function g(b){for(var f=d.startContainer,a=d.endContainer;f&&!f.getParent().equals(b);)f=f.getParent();for(;a&&!a.getParent().equals(b);)a=a.getParent();if(!f||!a)return!1;for(var h=f,f=[],c=!1;!c;)h.equals(a)&&(c=!0),f.push(h),h=h.getNext();if(1>f.length)return!1;h=b.getParents(!0);for(a=0;a<h.length;a++)if(h[a].getName&&k[h[a].getName()]){b=h[a];break}for(var h=n.isIndent?1:-1,a=f[0],f=f[f.length-1],c=CKEDITOR.plugins.list.listToArray(b,o),g=c[f.getCustomData("listarray_index")].indent,
739
- a=a.getCustomData("listarray_index");a<=f.getCustomData("listarray_index");a++)if(c[a].indent+=h,0<h){var l=c[a].parent;c[a].parent=new CKEDITOR.dom.element(l.getName(),l.getDocument())}for(a=f.getCustomData("listarray_index")+1;a<c.length&&c[a].indent>g;a++)c[a].indent+=h;f=CKEDITOR.plugins.list.arrayToList(c,o,null,e.config.enterMode,b.getDirection());if(!n.isIndent){var i;if((i=b.getParent())&&i.is("li"))for(var h=f.listNode.getChildren(),m=[],j,a=h.count()-1;0<=a;a--)(j=h.getItem(a))&&(j.is&&
740
- j.is("li"))&&m.push(j)}f&&f.listNode.replace(b);if(m&&m.length)for(a=0;a<m.length;a++){for(j=b=m[a];(j=j.getNext())&&j.is&&j.getName()in k;)CKEDITOR.env.needsNbspFiller&&!b.getFirst(t)&&b.append(d.document.createText(" ")),b.append(j);b.insertAfter(i)}f&&e.fire("contentDomInvalidated");return!0}for(var n=this,o=this.database,k=this.context,l=e.getSelection(),l=(l&&l.getRanges()).createIterator(),d;d=l.getNextRange();){for(var b=d.getCommonAncestor();b&&!(b.type==CKEDITOR.NODE_ELEMENT&&k[b.getName()]);)b=
741
- b.getParent();b||(b=d.startPath().contains(k))&&d.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);if(!b){var c=d.getEnclosedNode();c&&(c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in k)&&(d.setStartAt(c,CKEDITOR.POSITION_AFTER_START),d.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),b=c)}b&&(d.startContainer.type==CKEDITOR.NODE_ELEMENT&&d.startContainer.getName()in k)&&(c=new CKEDITOR.dom.walker(d),c.evaluator=i,d.startContainer=c.next());b&&(d.endContainer.type==CKEDITOR.NODE_ELEMENT&&d.endContainer.getName()in k)&&
742
- (c=new CKEDITOR.dom.walker(d),c.evaluator=i,d.endContainer=c.previous());if(b)return g(b)}return 0}function p(e,g){g||(g=e.contains(this.context));return g&&e.block&&e.block.equals(g.getFirst(i))}function i(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is("li")}function t(e){return u(e)&&v(e)}var u=CKEDITOR.dom.walker.whitespaces(!0),v=CKEDITOR.dom.walker.bookmark(!1,!0),q=CKEDITOR.TRISTATE_DISABLED,r=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(e){function g(e,
743
- g){i.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];e.on("key",function(g){if("wysiwyg"==e.mode&&g.data.keyCode==this.indentKey){var d=this.getContext(e.elementPath());if(d&&(!this.isIndent||!p.call(this,e.elementPath(),d)))e.execCommand(this.relatedGlobal),g.cancel()}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(e,d){var b=this.getContext(d),c=p.call(this,d,b);return!b||!this.isIndent||c?q:r}:function(e,d){return!this.getContext(d)||this.isIndent?
744
- q:r},exec:CKEDITOR.tools.bind(s,this)}}var i=CKEDITOR.plugins.indent;i.registerCommands(e,{indentlist:new g(e,"indentlist",!0),outdentlist:new g(e,"outdentlist")});CKEDITOR.tools.extend(g.prototype,i.specificDefinition.prototype,{context:{ol:1,ul:1}})}})})();(function(){function g(a,b){var c=j.exec(a),d=j.exec(b);if(c){if(!c[2]&&"px"==d[2])return d[1];if("px"==c[2]&&!d[2])return d[1]+"px"}return b}var i=CKEDITOR.htmlParser.cssStyle,h=CKEDITOR.tools.cssLength,j=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,l={elements:{$:function(a){var b=a.attributes;if((b=(b=(b=b&&b["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(b)))&&b.children[0])&&a.attributes["data-cke-resizable"]){var c=(new i(a)).rules,a=b.attributes,d=c.width,c=
745
- c.height;d&&(a.width=g(a.width,d));c&&(a.height=g(a.height,c))}return b}}},k=CKEDITOR.plugins.add("fakeobjects",{init:function(a){a.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(l)}});CKEDITOR.editor.prototype.createFakeElement=function(a,b,c,d){var e=this.lang.fakeobjects,e=e[c]||e.unknown,b={"class":b,"data-cke-realelement":encodeURIComponent(a.getOuterHtml()),"data-cke-real-node-type":a.type,
746
- alt:e,title:e,align:a.getAttribute("align")||""};CKEDITOR.env.hc||(b.src=CKEDITOR.getUrl(k.path+"images/spacer.gif"));c&&(b["data-cke-real-element-type"]=c);d&&(b["data-cke-resizable"]=d,c=new i,d=a.getAttribute("width"),a=a.getAttribute("height"),d&&(c.rules.width=h(d)),a&&(c.rules.height=h(a)),c.populate(b));return this.document.createElement("img",{attributes:b})};CKEDITOR.editor.prototype.createFakeParserElement=function(a,b,c,d){var e=this.lang.fakeobjects,e=e[c]||e.unknown,f;f=new CKEDITOR.htmlParser.basicWriter;
747
- a.writeHtml(f);f=f.getHtml();b={"class":b,"data-cke-realelement":encodeURIComponent(f),"data-cke-real-node-type":a.type,alt:e,title:e,align:a.attributes.align||""};CKEDITOR.env.hc||(b.src=CKEDITOR.getUrl(k.path+"images/spacer.gif"));c&&(b["data-cke-real-element-type"]=c);d&&(b["data-cke-resizable"]=d,d=a.attributes,a=new i,c=d.width,d=d.height,void 0!=c&&(a.rules.width=h(c)),void 0!=d&&(a.rules.height=h(d)),a.populate(b));return new CKEDITOR.htmlParser.element("img",b)};CKEDITOR.editor.prototype.restoreRealElement=
748
- function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var b=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(a.data("cke-realelement")),this.document);if(a.data("cke-resizable")){var c=a.getStyle("width"),a=a.getStyle("height");c&&b.setAttribute("width",g(b.getAttribute("width"),c));a&&b.setAttribute("height",g(b.getAttribute("height"),a))}return b}})();CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function b(b){return d.replace(/%1/g,"rtl"==b?"right":"left").replace(/%2/g,"cke_contents_"+b)}var a="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",d=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+a+"padding-%1:18px;cursor:auto;}"+(CKEDITOR.plugins.link.synAnchorSelector?
749
- "a.cke_anchor_empty{display:inline-block;"+(CKEDITOR.env.ie&&10<CKEDITOR.env.version?"min-height:16px;vertical-align:middle":"")+"}":"")+".%2 img.cke_anchor{"+a+"width:16px;min-height:15px;height:1.15em;vertical-align:"+(CKEDITOR.env.opera?"middle":"text-bottom")+";}";CKEDITOR.addCss(b("ltr")+b("rtl"))},init:function(b){var a="a[!href]";CKEDITOR.dialog.isTabEnabled(b,"link","advanced")&&(a=a.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)"));CKEDITOR.dialog.isTabEnabled(b,
750
- "link","target")&&(a=a.replace("]",",target,onclick]"));b.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:a,requiredContent:"a[href]"}));b.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));b.addCommand("unlink",new CKEDITOR.unlinkCommand);b.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);b.setKeystroke(CKEDITOR.CTRL+76,"link");b.ui.addButton&&(b.ui.addButton("Link",{label:b.lang.link.toolbar,command:"link",
751
- toolbar:"links,10"}),b.ui.addButton("Unlink",{label:b.lang.link.unlink,command:"unlink",toolbar:"links,20"}),b.ui.addButton("Anchor",{label:b.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"}));CKEDITOR.dialog.add("link",this.path+"dialogs/link.js");CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js");b.on("doubleclick",function(a){var c=CKEDITOR.plugins.link.getSelectedLink(b)||a.data.element;if(!c.isReadOnly())if(c.is("a")){a.data.dialog=c.getAttribute("name")&&(!c.getAttribute("href")||
752
- !c.getChildCount())?"anchor":"link";b.getSelection().selectElement(c)}else if(CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,c))a.data.dialog="anchor"});b.addMenuItems&&b.addMenuItems({anchor:{label:b.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:b.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:b.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:b.lang.link.unlink,command:"unlink",group:"link",order:5}});b.contextMenu&&
753
- b.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;a=CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,a);if(!a&&!(a=CKEDITOR.plugins.link.getSelectedLink(b)))return null;var c={};a.getAttribute("href")&&a.getChildCount()&&(c={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});if(a&&a.hasAttribute("name"))c.anchor=c.removeAnchor=CKEDITOR.TRISTATE_OFF;return c})},afterInit:function(b){var a=b.dataProcessor,d=a&&a.dataFilter,a=a&&a.htmlFilter,c=b._.elementsPath&&b._.elementsPath.filters;
754
- d&&d.addRules({elements:{a:function(a){var c=a.attributes;if(!c.name)return null;var d=!a.children.length;if(CKEDITOR.plugins.link.synAnchorSelector){var a=d?"cke_anchor_empty":"cke_anchor",g=c["class"];if(c.name&&(!g||0>g.indexOf(a)))c["class"]=(g||"")+" "+a;d&&CKEDITOR.plugins.link.emptyAnchorFix&&(c.contenteditable="false",c["data-cke-editable"]=1)}else if(CKEDITOR.plugins.link.fakeAnchor&&d)return b.createFakeParserElement(a,"cke_anchor","anchor");return null}}});CKEDITOR.plugins.link.emptyAnchorFix&&
755
- a&&a.addRules({elements:{a:function(a){delete a.attributes.contenteditable}}});c&&c.push(function(a,c){if("a"==c&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,a)||a.getAttribute("name")&&(!a.getAttribute("href")||!a.getChildCount())))return"anchor"})}});
756
- CKEDITOR.plugins.link={getSelectedLink:function(b){var a=b.getSelection(),d=a.getSelectedElement();return d&&d.is("a")?d:(a=a.getRanges()[0])?(a.shrink(CKEDITOR.SHRINK_TEXT),b.elementPath(a.getCommonAncestor()).contains("a",1)):null},getEditorAnchors:function(b){for(var a=b.editable(),d=a.isInline()&&!b.plugins.divarea?b.document:a,c=d.getElementsByTag("a"),a=[],f=0,e;e=c.getItem(f++);)if(e.data("cke-saved-name")||e.hasAttribute("name"))a.push({name:e.data("cke-saved-name")||e.getAttribute("name"),
757
- id:e.getAttribute("id")});if(this.fakeAnchor){d=d.getElementsByTag("img");for(f=0;e=d.getItem(f++);)(e=this.tryRestoreFakeAnchor(b,e))&&a.push({name:e.getAttribute("name"),id:e.getAttribute("id")})}return a},fakeAnchor:CKEDITOR.env.opera||CKEDITOR.env.webkit,synAnchorSelector:CKEDITOR.env.ie,emptyAnchorFix:CKEDITOR.env.ie&&8>CKEDITOR.env.version,tryRestoreFakeAnchor:function(b,a){if(a&&a.data("cke-real-element-type")&&"anchor"==a.data("cke-real-element-type")){var d=b.restoreRealElement(a);if(d.data("cke-saved-name"))return d}}};
758
- CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(b){var a=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});b.removeStyle(a)},refresh:function(b,a){var d=a.lastElement&&a.lastElement.getAscendant("a",!0);d&&"a"==d.getName()&&d.getAttribute("href")&&d.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"};
759
- CKEDITOR.removeAnchorCommand=function(){};CKEDITOR.removeAnchorCommand.prototype={exec:function(b){var a=b.getSelection(),d=a.createBookmarks(),c;if(a&&(c=a.getSelectedElement())&&(CKEDITOR.plugins.link.fakeAnchor&&!c.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,c):c.is("a")))c.remove(1);else if(c=CKEDITOR.plugins.link.getSelectedLink(b))c.hasAttribute("href")?(c.removeAttributes({name:1,"data-cke-saved-name":1}),c.removeClass("cke_anchor")):c.remove(1);a.selectBookmarks(d)},requiredContent:"a[name]"};
760
- CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0});(function(){function E(c,j,e){function b(b){if((d=a[b?"getFirst":"getLast"]())&&(!d.is||!d.isBlockBoundary())&&(m=j.root[b?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))&&(!m.is||!m.isBlockBoundary({br:1})))c.document.createElement("br")[b?"insertBefore":"insertAfter"](d)}for(var k=CKEDITOR.plugins.list.listToArray(j.root,e),g=[],h=0;h<j.contents.length;h++){var f=j.contents[h];if((f=f.getAscendant("li",!0))&&!f.getCustomData("list_item_processed"))g.push(f),CKEDITOR.dom.element.setMarker(e,
761
- f,"list_item_processed",!0)}f=null;for(h=0;h<g.length;h++)f=g[h].getCustomData("listarray_index"),k[f].indent=-1;for(h=f+1;h<k.length;h++)if(k[h].indent>k[h-1].indent+1){g=k[h-1].indent+1-k[h].indent;for(f=k[h].indent;k[h]&&k[h].indent>=f;)k[h].indent+=g,h++;h--}var a=CKEDITOR.plugins.list.arrayToList(k,e,null,c.config.enterMode,j.root.getAttribute("dir")).listNode,d,m;b(!0);b();a.replace(j.root);c.fire("contentDomInvalidated")}function x(c,j){this.name=c;this.context=this.type=j;this.allowedContent=
762
- j+" li";this.requiredContent=j}function A(c,j,e,b){for(var k,g;k=c[b?"getLast":"getFirst"](F);)(g=k.getDirection(1))!==j.getDirection(1)&&k.setAttribute("dir",g),k.remove(),e?k[b?"insertBefore":"insertAfter"](e):j.append(k,b)}function B(c){var j;(j=function(e){var b=c[e?"getPrevious":"getNext"](q);b&&(b.type==CKEDITOR.NODE_ELEMENT&&b.is(c.getName()))&&(A(c,b,null,!e),c.remove(),c=b)})();j(1)}function C(c){return c.type==CKEDITOR.NODE_ELEMENT&&(c.getName()in CKEDITOR.dtd.$block||c.getName()in CKEDITOR.dtd.$listItem)&&
763
- CKEDITOR.dtd[c.getName()]["#"]}function y(c,j,e){c.fire("saveSnapshot");e.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var b=e.extractContents();j.trim(!1,!0);var k=j.createBookmark(),g=new CKEDITOR.dom.elementPath(j.startContainer),h=g.block,g=g.lastElement.getAscendant("li",1)||h,f=new CKEDITOR.dom.elementPath(e.startContainer),a=f.contains(CKEDITOR.dtd.$listItem),f=f.contains(CKEDITOR.dtd.$list);h?(h=h.getBogus())&&h.remove():f&&(h=f.getPrevious(q))&&v(h)&&h.remove();(h=b.getLast())&&(h.type==
764
- CKEDITOR.NODE_ELEMENT&&h.is("br"))&&h.remove();(h=j.startContainer.getChild(j.startOffset))?b.insertBefore(h):j.startContainer.append(b);if(a&&(b=w(a)))g.contains(a)?(A(b,a.getParent(),a),b.remove()):g.append(b);for(;e.checkStartOfBlock()&&e.checkEndOfBlock();){f=e.startPath();b=f.block;if(!b)break;b.is("li")&&(g=b.getParent(),b.equals(g.getLast(q))&&b.equals(g.getFirst(q))&&(b=g));e.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove()}e=e.clone();b=c.editable();e.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);
765
- e=new CKEDITOR.dom.walker(e);e.evaluator=function(a){return q(a)&&!v(a)};(e=e.next())&&(e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$list)&&B(e);j.moveToBookmark(k);j.select();c.fire("saveSnapshot")}function w(c){return(c=c.getLast(q))&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in r?c:null}var r={ol:1,ul:1},G=CKEDITOR.dom.walker.whitespaces(),D=CKEDITOR.dom.walker.bookmark(),q=function(c){return!(G(c)||D(c))},v=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(c,
766
- j,e,b,k){if(!r[c.getName()])return[];b||(b=0);e||(e=[]);for(var g=0,h=c.getChildCount();g<h;g++){var f=c.getChild(g);f.type==CKEDITOR.NODE_ELEMENT&&f.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(f,j,e,b+1);if("li"==f.$.nodeName.toLowerCase()){var a={parent:c,indent:b,element:f,contents:[]};k?a.grandparent=k:(a.grandparent=c.getParent(),a.grandparent&&"li"==a.grandparent.$.nodeName.toLowerCase()&&(a.grandparent=a.grandparent.getParent()));j&&CKEDITOR.dom.element.setMarker(j,f,
767
- "listarray_index",e.length);e.push(a);for(var d=0,m=f.getChildCount(),i;d<m;d++)i=f.getChild(d),i.type==CKEDITOR.NODE_ELEMENT&&r[i.getName()]?CKEDITOR.plugins.list.listToArray(i,j,e,b+1,a.grandparent):a.contents.push(i)}}return e},arrayToList:function(c,j,e,b,k){e||(e=0);if(!c||c.length<e+1)return null;for(var g,h=c[e].parent.getDocument(),f=new CKEDITOR.dom.documentFragment(h),a=null,d=e,m=Math.max(c[e].indent,0),i=null,n,l,p=b==CKEDITOR.ENTER_P?"p":"div";;){var o=c[d];g=o.grandparent;n=o.element.getDirection(1);
768
- if(o.indent==m){if(!a||c[d].parent.getName()!=a.getName())a=c[d].parent.clone(!1,1),k&&a.setAttribute("dir",k),f.append(a);i=a.append(o.element.clone(0,1));n!=a.getDirection(1)&&i.setAttribute("dir",n);for(g=0;g<o.contents.length;g++)i.append(o.contents[g].clone(1,1));d++}else if(o.indent==Math.max(m,0)+1)o=c[d-1].element.getDirection(1),d=CKEDITOR.plugins.list.arrayToList(c,null,d,b,o!=n?n:null),!i.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&!(7<h.$.documentMode))&&i.append(h.createText(" ")),
769
- i.append(d.listNode),d=d.nextIndex;else if(-1==o.indent&&!e&&g){r[g.getName()]?(i=o.element.clone(!1,!0),n!=g.getDirection(1)&&i.setAttribute("dir",n)):i=new CKEDITOR.dom.documentFragment(h);var a=g.getDirection(1)!=n,u=o.element,z=u.getAttribute("class"),v=u.getAttribute("style"),w=i.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(b!=CKEDITOR.ENTER_BR||a||v||z),s,x=o.contents.length,t;for(g=0;g<x;g++)if(s=o.contents[g],D(s)&&1<x)w?t=s.clone(1,1):i.append(s.clone(1,1));else if(s.type==CKEDITOR.NODE_ELEMENT&&
770
- s.isBlockBoundary()){a&&!s.getDirection()&&s.setAttribute("dir",n);l=s;var y=u.getAttribute("style");y&&l.setAttribute("style",y.replace(/([^;])$/,"$1;")+(l.getAttribute("style")||""));z&&s.addClass(z);l=null;t&&(i.append(t),t=null);i.append(s.clone(1,1))}else w?(l||(l=h.createElement(p),i.append(l),a&&l.setAttribute("dir",n)),v&&l.setAttribute("style",v),z&&l.setAttribute("class",z),t&&(l.append(t),t=null),l.append(s.clone(1,1))):i.append(s.clone(1,1));t&&((l||i).append(t),t=null);i.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&
771
- d!=c.length-1&&(CKEDITOR.env.needsBrFiller&&(n=i.getLast())&&(n.type==CKEDITOR.NODE_ELEMENT&&n.is("br"))&&n.remove(),n=i.getLast(q),(!n||!(n.type==CKEDITOR.NODE_ELEMENT&&n.is(CKEDITOR.dtd.$block)))&&i.append(h.createElement("br")));n=i.$.nodeName.toLowerCase();("div"==n||"p"==n)&&i.appendBogus();f.append(i);a=null;d++}else return null;l=null;if(c.length<=d||Math.max(c[d].indent,0)<m)break}if(j)for(c=f.getFirst();c;){if(c.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(j,c),c.getName()in
772
- CKEDITOR.dtd.$listItem&&(e=c,h=k=b=void 0,b=e.getDirection()))){for(k=e.getParent();k&&!(h=k.getDirection());)k=k.getParent();b==h&&e.removeAttribute("dir")}c=c.getNextSourceNode()}return{listNode:f,nextIndex:d}}};var H=/^h[1-6]$/,F=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);x.prototype={exec:function(c){this.refresh(c,c.elementPath());var j=c.config,e=c.getSelection(),b=e&&e.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var k=c.editable();if(k.getFirst(q)){var g=1==b.length&&b[0];(j=
773
- g&&g.getEnclosedNode())&&(j.is&&this.type==j.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else j.enterMode==CKEDITOR.ENTER_BR?k.appendBogus():b[0].fixBlock(1,j.enterMode==CKEDITOR.ENTER_P?"p":"div"),e.selectRanges(b)}for(var j=e.createBookmarks(!0),k=[],h={},b=b.createIterator(),f=0;(g=b.getNextRange())&&++f;){var a=g.getBoundaryNodes(),d=a.startNode,m=a.endNode;d.type==CKEDITOR.NODE_ELEMENT&&"td"==d.getName()&&g.setStartAt(a.startNode,CKEDITOR.POSITION_AFTER_START);m.type==CKEDITOR.NODE_ELEMENT&&
774
- "td"==m.getName()&&g.setEndAt(a.endNode,CKEDITOR.POSITION_BEFORE_END);g=g.createIterator();for(g.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;a=g.getNextParagraph();)if(!a.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(h,a,"list_block",1);for(var i=c.elementPath(a),d=i.elements,m=0,i=i.blockLimit,n,l=d.length-1;0<=l&&(n=d[l]);l--)if(r[n.getName()]&&i.contains(n)){i.removeCustomData("list_group_object_"+f);(d=n.getCustomData("list_group_object"))?d.contents.push(a):(d={root:n,contents:[a]},
775
- k.push(d),CKEDITOR.dom.element.setMarker(h,n,"list_group_object",d));m=1;break}m||(m=i,m.getCustomData("list_group_object_"+f)?m.getCustomData("list_group_object_"+f).contents.push(a):(d={root:m,contents:[a]},CKEDITOR.dom.element.setMarker(h,m,"list_group_object_"+f,d),k.push(d)))}}for(n=[];0<k.length;)if(d=k.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(r[d.root.getName()]){b=c;f=d;d=h;g=n;m=CKEDITOR.plugins.list.listToArray(f.root,d);i=[];for(a=0;a<f.contents.length;a++)if(l=f.contents[a],(l=l.getAscendant("li",
776
- !0))&&!l.getCustomData("list_item_processed"))i.push(l),CKEDITOR.dom.element.setMarker(d,l,"list_item_processed",!0);for(var l=f.root.getDocument(),p=void 0,o=void 0,a=0;a<i.length;a++){var u=i[a].getCustomData("listarray_index"),p=m[u].parent;p.is(this.type)||(o=l.createElement(this.type),p.copyAttributes(o,{start:1,type:1}),o.removeStyle("list-style-type"),m[u].parent=o)}d=CKEDITOR.plugins.list.arrayToList(m,d,null,b.config.enterMode);m=void 0;i=d.listNode.getChildCount();for(a=0;a<i&&(m=d.listNode.getChild(a));a++)m.getName()==
777
- this.type&&g.push(m);d.listNode.replace(f.root);b.fire("contentDomInvalidated")}else{m=c;a=d;g=n;i=a.contents;b=a.root.getDocument();f=[];1==i.length&&i[0].equals(a.root)&&(d=b.createElement("div"),i[0].moveChildren&&i[0].moveChildren(d),i[0].append(d),i[0]=d);a=a.contents[0].getParent();for(l=0;l<i.length;l++)a=a.getCommonAncestor(i[l].getParent());p=m.config.useComputedState;m=d=void 0;p=void 0===p||p;for(l=0;l<i.length;l++)for(o=i[l];u=o.getParent();){if(u.equals(a)){f.push(o);!m&&o.getDirection()&&
778
- (m=1);o=o.getDirection(p);null!==d&&(d=d&&d!=o?null:o);break}o=u}if(!(1>f.length)){i=f[f.length-1].getNext();l=b.createElement(this.type);g.push(l);for(p=g=void 0;f.length;)g=f.shift(),p=b.createElement("li"),g.is("pre")||H.test(g.getName())||"false"==g.getAttribute("contenteditable")?g.appendTo(p):(g.copyAttributes(p),d&&g.getDirection()&&(p.removeStyle("direction"),p.removeAttribute("dir")),g.moveChildren(p),g.remove()),p.appendTo(l);d&&m&&l.setAttribute("dir",d);i?l.insertBefore(i):l.appendTo(a)}}else this.state==
779
- CKEDITOR.TRISTATE_ON&&r[d.root.getName()]&&E.call(this,c,d,h);for(l=0;l<n.length;l++)B(n[l]);CKEDITOR.dom.element.clearAllMarkers(h);e.selectBookmarks(j);c.focus()},refresh:function(c,j){var e=j.contains(r,1),b=j.blockLimit||j.root;e&&b.contains(e)?this.setState(e.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(c){c.blockless||(c.addCommand("numberedlist",new x("numberedlist","ol")),c.addCommand("bulletedlist",
780
- new x("bulletedlist","ul")),c.ui.addButton&&(c.ui.addButton("NumberedList",{label:c.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),c.ui.addButton("BulletedList",{label:c.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),c.on("key",function(j){var e=j.data.keyCode;if(c.mode=="wysiwyg"&&e in{8:1,46:1}){var b=c.getSelection().getRanges()[0],k=b&&b.startPath();if(b&&b.collapsed){var g=e==8,h=c.editable(),f=new CKEDITOR.dom.walker(b.clone());
781
- f.evaluator=function(a){return q(a)&&!v(a)};f.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};e=b.clone();if(g){var a,d;if((a=k.contains(r))&&b.checkBoundaryOfElement(a,CKEDITOR.START)&&(a=a.getParent())&&a.is("li")&&(a=w(a))){d=a;a=a.getPrevious(q);e.moveToPosition(a&&v(a)?a:d,CKEDITOR.POSITION_BEFORE_START)}else{f.range.setStartAt(h,CKEDITOR.POSITION_AFTER_START);f.range.setEnd(b.startContainer,b.startOffset);if((a=f.previous())&&a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in
782
- r||a.is("li"))){if(!a.is("li")){f.range.selectNodeContents(a);f.reset();f.evaluator=C;a=f.previous()}d=a;e.moveToElementEditEnd(d)}}if(d){y(c,e,b);j.cancel()}else if((e=k.contains(r))&&b.checkBoundaryOfElement(e,CKEDITOR.START)){d=e.getFirst(q);if(b.checkBoundaryOfElement(d,CKEDITOR.START)){a=e.getPrevious(q);if(w(d)){if(a){b.moveToElementEditEnd(a);b.select()}}else c.execCommand("outdent");j.cancel()}}}else if(d=k.contains("li")){f.range.setEndAt(h,CKEDITOR.POSITION_BEFORE_END);h=(k=d.getLast(q))&&
783
- C(k)?k:d;d=0;if((a=f.next())&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in r&&a.equals(k)){d=1;a=f.next()}else b.checkBoundaryOfElement(h,CKEDITOR.END)&&(d=1);if(d&&a){b=b.clone();b.moveToElementEditStart(a);y(c,e,b);j.cancel()}}else{f.range.setEndAt(h,CKEDITOR.POSITION_BEFORE_END);if((a=f.next())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(r)){a=a.getFirst(q);if(k.block&&b.checkStartOfBlock()&&b.checkEndOfBlock()){k.block.remove();b.moveToElementEditStart(a);b.select()}else if(w(a)){b.moveToElementEditStart(a);
784
- b.select()}else{b=b.clone();b.moveToElementEditStart(a);y(c,e,b)}j.cancel()}}setTimeout(function(){c.selectionChange(1)})}}}))}})})();(function(){function Q(a,c,d){return m(c)&&m(d)&&d.equals(c.getNext(function(a){return!(z(a)||A(a)||p(a))}))}function u(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function J(a){var c=a.element;if(c&&m(c)&&(c=c.getAscendant(a.triggers,!0))&&a.editable.contains(c)){var d=K(c,!0);if("true"==d.getAttribute("contenteditable"))return c;if(d.is(a.triggers))return d}return null}function ga(a,c,d){o(a,c);o(a,d);a=c.size.bottom;d=d.size.top;return a&&d?0|(a+d)/2:a||d}function r(a,c,
785
- d){return c=c[d?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!z(b)||m(b)&&!p(b)&&!v(a,b)})}function K(a,c){if(a.data("cke-editable"))return null;for(c||(a=a.getParent());a&&!a.data("cke-editable");){if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function ha(a){var c=a.doc,d=B('<span contenteditable="false" style="'+L+"position:absolute;border-top:1px dashed "+a.boxColor+'"></span>',c),b=this.path+"images/"+(n.hidpi?"hidpi/":"")+"icon.png";q(d,
786
- {attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},lineChildren:[q(B('<span title="'+a.editor.lang.magicline.title+'" contenteditable="false">&#8629;</span>',c),{base:L+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+b+") center no-repeat "+a.boxColor+";cursor:pointer;"+(n.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(n.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px;"+CKEDITOR.tools.cssVendorPrefix("border-radius",
787
- "2px",1),"top:-17px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px 2px 0px 0px",1),"top:-1px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","0px 0px 2px 2px",1)]}),q(B(R,c),{base:S+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),q(B(R,c),{base:S+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],
788
- detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){o(a,this);var b=a.holdDistance,c=this.size;return c&&a.mouse.y>c.top-b&&a.mouse.y<c.bottom+b&&a.mouse.x>c.left-b&&a.mouse.x<c.right+b?!0:!1},place:function(){var b=a.view,c=a.editable,d=a.trigger,h=d.upper,g=d.lower,j=h||g,l=j.getParent(),k={};this.trigger=d;h&&o(a,h,!0);g&&o(a,g,!0);o(a,l,!0);a.inInlineMode&&C(a,!0);l.equals(c)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=j.size.left-j.size.margin.left+
789
- b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=j.size.outerWidth+j.size.margin.left+j.size.margin.right+b.scroll.x,k.right="");h&&g?k.top=h.size.margin.bottom===g.size.margin.top?0|h.size.bottom+h.size.margin.bottom/2:h.size.margin.bottom<g.size.margin.top?h.size.bottom+h.size.margin.bottom:h.size.bottom+h.size.margin.bottom-g.size.margin.top:h?g||(k.top=h.size.bottom+h.size.margin.bottom):k.top=g.size.top-g.size.margin.top;d.is(x)||k.top>b.scroll.y-15&&k.top<b.scroll.y+
790
- 5?(k.top=a.inInlineMode?0:b.scroll.y,this.look(x)):d.is(y)||k.top>b.pane.bottom-5&&k.top<b.pane.bottom+15?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1,this.look(y)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(s));a.inInlineMode&&(k.top--,k.top+=b.editable.scroll.top,k.left+=b.editable.scroll.left);for(var T in k)k[T]=CKEDITOR.tools.cssLength(k[T]);this.setStyles(k)},look:function(a){if(this.oldLook!=a){for(var b=
791
- this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new M("span",a.doc)});for(c=d.lineChildren.length;c--;)d.lineChildren[c].appendTo(d);d.look(s);d.appendTo(d.wrap);d.unselectable();d.lineChildren[0].on("mouseup",function(b){d.detach();N(a,function(b){var c=a.line.trigger;b[c.is(D)?"insertBefore":"insertAfter"](c.is(D)?c.lower:c.upper)},!0);a.editor.focus();!n.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();b.data.preventDefault(!0)});
792
- d.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=d}function N(a,c,d){var b=new CKEDITOR.dom.range(a.doc),e=a.editor,f;n.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(E):(f=(f=K(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new M(F[f],a.doc),f.is("br")||a.doc.createText(E).appendTo(f));d&&e.fire("saveSnapshot");c(f);b.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([b]);a.hotNode=f;d&&e.fire("saveSnapshot")}function U(a,c){return{canUndo:!0,
793
- modes:{wysiwyg:1},exec:function(){function d(b){var d=n.ie&&9>n.version?" ":E,f=a.hotNode&&a.hotNode.getText()==d&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!c;N(a,function(d){f&&a.hotNode&&a.hotNode.remove();d[c?"insertAfter":"insertBefore"](b);d.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!c});a.lastCmdDirection=!!c});!n.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();a.line.detach()}return function(b){var b=b.getSelection().getStartElement(),e,b=
794
- b.getAscendant(V,1);if(!W(a,b)&&b&&!b.equals(a.editable)&&!b.contains(a.editable)){if((e=K(b))&&"false"==e.getAttribute("contenteditable"))b=e;a.element=b;e=r(a,b,!c);var f;m(e)&&e.is(a.triggers)&&e.is(ia)&&(!r(a,e,!c)||(f=r(a,e,!c))&&m(f)&&f.is(a.triggers))?d(e):(f=J(a,b),m(f)&&(r(a,f,!c)?(b=r(a,f,!c))&&(m(b)&&b.is(a.triggers))&&d(f):d(f)))}}}()}}function v(a,c){if(!c||!(c.type==CKEDITOR.NODE_ELEMENT&&c.$))return!1;var d=a.line;return d.wrap.equals(c)||d.wrap.contains(c)}function m(a){return a&&
795
- a.type==CKEDITOR.NODE_ELEMENT&&a.$}function p(a){if(!m(a))return!1;var c;if(!(c=X(a)))m(a)?(c={left:1,right:1,center:1},c=!(!c[a.getComputedStyle("float")]&&!c[a.getAttribute("align")])):c=!1;return c}function X(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function G(a,c){return m(c)?c.is(a.triggers):null}function W(a,c){if(!c)return!1;for(var d=c.getParents(1),b=d.length;b--;)for(var e=a.tabuList.length;e--;)if(d[b].hasAttribute(a.tabuList[e]))return!0;return!1}function ja(a,c,
796
- d){c=c[d?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(ka)});if(!c)return!1;o(a,c);return d?c.size.top>a.mouse.y:c.size.bottom<a.mouse.y}function Y(a){var c=a.editable,d=a.mouse,b=a.view,e=a.triggerOffset;C(a);var f=d.y>(a.inInlineMode?b.editable.top+b.editable.height/2:Math.min(b.editable.height,b.pane.height)/2),c=c[f?"getLast":"getFirst"](function(a){return!(z(a)||A(a))});if(!c)return null;v(a,c)&&(c=a.line.wrap[f?"getPrevious":"getNext"](function(a){return!(z(a)||A(a))}));if(!m(c)||
797
- p(c)||!G(a,c))return null;o(a,c);return!f&&0<=c.size.top&&0<d.y&&d.y<c.size.top+e?(a=a.inInlineMode||0===b.scroll.y?x:s,new u([null,c,D,H,a])):f&&c.size.bottom<=b.pane.height&&d.y>c.size.bottom-e&&d.y<b.pane.height?(a=a.inInlineMode||c.size.bottom>b.pane.height-e&&c.size.bottom<b.pane.height?y:s,new u([c,null,Z,H,a])):null}function $(a){var c=a.mouse,d=a.view,b=a.triggerOffset,e=J(a);if(!e)return null;o(a,e);var b=Math.min(b,0|e.size.outerHeight/2),f=[],i,h;if(c.y>e.size.top-1&&c.y<e.size.top+b)h=
798
- !1;else if(c.y>e.size.bottom-b&&c.y<e.size.bottom+1)h=!0;else return null;if(p(e)||ja(a,e,h)||e.getParent().is(aa))return null;var g=r(a,e,!h);if(g){if(g&&g.type==CKEDITOR.NODE_TEXT)return null;if(m(g)){if(p(g)||!G(a,g)||g.getParent().is(aa))return null;f=[g,e][h?"reverse":"concat"]().concat([O,H])}}else e.equals(a.editable[h?"getLast":"getFirst"](a.isRelevant))?(C(a),h&&c.y>e.size.bottom-b&&c.y<d.pane.height&&e.size.bottom>d.pane.height-b&&e.size.bottom<d.pane.height?i=y:0<c.y&&c.y<e.size.top+b&&
799
- (i=x)):i=s,f=[null,e][h?"reverse":"concat"]().concat([h?Z:D,H,i,e.equals(a.editable[h?"getLast":"getFirst"](a.isRelevant))?h?y:x:s]);return 0 in f?new u(f):null}function P(a,c,d,b){for(var e=function(){var b=n.ie?c.$.currentStyle:a.win.$.getComputedStyle(c.$,"");return n.ie?function(a){return b[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){return b.getPropertyValue(a)}}(),f=c.getDocumentPosition(),i={},h={},g={},j={},l=t.length;l--;)i[t[l]]=parseInt(e("border-"+t[l]+"-width"),10)||0,g[t[l]]=
800
- parseInt(e("padding-"+t[l]),10)||0,h[t[l]]=parseInt(e("margin-"+t[l]),10)||0;(!d||b)&&I(a,b);j.top=f.y-(d?0:a.view.scroll.y);j.left=f.x-(d?0:a.view.scroll.x);j.outerWidth=c.$.offsetWidth;j.outerHeight=c.$.offsetHeight;j.height=j.outerHeight-(g.top+g.bottom+i.top+i.bottom);j.width=j.outerWidth-(g.left+g.right+i.left+i.right);j.bottom=j.top+j.outerHeight;j.right=j.left+j.outerWidth;a.inInlineMode&&(j.scroll={top:c.$.scrollTop,left:c.$.scrollLeft});return q({border:i,padding:g,margin:h,ignoreScroll:d},
801
- j,!0)}function o(a,c,d){if(!m(c))return c.size=null;if(c.size){if(c.size.ignoreScroll==d&&c.size.date>new Date-ba)return null}else c.size={};return q(c.size,P(a,c,d),{date:+new Date},!0)}function C(a,c){a.view.editable=P(a,a.editable,c,!0)}function I(a,c){a.view||(a.view={});var d=a.view;if(c||!(d&&d.date>new Date-ba)){var b=a.win,d=b.getScrollPosition(),b=b.getViewPaneSize();q(a.view,{scroll:{x:d.x,y:d.y,width:a.doc.$.documentElement.scrollWidth-b.width,height:a.doc.$.documentElement.scrollHeight-
802
- b.height},pane:{width:b.width,height:b.height,bottom:b.height+d.y},date:+new Date},!0)}}function la(a,c,d,b){for(var e=b,f=b,i=0,h=!1,g=!1,j=a.view.pane.height,l=a.mouse;l.y+i<j&&0<l.y-i;){h||(h=c(e,b));g||(g=c(f,b));!h&&0<l.y-i&&(e=d(a,{x:l.x,y:l.y-i}));!g&&l.y+i<j&&(f=d(a,{x:l.x,y:l.y+i}));if(h&&g)break;i+=2}return new u([e,f,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var c=a.config,d=c.magicline_triggerOffset||30,b={editor:a,enterMode:c.enterMode,triggerOffset:d,holdDistance:0|
803
- d*(c.magicline_holdDistance||0.5),boxColor:c.magicline_color||"#ff0000",rtl:"rtl"==c.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(c.magicline_tabuList||[]),triggers:c.magicline_everywhere?V:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},e,f,i;b.isRelevant=function(a){return m(a)&&!v(b,a)&&!p(a)};a.on("contentDom",function(){var d=a.editable(),g=a.document,j=a.window;q(b,{editable:d,inInlineMode:d.isInline(),doc:g,win:j,hotNode:null},!0);b.boundary=b.inInlineMode?b.editable:
804
- b.doc.getDocumentElement();d.is(w.$inline)||(b.inInlineMode&&!X(d)&&d.setStyles({position:"relative",top:null,left:null}),ha.call(this,b),I(b),d.attachListener(a,"beforeUndoImage",function(){b.line.detach()}),d.attachListener(a,"beforeGetData",function(){b.line.wrap.getParent()&&(b.line.detach(),a.once("getData",function(){b.line.attach()},null,null,1E3))},null,null,0),d.attachListener(b.inInlineMode?g:g.getWindow().getFrame(),"mouseout",function(c){if("wysiwyg"==a.mode)if(b.inInlineMode){var d=c.data.$.clientX,
805
- c=c.data.$.clientY;I(b);C(b,!0);var e=b.view.editable,f=b.view.scroll;if(!(d>e.left-f.x&&d<e.right-f.x)||!(c>e.top-f.y&&c<e.bottom-f.y))clearTimeout(i),i=null,b.line.detach()}else clearTimeout(i),i=null,b.line.detach()}),d.attachListener(d,"keyup",function(){b.hiddenMode=0}),d.attachListener(d,"keydown",function(c){if("wysiwyg"==a.mode)switch(c=c.data.getKeystroke(),a.getSelection().getStartElement(),c){case 2228240:case 16:b.hiddenMode=1,b.line.detach()}}),d.attachListener(b.inInlineMode?d:g,"mousemove",
806
- function(c){f=!0;if(!("wysiwyg"!=a.mode||a.readOnly||i)){var d={x:c.data.$.clientX,y:c.data.$.clientY};i=setTimeout(function(){b.mouse=d;i=b.trigger=null;I(b);if(f&&!b.hiddenMode&&a.focusManager.hasFocus&&!b.line.mouseNear()&&(b.element=ca(b,!0)))(b.trigger=Y(b)||$(b)||da(b))&&!W(b,b.trigger.upper||b.trigger.lower)?b.line.attach().place():(b.trigger=null,b.line.detach()),f=!1},30)}}),d.attachListener(j,"scroll",function(){"wysiwyg"==a.mode&&(b.line.detach(),n.webkit&&(b.hiddenMode=1,clearTimeout(e),
807
- e=setTimeout(function(){b.mouseDown||(b.hiddenMode=0)},50)))}),d.attachListener(ea?g:j,"mousedown",function(){"wysiwyg"==a.mode&&(b.line.detach(),b.hiddenMode=1,b.mouseDown=1)}),d.attachListener(ea?g:j,"mouseup",function(){b.hiddenMode=0;b.mouseDown=0}),a.addCommand("accessPreviousSpace",U(b)),a.addCommand("accessNextSpace",U(b,!0)),a.setKeystroke([[c.magicline_keystrokePrevious,"accessPreviousSpace"],[c.magicline_keystrokeNext,"accessNextSpace"]]),a.on("loadSnapshot",function(){var c,d,e,f;for(f in{p:1,
808
- br:1,div:1}){c=a.document.getElementsByTag(f);for(e=c.count();e--;)if((d=c.getItem(e)).data("cke-magicline-hot")){b.hotNode=d;b.lastCmdDirection="true"===d.data("cke-magicline-dir")?!0:!1;return}}}),this.backdoor={accessFocusSpace:N,boxTrigger:u,isLine:v,getAscendantTrigger:J,getNonEmptyNeighbour:r,getSize:P,that:b,triggerEdge:$,triggerEditable:Y,triggerExpand:da})},this)}});var q=CKEDITOR.tools.extend,M=CKEDITOR.dom.element,B=M.createFromHtml,n=CKEDITOR.env,ea=CKEDITOR.env.ie&&9>CKEDITOR.env.version,
809
- w=CKEDITOR.dtd,F={},D=128,Z=64,O=32,H=16,fa=8,x=4,y=2,s=1,E=" ",aa=w.$listItem,ka=w.$tableContent,ia=q({},w.$nonEditable,w.$empty),V=w.$block,ba=100,L="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",S=L+"border-color:transparent;display:block;border-style:solid;",R="<span>"+E+"</span>";F[CKEDITOR.ENTER_BR]="br";F[CKEDITOR.ENTER_P]="p";F[CKEDITOR.ENTER_DIV]="div";u.prototype={set:function(a,c,d){this.properties=a+
810
- c+(d||s);return this},is:function(a){return(this.properties&a)==a}};var ca=function(){return function(a,c,d){if(!a.mouse)return null;var b=a.doc,e=a.line.wrap,d=d||a.mouse,f=new CKEDITOR.dom.element(b.$.elementFromPoint(d.x,d.y));c&&v(a,f)&&(e.hide(),f=new CKEDITOR.dom.element(b.$.elementFromPoint(d.x,d.y)),e.show());return!f||!(f.type==CKEDITOR.NODE_ELEMENT&&f.$)||n.ie&&9>n.version&&!a.boundary.equals(f)&&!a.boundary.contains(f)?null:f}}(),z=CKEDITOR.dom.walker.whitespaces(),A=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),
811
- da=function(){function a(a){var b=a.element,e,f,i;if(!m(b)||b.contains(a.editable)||b.isReadOnly())return null;i=la(a,function(a,b){return!b.equals(a)},function(a,b){return ca(a,!0,b)},b);e=i.upper;f=i.lower;if(Q(a,e,f))return i.set(O,fa);if(e&&b.contains(e))for(;!e.getParent().equals(b);)e=e.getParent();else e=b.getFirst(function(b){return c(a,b)});if(f&&b.contains(f))for(;!f.getParent().equals(b);)f=f.getParent();else f=b.getLast(function(b){return c(a,b)});if(!e||!f)return null;o(a,e);o(a,f);if(!(a.mouse.y>
812
- e.size.top&&a.mouse.y<f.size.bottom))return null;for(var b=Number.MAX_VALUE,h,g,j,l;f&&!f.equals(e)&&(g=e.getNext(a.isRelevant));)h=Math.abs(ga(a,e,g)-a.mouse.y),h<b&&(b=h,j=e,l=g),e=g,o(a,e);if(!j||!l||!(a.mouse.y>j.size.top&&a.mouse.y<l.size.bottom))return null;i.upper=j;i.lower=l;return i.set(O,fa)}function c(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||A(b)||p(b)||v(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var b=a(c),e;if(e=b){e=b.upper;var f=b.lower;e=!e||!f||p(f)||
813
- p(e)||f.equals(e)||e.equals(f)||f.contains(e)||e.contains(f)?!1:G(c,e)&&G(c,f)&&Q(c,e,f)?!0:!1}return e?b:null}}(),t=["top","left","right","bottom"]})();CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51;CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52;(function(){function l(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())return[];for(var e=[],f=["style","className"],b=0;b<f.length;b++){var d=a.$.elements.namedItem(f[b]);d&&(d=new CKEDITOR.dom.element(d),e.push([d,d.nextSibling]),d.remove())}return e}function o(a,e){if(a&&!(a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())&&0<e.length)for(var f=e.length-1;0<=f;f--){var b=e[f][0],d=e[f][1];d?b.insertBefore(d):b.appendTo(a)}}function n(a,e){var f=l(a),b={},d=a.$;e||(b["class"]=d.className||
814
- "",d.className="");b.inline=d.style.cssText||"";e||(d.style.cssText="position: static; overflow: visible");o(f);return b}function p(a,e){var f=l(a),b=a.$;"class"in e&&(b.className=e["class"]);"inline"in e&&(b.style.cssText=e.inline);o(f)}function q(a){if(!a.editable().isInline()){var e=CKEDITOR.instances,f;for(f in e){var b=e[f];"wysiwyg"==b.mode&&!b.readOnly&&(b=b.document.getBody(),b.setAttribute("contentEditable",!1),b.setAttribute("contentEditable",!0))}a.editable().hasFocus&&(a.toolbox.focus(),
815
- a.focus())}}CKEDITOR.plugins.add("maximize",{init:function(a){function e(){var b=d.getViewPaneSize();a.resize(b.width,b.height,null,!0)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var f=a.lang,b=CKEDITOR.document,d=b.getWindow(),j,k,m,l=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var h=a.container.getChild(1),g=a.ui.space("contents");if("wysiwyg"==a.mode){var c=a.getSelection();j=c&&c.getRanges();
816
- k=d.getScrollPosition()}else{var i=a.editable().$;j=!CKEDITOR.env.ie&&[i.selectionStart,i.selectionEnd];k=[i.scrollLeft,i.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){d.on("resize",e);m=d.getScrollPosition();for(c=a.container;c=c.getParent();)c.setCustomData("maximize_saved_styles",n(c)),c.setStyle("z-index",a.config.baseFloatZIndex-5);g.setCustomData("maximize_saved_styles",n(g,!0));h.setCustomData("maximize_saved_styles",n(h,!0));g={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};
817
- b.getDocumentElement().setStyles(g);!CKEDITOR.env.gecko&&b.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&b.getBody().setStyles(g);CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(0,0)},0):d.$.scrollTo(0,0);h.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");h.$.offsetLeft;h.setStyles({"z-index":a.config.baseFloatZIndex-5,left:"0px",top:"0px"});h.addClass("cke_maximized");e();g=h.getDocumentPosition();h.setStyles({left:-1*
818
- g.x+"px",top:-1*g.y+"px"});CKEDITOR.env.gecko&&q(a)}else if(this.state==CKEDITOR.TRISTATE_ON){d.removeListener("resize",e);g=[g,h];for(c=0;c<g.length;c++)p(g[c],g[c].getCustomData("maximize_saved_styles")),g[c].removeCustomData("maximize_saved_styles");for(c=a.container;c=c.getParent();)p(c,c.getCustomData("maximize_saved_styles")),c.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(m.x,m.y)},0):d.$.scrollTo(m.x,m.y);h.removeClass("cke_maximized");CKEDITOR.env.webkit&&
819
- (h.setStyle("display","inline"),setTimeout(function(){h.setStyle("display","block")},0));a.fire("resize")}this.toggleState();if(c=this.uiItems[0])g=this.state==CKEDITOR.TRISTATE_OFF?f.maximize.maximize:f.maximize.minimize,c=CKEDITOR.document.getById(c._.id),c.getChild(1).setHtml(g),c.setAttribute("title",g),c.setAttribute("href",'javascript:void("'+g+'");');"wysiwyg"==a.mode?j?(CKEDITOR.env.gecko&&q(a),a.getSelection().selectRanges(j),(i=a.getSelection().getStartElement())&&i.scrollIntoView(!0)):
820
- d.$.scrollTo(k.x,k.y):(j&&(i.selectionStart=j[0],i.selectionEnd=j[1]),i.scrollLeft=k[0],i.scrollTop=k[1]);j=k=null;l=this.state;a.fire("maximize",this.state)},canUndo:!1});a.ui.addButton&&a.ui.addButton("Maximize",{label:f.maximize.maximize,command:"maximize",toolbar:"tools,10"});a.on("mode",function(){var b=a.getCommand("maximize");b.setState(b.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:l)},null,null,100)}}})})();(function(){var c={canUndo:!1,async:!0,exec:function(a){a.getClipboardData({title:a.lang.pastetext.title},function(b){b&&a.fire("paste",{type:"text",dataValue:b.dataValue});a.fire("afterCommandExec",{name:"pastetext",command:c,returnValue:!!b})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(a){a.addCommand("pastetext",c);a.ui.addButton&&a.ui.addButton("PasteText",{label:a.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(a.config.forcePasteAsPlainText)a.on("beforePaste",
821
- function(a){"html"!=a.data.type&&(a.data.type="text")});a.on("pasteState",function(b){a.getCommand("pastetext").setState(b.data)})}})})();(function(){function h(a,d,f){var b=CKEDITOR.cleanWord;b?f():(a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||d+"filter/default.js"),CKEDITOR.scriptLoader.load(a,f,null,!0));return!b}function i(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(a){var d=0,f=this.path;a.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(a){var e=this;d=1;a.once("beforePaste",i);a.getClipboardData({title:a.lang.pastefromword.title},function(c){c&&a.fire("paste",
822
- {type:"html",dataValue:c.dataValue});a.fire("afterCommandExec",{name:"pastefromword",command:e,returnValue:!!c})})}});a.ui.addButton&&a.ui.addButton("PasteFromWord",{label:a.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});a.on("pasteState",function(b){a.getCommand("pastefromword").setState(b.data)});a.on("paste",function(b){var e=b.data,c=e.dataValue;if(c&&(d||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(c))){var g=h(a,f,function(){if(g)a.fire("paste",e);
823
- else if(!a.config.pasteFromWordPromptCleanup||d||confirm(a.lang.pastefromword.confirmCleanup))e.dataValue=CKEDITOR.cleanWord(c,a)});g&&b.cancel()}},null,null,3)}})})();CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}});
824
- CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var h=a._.removeFormatRegex||(a._.removeFormatRegex=RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),e=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),f=CKEDITOR.plugins.removeformat.filter,k=a.getSelection().getRanges(1),l=k.createIterator(),c;c=l.getNextRange();){c.collapsed||c.enlarge(CKEDITOR.ENLARGE_ELEMENT);var i=c.createBookmark(),b=i.startNode,j=i.endNode,
825
- d=function(b){for(var c=a.elementPath(b),e=c.elements,d=1,g;(g=e[d])&&!g.equals(c.block)&&!g.equals(c.blockLimit);d++)h.test(g.getName())&&f(a,g)&&b.breakParent(g)};d(b);if(j){d(j);for(b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);b&&!b.equals(j);)d=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),!("img"==b.getName()&&b.data("cke-realelement"))&&f(a,b)&&(h.test(b.getName())?b.remove(1):(b.removeAttributes(e),a.fire("removeFormatCleanup",b))),b=d}c.moveToBookmark(i)}a.forceNextSelectionCheck();a.getSelection().selectRanges(k)}}},
826
- filter:function(a,h){for(var e=a._.removeFormatFilters||[],f=0;f<e.length;f++)if(!1===e[f](h))return!1;return!0}};CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(a)};CKEDITOR.config.removeFormatTags="b,big,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var";CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign";(function(){CKEDITOR.plugins.add("sourcearea",{init:function(a){function d(){this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show()}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var e=CKEDITOR.plugins.sourcearea;a.addMode("source",function(e){var b=a.ui.space("contents").getDocument().createElement("textarea");b.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",
827
- outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",a.config.sourceAreaTabSize||4)));b.setAttribute("dir","ltr");b.addClass("cke_source cke_reset cke_enable_context_menu");a.ui.space("contents").append(b);b=a.editable(new c(a,b));b.setData(a.getData(1));CKEDITOR.env.ie&&(b.attachListener(a,"resize",d,b),b.attachListener(CKEDITOR.document.getWindow(),"resize",d,b),CKEDITOR.tools.setTimeout(d,0,b));a.fire("ariaWidget",this);e()});a.addCommand("source",e.commands.source);a.ui.addButton&&
828
- a.ui.addButton("Source",{label:a.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});a.on("mode",function(){a.getCommand("source").setState("source"==a.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)})}}});var c=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a);this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":
829
- "remove")+"Attribute"]("readOnly","readonly")},detach:function(){c.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})})();CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(c){"wysiwyg"==c.mode&&c.fire("saveSnapshot");c.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);c.setMode("source"==c.mode?"wysiwyg":"source")},canUndo:!1}}};CKEDITOR.plugins.add("specialchar",{availableLangs:{ar:1,bg:1,ca:1,cs:1,cy:1,de:1,el:1,en:1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ku:1,lv:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(a){var c=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var b=a.langCode,b=c.availableLangs[b]?b:c.availableLangs[b.replace(/-.*/,
830
- "")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c.path+"dialogs/lang/"+b+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar,c.langEntries[b]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}});CKEDITOR.config.specialChars="! &quot; # $ % &amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ &euro; &lsquo; &rsquo; &ldquo; &rdquo; &ndash; &mdash; &iexcl; &cent; &pound; &curren; &yen; &brvbar; &sect; &uml; &copy; &ordf; &laquo; &not; &reg; &macr; &deg; &sup2; &sup3; &acute; &micro; &para; &middot; &cedil; &sup1; &ordm; &raquo; &frac14; &frac12; &frac34; &iquest; &Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; &AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; &Igrave; &Iacute; &Icirc; &Iuml; &ETH; &Ntilde; &Ograve; &Oacute; &Ocirc; &Otilde; &Ouml; &times; &Oslash; &Ugrave; &Uacute; &Ucirc; &Uuml; &Yacute; &THORN; &szlig; &agrave; &aacute; &acirc; &atilde; &auml; &aring; &aelig; &ccedil; &egrave; &eacute; &ecirc; &euml; &igrave; &iacute; &icirc; &iuml; &eth; &ntilde; &ograve; &oacute; &ocirc; &otilde; &ouml; &divide; &oslash; &ugrave; &uacute; &ucirc; &uuml; &yacute; &thorn; &yuml; &OElig; &oelig; &#372; &#374 &#373 &#375; &sbquo; &#8219; &bdquo; &hellip; &trade; &#9658; &bull; &rarr; &rArr; &hArr; &diams; &asymp;".split(" ");CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var d=function(c){var a=this._,b=a.menu;a.state!==CKEDITOR.TRISTATE_DISABLED&&(a.on&&b?b.hide():(a.previousState=a.state,b||(b=a.menu=new CKEDITOR.menu(c,{panel:{className:"cke_menu_panel",attributes:{"aria-label":c.lang.common.options}}}),b.onHide=CKEDITOR.tools.bind(function(){var b=this.command?c.getCommand(this.command).modes:this.modes;this.setState(!b||b[c.mode]?a.previousState:CKEDITOR.TRISTATE_DISABLED);a.on=0},this),
831
- this.onMenu&&b.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),a.on=1,setTimeout(function(){b.show(CKEDITOR.document.getById(a.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(c){delete c.panel;this.base(c);this.hasArrow=!0;this.click=d},statics:{handler:{create:function(c){return new CKEDITOR.ui.menuButton(c)}}}})},beforeInit:function(d){d.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}});
832
- CKEDITOR.UI_MENUBUTTON="menubutton";(function(){function o(a,c){var b=0,d;for(d in c)if(c[d]==a){b=1;break}return b}var j="",r=function(){function a(){b.once("focus",g);b.once("blur",c)}function c(b){var b=b.editor,c=d.getScayt(b),g=b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE;c&&(d.setPaused(b,!c.disabled),d.setControlId(b,c.id),c.destroy(!0),delete d.instances[b.name],g&&a())}var b=this,g=function(){if(!("undefined"!=typeof d.instances[b.name]||null!=d.instances[b.name])){var a=b.config,c={};c.srcNodeRef="BODY"==b.editable().$.nodeName?
833
- b.document.getWindow().$.frameElement:b.editable().$;c.assocApp="CKEDITOR."+CKEDITOR.version+"@"+CKEDITOR.revision;c.customerid=a.scayt_customerid||"1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2";c.customDictionaryIds=a.scayt_customDictionaryIds||"";c.userDictionaryName=a.scayt_userDictionaryName||"";c.sLang=a.scayt_sLang||"en_US";c.onLoad=function(){CKEDITOR.env.ie&&8>CKEDITOR.env.version||this.addStyle(this.selectorCss(),"padding-bottom: 2px !important;");b.editable().hasFocus&&
834
- !d.isControlRestored(b)&&this.focus()};a=window.scayt_custom_params;if("object"==typeof a)for(var g in a)c[g]=a[g];d.getControlId(b)&&(c.id=d.getControlId(b));var e=new window.scayt(c);e.afterMarkupRemove.push(function(a){(new CKEDITOR.dom.element(a,e.document)).mergeSiblings()});if(c=d.instances[b.name])e.sLang=c.sLang,e.option(c.option()),e.paused=c.paused;d.instances[b.name]=e;try{e.setDisabled(!1===d.isPaused(b))}catch(n){}b.fire("showScaytState")}};b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?
835
- a():b.on("contentDom",g);b.on("contentDomUnload",function(){for(var a=CKEDITOR.document.getElementsByTag("script"),b=/^dojoIoScript(\d+)$/i,c=/^https?:\/\/svc\.webspellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i,d=0;d<a.count();d++){var g=a.getItem(d),e=g.getId(),f=g.getAttribute("src");e&&(f&&e.match(b)&&f.match(c))&&g.remove()}});b.on("beforeCommandExec",function(a){"source"==a.data.name&&"source"==b.mode&&d.markControlRestore(b)});b.on("afterCommandExec",function(a){if(d.isScaytEnabled(b)&&"wysiwyg"==
836
- b.mode&&("undo"==a.data.name||"redo"==a.data.name))d.getScayt(b).setDisabled(!0),d.refresh_timeout&&window.clearTimeout(d.refresh_timeout),d.refresh_timeout=window.setTimeout(function(){d.getScayt(b).setDisabled(!1);d.getScayt(b).focus();d.getScayt(b).refresh()},10)});b.on("destroy",c);b.on("setData",c);b.on("insertElement",function(){var a=d.getScayt(b);d.isScaytEnabled(b)&&(CKEDITOR.env.ie&&b.getSelection().unlock(!0),window.setTimeout(function(){a.focus();a.refresh()},10))},this,null,50);b.on("insertHtml",
837
- function(){var a=d.getScayt(b);d.isScaytEnabled(b)&&(CKEDITOR.env.ie&&b.getSelection().unlock(!0),window.setTimeout(function(){a.focus();a.refresh()},10))},this,null,50);b.on("scaytDialog",function(a){a.data.djConfig=window.djConfig;a.data.scayt_control=d.getScayt(b);a.data.tab=j;a.data.scayt=window.scayt});var e=b.dataProcessor;(e=e&&e.htmlFilter)&&e.addRules({elements:{span:function(a){if(a.attributes["data-scayt_word"]&&a.attributes["data-scaytid"])return delete a.name,a}}});var e=CKEDITOR.plugins.undo.Image.prototype,
838
- f="function"==typeof e.equalsContent?"equalsContent":"equals";e[f]=CKEDITOR.tools.override(e[f],function(a){return function(b){var c=this.contents,g=b.contents,e=d.getScayt(this.editor);e&&d.isScaytReady(this.editor)&&(this.contents=e.reset(c)||"",b.contents=e.reset(g)||"");e=a.apply(this,arguments);this.contents=c;b.contents=g;return e}});e=CKEDITOR.editor.prototype;e.checkDirty=CKEDITOR.tools.override(e.checkDirty,function(a){return function(){var b=null,c=d.getScayt(this);c&&d.isScaytReady(this)?
839
- (b=c.reset(this.getSnapshot()),c=c.reset(this._.previousValue),b=b!==c):b=a.apply(this);return b}});b.document&&(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||b.focusManager.hasFocus)&&g()};CKEDITOR.plugins.scayt={engineLoaded:!1,instances:{},controlInfo:{},setControlInfo:function(a,c){a&&(a.name&&"object"!=typeof this.controlInfo[a.name])&&(this.controlInfo[a.name]={});for(var b in c)this.controlInfo[a.name][b]=c[b]},isControlRestored:function(a){return a&&a.name&&this.controlInfo[a.name]?this.controlInfo[a.name].restored:
840
- !1},markControlRestore:function(a){this.setControlInfo(a,{restored:!0})},setControlId:function(a,c){this.setControlInfo(a,{id:c})},getControlId:function(a){return a&&a.name&&this.controlInfo[a.name]&&this.controlInfo[a.name].id?this.controlInfo[a.name].id:null},setPaused:function(a,c){this.setControlInfo(a,{paused:c})},isPaused:function(a){if(a&&a.name&&this.controlInfo[a.name])return this.controlInfo[a.name].paused},getScayt:function(a){return this.instances[a.name]},isScaytReady:function(a){return!0===
841
- this.engineLoaded&&"undefined"!==typeof window.scayt&&this.getScayt(a)},isScaytEnabled:function(a){return(a=this.getScayt(a))?!1===a.disabled:!1},getUiTabs:function(a){var c=[],b=a.config.scayt_uiTabs||"1,1,1",b=b.split(",");b[3]="1";for(var d=0;4>d;d++)c[d]="undefined"!=typeof window.scayt&&"undefined"!=typeof window.scayt.uiTags?parseInt(b[d],10)&&window.scayt.uiTags[d]:parseInt(b[d],10);"object"==typeof a.plugins.wsc?c.push(1):c.push(0);return c},loadEngine:function(a){if(CKEDITOR.env.gecko&&10900>
842
- CKEDITOR.env.version||CKEDITOR.env.opera||CKEDITOR.env.air)return a.fire("showScaytState");if(!0===this.engineLoaded)return r.apply(a);if(-1==this.engineLoaded)return CKEDITOR.on("scaytReady",function(){r.apply(a)});CKEDITOR.on("scaytReady",r,a);CKEDITOR.on("scaytReady",function(){this.engineLoaded=!0},this,null,0);this.engineLoaded=-1;var c=document.location.protocol,c=-1!=c.search(/https?:/)?c:"http:",c=a.config.scayt_srcUrl||c+"//svc.webspellchecker.net/scayt26/loader__base.js",b=d.parseUrl(c).path+
843
- "/";void 0==window.scayt?(CKEDITOR._djScaytConfig={baseUrl:b,addOnLoad:[function(){CKEDITOR.fireOnce("scaytReady")}],isDebug:!1},CKEDITOR.document.getHead().append(CKEDITOR.document.createElement("script",{attributes:{type:"text/javascript",async:"true",src:c}}))):CKEDITOR.fireOnce("scaytReady");return null},parseUrl:function(a){var c;return a.match&&(c=a.match(/(.*)[\/\\](.*?\.\w+)$/))?{path:c[1],file:c[2]}:a}};var d=CKEDITOR.plugins.scayt,p=function(a,c,b,d,e,f,h){a.addCommand(d,e);a.addMenuItem(d,
844
- {label:b,command:d,group:f,order:h})},u={preserveState:!0,editorFocus:!1,canUndo:!1,exec:function(a){if(d.isScaytReady(a)){var c=d.isScaytEnabled(a);this.setState(c?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_ON);a=d.getScayt(a);a.focus();a.setDisabled(c)}else!a.config.scayt_autoStartup&&0<=d.engineLoaded&&(a.focus(),this.setState(CKEDITOR.TRISTATE_DISABLED),d.loadEngine(a))}};CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",beforeInit:function(a){var c=a.config.scayt_contextMenuItemsOrder||
845
- "suggest|moresuggest|control",b="";if((c=c.split("|"))&&c.length)for(var d=0;d<c.length;d++)b+="scayt_"+c[d]+(c.length!=parseInt(d,10)+1?",":"");a.config.menu_groups=b+","+a.config.menu_groups},checkEnvironment:function(){return CKEDITOR.env.opera||CKEDITOR.env.air?0:1},init:function(a){var c=a.dataProcessor&&a.dataProcessor.dataFilter,b={elements:{span:function(a){var b=a.attributes;b&&b["data-scaytid"]&&delete a.name}}};c&&c.addRules(b);var g={},e={},f=a.addCommand("scaytcheck",u);CKEDITOR.dialog.add("scaytcheck",
846
- CKEDITOR.getUrl(this.path+"dialogs/options.js"));c=d.getUiTabs(a);a.addMenuGroup("scaytButton");a.addMenuGroup("scayt_suggest",-10);a.addMenuGroup("scayt_moresuggest",-9);a.addMenuGroup("scayt_control",-8);var b={},h=a.lang.scayt;b.scaytToggle={label:h.enable,command:"scaytcheck",group:"scaytButton"};1==c[0]&&(b.scaytOptions={label:h.options,group:"scaytButton",onClick:function(){j="options";a.openDialog("scaytcheck")}});1==c[1]&&(b.scaytLangs={label:h.langs,group:"scaytButton",onClick:function(){j=
847
- "langs";a.openDialog("scaytcheck")}});1==c[2]&&(b.scaytDict={label:h.dictionariesTab,group:"scaytButton",onClick:function(){j="dictionaries";a.openDialog("scaytcheck")}});b.scaytAbout={label:a.lang.scayt.about,group:"scaytButton",onClick:function(){j="about";a.openDialog("scaytcheck")}};1==c[4]&&(b.scaytWSC={label:a.lang.wsc.toolbar,group:"scaytButton",command:"checkspell"});a.addMenuItems(b);a.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:h.title,title:CKEDITOR.env.opera?h.opera_title:h.title,modes:{wysiwyg:this.checkEnvironment()},
848
- toolbar:"spellchecker,20",onRender:function(){f.on("state",function(){this.setState(f.state)},this)},onMenu:function(){var b=d.isScaytEnabled(a);a.getMenuItem("scaytToggle").label=h[b?"disable":"enable"];var c=d.getUiTabs(a);return{scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:b&&c[0]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:b&&c[1]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:b&&c[2]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:b&&c[3]?CKEDITOR.TRISTATE_OFF:
849
- CKEDITOR.TRISTATE_DISABLED,scaytWSC:c[4]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}});a.contextMenu&&a.addMenuItems&&a.contextMenu.addListener(function(b,c){if(!d.isScaytEnabled(a)||c.getRanges()[0].checkReadOnly())return null;var f=d.getScayt(a),n=f.getScaytNode();if(!n)return null;var i=f.getWord(n);if(!i)return null;var j=f.getLang(),l=a.config.scayt_contextCommands||"all",i=window.scayt.getSuggestion(i,j),l=l.split("|"),m;for(m in g){delete a._.menuItems[m];delete a.commands[m]}for(m in e){delete a._.menuItems[m];
850
- delete a.commands[m]}if(!i||!i.length){p(a,"no_sugg",h.noSuggestions,"scayt_no_sugg",{exec:function(){}},"scayt_control",1,true);e.scayt_no_sugg=CKEDITOR.TRISTATE_OFF}else{g={};e={};m=a.config.scayt_moreSuggestions||"on";var j=false,s=a.config.scayt_maxSuggestions;typeof s!="number"&&(s=5);!s&&(s=i.length);for(var k=0,r=i.length;k<r;k=k+1){var q="scayt_suggestion_"+i[k].replace(" ","_"),t=function(a,b){return{exec:function(){f.replace(a,b)}}}(n,i[k]);if(k<s){p(a,"button_"+q,i[k],q,t,"scayt_suggest",
851
- k+1);e[q]=CKEDITOR.TRISTATE_OFF}else if(m=="on"){p(a,"button_"+q,i[k],q,t,"scayt_moresuggest",k+1);g[q]=CKEDITOR.TRISTATE_OFF;j=true}}if(j){a.addMenuItem("scayt_moresuggest",{label:h.moreSuggestions,group:"scayt_moresuggest",order:10,getItems:function(){return g}});e.scayt_moresuggest=CKEDITOR.TRISTATE_OFF}}if(o("all",l)||o("ignore",l)){p(a,"ignore",h.ignore,"scayt_ignore",{exec:function(){f.ignore(n)}},"scayt_control",2);e.scayt_ignore=CKEDITOR.TRISTATE_OFF}if(o("all",l)||o("ignoreall",l)){p(a,"ignore_all",
852
- h.ignoreAll,"scayt_ignore_all",{exec:function(){f.ignoreAll(n)}},"scayt_control",3);e.scayt_ignore_all=CKEDITOR.TRISTATE_OFF}if(o("all",l)||o("add",l)){p(a,"add_word",h.addWord,"scayt_add_word",{exec:function(){window.scayt.addWordToUserDictionary(n)}},"scayt_control",4);e.scayt_add_word=CKEDITOR.TRISTATE_OFF}f.fireOnContextMenu&&f.fireOnContextMenu(a);return e});c=function(b){b.removeListener();CKEDITOR.env.opera||CKEDITOR.env.air?f.setState(CKEDITOR.TRISTATE_DISABLED):f.setState(d.isScaytEnabled(a)?
853
- CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)};a.on("showScaytState",c);a.on("instanceReady",c);if(a.config.scayt_autoStartup)a.on("instanceReady",function(){d.loadEngine(a)})},afterInit:function(a){var c,b=function(a){if(a.hasAttribute("data-scaytid"))return!1};a._.elementsPath&&(c=a._.elementsPath.filters)&&c.push(b);a.addRemoveFormatFilter&&a.addRemoveFormatFilter(b)}})})();(function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(c){var j=c.config,f=c.lang.stylescombo,e={},i=[],k=[];c.on("stylesSet",function(b){if(b=b.data.styles){for(var a,h,d=0,g=b.length;d<g;d++)if(a=b[d],!(c.blockless&&a.element in CKEDITOR.dtd.$block)&&(h=a.name,a=new CKEDITOR.style(a),!c.filter.customConfig||c.filter.check(a)))a._name=h,a._.enterMode=j.enterMode,a._.weight=d+1E3*(a.type==CKEDITOR.STYLE_OBJECT?1:a.type==CKEDITOR.STYLE_BLOCK?2:3),e[h]=a,i.push(a),k.push(a);
854
- i.sort(function(a,b){return a._.weight-b._.weight})}});c.ui.addRichCombo("Styles",{label:f.label,title:f.panelTitle,toolbar:"styles,10",allowedContent:k,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(j.contentsCss),multiSelect:!0,attributes:{"aria-label":f.panelTitle}},init:function(){var b,a,c,d,g,e;g=0;for(e=i.length;g<e;g++)b=i[g],a=b._name,d=b.type,d!=c&&(this.startGroup(f["panelTitle"+d]),c=d),this.add(a,b.type==CKEDITOR.STYLE_OBJECT?a:b.buildPreview(),a);this.commit()},onClick:function(b){c.focus();
855
- c.fire("saveSnapshot");var b=e[b],a=c.elementPath();c[b.checkActive(a)?"removeStyle":"applyStyle"](b);c.fire("saveSnapshot")},onRender:function(){c.on("selectionChange",function(b){for(var a=this.getValue(),b=b.data.path.elements,c=0,d=b.length,g;c<d;c++){g=b[c];for(var f in e)if(e[f].checkElementRemovable(g,!0)){f!=a&&this.setValue(f);return}}this.setValue("")},this)},onOpen:function(){var b=c.getSelection().getSelectedElement(),b=c.elementPath(b),a=[0,0,0,0];this.showAll();this.unmarkAll();for(var h in e){var d=
856
- e[h],g=d.type;d.checkApplicable(b,c.activeFilter)?a[g]++:this.hideItem(h);d.checkActive(b)&&this.mark(h)}a[CKEDITOR.STYLE_BLOCK]||this.hideGroup(f["panelTitle"+CKEDITOR.STYLE_BLOCK]);a[CKEDITOR.STYLE_INLINE]||this.hideGroup(f["panelTitle"+CKEDITOR.STYLE_INLINE]);a[CKEDITOR.STYLE_OBJECT]||this.hideGroup(f["panelTitle"+CKEDITOR.STYLE_OBJECT])},refresh:function(){var b=c.elementPath();if(b){for(var a in e)if(e[a].checkApplicable(b,c.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){e=
857
- {};i=[]}})}})})();(function(){function i(c){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(d){if(d.editable().hasFocus){var e=d.getSelection(),b;if(b=(new CKEDITOR.dom.elementPath(e.getCommonAncestor(),e.root)).contains({td:1,th:1},1)){var e=d.createRange(),a=CKEDITOR.tools.tryThese(function(){var a=b.getParent().$.cells[b.$.cellIndex+(c?-1:1)];a.parentNode.parentNode;return a},function(){var a=b.getParent(),a=a.getAscendant("table").$.rows[a.$.rowIndex+(c?-1:1)];return a.cells[c?a.cells.length-1:
858
- 0]});if(!a&&!c){for(var f=b.getAscendant("table").$,a=b.getParent().$.cells,f=new CKEDITOR.dom.element(f.insertRow(-1),d.document),g=0,h=a.length;g<h;g++)f.append((new CKEDITOR.dom.element(a[g],d.document)).clone(!1,!1)).appendBogus();e.moveToElementEditStart(f)}else if(a)a=new CKEDITOR.dom.element(a),e.moveToElementEditStart(a),(!e.checkStartOfBlock()||!e.checkEndOfBlock())&&e.selectNodeContents(a);else return!0;e.select(!0);return!0}}return!1}}}var h={editorFocus:!1,modes:{wysiwyg:1,source:1}},
859
- g={exec:function(c){c.container.focusNext(!0,c.tabIndex)}},f={exec:function(c){c.container.focusPrevious(!0,c.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(c){for(var d=!1!==c.config.enableTabKeyTools,e=c.config.tabSpaces||0,b="";e--;)b+=" ";if(b)c.on("key",function(a){9==a.data.keyCode&&(c.insertHtml(b),a.cancel())});if(d)c.on("key",function(a){(9==a.data.keyCode&&c.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&c.execCommand("selectPreviousCell"))&&a.cancel()});c.addCommand("blur",
860
- CKEDITOR.tools.extend(g,h));c.addCommand("blurBack",CKEDITOR.tools.extend(f,h));c.addCommand("selectNextCell",i());c.addCommand("selectPreviousCell",i(!0))}})})();
861
- CKEDITOR.dom.element.prototype.focusNext=function(i,h){var g=void 0===h?this.getTabIndex():h,f,c,d,e,b,a;if(0>=g)for(b=this.getNextSourceNode(i,CKEDITOR.NODE_ELEMENT);b;){if(b.isVisible()&&0===b.getTabIndex()){d=b;break}b=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(b=this.getDocument().getBody().getFirst();b=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!c&&b.equals(this)){if(c=!0,i){if(!(b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else c&&!this.contains(b)&&
862
- (f=1);if(b.isVisible()&&!(0>(a=b.getTabIndex()))){if(f&&a==g){d=b;break}a>g&&(!d||!e||a<e)?(d=b,e=a):!d&&0===a&&(d=b,e=a)}}d&&d.focus()};
863
- CKEDITOR.dom.element.prototype.focusPrevious=function(i,h){for(var g=void 0===h?this.getTabIndex():h,f,c,d,e=0,b,a=this.getDocument().getBody().getLast();a=a.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!c&&a.equals(this)){if(c=!0,i){if(!(a=a.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else c&&!this.contains(a)&&(f=1);if(a.isVisible()&&!(0>(b=a.getTabIndex())))if(0>=g){if(f&&0===b){d=a;break}b>e&&(d=a,e=b)}else{if(f&&b==g){d=a;break}if(b<g&&(!d||b>e))d=a,e=b}}d&&d.focus()};CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function d(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,e){this.setState(e.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var b=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(a.plugins.dialogadvtab?
864
- "table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",d()));a.addCommand("tableDelete",d({exec:function(a){var c=a.elementPath().contains("table",1);if(c){var b=c.getParent();1==b.getChildCount()&&!b.is("body","td","th")&&(c=b);a=a.createRange();a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START);c.remove();a.select()}}}));
865
- a.ui.addButton&&a.ui.addButton("Table",{label:b.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:b.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:b.deleteTable,command:"tableDelete",group:"table",order:1}});a.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});a.contextMenu&&
866
- a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}});(function(){function p(e){function d(a){!(0<b.length)&&(a.type==CKEDITOR.NODE_ELEMENT&&y.test(a.getName())&&!a.getCustomData("selected_cell"))&&(CKEDITOR.dom.element.setMarker(c,a,"selected_cell",!0),b.push(a))}for(var e=e.getRanges(),b=[],c={},a=0;a<e.length;a++){var f=e[a];if(f.collapsed)f=f.getCommonAncestor(),(f=f.getAscendant("td",!0)||f.getAscendant("th",!0))&&b.push(f);else{var f=new CKEDITOR.dom.walker(f),g;for(f.guard=d;g=f.next();)if(g.type!=CKEDITOR.NODE_ELEMENT||!g.is(CKEDITOR.dtd.table))if((g=
867
- g.getAscendant("td",!0)||g.getAscendant("th",!0))&&!g.getCustomData("selected_cell"))CKEDITOR.dom.element.setMarker(c,g,"selected_cell",!0),b.push(g)}}CKEDITOR.dom.element.clearAllMarkers(c);return b}function o(e,d){for(var b=p(e),c=b[0],a=c.getAscendant("table"),c=c.getDocument(),f=b[0].getParent(),g=f.$.rowIndex,b=b[b.length-1],h=b.getParent().$.rowIndex+b.$.rowSpan-1,b=new CKEDITOR.dom.element(a.$.rows[h]),g=d?g:h,f=d?f:b,b=CKEDITOR.tools.buildTableMap(a),a=b[g],g=d?b[g-1]:b[g+1],b=b[0].length,
868
- c=c.createElement("tr"),h=0;a[h]&&h<b;h++){var i;1<a[h].rowSpan&&g&&a[h]==g[h]?(i=a[h],i.rowSpan+=1):(i=(new CKEDITOR.dom.element(a[h])).clone(),i.removeAttribute("rowSpan"),i.appendBogus(),c.append(i),i=i.$);h+=i.colSpan-1}d?c.insertBefore(f):c.insertAfter(f)}function q(e){if(e instanceof CKEDITOR.dom.selection){for(var d=p(e),b=d[0].getAscendant("table"),c=CKEDITOR.tools.buildTableMap(b),e=d[0].getParent().$.rowIndex,d=d[d.length-1],a=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[],f=e;f<=a;f++){for(var g=
869
- c[f],h=new CKEDITOR.dom.element(b.$.rows[f]),i=0;i<g.length;i++){var j=new CKEDITOR.dom.element(g[i]),l=j.getParent().$.rowIndex;1==j.$.rowSpan?j.remove():(j.$.rowSpan-=1,l==f&&(l=c[f+1],l[i-1]?j.insertAfter(new CKEDITOR.dom.element(l[i-1])):(new CKEDITOR.dom.element(b.$.rows[f+1])).append(j,1)));i+=j.$.colSpan-1}d.push(h)}c=b.$.rows;b=new CKEDITOR.dom.element(c[a+1]||(0<e?c[e-1]:null)||b.$.parentNode);for(f=d.length;0<=f;f--)q(d[f]);return b}e instanceof CKEDITOR.dom.element&&(b=e.getAscendant("table"),
870
- 1==b.$.rows.length?b.remove():e.remove());return null}function r(e,d){for(var b=d?Infinity:0,c=0;c<e.length;c++){var a;a=e[c];for(var f=d,g=a.getParent().$.cells,h=0,i=0;i<g.length;i++){var j=g[i],h=h+(f?1:j.colSpan);if(j==a.$)break}a=h-1;if(d?a<b:a>b)b=a}return b}function k(e,d){for(var b=p(e),c=b[0].getAscendant("table"),a=r(b,1),b=r(b),a=d?a:b,f=CKEDITOR.tools.buildTableMap(c),c=[],b=[],g=f.length,h=0;h<g;h++)c.push(f[h][a]),b.push(d?f[h][a-1]:f[h][a+1]);for(h=0;h<g;h++)c[h]&&(1<c[h].colSpan&&
871
- b[h]==c[h]?(a=c[h],a.colSpan+=1):(a=(new CKEDITOR.dom.element(c[h])).clone(),a.removeAttribute("colSpan"),a.appendBogus(),a[d?"insertBefore":"insertAfter"].call(a,new CKEDITOR.dom.element(c[h])),a=a.$),h+=a.rowSpan-1)}function u(e,d){var b=e.getStartElement();if(b=b.getAscendant("td",1)||b.getAscendant("th",1)){var c=b.clone();c.appendBogus();d?c.insertBefore(b):c.insertAfter(b)}}function t(e){if(e instanceof CKEDITOR.dom.selection){var e=p(e),d=e[0]&&e[0].getAscendant("table"),b;a:{var c=0;b=e.length-
872
- 1;for(var a={},f,g;f=e[c++];)CKEDITOR.dom.element.setMarker(a,f,"delete_cell",!0);for(c=0;f=e[c++];)if((g=f.getPrevious())&&!g.getCustomData("delete_cell")||(g=f.getNext())&&!g.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(a);b=g;break a}CKEDITOR.dom.element.clearAllMarkers(a);g=e[0].getParent();(g=g.getPrevious())?b=g.getLast():(g=e[b].getParent(),b=(g=g.getNext())?g.getChild(0):null)}for(g=e.length-1;0<=g;g--)t(e[g]);b?m(b,!0):d&&d.remove()}else e instanceof CKEDITOR.dom.element&&
873
- (d=e.getParent(),1==d.getChildCount()?d.remove():e.remove())}function m(e,d){var b=e.getDocument(),c=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(c.focus(),b.focus());b=new CKEDITOR.dom.range(b);if(!b["moveToElementEdit"+(d?"End":"Start")](e))b.selectNodeContents(e),b.collapse(d?!1:!0);b.select(!0)}function v(e,d,b){e=e[d];if("undefined"==typeof b)return e;for(d=0;e&&d<e.length;d++){if(b.is&&e[d]==b.$)return d;if(d==b)return new CKEDITOR.dom.element(e[d])}return b.is?-1:null}function s(e,
874
- d,b){var c=p(e),a;if((d?1!=c.length:2>c.length)||(a=e.getCommonAncestor())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))return!1;var f,e=c[0];a=e.getAscendant("table");var g=CKEDITOR.tools.buildTableMap(a),h=g.length,i=g[0].length,j=e.getParent().$.rowIndex,l=v(g,j,e);if(d){var n;try{var m=parseInt(e.getAttribute("rowspan"),10)||1;f=parseInt(e.getAttribute("colspan"),10)||1;n=g["up"==d?j-m:"down"==d?j+m:j]["left"==d?l-f:"right"==d?l+f:l]}catch(z){return!1}if(!n||e.$==n)return!1;c["up"==d||"left"==
875
- d?"unshift":"push"](new CKEDITOR.dom.element(n))}for(var d=e.getDocument(),o=j,m=n=0,q=!b&&new CKEDITOR.dom.documentFragment(d),s=0,d=0;d<c.length;d++){f=c[d];var k=f.getParent(),t=f.getFirst(),r=f.$.colSpan,u=f.$.rowSpan,k=k.$.rowIndex,w=v(g,k,f),s=s+r*u,m=Math.max(m,w-l+r);n=Math.max(n,k-j+u);if(!b){r=f;(u=r.getBogus())&&u.remove();r.trim();if(f.getChildren().count()){if(k!=o&&t&&(!t.isBlockBoundary||!t.isBlockBoundary({br:1})))(o=q.getLast(CKEDITOR.dom.walker.whitespaces(!0)))&&(!o.is||!o.is("br"))&&
876
- q.append("br");f.moveChildren(q)}d?f.remove():f.setHtml("")}o=k}if(b)return n*m==s;q.moveChildren(e);e.appendBogus();m>=i?e.removeAttribute("rowSpan"):e.$.rowSpan=n;n>=h?e.removeAttribute("colSpan"):e.$.colSpan=m;b=new CKEDITOR.dom.nodeList(a.$.rows);c=b.count();for(d=c-1;0<=d;d--)a=b.getItem(d),a.$.cells.length||(a.remove(),c++);return e}function w(e,d){var b=p(e);if(1<b.length)return!1;if(d)return!0;var b=b[0],c=b.getParent(),a=c.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(a),g=c.$.rowIndex,
877
- h=v(f,g,b),i=b.$.rowSpan,j;if(1<i){j=Math.ceil(i/2);for(var i=Math.floor(i/2),c=g+j,a=new CKEDITOR.dom.element(a.$.rows[c]),f=v(f,c),l,c=b.clone(),g=0;g<f.length;g++)if(l=f[g],l.parentNode==a.$&&g>h){c.insertBefore(new CKEDITOR.dom.element(l));break}else l=null;l||a.append(c)}else{i=j=1;a=c.clone();a.insertAfter(c);a.append(c=b.clone());l=v(f,g);for(h=0;h<l.length;h++)l[h].rowSpan++}c.appendBogus();b.$.rowSpan=j;c.$.rowSpan=i;1==j&&b.removeAttribute("rowSpan");1==i&&c.removeAttribute("rowSpan");return c}
878
- function x(e,d){var b=p(e);if(1<b.length)return!1;if(d)return!0;var b=b[0],c=b.getParent(),a=c.getAscendant("table"),a=CKEDITOR.tools.buildTableMap(a),f=v(a,c.$.rowIndex,b),g=b.$.colSpan;if(1<g)c=Math.ceil(g/2),g=Math.floor(g/2);else{for(var g=c=1,h=[],i=0;i<a.length;i++){var j=a[i];h.push(j[f]);1<j[f].rowSpan&&(i+=j[f].rowSpan-1)}for(a=0;a<h.length;a++)h[a].colSpan++}a=b.clone();a.insertAfter(b);a.appendBogus();b.$.colSpan=c;a.$.colSpan=g;1==c&&b.removeAttribute("colSpan");1==g&&a.removeAttribute("colSpan");
879
- return a}var y=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(e){function d(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function b(a,b){var c=e.addCommand(a,b);e.addFeature(c)}var c=e.lang.table;b("cellProperties",new CKEDITOR.dialogCommand("cellProperties",d({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",
880
- requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");b("rowDelete",d({requiredContent:"table",exec:function(a){a=a.getSelection();m(q(a))}}));b("rowInsertBefore",d({requiredContent:"table",exec:function(a){a=a.getSelection();o(a,!0)}}));b("rowInsertAfter",d({requiredContent:"table",exec:function(a){a=a.getSelection();o(a)}}));b("columnDelete",d({requiredContent:"table",exec:function(a){for(var a=a.getSelection(),a=p(a),b=a[0],c=a[a.length-1],a=b.getAscendant("table"),
881
- d=CKEDITOR.tools.buildTableMap(a),e,j,l=[],n=0,o=d.length;n<o;n++)for(var k=0,q=d[n].length;k<q;k++)d[n][k]==b.$&&(e=k),d[n][k]==c.$&&(j=k);for(n=e;n<=j;n++)for(k=0;k<d.length;k++)c=d[k],b=new CKEDITOR.dom.element(a.$.rows[k]),c=new CKEDITOR.dom.element(c[n]),c.$&&(1==c.$.colSpan?c.remove():c.$.colSpan-=1,k+=c.$.rowSpan-1,b.$.cells.length||l.push(b));j=a.$.rows[0]&&a.$.rows[0].cells;e=new CKEDITOR.dom.element(j[e]||(e?j[e-1]:a.$.parentNode));l.length==o&&a.remove();e&&m(e,!0)}}));b("columnInsertBefore",
882
- d({requiredContent:"table",exec:function(a){a=a.getSelection();k(a,!0)}}));b("columnInsertAfter",d({requiredContent:"table",exec:function(a){a=a.getSelection();k(a)}}));b("cellDelete",d({requiredContent:"table",exec:function(a){a=a.getSelection();t(a)}}));b("cellMerge",d({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a){m(s(a.getSelection()),!0)}}));b("cellMergeRight",d({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){m(s(a.getSelection(),
883
- "right"),!0)}}));b("cellMergeDown",d({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){m(s(a.getSelection(),"down"),!0)}}));b("cellVerticalSplit",d({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){m(w(a.getSelection()))}}));b("cellHorizontalSplit",d({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){m(x(a.getSelection()))}}));b("cellInsertBefore",d({requiredContent:"table",exec:function(a){a=a.getSelection();u(a,!0)}}));
884
- b("cellInsertAfter",d({requiredContent:"table",exec:function(a){a=a.getSelection();u(a)}}));e.addMenuItems&&e.addMenuItems({tablecell:{label:c.cell.menu,group:"tablecell",order:1,getItems:function(){var a=e.getSelection(),b=p(a);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:s(a,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:s(a,"right",!0)?CKEDITOR.TRISTATE_OFF:
885
- CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:s(a,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:w(a,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:x(a,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<b.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:c.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:c.cell.insertAfter,
886
- group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:c.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:c.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:c.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:c.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:c.cell.splitHorizontal,group:"tablecell",
887
- command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:c.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:c.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:c.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:c.row.insertBefore,
888
- group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:c.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:c.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:c.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:c.column.insertBefore,
889
- group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:c.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:c.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});e.contextMenu&&e.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:p};
890
- CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)})();CKEDITOR.tools.buildTableMap=function(p){for(var p=p.$.rows,o=-1,q=[],r=0;r<p.length;r++){o++;!q[o]&&(q[o]=[]);for(var k=-1,u=0;u<p[r].cells.length;u++){var t=p[r].cells[u];for(k++;q[o][k];)k++;for(var m=isNaN(t.colSpan)?1:t.colSpan,t=isNaN(t.rowSpan)?1:t.rowSpan,v=0;v<t;v++){q[o+v]||(q[o+v]=[]);for(var s=0;s<m;s++)q[o+v][k+s]=p[r].cells[u]}k+=m-1}}return q};(function(){function g(a){this.editor=a;this.reset()}CKEDITOR.plugins.add("undo",{init:function(a){function c(a){b.enabled&&!1!==a.data.command.canUndo&&b.save()}function d(){b.enabled=a.readOnly?!1:"wysiwyg"==a.mode;b.onChange()}var b=a.undoManager=new g(a),e=a.addCommand("undo",{exec:function(){b.undo()&&(a.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),f=a.addCommand("redo",{exec:function(){b.redo()&&(a.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});
891
- a.setKeystroke([[CKEDITOR.CTRL+90,"undo"],[CKEDITOR.CTRL+89,"redo"],[CKEDITOR.CTRL+CKEDITOR.SHIFT+90,"redo"]]);b.onChange=function(){e.setState(b.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);f.setState(b.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",c);a.on("afterCommandExec",c);a.on("saveSnapshot",function(a){b.save(a.data&&a.data.contentOnly)});a.on("contentDom",function(){a.editable().on("keydown",function(a){a=a.data.getKey();(8==a||46==
892
- a)&&b.type(a,0)});a.editable().on("keypress",function(a){b.type(a.data.getKey(),1)})});a.on("beforeModeUnload",function(){"wysiwyg"==a.mode&&b.save(!0)});a.on("mode",d);a.on("readOnly",d);a.ui.addButton&&(a.ui.addButton("Undo",{label:a.lang.undo.undo,command:"undo",toolbar:"undo,10"}),a.ui.addButton("Redo",{label:a.lang.undo.redo,command:"redo",toolbar:"undo,20"}));a.resetUndo=function(){b.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){b.currentImage&&b.update()});a.on("lockSnapshot",
893
- function(a){b.lock(a.data&&a.data.dontUpdate)});a.on("unlockSnapshot",b.unlock,b)}});CKEDITOR.plugins.undo={};var f=CKEDITOR.plugins.undo.Image=function(a,c){this.editor=a;a.fire("beforeUndoImage");var d=a.getSnapshot();CKEDITOR.env.ie&&d&&(d=d.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=d;c||(this.bookmarks=(d=d&&a.getSelection())&&d.createBookmarks2(!0));a.fire("afterUndoImage")},h=/\b(?:href|src|name)="[^"]*?"/gi;f.prototype={equalsContent:function(a){var c=this.contents,a=a.contents;
894
- if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat))c=c.replace(h,""),a=a.replace(h,"");return c!=a?!1:!0},equalsSelection:function(a){var c=this.bookmarks,a=a.bookmarks;if(c||a){if(!c||!a||c.length!=a.length)return!1;for(var d=0;d<c.length;d++){var b=c[d],e=a[d];if(b.startOffset!=e.startOffset||b.endOffset!=e.endOffset||!CKEDITOR.tools.arrayCompare(b.start,e.start)||!CKEDITOR.tools.arrayCompare(b.end,e.end))return!1}}return!0}};g.prototype={type:function(a,c){var d=!c&&a!=this.lastKeystroke,
895
- b=this.editor;if(!this.typing||c&&!this.wasCharacter||d){var e=new f(b),g=this.snapshots.length;CKEDITOR.tools.setTimeout(function(){var a=b.getSnapshot();CKEDITOR.env.ie&&(a=a.replace(/\s+data-cke-expando=".*?"/g,""));e.contents!=a&&g==this.snapshots.length&&(this.typing=!0,this.save(!1,e,!1)||this.snapshots.splice(this.index+1,this.snapshots.length-this.index-1),this.hasUndo=!0,this.hasRedo=!1,this.modifiersCount=this.typesCount=1,this.onChange())},0,this)}this.lastKeystroke=a;(this.wasCharacter=
896
- c)?(this.modifiersCount=0,this.typesCount++,25<this.typesCount?(this.save(!1,null,!1),this.typesCount=1):setTimeout(function(){b.fire("change")},0)):(this.typesCount=0,this.modifiersCount++,25<this.modifiersCount?(this.save(!1,null,!1),this.modifiersCount=1):setTimeout(function(){b.fire("change")},0))},reset:function(){this.lastKeystroke=0;this.snapshots=[];this.index=-1;this.limit=this.editor.config.undoStackSize||20;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},
897
- resetType:function(){this.typing=!1;delete this.lastKeystroke;this.modifiersCount=this.typesCount=0},fireChange:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,c,d){if(this.locked)return!1;var b=this.snapshots;c||(c=new f(this.editor));if(!1===c.contents)return!1;if(this.currentImage)if(c.equalsContent(this.currentImage)){if(a||c.equalsSelection(this.currentImage))return!1}else this.editor.fire("change");b.splice(this.index+
898
- 1,b.length-this.index-1);b.length==this.limit&&b.shift();this.index=b.push(c)-1;this.currentImage=c;!1!==d&&this.fireChange();return!0},restoreImage:function(a){var c=this.editor,d;a.bookmarks&&(c.focus(),d=c.getSelection());this.locked=1;this.editor.loadSnapshot(a.contents);a.bookmarks?d.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(d=this.editor.document.getBody().$.createTextRange(),d.collapse(!0),d.select());this.locked=0;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();
899
- this.fireChange();c.fire("change")},getNextImage:function(a){var c=this.snapshots,d=this.currentImage,b;if(d)if(a)for(b=this.index-1;0<=b;b--){if(a=c[b],!d.equalsContent(a))return a.index=b,a}else for(b=this.index+1;b<c.length;b++)if(a=c[b],!d.equalsContent(a))return a.index=b,a;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var a=this.getNextImage(!0);if(a)return this.restoreImage(a),
900
- !0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var a=this.getNextImage(!1);if(a)return this.restoreImage(a),!0}return!1},update:function(a){if(!this.locked){a||(a=new f(this.editor));for(var c=this.index,d=this.snapshots;0<c&&this.currentImage.equalsContent(d[c-1]);)c-=1;d.splice(c,this.index-c+1,a);this.index=c;this.currentImage=a}},lock:function(a){this.locked?this.locked.level++:a?this.locked={level:1}:(a=new f(this.editor,!0),this.locked={update:this.currentImage&&
901
- this.currentImage.equalsContent(a)?a:null,level:1})},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update,c=a&&new f(this.editor,!0);this.locked=null;a&&!a.equalsContent(c)&&this.update()}}}})();CKEDITOR.config.wsc_removeGlobalVariable=!0;
902
- CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(a){a.config.wsc_onFinish="function"===typeof a.config.wsc_onFinish?a.config.wsc_onFinish:function(){};a.config.wsc_onClose="function"===typeof a.config.wsc_onClose?a.config.wsc_onClose:function(){}},parseConfig:function(a){a.config.wsc_customerId=a.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk";a.config.wsc_customDictionaryIds=a.config.wsc_customDictionaryIds||
903
- CKEDITOR.config.wsc_customDictionaryIds||"";a.config.wsc_userDictionaryName=a.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"";a.config.wsc_customLoaderScript=a.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript;CKEDITOR.config.wsc_cmd=a.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell";CKEDITOR.config.wsc_version="v4.3.0-1e748a6"},init:function(a){this.parseConfig(a);this.parseApi(a);a.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes=
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ (function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;window.CKEDITOR||(window.CKEDITOR=function(){var a={timestamp:"E2PC",version:"4.3.4",revision:"40ccd20",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var b=window.CKEDITOR_BASEPATH||"";if(!b)for(var e=document.getElementsByTagName("script"),a=0;a<e.length;a++){var d=e[a].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(d){b=d[1];break}}-1==b.indexOf(":/")&&"//"!=b.slice(0,2)&&(b=0===b.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+
6
+ b:location.href.match(/^[^\?]*\/(?:)/)[0]+b);if(!b)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return b}(),getUrl:function(b){-1==b.indexOf(":/")&&0!==b.indexOf("/")&&(b=this.basePath+b);this.timestamp&&("/"!=b.charAt(b.length-1)&&!/[&?]t=/.test(b))&&(b+=(0<=b.indexOf("?")?"&":"?")+"t="+this.timestamp);return b},domReady:function(){function b(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",
7
+ b,!1),e()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",b),e())}catch(a){}}function e(){for(var e;e=a.shift();)e()}var a=[];return function(e){a.push(e);"complete"===document.readyState&&setTimeout(b,1);if(1==a.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",b,!1),window.addEventListener("load",b,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",b);window.attachEvent("onload",b);e=!1;try{e=
8
+ !window.frameElement}catch(d){}if(document.documentElement.doScroll&&e){var h=function(){try{document.documentElement.doScroll("left")}catch(e){setTimeout(h,1);return}b()};h()}}}}()},d=window.CKEDITOR_GETURL;if(d){var b=a.getUrl;a.getUrl=function(c){return d.call(a,c)||b.call(a,c)}}return a}());
9
+ CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var d=CKEDITOR.event.prototype,b;for(b in d)a[b]==void 0&&(a[b]=d[b])},CKEDITOR.event.prototype=function(){function a(a){var e=d(this);return e[a]||(e[a]=new b(a))}var d=function(b){b=b.getPrivate&&b.getPrivate()||b._||(b._={});return b.events||(b.events={})},b=function(b){this.name=b;this.listeners=[]};b.prototype={getListenerIndex:function(b){for(var e=0,a=this.listeners;e<a.length;e++)if(a[e].fn==b)return e;return-1}};
10
+ return{define:function(b,e){var i=a.call(this,b);CKEDITOR.tools.extend(i,e,true)},on:function(b,e,i,d,l){function h(a,f,o,s){a={name:b,sender:this,editor:a,data:f,listenerData:d,stop:o,cancel:s,removeListener:k};return e.call(i,a)===false?false:a.data}function k(){s.removeListener(b,e)}var o=a.call(this,b);if(o.getListenerIndex(e)<0){o=o.listeners;i||(i=this);isNaN(l)&&(l=10);var s=this;h.fn=e;h.priority=l;for(var q=o.length-1;q>=0;q--)if(o[q].priority<=l){o.splice(q+1,0,h);return{removeListener:k}}o.unshift(h)}return{removeListener:k}},
11
+ once:function(){var b=arguments[1];arguments[1]=function(e){e.removeListener();return b.apply(this,arguments)};return this.on.apply(this,arguments)},capture:function(){CKEDITOR.event.useCapture=1;var b=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return b},fire:function(){var b=0,e=function(){b=1},a=0,g=function(){a=1};return function(l,h,k){var o=d(this)[l],l=b,s=a;b=a=0;if(o){var q=o.listeners;if(q.length)for(var q=q.slice(0),u,f=0;f<q.length;f++){if(o.errorProof)try{u=q[f].call(this,
12
+ k,h,e,g)}catch(p){}else u=q[f].call(this,k,h,e,g);u===false?a=1:typeof u!="undefined"&&(h=u);if(b||a)break}}h=a?false:typeof h=="undefined"?true:h;b=l;a=s;return h}}(),fireOnce:function(b,e,a){e=this.fire(b,e,a);delete d(this)[b];return e},removeListener:function(b,e){var a=d(this)[b];if(a){var g=a.getListenerIndex(e);g>=0&&a.listeners.splice(g,1)}},removeAllListeners:function(){var b=d(this),e;for(e in b)delete b[e]},hasListeners:function(b){return(b=d(this)[b])&&b.listeners.length>0}}}());
13
+ CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,d){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,a,d,this)},CKEDITOR.editor.prototype.fireOnce=function(a,d){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,d,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype));
14
+ CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),d=window.opera,b={ie:a.indexOf("trident/")>-1,opera:!!d&&d.version,webkit:a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")>-1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var b=document.domain,e=window.location.hostname;return b!=
15
+ e&&b!="["+e+"]"},secure:location.protocol=="https:"};b.gecko=navigator.product=="Gecko"&&!b.webkit&&!b.opera&&!b.ie;if(b.webkit)a.indexOf("chrome")>-1?b.chrome=true:b.safari=true;var c=0;if(b.ie){c=b.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;b.ie9Compat=c==9;b.ie8Compat=c==8;b.ie7Compat=c==7;b.ie6Compat=c<7||b.quirks}if(b.gecko){var e=a.match(/rv:([\d\.]+)/);if(e){e=e[1].split(".");c=e[0]*1E4+(e[1]||0)*100+(e[2]||0)*1}}b.opera&&(c=parseFloat(d.version()));
16
+ b.air&&(c=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(c=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));b.version=c;b.isCompatible=b.iOS&&c>=534||!b.mobile&&(b.ie&&c>6||b.gecko&&c>=10801||b.opera&&c>=9.5||b.air&&c>=1||b.webkit&&c>=522||false);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller=b.gecko||b.webkit||b.ie&&c>10;b.needsNbspFiller=b.ie&&c<11;b.cssClass="cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.opera?"opera":b.webkit?"webkit":"unknown");if(b.quirks)b.cssClass=b.cssClass+" cke_browser_quirks";
17
+ if(b.ie){b.cssClass=b.cssClass+(" cke_browser_ie"+(b.quirks||b.version<7?"6":b.version));if(b.quirks)b.cssClass=b.cssClass+" cke_browser_iequirks"}if(b.gecko)if(c<10900)b.cssClass=b.cssClass+" cke_browser_gecko18";else if(c<=11E3)b.cssClass=b.cssClass+" cke_browser_gecko19";if(b.air)b.cssClass=b.cssClass+" cke_browser_air";if(b.iOS)b.cssClass=b.cssClass+" cke_browser_ios";if(b.hidpi)b.cssClass=b.cssClass+" cke_hidpi";return b}());
18
+ "unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=
19
+ CKEDITOR.loadFullCore,d=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status="basic_ready";a&&a._load?a():d&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},d*1E3)}})})();CKEDITOR.status="basic_loaded"}();CKEDITOR.dom={};
20
+ (function(){var a=[],d=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.opera?"-o-":CKEDITOR.env.ie?"-ms-":"";CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(b,a){if(!b&&!a)return true;if(!b||!a||b.length!=a.length)return false;for(var e=0;e<b.length;e++)if(b[e]!=a[e])return false;return true},clone:function(b){var a;if(b&&b instanceof Array){a=[];for(var e=0;e<b.length;e++)a[e]=CKEDITOR.tools.clone(b[e]);return a}if(b===null||typeof b!="object"||
21
+ b instanceof String||b instanceof Number||b instanceof Boolean||b instanceof Date||b instanceof RegExp)return b;a=new b.constructor;for(e in b)a[e]=CKEDITOR.tools.clone(b[e]);return a},capitalize:function(b,a){return b.charAt(0).toUpperCase()+(a?b.slice(1):b.slice(1).toLowerCase())},extend:function(b){var a=arguments.length,e,i;if(typeof(e=arguments[a-1])=="boolean")a--;else if(typeof(e=arguments[a-2])=="boolean"){i=arguments[a-1];a=a-2}for(var d=1;d<a;d++){var l=arguments[d],h;for(h in l)if(e===
22
+ true||b[h]==void 0)if(!i||h in i)b[h]=l[h]}return b},prototypedCopy:function(b){var a=function(){};a.prototype=b;return new a},copy:function(b){var a={},e;for(e in b)a[e]=b[e];return a},isArray:function(b){return Object.prototype.toString.call(b)=="[object Array]"},isEmpty:function(b){for(var a in b)if(b.hasOwnProperty(a))return false;return true},cssVendorPrefix:function(b,a,e){if(e)return d+b+":"+a+";"+b+":"+a;e={};e[b]=a;e[d+b]=a;return e},cssStyleToDomStyle:function(){var b=document.createElement("div").style,
23
+ a=typeof b.cssFloat!="undefined"?"cssFloat":typeof b.styleFloat!="undefined"?"styleFloat":"float";return function(b){return b=="float"?a:b.replace(/-./g,function(b){return b.substr(1).toUpperCase()})}}(),buildStyleHtml:function(b){for(var b=[].concat(b),a,e=[],i=0;i<b.length;i++)if(a=b[i])/@import|[{}]/.test(a)?e.push("<style>"+a+"</style>"):e.push('<link type="text/css" rel=stylesheet href="'+a+'">');return e.join("")},htmlEncode:function(b){return(""+b).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,
24
+ "&lt;")},htmlEncodeAttr:function(b){return b.replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},htmlDecodeAttr:function(b){return b.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">")},getNextNumber:function(){var b=0;return function(){return++b}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(b,a){var e=a(b);e.prototype=b.prototype;return e},setTimeout:function(b,a,e,i,d){d||(d=window);e||(e=d);return d.setTimeout(function(){i?b.apply(e,[].concat(i)):
25
+ b.apply(e)},a||0)},trim:function(){var b=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(a){return a.replace(b,"")}}(),ltrim:function(){var b=/^[ \t\n\r]+/g;return function(a){return a.replace(b,"")}}(),rtrim:function(){var b=/[ \t\n\r]+$/g;return function(a){return a.replace(b,"")}}(),indexOf:function(b,a){if(typeof a=="function")for(var e=0,i=b.length;e<i;e++){if(a(b[e]))return e}else{if(b.indexOf)return b.indexOf(a);e=0;for(i=b.length;e<i;e++)if(b[e]===a)return e}return-1},search:function(b,
26
+ a){var e=CKEDITOR.tools.indexOf(b,a);return e>=0?b[e]:null},bind:function(b,a){return function(){return b.apply(a,arguments)}},createClass:function(b){var a=b.$,e=b.base,i=b.privates||b._,d=b.proto,b=b.statics;!a&&(a=function(){e&&this.base.apply(this,arguments)});if(i)var l=a,a=function(){var a=this._||(this._={}),b;for(b in i){var e=i[b];a[b]=typeof e=="function"?CKEDITOR.tools.bind(e,this):e}l.apply(this,arguments)};if(e){a.prototype=this.prototypedCopy(e.prototype);a.prototype.constructor=a;a.base=
27
+ e;a.baseProto=e.prototype;a.prototype.base=function(){this.base=e.prototype.base;e.apply(this,arguments);this.base=arguments.callee}}d&&this.extend(a.prototype,d,true);b&&this.extend(a,b,true);return a},addFunction:function(b,c){return a.push(function(){return b.apply(c||this,arguments)})-1},removeFunction:function(b){a[b]=null},callFunction:function(b){var c=a[b];return c&&c.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,c;return function(e){c=
28
+ CKEDITOR.tools.trim(e+"")+"px";return a.test(c)?c:e||""}}(),convertToPx:function(){var a;return function(c){if(!a){a=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document);CKEDITOR.document.getBody().append(a)}if(!/%$/.test(c)){a.setStyle("width",c);return a.$.clientWidth}return c}}(),repeat:function(a,c){return Array(c+1).join(a)},tryThese:function(){for(var a,c=0,e=arguments.length;c<e;c++){var i=
29
+ arguments[c];try{a=i();break}catch(d){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var c=arguments,e=this;window.setTimeout(function(){a.apply(e,c)},0)}},normalizeCssText:function(a,c){var e=[],i,d=CKEDITOR.tools.parseCssText(a,true,c);for(i in d)e.push(i+":"+d[i]);e.sort();return e.length?e.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,b,i,d){a=
30
+ [b,i,d];for(b=0;b<3;b++)a[b]=("0"+parseInt(a[b],10).toString(16)).slice(-2);return"#"+a.join("")})},parseCssText:function(a,c,e){var i={};if(e){e=new CKEDITOR.dom.element("span");e.setAttribute("style",a);a=CKEDITOR.tools.convertRgbToHex(e.getAttribute("style")||"")}if(!a||a==";")return i;a.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,b,e){if(c){b=b.toLowerCase();b=="font-family"&&(e=e.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));e=CKEDITOR.tools.trim(e)}i[b]=
31
+ e});return i},writeCssText:function(a,c){var e,i=[];for(e in a)i.push(e+":"+a[e]);c&&i.sort();return i.join("; ")},objectCompare:function(a,c,e){var i;if(!a&&!c)return true;if(!a||!c)return false;for(i in a)if(a[i]!=c[i])return false;if(!e)for(i in c)if(a[i]!=c[i])return false;return true},objectKeys:function(a){var c=[],e;for(e in a)c.push(e);return c},convertArrayToObject:function(a,c){var e={};arguments.length==1&&(c=true);for(var i=0,d=a.length;i<d;++i)e[a[i]]=c;return e},fixDomain:function(){for(var a;;)try{a=
32
+ window.parent.document.domain;break}catch(c){a=a?a.replace(/.+?(?:\.|$)/,""):document.domain;if(!a)break;document.domain=a}return!!a},eventsBuffer:function(a,c){function e(){d=(new Date).getTime();i=false;c()}var i,d=0;return{input:function(){if(!i){var c=(new Date).getTime()-d;c<a?i=setTimeout(e,a-c):e()}},reset:function(){i&&clearTimeout(i);i=d=0}}},enableHtml5Elements:function(a,c){for(var e=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption","figure","footer",
33
+ "header","hgroup","mark","meter","nav","output","progress","section","summary","time","video"],i=e.length,d;i--;){d=a.createElement(e[i]);c&&a.appendChild(d)}}}})();
34
+ CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,d=function(a,e){for(var b=CKEDITOR.tools.clone(a),i=1;i<arguments.length;i++){var e=arguments[i],c;for(c in e)delete b[c]}return b},b={},c={},e={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},i={command:1,link:1,meta:1,noscript:1,script:1,style:1},g={},l={"#":1},h={center:1,dir:1,noframes:1};
35
+ a(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},l,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(c,e,b,h);d={a:d(b,{a:1,button:1}),abbr:b,address:c,
36
+ area:g,article:a({style:1},c),aside:a({style:1},c),audio:a({source:1,track:1},c),b:b,base:g,bdi:b,bdo:b,blockquote:c,body:c,br:g,button:d(b,{a:1,button:1}),canvas:b,caption:c,cite:b,code:b,col:g,colgroup:{col:1},command:g,datalist:a({option:1},b),dd:c,del:b,details:a({summary:1},c),dfn:b,div:a({style:1},c),dl:{dt:1,dd:1},dt:c,em:b,embed:g,fieldset:a({legend:1},c),figcaption:c,figure:a({figcaption:1},c),footer:c,form:c,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:a({title:1,base:1},i),header:c,hgroup:{h1:1,
37
+ h2:1,h3:1,h4:1,h5:1,h6:1},hr:g,html:a({head:1,body:1},c,i),i:b,iframe:l,img:g,input:g,ins:b,kbd:b,keygen:g,label:b,legend:b,li:c,link:g,map:c,mark:b,menu:a({li:1},c),meta:g,meter:d(b,{meter:1}),nav:c,noscript:a({link:1,meta:1,style:1},b),object:a({param:1},b),ol:{li:1},optgroup:{option:1},option:l,output:b,p:b,param:g,pre:b,progress:d(b,{progress:1}),q:b,rp:b,rt:b,ruby:a({rp:1,rt:1},b),s:b,samp:b,script:l,section:a({style:1},c),select:{optgroup:1,option:1},small:b,source:g,span:b,strong:b,style:l,
38
+ sub:b,summary:b,sup:b,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:c,textarea:l,tfoot:{tr:1},th:c,thead:{tr:1},time:d(b,{time:1}),title:l,tr:{th:1,td:1},track:g,u:b,ul:{li:1},"var":b,video:a({source:1,track:1},c),wbr:g,acronym:b,applet:a({param:1},c),basefont:g,big:b,center:c,dialog:g,dir:{li:1},font:b,isindex:g,noframes:c,strike:b,tt:b};a(d,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},e,h),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,
39
+ div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,
40
+ wbr:1},$inline:b,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:a({body:1,head:1,html:1},d.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,
41
+ small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return d}();
42
+ CKEDITOR.dom.event=function(a){this.$=a};
43
+ CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a=a+CKEDITOR.CTRL;this.$.shiftKey&&(a=a+CKEDITOR.SHIFT);this.$.altKey&&(a=a+CKEDITOR.ALT);return a},preventDefault:function(a){var d=this.$;d.preventDefault?d.preventDefault():d.returnValue=false;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=true},getTarget:function(){var a=
44
+ this.$.target||this.$.srcElement;return a?new CKEDITOR.dom.node(a):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||this.$.clientY+(a.documentElement.scrollTop||a.body.scrollTop)}}};CKEDITOR.CTRL=1114112;CKEDITOR.SHIFT=2228224;CKEDITOR.ALT=4456448;CKEDITOR.EVENT_PHASE_CAPTURING=1;CKEDITOR.EVENT_PHASE_AT_TARGET=2;
45
+ CKEDITOR.EVENT_PHASE_BUBBLING=3;CKEDITOR.dom.domObject=function(a){if(a)this.$=a};
46
+ CKEDITOR.dom.domObject.prototype=function(){var a=function(a,b){return function(c){typeof CKEDITOR!="undefined"&&a.fire(b,new CKEDITOR.dom.event(c))}};return{getPrivate:function(){var a;if(!(a=this.getCustomData("_")))this.setCustomData("_",a={});return a},on:function(d){var b=this.getCustomData("_cke_nativeListeners");if(!b){b={};this.setCustomData("_cke_nativeListeners",b)}if(!b[d]){b=b[d]=a(this,d);this.$.addEventListener?this.$.addEventListener(d,b,!!CKEDITOR.event.useCapture):this.$.attachEvent&&
47
+ this.$.attachEvent("on"+d,b)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(a){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(a)){var b=this.getCustomData("_cke_nativeListeners"),c=b&&b[a];if(c){this.$.removeEventListener?this.$.removeEventListener(a,c,false):this.$.detachEvent&&this.$.detachEvent("on"+a,c);delete b[a]}}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),b;for(b in a){var c=a[b];this.$.detachEvent?
48
+ this.$.detachEvent("on"+b,c):this.$.removeEventListener&&this.$.removeEventListener(b,c,false);delete a[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}();
49
+ (function(a){var d={};CKEDITOR.on("reset",function(){d={}});a.equals=function(a){try{return a&&a.$===this.$}catch(c){return false}};a.setCustomData=function(a,c){var e=this.getUniqueId();(d[e]||(d[e]={}))[a]=c;return this};a.getCustomData=function(a){var c=this.$["data-cke-expando"];return(c=c&&d[c])&&a in c?c[a]:null};a.removeCustomData=function(a){var c=this.$["data-cke-expando"],c=c&&d[c],e,i;if(c){e=c[a];i=a in c;delete c[a]}return i?e:null};a.clearCustomData=function(){this.removeAllListeners();
50
+ var a=this.$["data-cke-expando"];a&&delete d[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)})(CKEDITOR.dom.domObject.prototype);
51
+ CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT?"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](a):this};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject;CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_DOCUMENT=9;CKEDITOR.NODE_TEXT=3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;
52
+ CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;
53
+ CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(a,d){a.append(this,d);return a},clone:function(a,d){var b=this.$.cloneNode(a),c=function(e){e["data-cke-expando"]&&(e["data-cke-expando"]=false);if(e.nodeType==CKEDITOR.NODE_ELEMENT){d||e.removeAttribute("id",false);if(a)for(var e=e.childNodes,b=0;b<e.length;b++)c(e[b])}};c(b);return new CKEDITOR.dom.node(b)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,
54
+ a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var d=[],b=this.getDocument().$.documentElement,c=this.$;c&&c!=b;){var e=c.parentNode;e&&d.unshift(this.getIndex.call({$:c},a));c=e}return d},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){var d=this.$,b=-1,
55
+ c;if(!this.$.parentNode)return b;do if(!a||!(d!=this.$&&d.nodeType==CKEDITOR.NODE_TEXT&&(c||!d.nodeValue))){b++;c=d.nodeType==CKEDITOR.NODE_TEXT}while(d=d.previousSibling);return b},getNextSourceNode:function(a,d,b){if(b&&!b.call)var c=b,b=function(a){return!a.equals(c)};var a=!a&&this.getFirst&&this.getFirst(),e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getNext()}for(;!a&&(e=(e||this).getParent());){if(b&&b(e,true)===false)return null;a=e.getNext()}return!a||
56
+ b&&b(a)===false?null:d&&d!=a.type?a.getNextSourceNode(false,d,b):a},getPreviousSourceNode:function(a,d,b){if(b&&!b.call)var c=b,b=function(a){return!a.equals(c)};var a=!a&&this.getLast&&this.getLast(),e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getPrevious()}for(;!a&&(e=(e||this).getParent());){if(b&&b(e,true)===false)return null;a=e.getPrevious()}return!a||b&&b(a)===false?null:d&&a.type!=d?a.getPreviousSourceNode(false,d,b):a},getPrevious:function(a){var d=
57
+ this.$,b;do b=(d=d.previousSibling)&&d.nodeType!=10&&new CKEDITOR.dom.node(d);while(b&&a&&!a(b));return b},getNext:function(a){var d=this.$,b;do b=(d=d.nextSibling)&&new CKEDITOR.dom.node(d);while(b&&a&&!a(b));return b},getParent:function(a){var d=this.$.parentNode;return d&&(d.nodeType==CKEDITOR.NODE_ELEMENT||a&&d.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(d):null},getParents:function(a){var d=this,b=[];do b[a?"push":"unshift"](d);while(d=d.getParent());return b},getCommonAncestor:function(a){if(a.equals(this))return this;
58
+ if(a.contains&&a.contains(this))return a;var d=this.contains?this:this.getParent();do if(d.contains(a))return d;while(d=d.getParent());return null},getPosition:function(a){var d=this.$,b=a.$;if(d.compareDocumentPosition)return d.compareDocumentPosition(b);if(d==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(d.contains){if(d.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(d))return CKEDITOR.POSITION_IS_CONTAINED+
59
+ CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in d)return d.sourceIndex<0||b.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:d.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var d=this.getAddress(),a=a.getAddress(),b=Math.min(d.length,a.length),c=0;c<=b-1;c++)if(d[c]!=a[c]){if(c<b)return d[c]<a[c]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return d.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+
60
+ CKEDITOR.POSITION_FOLLOWING},getAscendant:function(a,d){var b=this.$,c;if(!d)b=b.parentNode;for(;b;){if(b.nodeName&&(c=b.nodeName.toLowerCase(),typeof a=="string"?c==a:c in a))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(e){b=null}}return null},hasAscendant:function(a,d){var b=this.$;if(!d)b=b.parentNode;for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==a)return true;b=b.parentNode}return false},move:function(a,d){a.append(this.remove(),d)},remove:function(a){var d=this.$,b=d.parentNode;
61
+ if(b){if(a)for(;a=d.firstChild;)b.insertBefore(d.removeChild(a),d);b.removeChild(d)}return this},replace:function(a){this.insertBefore(a);a.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.ltrim(a.getText()),b=a.getLength();if(d){if(d.length<b){a.split(b-d.length);this.$.removeChild(this.$.firstChild)}}else{a.remove();continue}}break}},rtrim:function(){for(var a;this.getLast&&(a=
62
+ this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.rtrim(a.getText()),b=a.getLength();if(d){if(d.length<b){a.split(d.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{a.remove();continue}}break}if(CKEDITOR.env.needsBrFiller)(a=this.$.lastChild)&&(a.type==1&&a.nodeName.toLowerCase()=="br")&&a.parentNode.removeChild(a)},isReadOnly:function(){var a=this;this.type!=CKEDITOR.NODE_ELEMENT&&(a=this.getParent());if(a&&typeof a.$.isContentEditable!="undefined")return!(a.$.isContentEditable||
63
+ a.data("cke-editable"));for(;a;){if(a.data("cke-editable"))break;if(a.getAttribute("contentEditable")=="false")return true;if(a.getAttribute("contentEditable")=="true")break;a=a.getParent()}return!a}});CKEDITOR.dom.window=function(a){CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject;
64
+ CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var a=this.$.document,d=a.compatMode=="CSS1Compat";return{width:(d?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(d?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$;if("pageXOffset"in a)return{x:a.pageXOffset||0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||
65
+ a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a?new CKEDITOR.dom.element.get(a):null}});CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject;
66
+ CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);else{var d=new CKEDITOR.dom.element("link");d.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(d)}},appendStyleText:function(a){if(this.$.createStyleSheet){var d=this.$.createStyleSheet("");d.cssText=a}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(a,this));this.getHead().append(b)}return d||
67
+ b.$.sheet},createElement:function(a,d){var b=new CKEDITOR.dom.element(a,this);if(d){d.attributes&&b.setAttributes(d.attributes);d.styles&&b.setStyles(d.styles)}return b},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){return new CKEDITOR.dom.element(this.$.activeElement)},getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,d){for(var b=this.$.documentElement,c=
68
+ 0;b&&c<a.length;c++){var e=a[c];if(d)for(var i=-1,g=0;g<b.childNodes.length;g++){var l=b.childNodes[g];if(!(d===true&&l.nodeType==3&&l.previousSibling&&l.previousSibling.nodeType==3)){i++;if(i==e){b=l;break}}}else b=b.childNodes[e]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(a,d){if((!CKEDITOR.env.ie||document.documentMode>8)&&d)a=d+":"+a;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=
69
+ a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+
70
+ ")();<\/script>"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");if(!a){a=this.$.createDocumentFragment();CKEDITOR.tools.enableHtml5Elements(a,true);this.setCustomData("html5ShivFrag",a)}return a}});CKEDITOR.dom.nodeList=function(a){this.$=a};
71
+ CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){if(a<0||a>=this.$.length)return null;return(a=this.$[a])?new CKEDITOR.dom.node(a):null}};CKEDITOR.dom.element=function(a,d){typeof a=="string"&&(a=(d?d.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)};CKEDITOR.dom.element.get=function(a){return(a=typeof a=="string"?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))};
72
+ CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node;CKEDITOR.dom.element.createFromHtml=function(a,d){var b=new CKEDITOR.dom.element("div",d);b.setHtml(a);return b.getFirst().remove()};
73
+ CKEDITOR.dom.element.setMarker=function(a,d,b,c){var e=d.getCustomData("list_marker_id")||d.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),i=d.getCustomData("list_marker_names")||d.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[e]=d;i[b]=1;return d.setCustomData(b,c)};CKEDITOR.dom.element.clearAllMarkers=function(a){for(var d in a)CKEDITOR.dom.element.clearMarkers(a,a[d],1)};
74
+ CKEDITOR.dom.element.clearMarkers=function(a,d,b){var c=d.getCustomData("list_marker_names"),e=d.getCustomData("list_marker_id"),i;for(i in c)d.removeCustomData(i);d.removeCustomData("list_marker_names");if(b){d.removeCustomData("list_marker_id");delete a[e]}};
75
+ (function(){function a(a){var b=true;if(!a.$.id){a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber();b=false}return function(){b||a.removeAttribute("id")}}function d(a,b){return"#"+a.$.id+" "+b.split(/,\s*/).join(", #"+a.$.id+" ")}function b(a){for(var b=0,d=0,l=c[a].length;d<l;d++)b=b+(parseInt(this.getComputedStyle(c[a][d])||0,10)||0);return b}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(a){var b=this.$.className;b&&(RegExp("(?:^|\\s)"+a+"(?:\\s|$)",
76
+ "").test(b)||(b=b+(" "+a)));this.$.className=b||a},removeClass:function(a){var b=this.getAttribute("class");if(b){a=RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","i");if(a.test(b))(b=b.replace(a,"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class")}return this},hasClass:function(a){return RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(a,b){typeof a=="string"&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):
77
+ this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=void 0?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller||CKEDITOR.env.opera){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||
78
+ !a.is("br")){a=CKEDITOR.env.opera?this.getDocument().createText(""):this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}}},breakParent:function(a){var b=new CKEDITOR.dom.range(this.getDocument());b.setStartAfter(this);b.setEndAfter(a);a=b.extractContents();b.insertNode(this.remove());a.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=
79
+ a.$&&b.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(true));return a.innerHTML},
80
+ getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(b);b.innerHTML=a;c.removeChild(b);return a}catch(d){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));
81
+ return a}}:function(a){return this.$.innerHTML=a},setText:function(a){CKEDITOR.dom.element.prototype.setText=this.$.innerText!=void 0?function(a){return this.$.innerText=a}:function(a){return this.$.textContent=a};return this.setText(a)},getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;
82
+ case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a=this.$.attributes.getNamedItem(a);return(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},
83
+ getComputedStyle:CKEDITOR.env.ie?function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var a=this.$.tabIndex;a===0&&(!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),
84
+ 10)!==0)&&(a=-1);return a}:CKEDITOR.env.webkit?function(){var a=this.$.tabIndex;if(a==void 0){a=parseInt(this.getAttribute("tabindex"),10);isNaN(a)&&(a=-1)}return a}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&!(document.documentMode>
85
+ 8)){var b=this.$.scopeName;b!="HTML"&&(a=b.toLowerCase()+":"+a)}return(this.getName=function(){return a})()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();
86
+ if(typeof arguments[0]=="object")return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return true;return false},isEditable:function(a){var b=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span;
87
+ return!(!a||!a["#"])}return true},isIdentical:function(a){var b=this.clone(0,1),a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode){b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return b.$.isEqualNode(a.$)}b=b.getOuterHtml();a=a.getOuterHtml();
88
+ if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var c=this.getParent();if(c.type==CKEDITOR.NODE_ELEMENT){c=c.clone();c.setHtml(b);b=c.getHtml();c.setHtml(a);a=c.getHtml()}}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",b,c;if(a&&(CKEDITOR.env.webkit||CKEDITOR.env.opera)){b=this.getWindow();if(!b.equals(CKEDITOR.document.getWindow())&&(c=b.$.frameElement))a=(new CKEDITOR.dom.element(c)).isVisible()}return!!a},
89
+ isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(),b=0,c=a.count();b<c;b++){var d=a.getItem(b);if(!(d.type==CKEDITOR.NODE_ELEMENT&&d.data("cke-bookmark"))&&(d.type==CKEDITOR.NODE_ELEMENT&&!d.isEmptyInlineRemoveable()||d.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(d.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){for(var a=this.$.attributes,b=0;b<
90
+ a.length;b++){var c=a[b];switch(c.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;default:if(c.specified)return true}}return false}:function(){var a=this.$.attributes,b=a.length,c={"data-cke-expando":1,_moz_dirty:1};return b>0&&(b>2||!c[a[0].nodeName]||b==2&&!c[a[1].nodeName])},hasAttribute:function(){function a(b){b=this.$.attributes.getNamedItem(b);return!(!b||!b.specified)}return CKEDITOR.env.ie&&CKEDITOR.env.version<8?function(b){return b=="name"?
91
+ !!this.$.name:a.call(this,b)}:a}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var c=this.$,a=a.$;if(c!=a){var d;if(b)for(;d=c.lastChild;)a.insertBefore(c.removeChild(d),a.firstChild);else for(;d=c.firstChild;)a.appendChild(c.removeChild(d))}},mergeSiblings:function(){function a(b,e,c){if(e&&e.type==CKEDITOR.NODE_ELEMENT){for(var d=[];e.data("cke-bookmark")||e.isEmptyInlineRemoveable();){d.push(e);e=c?e.getNext():e.getPrevious();if(!e||e.type!=CKEDITOR.NODE_ELEMENT)return}if(b.isIdentical(e)){for(var k=
92
+ c?b.getLast():b.getFirst();d.length;)d.shift().move(b,!c);e.moveChildren(b,!c);e.remove();k&&k.type==CKEDITOR.NODE_ELEMENT&&k.mergeSiblings()}}}return function(b){if(b===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,b){this.$.setAttribute(a,b);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?
93
+ function(b,c){b=="class"?this.$.className=c:b=="style"?this.$.style.cssText=c:b=="tabindex"?this.$.tabIndex=c:b=="checked"?this.$.checked=c:b=="contenteditable"?a.call(this,"contentEditable",c):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,c){if(b=="src"&&c.match(/^http:\/\//))try{a.apply(this,arguments)}catch(d){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=
94
+ a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=
95
+ this.$.style;if(!b.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var c=["top","left","right","bottom"],d;a=="border"&&(d=["color","style","width"]);for(var b=[],h=0;h<c.length;h++)if(d)for(var k=0;k<d.length;k++)b.push([a,c[h],d[k]].join("-"));else b.push([a,c[h]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,
96
+ b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie||CKEDITOR.env.opera){this.setAttribute("unselectable",
97
+ "on");for(var a,b=this.getElementsByTag("*"),c=0,d=b.count();c<d;c++){a=b.getItem(c);a.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,c=0,d=this.getDocument(),h=d.getBody(),k=d.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var o=this.$.getBoundingClientRect(),s=d.$.documentElement,q=s.clientTop||
98
+ h.$.clientTop||0,u=s.clientLeft||h.$.clientLeft||0,f=true;if(CKEDITOR.env.ie){f=d.getDocumentElement().contains(this);d=d.getBody().contains(this);f=k&&d||!k&&f}if(f){b=o.left+(!k&&s.scrollLeft||h.$.scrollLeft);b=b-u;c=o.top+(!k&&s.scrollTop||h.$.scrollTop);c=c-q}}else{h=this;for(d=null;h&&!(h.getName()=="body"||h.getName()=="html");){b=b+(h.$.offsetLeft-h.$.scrollLeft);c=c+(h.$.offsetTop-h.$.scrollTop);if(!h.equals(this)){b=b+(h.$.clientLeft||0);c=c+(h.$.clientTop||0)}for(;d&&!d.equals(h);){b=b-
99
+ d.$.scrollLeft;c=c-d.$.scrollTop;d=d.getParent()}d=h;h=(o=h.$.offsetParent)?new CKEDITOR.dom.element(o):null}}if(a){h=this.getWindow();d=a.getWindow();if(!h.equals(d)&&h.$.frameElement){a=(new CKEDITOR.dom.element(h.$.frameElement)).getDocumentPosition(a);b=b+a.x;c=c+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!k){b=b+(this.$.clientLeft?1:0);c=c+(this.$.clientTop?1:0)}return{x:b,y:c}},scrollIntoView:function(a){var b=this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth<
100
+ b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1);if(b.is("html")){var c=b.getWindow();try{var d=c.$.frameElement;d&&(b=new CKEDITOR.dom.element(d))}catch(h){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,c){var d,h,k,o;function s(b,f){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(b,f);else{a.$.scrollLeft=a.$.scrollLeft+b;a.$.scrollTop=a.$.scrollTop+f}}function q(a,b){var c={x:0,y:0};if(!a.is(f?"body":"html")){var e=
101
+ a.$.getBoundingClientRect();c.x=e.left;c.y=e.top}e=a.getWindow();if(!e.equals(b)){e=q(CKEDITOR.dom.element.get(e.$.frameElement),b);c.x=c.x+e.x;c.y=c.y+e.y}return c}function u(a,b){return parseInt(a.getComputedStyle("margin-"+b)||0,10)||0}!a&&(a=this.getWindow());k=a.getDocument();var f=k.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=f?k.getBody():k.getDocumentElement());k=a.getWindow();h=q(this,k);var p=q(a,k),y=this.$.offsetHeight;d=this.$.offsetWidth;var A=a.$.clientHeight,m=
102
+ a.$.clientWidth;k=h.x-u(this,"left")-p.x||0;o=h.y-u(this,"top")-p.y||0;d=h.x+d+u(this,"right")-(p.x+m)||0;h=h.y+y+u(this,"bottom")-(p.y+A)||0;if(o<0||h>0)s(0,b===true?o:b===false?h:o<0?o:h);if(c&&(k<0||d>0))s(k<0?k:d,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");c&&this.setAttribute("aria-pressed",true);c&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+
103
+ "_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");c&&this.setAttribute("aria-disabled",true);c&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+"_disabled");c&&this.removeAttribute("aria-pressed");c&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,
104
+ b){for(var c=this.$.attributes,b=b||{},d=0;d<c.length;d++){var h=c[d],k=h.nodeName.toLowerCase(),o;if(!(k in b))if(k=="checked"&&(o=this.getAttribute(k)))a.setAttribute(k,o);else if(h.specified||CKEDITOR.env.ie&&h.nodeValue&&k=="value"){o=this.getAttribute(k);if(o===null)o=h.nodeValue;a.setAttribute(k,o)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);
105
+ this.moveChildren(a);this.getParent()&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,c){var e=b.childNodes;if(c>=0&&c<e.length)return e[c]}return function(b){var c=this.$;if(b.slice)for(;b.length>0&&c;)c=a(c,b.shift());else c=a(c,b);return c?new CKEDITOR.dom.node(c):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(a){a.data.getTarget().hasClass("cke_enable_context_menu")||
106
+ a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(){var a=CKEDITOR.instances,b,c;for(b in a){c=a[b];if(c.element.equals(this)&&c.elementMode!=
107
+ CKEDITOR.ELEMENT_MODE_APPENDTO)return c}return null},find:function(b){var c=a(this),b=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(d(this,b)));c();return b},findOne:function(b){var c=a(this),b=this.$.querySelector(d(this,b));c();return b?new CKEDITOR.dom.element(b):null},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var d=a(this);if(d!==false)for(var c=this.getChildren(),h=0;h<c.count();h++){d=c.getItem(h);d.type==CKEDITOR.NODE_ELEMENT?d.forEach(a,b):(!b||d.type==b)&&a(d)}}});var c={width:["border-left-width",
108
+ "border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(a,c,d){if(typeof c=="number"){if(d&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))c=c-b.call(this,a);this.setStyle(a,c+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,c){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;c&&(d=d-b.call(this,a));return d}})();
109
+ CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a};
110
+ CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)}},!0,{append:1,appendBogus:1,getFirst:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});
111
+ (function(){function a(a,b){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed){this.end();return null}c.optimize()}var f,e=c.startContainer;f=c.endContainer;var o=c.startOffset,d=c.endOffset,m,j=this.guard,n=this.type,i=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var h=f.type==CKEDITOR.NODE_ELEMENT?f:f.getParent(),t=f.type==CKEDITOR.NODE_ELEMENT?f.getChild(d):f.getNext();this._.guardLTR=function(a,b){return(!b||!h.equals(a))&&(!t||
112
+ !a.equals(t))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}if(a&&!this._.guardRTL){var g=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),k=e.type==CKEDITOR.NODE_ELEMENT?o?e.getChild(o-1):null:e.getPrevious();this._.guardRTL=function(a,b){return(!b||!g.equals(a))&&(!k||!a.equals(k))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}var l=a?this._.guardRTL:this._.guardLTR;m=j?function(a,b){return l(a,b)===false?false:j(a,b)}:l;if(this.current)f=this.current[i](false,n,m);else{if(a)f.type==
113
+ CKEDITOR.NODE_ELEMENT&&(f=d>0?f.getChild(d-1):m(f,true)===false?null:f.getPreviousSourceNode(true,n,m));else{f=e;if(f.type==CKEDITOR.NODE_ELEMENT&&!(f=f.getChild(o)))f=m(e,true)===false?null:e.getNextSourceNode(true,n,m)}f&&m(f)===false&&(f=null)}for(;f&&!this._.end;){this.current=f;if(!this.evaluator||this.evaluator(f)!==false){if(!b)return f}else if(b&&this.evaluator)return false;f=f[i](false,n,m)}this.end();return this.current=null}function d(b){for(var c,e=null;c=a.call(this,b);)e=c;return e}
114
+ function b(a){if(k(a))return false;if(a.type==CKEDITOR.NODE_TEXT)return true;if(a.type==CKEDITOR.NODE_ELEMENT){if(a.is(CKEDITOR.dtd.$inline)||a.getAttribute("contenteditable")=="false")return true;var b;if(b=!CKEDITOR.env.needsBrFiller)if(b=a.is(o))a:{b=0;for(var c=a.getChildCount();b<c;++b)if(!k(a.getChild(b))){b=false;break a}b=true}if(b)return true}return false}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)},
115
+ previous:function(){return a.call(this,1)},checkForward:function(){return a.call(this,0,1)!==false},checkBackward:function(){return a.call(this,1,1)!==false},lastForward:function(){return d.call(this)},lastBackward:function(){return d.call(this,1)},reset:function(){delete this.current;this._={}}}});var c={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},e={absolute:1,
116
+ fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in e)&&c[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a))};CKEDITOR.dom.walker.blockBoundary=function(a){return function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,b){function c(a){return a&&
117
+ a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(f){var e,o;e=f&&f.type!=CKEDITOR.NODE_ELEMENT&&(o=f.getParent())&&c(o);e=a?e:e||c(f);return!!(b^e)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var c;b&&b.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible=function(a){var b=CKEDITOR.dom.walker.whitespaces();return function(c){if(b(c))c=1;else{c.type==CKEDITOR.NODE_TEXT&&
118
+ (c=c.getParent());c=!c.$.offsetHeight}return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(c){return!!(b^c.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!g(a)&&!l(a)}return function(c){var f=CKEDITOR.env.needsBrFiller?c.is&&c.is("br"):c.getText&&i.test(c.getText());if(f){f=c.getParent();c=c.getNext(b);f=f.isBlockBoundary()&&(!c||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())}return!!(a^f)}};CKEDITOR.dom.walker.temp=function(a){return function(b){b.type!=
119
+ CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b=b&&b.hasAttribute("data-cke-temp");return!!(a^b)}};var i=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,g=CKEDITOR.dom.walker.whitespaces(),l=CKEDITOR.dom.walker.bookmark(),h=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(b){b=g(b)||l(b)||h(b);return!!(a^b)}};var k=CKEDITOR.dom.walker.ignored(),o=function(a){var b={},c;for(c in a)CKEDITOR.dtd[c]["#"]&&(b[c]=1);return b}(CKEDITOR.dtd.$block);CKEDITOR.dom.walker.editable=function(a){return function(c){return!!(a^
120
+ b(c))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(l(a)||g(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&i.test(a.getText()))?a:false}})();
121
+ CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true;var d=a instanceof CKEDITOR.dom.document;this.document=d?a:a.getDocument();this.root=d?a.getBody():a};
122
+ (function(){function a(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),e=CKEDITOR.dom.walker.bogus();return function(f){if(c(f)||b(f))return true;if(e(f)&&!a)return a=true;return f.type==CKEDITOR.NODE_TEXT&&(f.hasAscendant("pre")||CKEDITOR.tools.trim(f.getText()).length)||f.type==CKEDITOR.NODE_ELEMENT&&!f.is(i)?false:true}}function d(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(e){return c(e)||b(e)?true:!a&&g(e)||
123
+ e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function b(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&k(a)&&(b=a);return h(a)&&!(g(a)&&a.equals(b))})}}var c=function(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset},e=function(a,b,c,e){a.optimizeBookmark();var f=a.startContainer,d=a.endContainer,i=a.startOffset,h=a.endOffset,m,j;if(d.type==CKEDITOR.NODE_TEXT)d=d.split(h);
124
+ else if(d.getChildCount()>0)if(h>=d.getChildCount()){d=d.append(a.document.createText(""));j=true}else d=d.getChild(h);if(f.type==CKEDITOR.NODE_TEXT){f.split(i);f.equals(d)&&(d=f.getNext())}else if(i)if(i>=f.getChildCount()){f=f.append(a.document.createText(""));m=true}else f=f.getChild(i).getPrevious();else{f=f.append(a.document.createText(""),1);m=true}var i=f.getParents(),h=d.getParents(),n,r,g;for(n=0;n<i.length;n++){r=i[n];g=h[n];if(!r.equals(g))break}for(var t=c,k,G,l,B=n;B<i.length;B++){k=
125
+ i[B];t&&!k.equals(f)&&(G=t.append(k.clone()));for(k=k.getNext();k;){if(k.equals(h[B])||k.equals(d))break;l=k.getNext();if(b==2)t.append(k.clone(true));else{k.remove();b==1&&t.append(k)}k=l}t&&(t=G)}t=c;for(c=n;c<h.length;c++){k=h[c];b>0&&!k.equals(d)&&(G=t.append(k.clone()));if(!i[c]||k.$.parentNode!=i[c].$.parentNode)for(k=k.getPrevious();k;){if(k.equals(i[c])||k.equals(f))break;l=k.getPrevious();if(b==2)t.$.insertBefore(k.$.cloneNode(true),t.$.firstChild);else{k.remove();b==1&&t.$.insertBefore(k.$,
126
+ t.$.firstChild)}k=l}t&&(t=G)}if(b==2){r=a.startContainer;if(r.type==CKEDITOR.NODE_TEXT){r.$.data=r.$.data+r.$.nextSibling.data;r.$.parentNode.removeChild(r.$.nextSibling)}a=a.endContainer;if(a.type==CKEDITOR.NODE_TEXT&&a.$.nextSibling){a.$.data=a.$.data+a.$.nextSibling.data;a.$.parentNode.removeChild(a.$.nextSibling)}}else{if(r&&g&&(f.$.parentNode!=r.$.parentNode||d.$.parentNode!=g.$.parentNode)){b=g.getIndex();m&&g.$.parentNode==f.$.parentNode&&b--;if(e&&r.type==CKEDITOR.NODE_ELEMENT){e=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',
127
+ a.document);e.insertAfter(r);r.mergeSiblings(false);a.moveToBookmark({startNode:e})}else a.setStart(g.getParent(),b)}a.collapse(true)}m&&f.remove();j&&d.$.parentNode&&d.remove()},i={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},g=CKEDITOR.dom.walker.bogus(),l=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,h=CKEDITOR.dom.walker.editable(),k=CKEDITOR.dom.walker.ignored(true);CKEDITOR.dom.range.prototype=
128
+ {clone:function(){var a=new CKEDITOR.dom.range(this.root);a.startContainer=this.startContainer;a.startOffset=this.startOffset;a.endContainer=this.endContainer;a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this.endContainer=this.startContainer;this.endOffset=this.startOffset}else{this.startContainer=this.endContainer;this.startOffset=this.endOffset}this.collapsed=true},cloneContents:function(){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||
129
+ e(this,2,a);return a},deleteContents:function(a){this.collapsed||e(this,0,null,a)},extractContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,1,b,a);return b},createBookmark:function(a){var b,c,e,f,d=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("&nbsp;");if(a){e="cke_bm_"+CKEDITOR.tools.getNextNumber();b.setAttribute("id",e+(d?"C":"S"))}if(!d){c=b.clone();c.setHtml("&nbsp;");a&&c.setAttribute("id",
130
+ e+"E");f=this.clone();f.collapse();f.insertNode(c)}f=this.clone();f.collapse(true);f.insertNode(b);if(c){this.setStartAfter(b);this.setEndBefore(c)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?e+(d?"C":"S"):b,endNode:a?e+"E":c,serializable:a,collapsed:d}},createBookmark2:function(){function a(b){var c=b.container,e=b.offset,f;f=c;var d=e;f=f.type!=CKEDITOR.NODE_ELEMENT||d===0||d==f.getChildCount()?0:f.getChild(d-1).type==CKEDITOR.NODE_TEXT&&f.getChild(d).type==CKEDITOR.NODE_TEXT;
131
+ if(f){c=c.getChild(e-1);e=c.getLength()}c.type==CKEDITOR.NODE_ELEMENT&&e>1&&(e=c.getChild(e-1).getIndex(true)+1);if(c.type==CKEDITOR.NODE_TEXT){f=c;for(d=0;(f=f.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;)d=d+f.getLength();e=e+d}b.container=c;b.offset=e}return function(b){var c=this.collapsed,e={container:this.startContainer,offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};if(b){a(e);c||a(f)}return{start:e.container.getAddress(b),end:c?null:f.container.getAddress(b),
132
+ startOffset:e.offset,endOffset:f.offset,normalized:b,collapsed:c,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,e=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);e?this.setEnd(e,a):this.collapse(true)}else{b=(c=a.serializable)?this.document.getById(a.startNode):a.startNode;a=c?this.document.getById(a.endNode):a.endNode;this.setStartBefore(b);b.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},
133
+ getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,c=this.startOffset,e=this.endOffset,f;if(a.type==CKEDITOR.NODE_ELEMENT){f=a.getChildCount();if(f>c)a=a.getChild(c);else if(f<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(b.type==CKEDITOR.NODE_ELEMENT){f=b.getChildCount();if(f>e)b=b.getChild(e).getPreviousSourceNode(true);else if(f<1)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=
134
+ b.lastChild;b=new CKEDITOR.dom.node(b)}}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,e=this.endContainer,c=c.equals(e)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(e);return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):
135
+ this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&(b.is&&b.is("span")&&b.data("cke-bookmark"))&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,e=this.startOffset,f=this.collapsed;
136
+ if((!a||f)&&c&&c.type==CKEDITOR.NODE_TEXT){if(e)if(e>=c.getLength()){e=c.getIndex()+1;c=c.getParent()}else{var d=c.split(e),e=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(d,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{e=c.getIndex();c=c.getParent()}this.setStart(c,e);if(f){this.collapse(true);return