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

Version Description

  • Security fixes and improvements
Download this release

Release Info

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

Code changes from version 2.2.7 to 2.2.8

Files changed (71) hide show
  1. inc/class_notices.php +12 -12
  2. readme.txt +6 -3
  3. wck-sas.php +1 -1
  4. wck.php +3 -4
  5. wordpress-creation-kit-api/assets/js/ckeditor/samples/css/samples.css +0 -1637
  6. wordpress-creation-kit-api/assets/js/ckeditor/samples/img/github-top.png +0 -0
  7. wordpress-creation-kit-api/assets/js/ckeditor/samples/img/header-bg.png +0 -0
  8. wordpress-creation-kit-api/assets/js/ckeditor/samples/img/header-separator.png +0 -0
  9. wordpress-creation-kit-api/assets/js/ckeditor/samples/img/logo.png +0 -0
  10. wordpress-creation-kit-api/assets/js/ckeditor/samples/img/logo.svg +0 -13
  11. wordpress-creation-kit-api/assets/js/ckeditor/samples/img/navigation-tip.png +0 -0
  12. wordpress-creation-kit-api/assets/js/ckeditor/samples/index.html +0 -130
  13. wordpress-creation-kit-api/assets/js/ckeditor/samples/js/sample.js +0 -53
  14. wordpress-creation-kit-api/assets/js/ckeditor/samples/js/sf.js +0 -17
  15. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/ajax.html +0 -86
  16. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/api.html +0 -211
  17. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/appendto.html +0 -60
  18. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
  19. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +0 -204
  20. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/posteddata.php +0 -60
  21. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/sample.jpg +0 -0
  22. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/uilanguages/languages.js +0 -7
  23. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/datafiltering.html +0 -509
  24. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/dialog/assets/my_dialog.js +0 -48
  25. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/dialog/dialog.html +0 -191
  26. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/divreplace.html +0 -145
  27. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/enterkey/enterkey.html +0 -107
  28. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  29. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  30. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js +0 -19
  31. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/outputforflash.html +0 -284
  32. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/outputhtml.html +0 -225
  33. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/index.html +0 -132
  34. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/inlineall.html +0 -315
  35. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/inlinebycode.html +0 -125
  36. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/inlinetextarea.html +0 -114
  37. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/jquery.html +0 -104
  38. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/magicline/magicline.html +0 -210
  39. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/readonly.html +0 -77
  40. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/replacebyclass.html +0 -61
  41. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/replacebycode.html +0 -60
  42. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/sample.css +0 -357
  43. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/sample.js +0 -50
  44. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/sample_posteddata.php +0 -16
  45. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/tabindex.html +0 -79
  46. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/toolbar/toolbar.html +0 -236
  47. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/uicolor.html +0 -73
  48. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/uilanguages.html +0 -123
  49. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/wysiwygarea/fullpage.html +0 -81
  50. wordpress-creation-kit-api/assets/js/ckeditor/samples/old/xhtmlstyle.html +0 -235
  51. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/css/fontello.css +0 -55
  52. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +0 -10
  53. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/config.json +0 -28
  54. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
  55. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.svg +0 -14
  56. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
  57. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
  58. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/index.html +0 -447
  59. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +0 -13
  60. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +0 -9
  61. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +0 -33
  62. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +0 -14
  63. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +0 -19
  64. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +0 -325
  65. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +0 -288
  66. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +0 -25
  67. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +0 -36
  68. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +0 -38
  69. wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +0 -16
  70. wordpress-creation-kit-api/wck-fep/wck-fep.php +2 -3
  71. wordpress-creation-kit-api/wordpress-creation-kit.php +42 -11
inc/class_notices.php CHANGED
@@ -31,20 +31,20 @@ class WCK_Add_Notices{
31
 
32
  // Display a notice that can be dismissed in case the serial number is inactive
33
  function add_admin_notice() {
34
- global $current_user ;
35
- global $pagenow;
36
 
37
- $user_id = $current_user->ID;
38
- do_action( $this->notificationId.'_before_notification_displayed', $current_user, $pagenow );
39
 
40
- if ( current_user_can( 'manage_options' ) ){
41
- // Check that the user hasn't already clicked to ignore the message
42
- if ( ! get_user_meta($user_id, $this->notificationId.'_dismiss_notification' ) ) {
43
- echo $finalMessage = apply_filters($this->notificationId.'_notification_message','<div class="'. $this->notificationClass .'" >'.$this->notificationMessage.'</div>', $this->notificationMessage);
44
- }
45
- do_action( $this->notificationId.'_notification_displayed', $current_user, $pagenow );
46
- }
47
- do_action( $this->notificationId.'_after_notification_displayed', $current_user, $pagenow );
48
  }
49
 
50
  function dismiss_notification() {
31
 
32
  // Display a notice that can be dismissed in case the serial number is inactive
33
  function add_admin_notice() {
34
+ global $current_user ;
35
+ global $pagenow;
36
 
37
+ $user_id = $current_user->ID;
38
+ do_action( $this->notificationId.'_before_notification_displayed', $current_user, $pagenow );
39
 
40
+ if ( current_user_can( 'manage_options' ) ){
41
+ // Check that the user hasn't already clicked to ignore the message
42
+ if ( ! get_user_meta($user_id, $this->notificationId.'_dismiss_notification' ) ) {
43
+ echo wp_kses_post( apply_filters($this->notificationId.'_notification_message','<div class="'. esc_attr( $this->notificationClass ) .'" >'. $this->notificationMessage .'</div>', $this->notificationMessage) );
44
+ }
45
+ do_action( $this->notificationId.'_notification_displayed', $current_user, $pagenow );
46
+ }
47
+ do_action( $this->notificationId.'_after_notification_displayed', $current_user, $pagenow );
48
  }
49
 
50
  function dismiss_notification() {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
4
  Tags: custom fields, custom field, wordpress custom fields, custom post type, custom post types, post types, repeater fields, meta box, metabox, custom taxonomy, custom fields creator, post meta
5
  Requires at least: 3.1
6
  Tested up to: 5.7.2
7
- Stable tag: 2.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -135,11 +135,14 @@ Creating a taxonomy generally automatically creates a special query variable usi
135
  10. Taxonomy listing
136
 
137
  == Changelog ==
 
 
 
138
  = 2.2.7 =
139
- * updated CKEditor to version 4.16.1
140
 
141
  = 2.2.6 =
142
- * small changes
143
 
144
  = 2.2.5 =
145
  * Fixed an incompatibility with Profile Builder
4
  Tags: custom fields, custom field, wordpress custom fields, custom post type, custom post types, post types, repeater fields, meta box, metabox, custom taxonomy, custom fields creator, post meta
5
  Requires at least: 3.1
6
  Tested up to: 5.7.2
7
+ Stable tag: 2.2.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
135
  10. Taxonomy listing
136
 
137
  == Changelog ==
138
+ = 2.2.8 =
139
+ * Security fixes and improvements
140
+
141
  = 2.2.7 =
142
+ * Updated CKEditor to version 4.16.1
143
 
144
  = 2.2.6 =
145
+ * Small changes
146
 
147
  = 2.2.5 =
148
  * Fixed an incompatibility with Profile Builder
wck-sas.php CHANGED
@@ -130,7 +130,7 @@ function wck_sas_welcome($hook){
130
  <?php }
131
  ?>
132
  <div class="wrap about-wrap">
133
- <div class="wck-badge <?php echo $plugin_name_class; ?>"><span><?php printf( __( 'Version %s' ), $plugin_version ); ?></span></div>
134
  <h1><?php printf( __( 'Welcome to %s', 'wck' ), $plugin_name ); ?></h1>
135
  <div class="about-text"><?php _e( 'WCK helps you create <strong>repeater custom fields, custom post types</strong> and <strong>taxonomies</strong> in just a couple of clicks, directly from the WordPress admin interface. WCK content types will improve the usability of the sites you build, making them easy to manage by your clients. ', 'wck' ); ?></div>
136
  </div>
130
  <?php }
131
  ?>
132
  <div class="wrap about-wrap">
133
+ <div class="wck-badge <?php echo esc_attr($plugin_name_class); ?>"><span><?php printf( __( 'Version %s' ), esc_html( $plugin_version ) ); ?></span></div>
134
  <h1><?php printf( __( 'Welcome to %s', 'wck' ), $plugin_name ); ?></h1>
135
  <div class="about-text"><?php _e( 'WCK helps you create <strong>repeater custom fields, custom post types</strong> and <strong>taxonomies</strong> in just a couple of clicks, directly from the WordPress admin interface. WCK content types will improve the usability of the sites you build, making them easy to manage by your clients. ', 'wck' ); ?></div>
136
  </div>
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: 2.2.7
7
  Author URI: http://www.cozmoslabs.com
8
  Text Domain: wck
9
  Domain Path: /languages
@@ -165,9 +165,8 @@ function wck_maybe_unserialize() {
165
  }
166
 
167
  /* check for updates */
168
- $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
169
- if (file_exists ($wck_premium_update . 'update-checker.php')){
170
- require_once ($wck_premium_update . 'update-checker.php');
171
  (array)$wck_serial = get_option('wck_serial');
172
  if( !empty( $wck_serial[0] ) )
173
  $wck_serial = urlencode( $wck_serial[0]['serial-number'] );
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: 2.2.8
7
  Author URI: http://www.cozmoslabs.com
8
  Text Domain: wck
9
  Domain Path: /languages
165
  }
166
 
167
  /* check for updates */
168
+ if (file_exists (WCK_PLUGIN_DIR.'/update/update-checker.php')){
169
+ require_once ( WCK_PLUGIN_DIR.'/update/update-checker.php');
 
170
  (array)$wck_serial = get_option('wck_serial');
171
  if( !empty( $wck_serial[0] ) )
172
  $wck_serial = urlencode( $wck_serial[0]['serial-number'] );
wordpress-creation-kit-api/assets/js/ckeditor/samples/css/samples.css DELETED
@@ -1,1637 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- @media (max-width: 900px) {
6
- .global-is-mobile-hidden {
7
- display: none !important;
8
- }
9
- }
10
- article,
11
- aside,
12
- details,
13
- figcaption,
14
- figure,
15
- footer,
16
- header,
17
- hgroup,
18
- main,
19
- menu,
20
- nav,
21
- section {
22
- display: block;
23
- }
24
- body,
25
- html {
26
- margin: 0;
27
- padding: 0;
28
- font: 16px / 1.8 Arial, 'Helvetica Neue', Helvetica, sans-serif;
29
- font-weight: 300;
30
- color: #575757;
31
- }
32
- .grid-width-10 {
33
- width: 10%;
34
- }
35
- .grid-width-20 {
36
- width: 20%;
37
- }
38
- .grid-width-30 {
39
- width: 30%;
40
- }
41
- .grid-width-40 {
42
- width: 40%;
43
- }
44
- .grid-width-50 {
45
- width: 50%;
46
- }
47
- .grid-width-60 {
48
- width: 60%;
49
- }
50
- .grid-width-70 {
51
- width: 70%;
52
- }
53
- .grid-width-80 {
54
- width: 80%;
55
- }
56
- .grid-width-90 {
57
- width: 90%;
58
- }
59
- .grid-width-100 {
60
- width: 100%;
61
- }
62
- @media (max-width: 900px) {
63
- .grid-width-10,
64
- .grid-width-20,
65
- .grid-width-30,
66
- .grid-width-40,
67
- .grid-width-50,
68
- .grid-width-60,
69
- .grid-width-70,
70
- .grid-width-80,
71
- .grid-width-90,
72
- .grid-width-100 {
73
- width: 100%;
74
- }
75
- }
76
- *[class*="grid-width"] {
77
- -webkit-box-sizing: border-box;
78
- -moz-box-sizing: border-box;
79
- box-sizing: border-box;
80
- padding-left: 4%;
81
- padding-right: 4%;
82
- float: left;
83
- }
84
- *[class*="grid-width"]:after,
85
- .grid-container:after,
86
- *[class*="grid-width"]:before,
87
- .grid-container:before {
88
- content: '';
89
- display: block;
90
- overflow: hidden;
91
- visibility: hidden;
92
- font-size: 0;
93
- line-height: 0;
94
- width: 0;
95
- height: 0;
96
- }
97
- *[class*="grid-width"]:after,
98
- .grid-container:after {
99
- clear: both;
100
- }
101
- .grid-container {
102
- -webkit-box-sizing: border-box;
103
- -moz-box-sizing: border-box;
104
- box-sizing: border-box;
105
- margin-left: auto;
106
- margin-right: auto;
107
- }
108
- .grid-container-nested *[class*="grid-width"]:first-child {
109
- padding-left: 0;
110
- }
111
- .grid-container-nested *[class*="grid-width"]:last-child {
112
- padding-right: 0;
113
- }
114
- @media (max-width: 900px) {
115
- .grid-container-nested *[class*="grid-width"]:first-child {
116
- padding-left: 4%;
117
- }
118
- .grid-container-nested *[class*="grid-width"]:last-child {
119
- padding-right: 4%;
120
- }
121
- }
122
- .header-a {
123
- min-height: 140px;
124
- overflow: hidden;
125
- }
126
- .header-a .header-a-logo {
127
- margin: 40px 0 0;
128
- }
129
- @media (max-width: 900px) {
130
- .header-a .header-a-logo {
131
- text-align: center;
132
- }
133
- }
134
- .header-a .header-a-logo img {
135
- border: transparent;
136
- }
137
- .navigation-a {
138
- height: 30px;
139
- background: #3D3D3D;
140
- position: absolute;
141
- left: 0;
142
- right: 0;
143
- top: 0;
144
- padding: 0;
145
- overflow: hidden;
146
- }
147
- @media (max-width: 900px) {
148
- .navigation-a {
149
- text-align: center;
150
- }
151
- }
152
- .navigation-a ul {
153
- list-style: none;
154
- margin: 0;
155
- overflow: hidden;
156
- }
157
- .navigation-a ul li,
158
- .navigation-a ul li a {
159
- display: inline-block;
160
- }
161
- @media (max-width: 900px) {
162
- .navigation-a ul {
163
- width: auto;
164
- text-overflow: ellipsis;
165
- white-space: nowrap;
166
- display: inline-block;
167
- float: none;
168
- }
169
- .navigation-a ul:before,
170
- .navigation-a ul:after {
171
- display: none;
172
- }
173
- }
174
- .navigation-a ul.navigation-a-left {
175
- text-align: left;
176
- }
177
- @media (max-width: 900px) {
178
- .navigation-a ul.navigation-a-left {
179
- padding-right: 0;
180
- }
181
- }
182
- .navigation-a ul.navigation-a-right {
183
- text-align: right;
184
- }
185
- @media (max-width: 900px) {
186
- .navigation-a ul.navigation-a-right {
187
- padding-left: 23px;
188
- }
189
- }
190
- .navigation-a ul li + li {
191
- margin-left: 23px;
192
- }
193
- .navigation-a ul li a {
194
- font-size: 10px;
195
- font-size: 0.625rem;
196
- line-height: 18px;
197
- line-height: 1.13rem;
198
- line-height: 30px;
199
- float: left;
200
- color: #ddd;
201
- font-weight: bold;
202
- text-decoration: none;
203
- text-transform: uppercase;
204
- }
205
- .navigation-a ul li a:hover {
206
- cursor: pointer;
207
- color: #fff;
208
- }
209
- .icon-navigation-a-github:before,
210
- .icon-navigation-a-github:after {
211
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IArs4c6QAAAa9JREFUOBGNlM8rRGEUht0pDGosjKYZpUSIkuwsiCaxUEqK2VOUBcrWv2BjxUJho6wsLLDzY2fhD5iR5NeOcJvIjOfM3O927m3mmlPPnPec835nZprvjlVVJvL5fCOjMWiDCLzCLVxZlpUj/x8saYV9+IZS8UJzFWoCt2GYgk+oJG4wJUouZDANv5VsUZ47dNSzkEYHfIDEHixDWgoiB/rTHlPPwBNInPmXHRb7hdeUDFG10AN1Th1Fd5mD6BMwMVnoUyVA3t3EkjkQlDFfmwPkc7NsQTXf0bGgJWaGb16dk18+EmLYawzkC+6Q3KdK4kiZqtGdskx/kmdlCJS86RuGrDLFZJmtGi1KB0q+VhOGsDLZsiyjGsOY4qoOkrO+YUauwCDoOKWo9xk9JfM+MPdSzqZdA8UlyDO3AvKLPsIG9LsmBHUKduEHdCy6PrpJZyKXdwKMOemaissOHJ9O9xTeh57GluMYIsehWy8STW/d8ZhkI0b9PjFasA1fsAOb0KCN1PLXYyKLGNdzj2YYArnZDyDRrA3Ua4UuDzd5QM/KaoxhmAO5Om5Qt8OI2/CJP6MVa1dvltQ5AAAAAElFTkSuQmCC");
212
- }
213
- .navigation-b {
214
- text-align: right;
215
- margin: 52px 0 0;
216
- overflow: visible;
217
- }
218
- @media (max-width: 900px) {
219
- .navigation-b {
220
- text-align: center;
221
- margin-top: 20px;
222
- padding: 0;
223
- }
224
- }
225
- .navigation-b ul {
226
- padding: 0;
227
- list-style: none;
228
- margin: 0;
229
- overflow: visible;
230
- }
231
- .navigation-b ul li,
232
- .navigation-b ul li a {
233
- display: inline-block;
234
- }
235
- @media (max-width: 900px) {
236
- .navigation-b ul {
237
- display: table;
238
- width: 100%;
239
- padding-bottom: 1.5em;
240
- }
241
- }
242
- @media (max-width: 900px) {
243
- .navigation-b ul li {
244
- display: table-row;
245
- }
246
- }
247
- .navigation-b ul li + li {
248
- margin-left: 20px;
249
- }
250
- @media (max-width: 900px) {
251
- .navigation-b ul li + li {
252
- margin-left: 0;
253
- }
254
- }
255
- .navigation-b ul li a {
256
- -webkit-box-sizing: border-box;
257
- -moz-box-sizing: border-box;
258
- box-sizing: border-box;
259
- text-transform: uppercase;
260
- text-decoration: none;
261
- outline: none;
262
- }
263
- @media (max-width: 900px) {
264
- .navigation-b ul li a {
265
- width: 100%;
266
- -webkit-border-radius: 0;
267
- -webkit-background-clip: padding-box;
268
- -moz-border-radius: 0;
269
- -moz-background-clip: padding;
270
- border-radius: 0;
271
- background-clip: padding-box;
272
- }
273
- }
274
- .footer-a {
275
- font-size: 13px;
276
- font-size: 0.8125rem;
277
- line-height: 23.4px;
278
- line-height: 1.46rem;
279
- padding-top: 2.25em;
280
- padding-bottom: 2.25em;
281
- overflow: hidden;
282
- color: #8a8a8a;
283
- }
284
- .footer-a a {
285
- color: #0287D0;
286
- text-decoration: none;
287
- border-bottom: 1px dotted #0287D0;
288
- }
289
- .footer-a a:hover {
290
- color: #0277b7;
291
- }
292
- .footer-a p {
293
- margin: 0;
294
- display: inline-block;
295
- text-align: center;
296
- }
297
- .content {
298
- font-size: 14px;
299
- font-size: 0.875rem;
300
- line-height: 25.2px;
301
- line-height: 1.57rem;
302
- overflow: hidden;
303
- padding-top: 1.5em;
304
- padding-bottom: 1.5em;
305
- }
306
- .content p {
307
- margin: 0.75em 0;
308
- }
309
- .content ul,
310
- .content ol,
311
- .content pre,
312
- .content blockquote,
313
- .content textarea:not([class^="cke"]),
314
- .content .cke {
315
- margin: 1.875em 0;
316
- }
317
- .content code,
318
- .content kbd {
319
- -webkit-border-radius: 3px;
320
- -webkit-background-clip: padding-box;
321
- -moz-border-radius: 3px;
322
- -moz-background-clip: padding;
323
- border-radius: 3px;
324
- background-clip: padding-box;
325
- padding: 3px 4px;
326
- }
327
- .content pre,
328
- .content code,
329
- .content kbd,
330
- .content blockquote {
331
- background: #f5f5f5;
332
- }
333
- .content blockquote,
334
- .content pre {
335
- background: none;
336
- border-left: 4px solid #0287D0;
337
- padding: 1.5em 2.25em;
338
- }
339
- .content p a,
340
- .content ul a,
341
- .content ol a,
342
- .content blockquote a,
343
- .content h1 a,
344
- .content h2 a,
345
- .content h3 a,
346
- .content h4 a,
347
- .content h5 a {
348
- color: #0287D0;
349
- text-decoration: none;
350
- border-bottom: 1px dotted #0287D0;
351
- }
352
- .content p a:hover,
353
- .content ul a:hover,
354
- .content ol a:hover,
355
- .content blockquote a:hover,
356
- .content h1 a:hover,
357
- .content h2 a:hover,
358
- .content h3 a:hover,
359
- .content h4 a:hover,
360
- .content h5 a:hover {
361
- color: #0277b7;
362
- }
363
- .content h1,
364
- .content h2,
365
- .content h3,
366
- .content h4,
367
- .content h5 {
368
- color: #000;
369
- font-weight: 100;
370
- }
371
- .content h1 code,
372
- .content h2 code,
373
- .content h3 code,
374
- .content h4 code,
375
- .content h5 code,
376
- .content h1 kbd,
377
- .content h2 kbd,
378
- .content h3 kbd,
379
- .content h4 kbd,
380
- .content h5 kbd {
381
- font-size: inherit;
382
- }
383
- .content h1 a.content-heading-anchor,
384
- .content h2 a.content-heading-anchor,
385
- .content h3 a.content-heading-anchor,
386
- .content h4 a.content-heading-anchor,
387
- .content h5 a.content-heading-anchor {
388
- font-weight: 100;
389
- vertical-align: middle;
390
- opacity: 0;
391
- border: 0;
392
- }
393
- .content h1:hover a.content-heading-anchor,
394
- .content h2:hover a.content-heading-anchor,
395
- .content h3:hover a.content-heading-anchor,
396
- .content h4:hover a.content-heading-anchor,
397
- .content h5:hover a.content-heading-anchor {
398
- opacity: 1;
399
- }
400
- .content h1:target a,
401
- .content h2:target a,
402
- .content h3:target a,
403
- .content h4:target a,
404
- .content h5:target a {
405
- -webkit-animation: targetLinkOpacity 0.5s linear alternate;
406
- -moz-animation: targetLinkOpacity 0.5s linear alternate;
407
- -o-animation: targetLinkOpacity 0.5s linear alternate;
408
- animation: targetLinkOpacity 0.5s linear alternate;
409
- opacity: 1;
410
- }
411
- .content input,
412
- .content select,
413
- .content textarea:not([class^="cke"]) {
414
- -webkit-border-radius: 3px;
415
- -webkit-background-clip: padding-box;
416
- -moz-border-radius: 3px;
417
- -moz-background-clip: padding;
418
- border-radius: 3px;
419
- background-clip: padding-box;
420
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
421
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
422
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
423
- font: inherit;
424
- color: inherit;
425
- border: 1px solid #D9D9D9;
426
- padding: .2em .5em;
427
- }
428
- .content input:focus,
429
- .content select:focus,
430
- .content textarea:not([class^="cke"]):focus {
431
- border-color: #66afe9;
432
- outline: 0;
433
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 8px #93c6ef;
434
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 8px #93c6ef;
435
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 8px #93c6ef;
436
- }
437
- .content abbr {
438
- border-bottom: 1px dotted #666;
439
- cursor: pointer;
440
- }
441
- .content blockquote {
442
- font-style: italic;
443
- font-family: Georgia, Times, "Times New Roman", serif;
444
- font-size: 16px;
445
- font-size: 1rem;
446
- line-height: 28.8px;
447
- line-height: 1.8rem;
448
- }
449
- .content em {
450
- font-style: italic;
451
- }
452
- .content h1 {
453
- font-size: 36px;
454
- font-size: 2.25rem;
455
- line-height: 64.8px;
456
- line-height: 4.05rem;
457
- margin: 1.125em 0 0;
458
- }
459
- .content h2 {
460
- font-size: 27.2px;
461
- font-size: 1.7rem;
462
- line-height: 48.96px;
463
- line-height: 3.06rem;
464
- margin: 0.9em 0 0;
465
- }
466
- .content h3 {
467
- font-size: 24px;
468
- font-size: 1.5rem;
469
- line-height: 43.2px;
470
- line-height: 2.7rem;
471
- font-weight: 500;
472
- margin: 0.75em 0 0;
473
- }
474
- .content h4 {
475
- font-size: 19.2px;
476
- font-size: 1.2rem;
477
- line-height: 34.56px;
478
- line-height: 2.16rem;
479
- font-weight: 500;
480
- margin: 0.75em 0 0;
481
- }
482
- .content h5 {
483
- font-size: 17.6px;
484
- font-size: 1.1rem;
485
- line-height: 31.68px;
486
- line-height: 1.98rem;
487
- font-weight: 500;
488
- margin: 0.75em 0 0;
489
- }
490
- .content hr {
491
- border: 0;
492
- border-top: 4px solid #D9D9D9;
493
- margin: 1.5em 0;
494
- }
495
- .content input[type="text"] {
496
- height: 1.8em;
497
- line-height: 1.8em;
498
- }
499
- .content input[type="button"] {
500
- -webkit-appearance: button;
501
- -moz-appearance: button;
502
- appearance: button;
503
- }
504
- .content kbd {
505
- font-size: 12px;
506
- font-size: 0.75rem;
507
- line-height: 21.6px;
508
- line-height: 1.35rem;
509
- font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
510
- padding: 2px 6px;
511
- -webkit-box-shadow: 0 0 4px #fff inset, 0 2px 0 #D9D9D9;
512
- -moz-box-shadow: 0 0 4px #fff inset, 0 2px 0 #D9D9D9;
513
- box-shadow: 0 0 4px #fff inset, 0 2px 0 #D9D9D9;
514
- }
515
- .content p img {
516
- vertical-align: middle;
517
- }
518
- .content p pre {
519
- padding: 1.5em;
520
- }
521
- .content pre {
522
- padding: 0;
523
- border: 0;
524
- tab-size: 4;
525
- -o-tab-size: 4;
526
- -moz-tab-size: 4;
527
- }
528
- .content pre,
529
- .content code {
530
- font-size: 11.89px;
531
- font-size: 0.743rem;
532
- line-height: 21.4px;
533
- line-height: 1.34rem;
534
- font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
535
- }
536
- .content pre a,
537
- .content code a {
538
- border: 0;
539
- }
540
- .content pre code {
541
- padding: 0.75em;
542
- display: block;
543
- }
544
- .content strong {
545
- color: #000;
546
- }
547
- .content ul ul,
548
- .content ol ul,
549
- .content ul ol,
550
- .content ol ol {
551
- margin: 0.75em 0;
552
- }
553
- .content ul li,
554
- .content ol li {
555
- font-size: 14px;
556
- font-size: 0.875rem;
557
- line-height: 30.24px;
558
- line-height: 1.89rem;
559
- }
560
- .content textarea:not([class^="cke"]) {
561
- width: 100%;
562
- }
563
- .content div.todo {
564
- border: 2px dotted #444;
565
- padding: 10px;
566
- margin: 60px 0 10px 0;
567
- /* Remove me some day */
568
- }
569
- .content div.todo:before {
570
- content: "TODO";
571
- font-weight: bold;
572
- }
573
- body a.button-a,
574
- body button.button-a,
575
- body input.button-a {
576
- -webkit-border-radius: 3px;
577
- -webkit-background-clip: padding-box;
578
- -moz-border-radius: 3px;
579
- -moz-background-clip: padding;
580
- border-radius: 3px;
581
- background-clip: padding-box;
582
- font-size: 14px;
583
- font-size: 0.875rem;
584
- line-height: 25.2px;
585
- line-height: 1.57rem;
586
- height: 36px;
587
- line-height: 36px;
588
- padding: 0 1.1em;
589
- font-weight: 700;
590
- color: #3e3e3e;
591
- white-space: nowrap;
592
- text-decoration: none;
593
- display: inline-block;
594
- cursor: pointer;
595
- border: 0;
596
- vertical-align: middle;
597
- margin: 1px 0;
598
- background: transparent;
599
- }
600
- body a.button-a.icon-pos-left,
601
- body button.button-a.icon-pos-left,
602
- body input.button-a.icon-pos-left {
603
- padding-left: .8em;
604
- }
605
- body a.button-a.icon-pos-right,
606
- body button.button-a.icon-pos-right,
607
- body input.button-a.icon-pos-right {
608
- padding-right: .8em;
609
- }
610
- body a.button-a.button-a-no-text,
611
- body button.button-a.button-a-no-text,
612
- body input.button-a.button-a-no-text {
613
- -webkit-border-radius: 100px;
614
- -webkit-background-clip: padding-box;
615
- -moz-border-radius: 100px;
616
- -moz-background-clip: padding;
617
- border-radius: 100px;
618
- background-clip: padding-box;
619
- width: 36px;
620
- padding: 0;
621
- text-indent: -999px;
622
- overflow: hidden;
623
- position: relative;
624
- text-align: center;
625
- }
626
- body a.button-a.button-a-no-text:before,
627
- body button.button-a.button-a-no-text:before,
628
- body input.button-a.button-a-no-text:before {
629
- position: absolute;
630
- left: 50%;
631
- top: 50%;
632
- margin: -9px 0 0 -9px;
633
- }
634
- @media (max-width: 900px) {
635
- body a.button-a.button-a-mobile-collapsed,
636
- body button.button-a.button-a-mobile-collapsed,
637
- body input.button-a.button-a-mobile-collapsed {
638
- -webkit-border-radius: 100px;
639
- -webkit-background-clip: padding-box;
640
- -moz-border-radius: 100px;
641
- -moz-background-clip: padding;
642
- border-radius: 100px;
643
- background-clip: padding-box;
644
- width: 36px;
645
- padding: 0;
646
- text-indent: -999px;
647
- overflow: hidden;
648
- position: relative;
649
- text-align: center;
650
- }
651
- body a.button-a.button-a-mobile-collapsed:before,
652
- body button.button-a.button-a-mobile-collapsed:before,
653
- body input.button-a.button-a-mobile-collapsed:before {
654
- position: absolute;
655
- left: 50%;
656
- top: 50%;
657
- margin: -9px 0 0 -9px;
658
- }
659
- body a.button-a.button-a-mobile-collapsed:before,
660
- body button.button-a.button-a-mobile-collapsed:before,
661
- body input.button-a.button-a-mobile-collapsed:before {
662
- position: absolute;
663
- left: 50%;
664
- top: 50%;
665
- margin: -9px 0 0 -9px;
666
- }
667
- }
668
- body a.button-a:active,
669
- body button.button-a:active,
670
- body input.button-a:active,
671
- body a.button-a:hover,
672
- body button.button-a:hover,
673
- body input.button-a:hover {
674
- color: #fff;
675
- background: #0277b7;
676
- }
677
- body a.button-a:focus,
678
- body button.button-a:focus,
679
- body input.button-a:focus {
680
- border-color: #66afe9;
681
- outline: 0;
682
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px #93c6ef;
683
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px #93c6ef;
684
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px #93c6ef;
685
- }
686
- body a.button-a-soft,
687
- body button.button-a-soft,
688
- body input.button-a-soft {
689
- background: #e7e7e7;
690
- }
691
- body a.button-a-soft:active,
692
- body button.button-a-soft:active,
693
- body input.button-a-soft:active,
694
- body a.button-a-soft:hover,
695
- body button.button-a-soft:hover,
696
- body input.button-a-soft:hover {
697
- color: #3e3e3e;
698
- background: #cecece;
699
- }
700
- body a.button-a-background,
701
- body button.button-a-background,
702
- body input.button-a-background,
703
- body a.navigation-b ul li a:hover,
704
- body button.navigation-b ul li a:hover,
705
- body input.navigation-b ul li a:hover {
706
- color: #fff;
707
- background: #0287D0;
708
- }
709
- body a.button-a-background:active,
710
- body button.button-a-background:active,
711
- body input.button-a-background:active,
712
- body a.button-a-background:hover,
713
- body button.button-a-background:hover,
714
- body input.button-a-background:hover,
715
- body a.navigation-b ul li a:hover:active,
716
- body button.navigation-b ul li a:hover:active,
717
- body input.navigation-b ul li a:hover:active,
718
- body a.navigation-b ul li a:hover:hover,
719
- body button.navigation-b ul li a:hover:hover,
720
- body input.navigation-b ul li a:hover:hover {
721
- color: #fff;
722
- background: #0277b7;
723
- }
724
- .balloon-a {
725
- font-size: 12px;
726
- font-size: 0.75rem;
727
- line-height: 21.6px;
728
- line-height: 1.35rem;
729
- -webkit-border-radius: 3px;
730
- -webkit-background-clip: padding-box;
731
- -moz-border-radius: 3px;
732
- -moz-background-clip: padding;
733
- border-radius: 3px;
734
- background-clip: padding-box;
735
- border-bottom: 3px solid #d4d4d4;
736
- background: #ebebeb;
737
- display: inline-block;
738
- white-space: nowrap;
739
- padding: .4em 1.2em .2em;
740
- font-weight: 700;
741
- position: relative;
742
- z-index: 1000;
743
- text-transform: none;
744
- color: #575757;
745
- }
746
- .balloon-a:hover {
747
- color: #575757;
748
- }
749
- .balloon-a:before {
750
- content: '';
751
- width: 0;
752
- height: 0;
753
- border-style: solid;
754
- position: absolute;
755
- }
756
- .balloon-a-ne:before,
757
- .balloon-a-nw:before {
758
- top: -13px;
759
- border-width: 0 9px 15.6px 9px;
760
- border-color: transparent transparent #ebebeb transparent;
761
- }
762
- .balloon-a-se:before,
763
- .balloon-a-sw:before {
764
- bottom: -13px;
765
- border-width: 15.6px 9px 0 9px;
766
- border-color: #ebebeb transparent transparent transparent;
767
- }
768
- .balloon-a-nw:before,
769
- .balloon-a-sw:before {
770
- left: 20px;
771
- }
772
- .balloon-a-ne:before,
773
- .balloon-a-se:before {
774
- right: 20px;
775
- }
776
- .icon-pos-left:before,
777
- .icon-pos-right:after {
778
- content: '';
779
- display: inline-block;
780
- width: 18px;
781
- height: 18px;
782
- vertical-align: middle;
783
- background-repeat: no-repeat;
784
- }
785
- .icon-pos-left:before {
786
- margin-right: 10px;
787
- }
788
- .icon-pos-right:after {
789
- margin-left: 10px;
790
- }
791
- .icon-download:before,
792
- .icon-download:after {
793
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAQFJREFUOBGtVDESgjAQBGfobHwE/AIa/AN/8EEWfMWGZ+gDaG2ws8BdyY13SRgGcGducre3WQ5NSJIIxnGsES3ijhhcMCdXR7ZYCqIc0SGWQE1ud7sKjRLxXHJQfWpLYwaCk6wxET/u+U2GIngd8yRViINau28bBH/YAGqvSQPhRNQHqBqj3FY0NKq27TW7qhSTDaCOhkaRAj7Hmm8S4V+c6C+gUa+crsizuWmoc70MKbWCnqPy2GvcUJxE4a/sIajRaGkU+/sf4IuISQGePR/T/QMbHEhwPLVnMWPuOCwGnWg41dwVeaN3ccHch70idIRi/6WV0WC2/zMiZm661R+2DxyEdjTuST3mAAAAAElFTkSuQmCC");
794
- }
795
- .icon-question-mark:before,
796
- .icon-question-mark:after {
797
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAUhJREFUOBGllLFOAkEQhjk0WthT2JFA7Czsqc7OxFLewEeAZ/AVbO0tTLTSBKhstTBUNkYLEoVAbD2//zILe5e9uwCT/JnZmX/+m83ebq0WsCRJYnANxmBhUKxcHGjJpiC1wQBUmTjtbLetKHTAT5WCVxe3kxEjoUmKRL6pvYEZyJt6VpOxCG3nmfyx+yJxBM7BFPg2SDlkTv2sxZqi4YnUvfgswI9FuHAkzz9EUTTRmqYeTifXsvoj/s9i57oi6ljz9kviFdyBCbgHe+rCn4C8jVXQ18rshuKOiTSIXwLkRZWQTurARJrE7wERpea7kD7BkcgB+yB3CFGlPmgqCNiXhEagSGif2qU1Ln8FW/tupK3pXhXZrWNDuCoikY/rHPMT5KFr2MAPTSM90rIrUjJIeq1WV0RTwN7+0rrtILb9M+LEbLq1H7Z/Ea3+RvBddl0AAAAASUVORK5CYII=");
798
- }
799
- .icon-close:before,
800
- .icon-close:after {
801
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAUlJREFUOBGllDFuwzAMRe3Cd+jYKUCzd/XkDtm9dsoVOuUqBnqBoodwgBwiW8ZsXTIWqPu+Iia0LMAoTOBbJEV+UZTkosjIMAwN6MARXCKky9dkUsYuglagB3OimNU4O1pM1OB7jsHNK7YekeFQJZ5kj/0LcnLA+RMnlHOvDMNv5wO7BFuQkn3hq0ALjKwPVeF4BSaqpLRy0T1ZIHFz75bE2BR8dBImqmBrwRplg09QmR/9GZyBSadAHauXCZkRROKURLlHEemepJIlIyhHotzLg1/N6erTxtmmvqA8muHGIbc1rTBqrEuwnqWnGbbmmz0hwaHtvM2QhWbrXZnosvnTWWPrdCY9w7cDJtf3h9VHjy5Zq9UZ08beyJh7Aicg6W/VYvgnIjJdNn9PMIOITJWcgnV9VvcnEitY/mitNFZZ/hsxsljdv39sfybRQ4R/kU0MAAAAAElFTkSuQmCC");
802
- }
803
- .ie8 .switch > * {
804
- vertical-align: middle;
805
- }
806
- .ie8 .switch input[type="radio"] {
807
- margin: 0 0.25em;
808
- display: inline-block;
809
- }
810
- .ie8 .switch label {
811
- margin-left: 0 !important;
812
- margin-right: 0 !important;
813
- }
814
- .ie8 .switch label[data-for="1"] {
815
- float: left;
816
- }
817
- .ie8 .switch label[data-for="2"] {
818
- float: right;
819
- }
820
- .ie8 .switch .switch-inner {
821
- display: none;
822
- }
823
- .switch {
824
- font-size: 14px;
825
- font-size: 0.875rem;
826
- line-height: 25.2px;
827
- line-height: 1.57rem;
828
- font-weight: bold;
829
- background-color: #0287D0;
830
- overflow: hidden;
831
- display: inline-block;
832
- padding: 0.75em 0.25em;
833
- color: #fff;
834
- -webkit-border-radius: 3px;
835
- -webkit-background-clip: padding-box;
836
- -moz-border-radius: 3px;
837
- -moz-background-clip: padding;
838
- border-radius: 3px;
839
- background-clip: padding-box;
840
- position: relative;
841
- }
842
- .switch input[type="radio"] {
843
- display: none;
844
- }
845
- .switch label {
846
- position: relative;
847
- z-index: 2;
848
- float: left;
849
- cursor: pointer;
850
- padding: 0 0.75em;
851
- }
852
- .switch label:hover {
853
- text-decoration: underline;
854
- }
855
- .switch .switch-inner {
856
- float: left;
857
- background-color: #FFF;
858
- height: 1.5em;
859
- width: 4.125em;
860
- padding: 2px;
861
- margin: 0 0.25em;
862
- -webkit-border-radius: 5.5px;
863
- -webkit-background-clip: padding-box;
864
- -moz-border-radius: 5.5px;
865
- -moz-background-clip: padding;
866
- border-radius: 5.5px;
867
- background-clip: padding-box;
868
- }
869
- .switch .switch-inner .handler {
870
- overflow: hidden;
871
- position: relative;
872
- display: block;
873
- height: 1.5em;
874
- width: 1.5em;
875
- background: #027dc1;
876
- -webkit-border-radius: 4.5px;
877
- -webkit-background-clip: padding-box;
878
- -moz-border-radius: 4.5px;
879
- -moz-background-clip: padding;
880
- border-radius: 4.5px;
881
- background-clip: padding-box;
882
- }
883
- .switch .switch-inner .handler:before {
884
- content: '';
885
- display: block;
886
- position: absolute;
887
- top: 0;
888
- right: 0;
889
- bottom: 3px;
890
- left: 0;
891
- background-color: #0291df;
892
- -webkit-border-bottom-left-radius: 4.5px;
893
- -moz-border-radius-bottomleft: 4.5px;
894
- border-bottom-left-radius: 4.5px;
895
- -webkit-border-bottom-right-radius: 4.5px;
896
- -webkit-background-clip: padding-box;
897
- -moz-border-radius-bottomright: 4.5px;
898
- -moz-background-clip: padding;
899
- border-bottom-right-radius: 4.5px;
900
- background-clip: padding-box;
901
- }
902
- .switch:hover .switch-inner .handler:before {
903
- background: #029ef3;
904
- }
905
- .switch input[data-num="2"]:checked ~ .switch-inner > .handler {
906
- margin-left: auto;
907
- }
908
- .switch input[data-num="2"]:checked ~ label[data-for="1"] {
909
- padding-right: 5.125em;
910
- margin-right: -4.375em;
911
- }
912
- .switch input[data-num="1"]:checked ~ label[data-for="2"] {
913
- padding-left: 5.125em;
914
- margin-left: -4.375em;
915
- }
916
- .toggler {
917
- -webkit-user-select: none;
918
- -moz-user-select: none;
919
- -ms-user-select: none;
920
- user-select: none;
921
- }
922
- .toggler label {
923
- cursor: pointer;
924
- }
925
- .toggler [data-collapse] {
926
- display: inherit;
927
- }
928
- .toggler [data-expand] {
929
- display: none;
930
- }
931
- .toggler.collapsed [data-collapse] {
932
- display: none;
933
- }
934
- .toggler.collapsed [data-expand] {
935
- display: inherit;
936
- }
937
- .toggler-container {
938
- overflow: hidden;
939
- }
940
- .toggler-container.collapsed {
941
- height: 0;
942
- }
943
- .icon-toggler-expanded:before,
944
- .icon-toggler-collapsed:before,
945
- .icon-toggler-expanded:after,
946
- .icon-toggler-collapsed:after {
947
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAByCAYAAABeOoENAAAAAXNSR0IArs4c6QAAAbxJREFUaAXtmT1KBEEQhRdFQdBEMfQEBoaGopl3MfECXsFERLyBh/AUIuwJDEUQM//eB11Dz1A1uzotGFTBY2rr58306+kNpmazP7Z98V8Kj8JrAT4xcgttXRVXwofwFYAcNdS6RuJegOBTuBUOhc0CfGLkqKHWJeMuFDwJJ0Jk5Kihlp6esW4embuNkVgTNdTS09MMEbkDj76sUUsPvZ2xIwTRATsQuBuxGsTIYdSSo7cztpggwprdyKlJ8ImZUUuM3s48ol1lXwQjwydm5hINl2bF53KMCL82d2mR2GvqnBfg1+aKPbb9p+oGtYXbT1GTFxKiZkfEyHgy7x0y0clR454zSGpDMzaA3fzV30hNln4qkAqkAqlAKpAKpAKpQCqQCqQCqUAqkAqkAqlAKpAKpAKpQCrw3xWY/GGcz++TP9U3Gx40GWdEAxabXA33NBywRCOfdzFcCztDJv12Rz7REMpmIc9qPBNWK0J3COWNxegxIrs+KHZcyHpjsZUSXPaypcLtseJFS3tT84WwUZG4S4vEZkl3wl5FYK4rdrT9R9Y1uIbbT12TFxKiZkfEyCYfWojMJv+NGNGPr99GI9DP7P9TCgAAAABJRU5ErkJggg==");
948
- }
949
- .icon-toggler-expanded.icon-light:before,
950
- .icon-toggler-collapsed.icon-light:before,
951
- .icon-toggler-expanded.icon-light:after,
952
- .icon-toggler-collapsed.icon-light:after {
953
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAByCAYAAABeOoENAAAAAXNSR0IArs4c6QAAAcVJREFUaAXtmT9KA1EQxhMlASE2SkpPkCJlStHOu3gGwRPYBAm5gYfwFBKwtrARRAh26vr7ljfx7TrLChtBcAa+zOSbPy/7vcTC6fV+04qimIArsALrBMXiJq1nUzQEc/AOmkw51QzdgUqAWyD7AEswA6MExeKUk6n2+zBInSJ7BKfuaZDKpRpcMa/UQUgTfWSd1jjEmlSTatXzpRlvJKJsacVtXrVlB72bWgjdiGwmEj8FOq1u4qapRprJVvkgXbFsZCTxomSqL4ssr0uQrY3TJ/AGjeFfVJlM8diaiCuDdlLiIfmNcP1+/wnu0hoVJ84oq7XeUhNXbE4dgPuEgU2Qh3PFbrx+Gs6E2hD/+tMJ3b+QadB2fiLZsG4/2poG3f6M5MMiDgVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBf66AiwLuv1jnAH/Zb/Go5abq/qdwvsLFhJNK583ctfg0Bnmrnwq+zVrYoDZM8E52M1yP9uvqcGmZP6O+CTl3LWYHdTm9yk4aCzilLZHe6XmAuzZEGL30ZrEpr64AUc2wDycK7a7X6P42BpzD+9fv4pIxn4tWznnwm0r/gQpiG1tFshTowAAAABJRU5ErkJggg==");
954
- }
955
- .icon-toggler-expanded:before,
956
- .icon-toggler-expanded:after {
957
- background-position: top left;
958
- }
959
- .icon-toggler-collapsed:before,
960
- .icon-toggler-collapsed:after {
961
- background-position: bottom left;
962
- }
963
- .modal {
964
- padding: 20px;
965
- border-radius: 3px;
966
- background-color: white;
967
- max-width: 700px;
968
- -webkit-box-sizing: border-box;
969
- -moz-box-sizing: border-box;
970
- box-sizing: border-box;
971
- width: 80% !important;
972
- top: 50% !important;
973
- -webkit-transform: translate(-50%, -50%) !important;
974
- -moz-transform: translate(-50%, -50%) !important;
975
- -ms-transform: translate(-50%, -50%) !important;
976
- -o-transform: translate(-50%, -50%) !important;
977
- transform: translate(-50%, -50%) !important;
978
- }
979
- .modal-close {
980
- -webkit-border-radius: 100px;
981
- -webkit-background-clip: padding-box;
982
- -moz-border-radius: 100px;
983
- -moz-background-clip: padding;
984
- border-radius: 100px;
985
- background-clip: padding-box;
986
- cursor: pointer;
987
- height: 18px;
988
- width: 18px;
989
- position: absolute;
990
- top: 10px;
991
- right: 10px;
992
- font-size: 17px;
993
- text-align: center;
994
- line-height: 19px;
995
- background: #cccccc;
996
- }
997
- main .grid-container,
998
- header .grid-container,
999
- .navigation-a > div,
1000
- footer > div {
1001
- max-width: 968px;
1002
- }
1003
- .header-a {
1004
- margin-top: 30px;
1005
- }
1006
- .footer-a {
1007
- border-top: 1px solid #D9D9D9;
1008
- }
1009
- .adjoined-top {
1010
- background-color: #0287D0;
1011
- color: #fff;
1012
- }
1013
- .adjoined-top .content h1,
1014
- .adjoined-top .content h2,
1015
- .adjoined-top .content h3,
1016
- .adjoined-top .content h4,
1017
- .adjoined-top .content h5 {
1018
- color: #fff;
1019
- }
1020
- .adjoined-top .content p {
1021
- font-size: 18px;
1022
- font-size: 1.125rem;
1023
- line-height: 32.4px;
1024
- line-height: 2.02rem;
1025
- font-weight: 100;
1026
- }
1027
- .adjoined-top .content p a {
1028
- text-decoration: none;
1029
- border-bottom: 1px dotted #fff;
1030
- color: inherit;
1031
- }
1032
- .adjoined-top .content p a:hover {
1033
- color: #e6e6e6;
1034
- }
1035
- .adjoined-top .content button {
1036
- color: #fff;
1037
- }
1038
- .adjoined-top .content strong {
1039
- color: #fff;
1040
- }
1041
- .adjoined-top .content code {
1042
- font-size: inherit;
1043
- color: #0287D0;
1044
- }
1045
- .adjoined-bottom {
1046
- position: relative;
1047
- }
1048
- .adjoined-bottom:before {
1049
- z-index: -1;
1050
- content: '';
1051
- background: #0287D0;
1052
- position: absolute;
1053
- top: 0;
1054
- left: 0;
1055
- right: 0;
1056
- height: 50%;
1057
- }
1058
- main .grid-container,
1059
- header .grid-container,
1060
- .navigation-a > div,
1061
- footer > div {
1062
- max-width: 1052px;
1063
- }
1064
- main .grid-container.freed-width {
1065
- max-width: none;
1066
- }
1067
- .switch {
1068
- background: #027dc1;
1069
- float: right;
1070
- overflow: visible;
1071
- }
1072
- .switch .balloon-a {
1073
- position: absolute;
1074
- top: -40px;
1075
- right: 50%;
1076
- margin-right: -15px;
1077
- background: #FFEFC1;
1078
- border-bottom-color: #DCDCA4;
1079
- }
1080
- .switch .balloon-a:before {
1081
- border-color: #FFEFC1 transparent transparent transparent;
1082
- }
1083
- #toolbar .editors-container {
1084
- overflow: hidden;
1085
- height: 0;
1086
- transition: height 200ms;
1087
- }
1088
- #toolbar .editors-container.active {
1089
- height: auto;
1090
- }
1091
- #main #editor {
1092
- background: #FFF;
1093
- padding: 2% 4%;
1094
- border: dashed 5px #0287D0;
1095
- }
1096
- #main .adjoined-top:before {
1097
- height: 335px;
1098
- }
1099
- #toolbar .adjoined-top:before {
1100
- height: 219px;
1101
- }
1102
- #toolbar .adjoined-top .grid-container-nested {
1103
- height: 147px;
1104
- }
1105
- .content .grid-switch-magic {
1106
- margin: 3.5em 0 0;
1107
- }
1108
- #info-box {
1109
- padding-bottom: 0;
1110
- }
1111
- #info-box > div {
1112
- width: 100%;
1113
- text-align: right;
1114
- }
1115
- #info-box > div .toggler {
1116
- padding-right: 0;
1117
- }
1118
- #info-box > div .toggler:hover {
1119
- background: transparent;
1120
- color: #000;
1121
- }
1122
- #info-box > div .toggler:hover > label {
1123
- text-decoration: underline;
1124
- }
1125
- #info-box > div h2 {
1126
- float: left;
1127
- margin-top: 0;
1128
- }
1129
- #info-box > div#instructions-container {
1130
- text-align: left;
1131
- }
1132
- #toolbarModifierWrapper {
1133
- overflow: hidden;
1134
- height: 0;
1135
- opacity: 0;
1136
- transition: height 200ms;
1137
- }
1138
- #toolbarModifierWrapper.active {
1139
- height: auto;
1140
- opacity: 1;
1141
- }
1142
- header {
1143
- overflow: visible;
1144
- }
1145
- header div.grid-container {
1146
- overflow: visible;
1147
- }
1148
- header .navigation-b {
1149
- overflow: visible;
1150
- }
1151
- header .navigation-b ul {
1152
- overflow: visible;
1153
- }
1154
- header .navigation-b a {
1155
- position: relative;
1156
- }
1157
- header .balloon-a {
1158
- position: absolute;
1159
- top: 48px;
1160
- left: 50%;
1161
- margin-left: -35px;
1162
- }
1163
- @media (max-width: 1140px) {
1164
- header .balloon-a {
1165
- left: auto;
1166
- margin-left: auto;
1167
- right: 50%;
1168
- margin-right: -35px;
1169
- }
1170
- header .balloon-a:before {
1171
- left: auto;
1172
- right: 22px;
1173
- }
1174
- }
1175
- @media (max-width: 900px) {
1176
- header .balloon-a {
1177
- display: none;
1178
- }
1179
- }
1180
- header .header-a-logo img {
1181
- width: 160px;
1182
- height: 60px;
1183
- }
1184
-
1185
- #toolbar .cke_toolbar {
1186
- pointer-events: none;
1187
- -webkit-user-select: none;
1188
- -moz-user-select: none;
1189
- -ms-user-select: none;
1190
- user-select: none;
1191
- cursor: default;
1192
- }
1193
- .some-toolbar-active .cke_toolbar {
1194
- zoom: 1;
1195
- filter: alpha(opacity=50);
1196
- -webkit-opacity: 0.5;
1197
- -moz-opacity: 0.5;
1198
- opacity: 0.5;
1199
- }
1200
- .cke_toolbar.active {
1201
- position: relative;
1202
- zoom: 1;
1203
- filter: alpha(opacity=100);
1204
- -webkit-opacity: 1;
1205
- -moz-opacity: 1;
1206
- opacity: 1;
1207
- }
1208
- .cke_toolbar.active:after {
1209
- content: '';
1210
- display: block;
1211
- position: absolute;
1212
- top: 0;
1213
- right: 6px;
1214
- bottom: 5px;
1215
- left: 0;
1216
- -webkit-border-radius: 5px;
1217
- -webkit-background-clip: padding-box;
1218
- -moz-border-radius: 5px;
1219
- -moz-background-clip: padding;
1220
- border-radius: 5px;
1221
- background-clip: padding-box;
1222
- -webkit-box-shadow: 0px 0px 15px 3px #fff4b0;
1223
- -moz-box-shadow: 0px 0px 15px 3px #fff4b0;
1224
- box-shadow: 0px 0px 15px 3px #fff4b0;
1225
- }
1226
- .cke_toolbar.active .cke_toolgroup {
1227
- -webkit-box-shadow: none;
1228
- -moz-box-shadow: none;
1229
- box-shadow: none;
1230
- border-color: #e3c300;
1231
- }
1232
- .cke_toolbar.active .cke_combo,
1233
- .cke_toolbar.active .cke_toolgroup {
1234
- position: relative;
1235
- z-index: 2;
1236
- }
1237
- .cke_toolbar.active .cke_combo_button {
1238
- -webkit-box-shadow: none;
1239
- -moz-box-shadow: none;
1240
- box-shadow: none;
1241
- }
1242
- .unselectable {
1243
- -webkit-user-select: none;
1244
- -moz-user-select: none;
1245
- -ms-user-select: none;
1246
- user-select: none;
1247
- }
1248
- .toolbar {
1249
- padding: 5px 0;
1250
- margin-bottom: 2.4em;
1251
- overflow: hidden;
1252
- background: #fff;
1253
- }
1254
- .toolbar button.button-a.cke_button {
1255
- cursor: pointer;
1256
- display: inline-block;
1257
- padding: 4px 6px;
1258
- outline: 0;
1259
- border: 1px solid #a6a6a6;
1260
- }
1261
- .toolbar button.button-a.hidden {
1262
- display: none;
1263
- }
1264
- .toolbar button.button-a.left {
1265
- float: left;
1266
- margin-right: 8px;
1267
- }
1268
- .toolbar button.button-a.right {
1269
- float: right;
1270
- margin-left: 8px;
1271
- }
1272
- .toolbar button.button-a .highlight {
1273
- color: #ffefc1;
1274
- }
1275
- .configContainer.hidden,
1276
- .toolbarModifier.hidden,
1277
- .toolbarModifier-hints.hidden {
1278
- display: none;
1279
- }
1280
- .toolbarModifier :focus,
1281
- .toolbar button:focus,
1282
- .configContainer textarea.configCode:focus {
1283
- outline: none;
1284
- }
1285
- div.toolbarModifier {
1286
- padding: 0;
1287
- overflow: hidden;
1288
- width: 100%;
1289
- position: relative;
1290
- display: table;
1291
- border-collapse: collapse;
1292
- }
1293
- div.toolbarModifier ::-moz-focus-inner {
1294
- border: 0;
1295
- }
1296
- div.toolbarModifier .empty {
1297
- display: none;
1298
- }
1299
- div.toolbarModifier.empty-visible .empty {
1300
- display: table-row;
1301
- zoom: 1;
1302
- filter: alpha(opacity=60);
1303
- -webkit-opacity: 0.6;
1304
- -moz-opacity: 0.6;
1305
- opacity: 0.6;
1306
- }
1307
- div.toolbarModifier .empty > p {
1308
- line-height: 31px;
1309
- }
1310
- div.toolbarModifier > ul {
1311
- padding: 0;
1312
- margin: 0;
1313
- border-top: 1px solid #ccc;
1314
- width: 100%;
1315
- }
1316
- div.toolbarModifier > ul[data-type="table-header"] {
1317
- display: table-header-group;
1318
- }
1319
- div.toolbarModifier > ul[data-type="table-body"] {
1320
- display: table-row-group;
1321
- }
1322
- div.toolbarModifier > ul p {
1323
- padding: 0;
1324
- margin: 0;
1325
- }
1326
- div.toolbarModifier > ul > li {
1327
- display: table-row;
1328
- }
1329
- div.toolbarModifier > ul > li[data-type="header"] {
1330
- font-weight: bold;
1331
- user-select: none;
1332
- cursor: default;
1333
- }
1334
- div.toolbarModifier > ul > li[data-type="group"],
1335
- div.toolbarModifier > ul > li[data-type="separator"] {
1336
- border-bottom: 1px solid #ccc;
1337
- }
1338
- div.toolbarModifier > ul > li[data-type="subgroup"] {
1339
- border-top: 1px solid #eee;
1340
- }
1341
- div.toolbarModifier > ul > li[data-type="subgroup"]:first-child {
1342
- border-top: none;
1343
- }
1344
- div.toolbarModifier > ul > li[data-type="group"].active,
1345
- div.toolbarModifier > ul > li[data-type="group"]:hover,
1346
- div.toolbarModifier > ul > li[data-type="separator"].active,
1347
- div.toolbarModifier > ul > li[data-type="separator"]:hover {
1348
- overflow: hidden;
1349
- z-index: 2;
1350
- }
1351
- div.toolbarModifier > ul > li[data-type="group"].active,
1352
- div.toolbarModifier > ul > li[data-type="separator"].active,
1353
- div.toolbarModifier > ul > li[data-type="group"].active:hover,
1354
- div.toolbarModifier > ul > li[data-type="separator"].active:hover {
1355
- background: #f0fafb;
1356
- }
1357
- div.toolbarModifier > ul > li[data-type="group"]:hover,
1358
- div.toolbarModifier > ul > li[data-type="separator"]:hover {
1359
- background: #fffbe3;
1360
- }
1361
- div.toolbarModifier > ul > li[data-type="separator"] {
1362
- background: #f5f5f5;
1363
- }
1364
- div.toolbarModifier > ul > li[data-type="separator"]:after {
1365
- content: '';
1366
- width: 100%;
1367
- }
1368
- div.toolbarModifier > ul > li[data-type="separator"] > p {
1369
- padding: 2px 5px;
1370
- }
1371
- div.toolbarModifier > ul > li > p,
1372
- div.toolbarModifier > ul > li > ul {
1373
- display: table-cell;
1374
- vertical-align: middle;
1375
- }
1376
- div.toolbarModifier > ul > li p {
1377
- padding-left: 5px;
1378
- min-width: 200px;
1379
- }
1380
- div.toolbarModifier > ul > li p span {
1381
- white-space: nowrap;
1382
- cursor: default;
1383
- }
1384
- div.toolbarModifier > ul > li p span button {
1385
- font-size: 12.666px;
1386
- margin-right: 5px;
1387
- cursor: pointer;
1388
- background: #fff;
1389
- -webkit-border-radius: 5px;
1390
- -webkit-background-clip: padding-box;
1391
- -moz-border-radius: 5px;
1392
- -moz-background-clip: padding;
1393
- border-radius: 5px;
1394
- background-clip: padding-box;
1395
- border: 1px solid #bbb;
1396
- padding: 0 7px;
1397
- line-height: 12px;
1398
- height: 20px;
1399
- }
1400
- div.toolbarModifier > ul > li p span button:not(.disabled):hover,
1401
- div.toolbarModifier > ul > li p span button:not(.disabled):focus {
1402
- color: #fff;
1403
- background-color: #454545;
1404
- border-color: transparent;
1405
- }
1406
- div.toolbarModifier > ul > li p span button.move.disabled {
1407
- cursor: default;
1408
- zoom: 1;
1409
- filter: alpha(opacity=20);
1410
- -webkit-opacity: 0.2;
1411
- -moz-opacity: 0.2;
1412
- opacity: 0.2;
1413
- }
1414
- div.toolbarModifier > ul > li ul {
1415
- border-collapse: collapse;
1416
- padding: 0;
1417
- width: 100%;
1418
- }
1419
- div.toolbarModifier > ul > li ul li {
1420
- display: table-row;
1421
- list-style-type: none;
1422
- line-height: 1;
1423
- }
1424
- div.toolbarModifier > ul > li ul li[data-type="subgroup"] {
1425
- border-top: 1px solid #ddd;
1426
- }
1427
- div.toolbarModifier > ul > li ul li[data-type="subgroup"]:first-child {
1428
- border-top: 0;
1429
- }
1430
- div.toolbarModifier > ul > li ul li[data-type="subgroup"] [data-type="button"] {
1431
- -webkit-border-radius: 3px;
1432
- -webkit-background-clip: padding-box;
1433
- -moz-border-radius: 3px;
1434
- -moz-background-clip: padding;
1435
- border-radius: 3px;
1436
- background-clip: padding-box;
1437
- padding: 0 2px;
1438
- }
1439
- div.toolbarModifier > ul > li ul li[data-type="subgroup"] [data-type="button"]:focus {
1440
- background: rgba(0, 0, 0, 0.04);
1441
- }
1442
- div.toolbarModifier > ul > li ul li[data-type="subgroup"] [data-type="button"] input {
1443
- vertical-align: middle;
1444
- }
1445
- div.toolbarModifier > ul > li ul li > p,
1446
- div.toolbarModifier > ul > li ul li > ul {
1447
- display: table-cell;
1448
- vertical-align: middle;
1449
- }
1450
- div.toolbarModifier > ul > li ul li ul {
1451
- padding: 0;
1452
- }
1453
- div.toolbarModifier > ul > li ul li ul li {
1454
- padding: 0;
1455
- display: inline-block;
1456
- cursor: pointer;
1457
- margin: 2px 5px 2px 0;
1458
- }
1459
- div.toolbarModifier > ul > li ul li ul li .cke_combo_text {
1460
- cursor: pointer;
1461
- white-space: nowrap;
1462
- }
1463
- div.toolbarModifier > ul > li ul li ul li .cke_toolgroup,
1464
- div.toolbarModifier > ul > li ul li ul li .cke_combo_button {
1465
- cursor: pointer;
1466
- margin: 0;
1467
- vertical-align: middle;
1468
- border: 1px solid #ddd;
1469
- font-size: 11.41px;
1470
- font-size: 0.713rem;
1471
- line-height: 20.54px;
1472
- line-height: 1.28rem;
1473
- }
1474
- div.toolbarModifier > .codemirror-wrapper {
1475
- overflow-y: auto;
1476
- }
1477
- div.toolbarModifier-hints {
1478
- float: right;
1479
- width: 350px;
1480
- min-width: 150px;
1481
- overflow-y: auto;
1482
- margin-left: 1.5em;
1483
- }
1484
- div.toolbarModifier-hints h3 {
1485
- font-size: 18.08px;
1486
- font-size: 1.13rem;
1487
- line-height: 32.54px;
1488
- line-height: 2.03rem;
1489
- padding: 0.36em 1.5em;
1490
- background: #f5f5f5;
1491
- border-bottom: 1px solid #ddd;
1492
- margin-top: 0;
1493
- margin-bottom: 1.2em;
1494
- }
1495
- div.toolbarModifier-hints dl {
1496
- margin-bottom: 1.2em;
1497
- overflow: hidden;
1498
- }
1499
- div.toolbarModifier-hints dl .list-header {
1500
- font-weight: bold;
1501
- border: 0;
1502
- padding-bottom: 0.6em;
1503
- }
1504
- div.toolbarModifier-hints dl > p {
1505
- text-align: center;
1506
- }
1507
- div.toolbarModifier-hints dl dt {
1508
- float: left;
1509
- width: 9em;
1510
- clear: both;
1511
- text-align: right;
1512
- border-top: 1px solid #ddd;
1513
- padding-left: 1.5em;
1514
- padding-right: .1em;
1515
- -webkit-box-sizing: border-box;
1516
- -moz-box-sizing: border-box;
1517
- box-sizing: border-box;
1518
- }
1519
- div.toolbarModifier-hints dl dt code {
1520
- background: none;
1521
- border: none;
1522
- vertical-align: middle;
1523
- }
1524
- div.toolbarModifier-hints dl dd {
1525
- margin-left: 10em;
1526
- clear: right;
1527
- padding-right: 1.5em;
1528
- }
1529
- div.toolbarModifier-hints dl dd code {
1530
- line-height: 2.2em;
1531
- }
1532
- div.toolbarModifier-hints dl dd:after {
1533
- content: '\00a0';
1534
- display: block;
1535
- clear: left;
1536
- float: right;
1537
- height: 0;
1538
- width: 0;
1539
- }
1540
- .toolbarModifier-hints,
1541
- .configContainer textarea.configCode,
1542
- .CodeMirror {
1543
- -webkit-border-radius: 3px;
1544
- -webkit-background-clip: padding-box;
1545
- -moz-border-radius: 3px;
1546
- -moz-background-clip: padding;
1547
- border-radius: 3px;
1548
- background-clip: padding-box;
1549
- border: 1px solid #ccc;
1550
- font-size: 13.01px;
1551
- font-size: 0.813rem;
1552
- line-height: 23.42px;
1553
- line-height: 1.46rem;
1554
- }
1555
- .configContainer textarea.configCode,
1556
- .CodeMirror pre,
1557
- .CodeMirror-linenumber {
1558
- font-size: 13.01px;
1559
- font-size: 0.813rem;
1560
- line-height: 23.42px;
1561
- line-height: 1.46rem;
1562
- font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
1563
- }
1564
- .CodeMirror pre {
1565
- border: none;
1566
- padding: 0;
1567
- margin: 0;
1568
- }
1569
- .configContainer textarea.configCode {
1570
- -webkit-box-sizing: border-box;
1571
- -moz-box-sizing: border-box;
1572
- box-sizing: border-box;
1573
- color: #575757;
1574
- padding: 10px;
1575
- width: 100%;
1576
- min-height: 500px;
1577
- margin: 0;
1578
- resize: none;
1579
- outline: none;
1580
- -moz-tab-size: 4;
1581
- tab-size: 4;
1582
- white-space: pre;
1583
- word-wrap: normal;
1584
- overflow: auto;
1585
- }
1586
- .CodeMirror-hints.toolbar-modifier {
1587
- padding: 0;
1588
- color: #575757;
1589
- font-size: 14px;
1590
- font-size: 0.875rem;
1591
- line-height: 25.2px;
1592
- line-height: 1.57rem;
1593
- font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
1594
- }
1595
- .CodeMirror-hints.toolbar-modifier .CodeMirror-hint-active {
1596
- color: #575757;
1597
- background: #f0fafb;
1598
- }
1599
- .CodeMirror-hints.toolbar-modifier > li:hover {
1600
- background: #fffbe3;
1601
- }
1602
- /* Text modifier */
1603
- #toolbarModifierWrapper {
1604
- margin-bottom: 1.2em;
1605
- }
1606
- #toolbarModifierWrapper .invalid .CodeMirror {
1607
- background: #fff8f8;
1608
- border-color: red;
1609
- }
1610
- #toolbarModifierWrapper .CodeMirror {
1611
- height: auto;
1612
- padding: 0 0.6em;
1613
- }
1614
- .staticContainer {
1615
- position: fixed;
1616
- top: 0;
1617
- width: 100%;
1618
- z-index: 10;
1619
- }
1620
- .staticContainer > .grid-container {
1621
- max-width: 1052px;
1622
- }
1623
- .staticContainer > .grid-container .inner {
1624
- background: #fff;
1625
- }
1626
- .staticContainer > .grid-container .inner .toolbar {
1627
- margin-bottom: 0;
1628
- }
1629
- #help {
1630
- position: relative;
1631
- top: -15px;
1632
- left: -5px;
1633
- }
1634
- #help-content {
1635
- display: none;
1636
- }
1637
- /*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL25vZGVfbW9kdWxlcy9ja3NvdXJjZS1zYW1wbGVzLWZyYW1ld29yay9jb21wb25lbnRzL2dsb2JhbC9nbG9iYWwubGVzcyIsIi4uLy4uL25vZGVfbW9kdWxlcy9ja3NvdXJjZS1zYW1wbGVzLWZyYW1ld29yay9jb21wb25lbnRzL2NvcmUvY29yZS5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvZ3JpZC9ncmlkLmxlc3MiLCIuLi8uLi9ub2RlX21vZHVsZXMvbGVzc2hhdC9sZXNzaGF0Lmxlc3MiLCIuLi8uLi9ub2RlX21vZHVsZXMvY2tzb3VyY2Utc2FtcGxlcy1mcmFtZXdvcmsvY29tcG9uZW50cy9oZWFkZXItYS9oZWFkZXItYS5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvbmF2aWdhdGlvbi1hL25hdmlnYXRpb24tYS5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvbmF2aWdhdGlvbi1iL25hdmlnYXRpb24tYi5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvZm9vdGVyLWEvZm9vdGVyLWEubGVzcyIsIi4uLy4uL25vZGVfbW9kdWxlcy9ja3NvdXJjZS1zYW1wbGVzLWZyYW1ld29yay9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvYnV0dG9uLWEvYnV0dG9uLWEubGVzcyIsIi4uLy4uL25vZGVfbW9kdWxlcy9ja3NvdXJjZS1zYW1wbGVzLWZyYW1ld29yay9jb21wb25lbnRzL2JhbGxvb24tYS9iYWxsb29uLWEubGVzcyIsIi4uLy4uL25vZGVfbW9kdWxlcy9ja3NvdXJjZS1zYW1wbGVzLWZyYW1ld29yay9jb21wb25lbnRzL2ljb24vaWNvbi5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvc3dpdGNoL3N3aXRjaC5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvdG9nZ2xlci90b2dnbGVyLmxlc3MiLCIuLi8uLi9ub2RlX21vZHVsZXMvY2tzb3VyY2Utc2FtcGxlcy1mcmFtZXdvcmsvY29tcG9uZW50cy9tb2RhbC9tb2RhbC5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvYmFzaWNzYW1wbGUvY29yZS5sZXNzIiwiLi4vLi4vbm9kZV9tb2R1bGVzL2Nrc291cmNlLXNhbXBsZXMtZnJhbWV3b3JrL2NvbXBvbmVudHMvYmFzaWNzYW1wbGUvYWRqb2luZWQubGVzcyIsIi4uLy4uL3NhbXBsZXMvbGVzcy9jdXN0b20ubGVzcyIsIi4uLy4uL3NhbXBsZXMvdG9vbGJhcmNvbmZpZ3VyYXRvci9sZXNzL3Rvb2xiYXJtb2RpZmllci5sZXNzIiwiLi4vLi4vc2FtcGxlcy90b29sYmFyY29uZmlndXJhdG9yL2xlc3MvYmFzZS5sZXNzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFtREMsUUFBZ0M7RUF5Q2hDO0lBQ0Msd0JBQUE7OztBQzFGRjtBQUFTO0FBQU87QUFBUztBQUFZO0FBQVE7QUFBUTtBQUFRO0FBQVE7QUFBTTtBQUFNO0FBQUs7RUFDckYsY0FBQTs7QUFHRDtBQUFNO0VBQ0wsU0FBQTtFQUNBLFVBQUE7RUFDQSx3QkROK0IsdUNDTS9CO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBOztBQ0hBLFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxVQUFBOztBQURELFlBQVk7RUFDWCxXQUFBOztBRnlDRCxRQUFnQztFRWpDaEM7RUFLQyxZQUFZO0VBQVosWUFBWTtFQUFaLFlBQVk7RUFBWixZQUFZO0VBQVosWUFBWTtFQUFaLFlBQVk7RUFBWixZQUFZO0VBQVosWUFBWTtFQUFaLFlBQVk7SUFKWixXQUFBOzs7QUFhRixDQUFDO0VDK1FDLDhCQUFBO0VBQ0EsMkJBQUE7RUFDQSxzQkFBQTtFRC9RRCxnQkFBQTtFQUNBLGlCQUFBO0VBQ0EsV0FBQTs7QUFJQSxDQURBLHFCQUNDO0FBQUQsZUFBQztBQUFRLENBRFQscUJBQ1U7QUFBRCxlQUFDO0VBQ1QsU0FBUyxFQUFUO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLFFBQUE7RUFDQSxTQUFBOztBQUtELENBREEscUJBQ0M7QUFBRCxlQUFDO0VBQ0EsV0FBQTs7QUFJRjtFQ3FQRSw4QkFBQTtFQUNBLDJCQUFBO0VBQ0Esc0JBQUE7RURyUEQsaUJBQUE7RUFDQSxrQkFBQTs7QUFLQyxzQkFERCxFQUFDLHFCQUNDO0VBQ0EsZUFBQTs7QUFHRCxzQkFMRCxFQUFDLHFCQUtDO0VBQ0EsZ0JBQUE7O0FGcEJGLFFBQWdDO0VFMEI5QixzQkFERCxFQUFDLHFCQUNDO0lBQ0EsZ0JBQUE7O0VBR0Qsc0JBTEQsRUFBQyxxQkFLQztJQUNBLGlCQUFBOzs7QUU3RUo7RUFDQyxpQkFBQTtFQUdBLGdCQUFBOztBQUpELFNBTUM7RUFDQyxnQkFBQTs7QUp1Q0QsUUFBZ0M7RUE2Q2pDLFNJckZDO0lBSUUsa0JBQUE7OztBQVZILFNBTUMsZUFPQztFQUNDLG1CQUFBOztBQ1ZIO0VBQ0MsWUFBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7RUFDQSxPQUFBO0VBQ0EsUUFBQTtFQUNBLE1BQUE7RUFDQSxVQUFBO0VBQ0EsZ0JBQUE7O0FMa0NBLFFBQWdDO0VBNkNqQztJSzVFRSxrQkFBQTs7O0FBWEYsYUFjQztFQUNDLGdCQUFBO0VBQ0EsU0FBQTtFQUNBLGdCQUFBOztBQWpCRixhQWNDLEdBS0M7QUFuQkYsYUFjQyxHQUtLLEdBQUc7RUFDTixxQkFBQTs7QUxzQkYsUUFBZ0M7RUE2Q2pDLGFLekVDO0lBVUUsV0FBQTtJQUNBLHVCQUFBO0lBQ0EsbUJBQUE7SUFDQSxxQkFBQTtJQUNBLFdBQUE7O0VBRUEsYUFoQkYsR0FnQkc7RUFBUyxhQWhCWixHQWdCYTtJQUNWLGFBQUE7OztBQUtELGFBdEJGLEdBcUJFLGFBQ0M7RUFDQSxnQkFBQTs7QUxLSCxRQUFnQztFQTZDakMsYUt6RUMsR0FxQkUsYUFDQztJQUlDLGdCQUFBOzs7QUFJRixhQTlCRixHQXFCRSxhQVNDO0VBQ0EsaUJBQUE7O0FMSEgsUUFBZ0M7RUE2Q2pDLGFLekVDLEdBcUJFLGFBU0M7SUFJQyxrQkFBQTs7O0FBTUYsYUF4Q0YsR0F1Q0MsR0FDRztFQUNELGlCQUFBOztBQXZESixhQWNDLEdBdUNDLEdBS0M7RUx4Q0YsZUFBQTtFQUNBLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxvQkFBQTtFS3VDRyxpQkFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0VBQ0EsaUJBQUE7RUFDQSxxQkFBQTtFQUNBLHlCQUFBOztBQUVBLGFBckRILEdBdUNDLEdBS0MsRUFTRTtFQUNBLGVBQUE7RUFDQSxXQUFBOztBQVFKLHlCQUFDO0FBQVMseUJBQUM7RUFDVixzQkFBa0IscXJCQUFsQjs7QUNwRkY7RUFDQyxpQkFBQTtFQUNBLGdCQUFBO0VBQ0EsaUJBQUE7O0FONkNBLFFBQWdDO0VBNkNqQztJTXZGRSxrQkFBQTtJQUNBLGdCQUFBO0lBR0EsVUFBQTs7O0FBVkYsYUFhQztFQUNDLFVBQUE7RUFDQSxnQkFBQTtFQUNBLFNBQUE7RUFDQSxpQkFBQTs7QUFqQkYsYUFhQyxHQU1DO0FBbkJGLGFBYUMsR0FNSyxHQUFHO0VBQ04scUJBQUE7O0FONEJGLFFBQWdDO0VBNkNqQyxhTWhGQztJQVdFLGNBQUE7SUFDQSxXQUFBO0lBQ0EscUJBQUE7OztBTnNCRixRQUFnQztFQTZDakMsYU1oRkMsR0FnQkM7SUFFRSxrQkFBQTs7O0FBR0QsYUFyQkYsR0FnQkMsR0FLRztFQUNELGlCQUFBOztBTmFILFFBQWdDO0VBNkNqQyxhTWhGQyxHQWdCQyxHQUtHO0lBSUEsY0FBQTs7O0FBdENMLGFBYUMsR0FnQkMsR0FhQztFSGtRRCw4QkFBQTtFQUNBLDJCQUFBO0VBQ0Esc0JBQUE7RUdsUUUseUJBQUE7RUFDQSxxQkFBQTtFQUNBLGFBQUE7O0FORUgsUUFBZ0M7RUE2Q2pDLGFNaEZDLEdBZ0JDLEdBYUM7SUFPRSxXQUFBO0lIK05ILHdCQUFBO0lBQWlDLG9DQUFBO0lBQ2pDLHFCQUFBO0lBQThCLDZCQUFBO0lBQzlCLGdCQUFBO0lBQXlCLDRCQUFBOzs7QUlsUjNCO0VQd0JDLGVBQUE7RUFDQSxvQkFBQTtFQUNBLG1CQUFBO0VBQ0Esb0JBQUE7RU94QkEsbUJBQUE7RUFDQSxzQkFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTs7QUFORCxTUDRFQztFQUNDLGNBQUE7RUFDQSxxQkFBQTtFQUVBLGlDQUFBOztBQUVBLFNBTkQsRUFNRTtFQUNBLGNBQUE7O0FPbkZILFNBUUM7RUFDQyxTQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTs7QUNYRjtFUndCQyxlQUFBO0VBQ0EsbUJBQUE7RUFDQSxtQkFBQTtFQUNBLG9CQUFBO0VRekJBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxxQkFBQTs7QUFKRCxRQVNDO0VBQ0MsZ0JBQUE7O0FBVkYsUUFhQztBQWJELFFBYUs7QUFiTCxRQWFTO0FBYlQsUUFhYztBQWJkLFFBYTBCLFNBQVEsSUFBSTtBQWJ0QyxRQWF3RDtFQUN0RCxpQkFBQTs7QUFkRixRQWlCQztBQWpCRCxRQWlCTztFTCtQTCwwQkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx1QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixrQkFBQTtFQUF5Qiw0QkFBQTtFSy9QekIsZ0JBQUE7O0FBbkJGLFFBc0JDO0FBdEJELFFBc0JNO0FBdEJOLFFBc0JZO0FBdEJaLFFBc0JpQjtFQUNmLG1CQUFBOztBQXZCRixRQTBCQztBQTFCRCxRQTBCYTtFQUNYLGdCQUFBO0VBQ0EsOEJBQUE7RUFDQSxxQkFBQTs7QUE3QkYsUUFvQ0MsRVJ3Q0E7QVE1RUQsUUFvQ0ksR1J3Q0g7QVE1RUQsUUFvQ1EsR1J3Q1A7QVE1RUQsUUFvQ1ksV1J3Q1g7QVE1RUQsUUFvQ3dCLEdSd0N2QjtBUTVFRCxRQW9DNEIsR1J3QzNCO0FRNUVELFFBb0NnQyxHUndDL0I7QVE1RUQsUUFvQ29DLEdSd0NuQztBUTVFRCxRQW9Dd0MsR1J3Q3ZDO0VBQ0MsY0FBQTtFQUNBLHFCQUFBO0VBRUEsaUNBQUE7O0FBRUEsUVE5Q0QsRVJ3Q0EsRUFNRTtBQUFELFFROUNFLEdSd0NILEVBTUU7QUFBRCxRUTlDTSxHUndDUCxFQU1FO0FBQUQsUVE5Q1UsV1J3Q1gsRUFNRTtBQUFELFFROUNzQixHUndDdkIsRUFNRTtBQUFELFFROUMwQixHUndDM0IsRUFNRTtBQUFELFFROUM4QixHUndDL0IsRUFNRTtBQUFELFFROUNrQyxHUndDbkMsRUFNRTtBQUFELFFROUNzQyxHUndDdkMsRUFNRTtFQUNBLGNBQUE7O0FRbkZILFFBd0NDO0FBeENELFFBd0NLO0FBeENMLFFBd0NTO0FBeENULFFBd0NhO0FBeENiLFFBd0NpQjtFQUNmLFdBQUE7RUFDQSxnQkFBQTs7QUExQ0YsUUF3Q0MsR0FLQztBQTdDRixRQXdDSyxHQUtIO0FBN0NGLFFBd0NTLEdBS1A7QUE3Q0YsUUF3Q2EsR0FLWDtBQTdDRixRQXdDaUIsR0FLZjtBQTdDRixRQXdDQyxHQUtPO0FBN0NSLFFBd0NLLEdBS0c7QUE3Q1IsUUF3Q1MsR0FLRDtBQTdDUixRQXdDYSxHQUtMO0FBN0NSLFFBd0NpQixHQUtUO0VBQ0wsa0JBQUE7O0FBOUNILFFBd0NDLEdBVUMsRUFBQztBQWxESCxRQXdDSyxHQVVILEVBQUM7QUFsREgsUUF3Q1MsR0FVUCxFQUFDO0FBbERILFFBd0NhLEdBVVgsRUFBQztBQWxESCxRQXdDaUIsR0FVZixFQUFDO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtFQUNBLFVBQUE7RUFDQSxTQUFBOztBQUdELFFBakJELEdBaUJFLE1BQ0EsRUFBQztBQURGLFFBakJHLEdBaUJGLE1BQ0EsRUFBQztBQURGLFFBakJPLEdBaUJOLE1BQ0EsRUFBQztBQURGLFFBakJXLEdBaUJWLE1BQ0EsRUFBQztBQURGLFFBakJlLEdBaUJkLE1BQ0EsRUFBQztFQUNBLFVBQUE7O0FBSUYsUUF2QkQsR0F1QkUsT0FDQTtBQURELFFBdkJHLEdBdUJGLE9BQ0E7QUFERCxRQXZCTyxHQXVCTixPQUNBO0FBREQsUUF2QlcsR0F1QlYsT0FDQTtBQURELFFBdkJlLEdBdUJkLE9BQ0E7RUx3REQsMERBQUE7RUFDQSx1REFBQTtFQUNBLHFEQUFBO0VBQ0Esa0RBQUE7RUt6REUsVUFBQTs7QUFsRUosUUF1RUM7QUF2RUQsUUF1RVE7QUF2RVIsUUF1RWdCLFNBQVEsSUFBSTtFTHlNMUIsMEJBQUE7RUFBaUMsb0NBQUE7RUFDakMsdUJBQUE7RUFBOEIsNkJBQUE7RUFDOUIsa0JBQUE7RUFBeUIsNEJBQUE7RUFtQnpCLHVEQUFBO0VBQ0Esb0RBQUE7RUFDQSwrQ0FBQTtFSzVOQSxhQUFBO0VBQ0EsY0FBQTtFQUVBLHlCQUFBO0VBQ0Esa0JBQUE7O0FBRUEsUUFWRCxNQVVFO0FBQUQsUUFWTSxPQVVMO0FBQUQsUUFWYyxTQUFRLElBQUksZ0JBVXpCO0VBQ0EscUJBQUE7RUFDQSxVQUFBO0VMa05ELHdFQUFBO0VBQ0EscUVBQUE7RUFDQSxnRUFBQTs7QUt2U0YsUUE4RkM7RUFDQyw4QkFBQTtFQUNBLGVBQUE7O0FBaEdGLFFBbUdDO0VBQ0Msa0JBQUE7RUFDQSw2QlJuRzJDLHdCUW1HM0M7RVI3RUQsZUFBQTtFQUNBLGVBQUE7RUFDQSxtQkFBQTtFQUNBLG1CQUFBOztBUTNCRCxRQXlHQztFQUNDLGtCQUFBOztBQTFHRixRQTZHQztFUnJGQSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLG9CQUFBO0VRb0ZDLG1CQUFBOztBQS9HRixRQWtIQztFUjFGQSxpQkFBQTtFQUNBLGlCQUFBO0VBQ0Esb0JBQUE7RUFDQSxvQkFBQTtFUXlGQyxpQkFBQTs7QUFwSEYsUUF1SEM7RVIvRkEsZUFBQTtFQUNBLGlCQUFBO0VBQ0EsbUJBQUE7RUFDQSxtQkFBQTtFUThGQyxnQkFBQTtFQUNBLGtCQUFBOztBQTFIRixRQTZIQztFUnJHQSxpQkFBQTtFQUNBLGlCQUFBO0VBQ0Esb0JBQUE7RUFDQSxvQkFBQTtFUW9HQyxnQkFBQTtFQUNBLGtCQUFBOztBQWhJRixRQW1JQztFUjNHQSxpQkFBQTtFQUNBLGlCQUFBO0VBQ0Esb0JBQUE7RUFDQSxvQkFBQTtFUTBHQyxnQkFBQTtFQUNBLGtCQUFBOztBQXRJRixRQXlJQztFQUNDLFNBQUE7RUFDQSw2QkFBQTtFQUNBLGVBQUE7O0FBSUEsUUFERCxNQUNFO0VBQ0EsYUFBQTtFQUNBLGtCQUFBOztBQUdELFFBTkQsTUFNRTtFTDJDRCwwQkFBQTtFQUNBLHVCQUFBO0VBQ0Esa0JBQUE7O0FLbE1GLFFBNEpDO0VScElBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0Esb0JBQUE7RVFtSUMsb0JSN0o4Qix1Q1E2SjlCO0VBQ0EsZ0JBQUE7RUxzSUEsdURBQUE7RUFDQSxvREFBQTtFQUNBLCtDQUFBOztBS3ZTRixRQXVLQyxFQUNDO0VBQ0Msc0JBQUE7O0FBektILFFBdUtDLEVBS0M7RUFDQyxjQUFBOztBQTdLSCxRQWlMQztFQUNDLFVBQUE7RUFDQSxTQUFBO0VBRUEsV0FBQTtFQUNBLGNBQUE7RUFDQSxnQkFBQTs7QUF2TEYsUUEwTEM7QUExTEQsUUEwTE07RVJsS0wsa0JBQUE7RUFDQSxtQkFBQTtFQUNBLG1CQUFBO0VBQ0Esb0JBQUE7RVFrS0MsZ0pBQUE7O0FBN0xGLFFBMExDLElBS0M7QUEvTEYsUUEwTE0sS0FLSjtFQUNDLFNBQUE7O0FBaE1ILFFBcU1DLElBQUk7RUFDSCxlQUFBO0VBQ0EsY0FBQTs7QUF2TUYsUUEwTUM7RUFDQyxXQUFBOztBQTNNRixRQThNQyxHQUVDO0FBaE5GLFFBOE1LLEdBRUg7QUFoTkYsUUE4TUMsR0FFSztBQWhOTixRQThNSyxHQUVDO0VBQ0gsZ0JBQUE7O0FBak5ILFFBOE1DLEdBTUM7QUFwTkYsUUE4TUssR0FNSDtFUjVMRCxlQUFBO0VBQ0EsbUJBQUE7RUFDQSxvQkFBQTtFQUNBLG9CQUFBOztBUTNCRCxRQTBOQyxTQUFRLElBQUk7RUFDWCxXQUFBOztBQTNORixRQThOQyxJQUFHO0VBQ0YsdUJBQUE7RUFDQSxhQUFBO0VBQ0EscUJBQUE7OztBQUdBLFFBTkQsSUFBRyxLQU1EO0VBQ0EsU0FBUyxNQUFUO0VBQ0EsaUJBQUE7O0FDak9ELElBREQsRUFDRTtBQUFELElBREUsT0FDRDtBQUFELElBRFUsTUFDVDtFTjJRRCwwQkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx1QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixrQkFBQTtFQUF5Qiw0QkFBQTtFSDFQMUIsZUFBQTtFQUNBLG1CQUFBO0VBQ0EsbUJBQUE7RUFDQSxvQkFBQTtFU25CRSxZQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLG1CQUFBO0VBQ0EscUJBQUE7RUFDQSxxQkFBQTtFQUNBLGVBQUE7RUFDQSxTQUFBO0VBQ0Esc0JBQUE7RUFJQSxhQUFBO0VBR0EsdUJBQUE7O0FBRUEsSUF2QkYsRUFDRSxTQXNCQztBQUFELElBdkJDLE9BQ0QsU0FzQkM7QUFBRCxJQXZCUyxNQUNULFNBc0JDO0VBQ0Esa0JBQUE7O0FBR0QsSUEzQkYsRUFDRSxTQTBCQztBQUFELElBM0JDLE9BQ0QsU0EwQkM7QUFBRCxJQTNCUyxNQUNULFNBMEJDO0VBQ0EsbUJBQUE7O0FBb0JELElBaERGLEVBQ0UsU0ErQ0M7QUFBRCxJQWhEQyxPQUNELFNBK0NDO0FBQUQsSUFoRFMsTUFDVCxTQStDQztFTjRORiw0QkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx5QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixvQkFBQTtFQUF5Qiw0QkFBQTtFTTdPdkIsV0FBQTtFQUNBLFVBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTs7QUFFQSxJQXhDSCxFQUNFLFNBK0NDLGlCQVJDO0FBQUQsSUF4Q0EsT0FDRCxTQStDQyxpQkFSQztBQUFELElBeENRLE1BQ1QsU0ErQ0MsaUJBUkM7RUFDQSxrQkFBQTtFQUNBLFNBQUE7RUFDQSxRQUFBO0VBQ0EscUJBQUE7O0FUQUosUUFBZ0M7RUE2Q2pDLElTekZDLEVBQ0UsU0FtREM7RVRxQ0osSVN6RkksT0FDRCxTQW1EQztFVHFDSixJU3pGWSxNQUNULFNBbURDO0lOd05GLDRCQUFBO0lBQWlDLG9DQUFBO0lBQ2pDLHlCQUFBO0lBQThCLDZCQUFBO0lBQzlCLG9CQUFBO0lBQXlCLDRCQUFBO0lNN092QixXQUFBO0lBQ0EsVUFBQTtJQUNBLG1CQUFBO0lBQ0EsZ0JBQUE7SUFDQSxrQkFBQTtJQUNBLGtCQUFBOztFQUVBLElBeENILEVBQ0UsU0FtREMsMEJBWkM7RUFBRCxJQXhDQSxPQUNELFNBbURDLDBCQVpDO0VBQUQsSUF4Q1EsTUFDVCxTQW1EQywwQkFaQztJQUNBLGtCQUFBO0lBQ0EsU0FBQTtJQUNBLFFBQUE7SUFDQSxxQkFBQTs7RUFKRCxJQXhDSCxFQUNFLFNBbURDLDBCQVpDO0VBQUQsSUF4Q0EsT0FDRCxTQW1EQywwQkFaQztFQUFELElBeENRLE1BQ1QsU0FtREMsMEJBWkM7SUFDQSxrQkFBQTtJQUNBLFNBQUE7SUFDQSxRQUFBO0lBQ0EscUJBQUE7OztBQWNGLElBMURGLEVBQ0UsU0F5REM7QUFBRCxJQTFEQyxPQUNELFNBeURDO0FBQUQsSUExRFMsTUFDVCxTQXlEQztBQUNELElBM0RGLEVBQ0UsU0EwREM7QUFBRCxJQTNEQyxPQUNELFNBMERDO0FBQUQsSUEzRFMsTUFDVCxTQTBEQztFQUNBLFdBQUE7RUFDQSxtQkFBQTs7QUFHRCxJQWhFRixFQUNFLFNBK0RDO0FBQUQsSUFoRUMsT0FDRCxTQStEQztBQUFELElBaEVTLE1BQ1QsU0ErREM7RUFDQSxxQkFBQTtFQUNBLFVBQUE7RU4rTkYseUVBQUE7RUFDQSxzRUFBQTtFQUNBLGlFQUFBOztBTXROQSxJQTdFRCxFQTZFRTtBQUFELElBN0VFLE9BNkVEO0FBQUQsSUE3RVUsTUE2RVQ7RUFDQSxtQkFBQTs7QUFFQSxJQWhGRixFQTZFRSxjQUdDO0FBQUQsSUFoRkMsT0E2RUQsY0FHQztBQUFELElBaEZTLE1BNkVULGNBR0M7QUFDRCxJQWpGRixFQTZFRSxjQUlDO0FBQUQsSUFqRkMsT0E2RUQsY0FJQztBQUFELElBakZTLE1BNkVULGNBSUM7RUFDQSxjQUFBO0VBQ0EsbUJBQUE7O0FBSUYsSUF2RkQsRUF1RkU7QUFBRCxJQXZGRSxPQXVGRDtBQUFELElBdkZVLE1BdUZUO0FBQUQsSUF2RkQsRUhpREcsYUF4Q0gsR0FnQkMsR0FhQyxFQVdFO0FHc0NILElBdkZFLE9IaURBLGFBeENILEdBZ0JDLEdBYUMsRUFXRTtBR3NDSCxJQXZGVSxNSGlEUixhQXhDSCxHQWdCQyxHQWFDLEVBV0U7RUd1Q0YsV0FBQTtFQUNBLG1CQUFBOztBQUVBLElBM0ZGLEVBdUZFLG9CQUlDO0FBQUQsSUEzRkMsT0F1RkQsb0JBSUM7QUFBRCxJQTNGUyxNQXVGVCxvQkFJQztBQUNELElBNUZGLEVBdUZFLG9CQUtDO0FBQUQsSUE1RkMsT0F1RkQsb0JBS0M7QUFBRCxJQTVGUyxNQXVGVCxvQkFLQztBQURELElBM0ZGLEVIaURHLGFBeENILEdBZ0JDLEdBYUMsRUFXRSxNRzBDRDtBQUFELElBM0ZDLE9IaURBLGFBeENILEdBZ0JDLEdBYUMsRUFXRSxNRzBDRDtBQUFELElBM0ZTLE1IaURSLGFBeENILEdBZ0JDLEdBYUMsRUFXRSxNRzBDRDtBQUNELElBNUZGLEVIaURHLGFBeENILEdBZ0JDLEdBYUMsRUFXRSxNRzJDRDtBQUFELElBNUZDLE9IaURBLGFBeENILEdBZ0JDLEdBYUMsRUFXRSxNRzJDRDtBQUFELElBNUZTLE1IaURSLGFBeENILEdBZ0JDLEdBYUMsRUFXRSxNRzJDRDtFQUNBLFdBQUE7RUFDQSxtQkFBQTs7QUNoR0o7RVZzQkMsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxvQkFBQTtFR3FQQywwQkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx1QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixrQkFBQTtFQUF5Qiw0QkFBQTtFTzdRMUIsZ0NBQUE7RUFFQSxtQkFBQTtFQUNBLHFCQUFBO0VBQ0EsbUJBQUE7RUFDQSx3QkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxhQUFBO0VBQ0Esb0JBQUE7RUFDQSxjQUFBOztBQUVBLFVBQUM7RUFDQSxjQUFBOztBQUdELFVBQUM7RUFDQSxTQUFTLEVBQVQ7RUFDQSxRQUFBO0VBQ0EsU0FBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7O0FBTUQsYUFBQztBQUFELGFBQUM7RUFDQSxVQUFBO0VBQ0EsOEJBQUE7RUFDQSx5REFBQTs7QUFNRCxhQUFDO0FBQUQsYUFBQztFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLHlEQUFBOztBQU1ELGFBQUM7QUFBRCxhQUFDO0VBQ0EsVUFBQTs7QUFNRCxhQUFDO0FBQUQsYUFBQztFQUNBLFdBQUE7O0FDdkRGLGNBQWM7QUFDZCxlQUFlO0VBQ2QsU0FBUyxFQUFUO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLHNCQUFBO0VBQ0EsNEJBQUE7O0FBR0QsY0FBYztFQUNiLGtCQUFBOztBQUdELGVBQWU7RUFDZCxpQkFBQTs7QUFJQSxjQUFDO0FBQVMsY0FBQztFQUNWLHNCQUFrQiw2Y0FBbEI7O0FBS0QsbUJBQUM7QUFBUyxtQkFBQztFQUNWLHNCQUFrQiw2aUJBQWxCOztBQUtELFdBQUM7QUFBUyxXQUFDO0VBQ1Ysc0JBQWtCLDZpQkFBbEI7O0FDNUJGLElBQUssUUFFSjtFQUNDLHNCQUFBOztBQUhGLElBQUssUUFNSixNQUFLO0VBQ0osZ0JBQUE7RUFDQSxxQkFBQTs7QUFSRixJQUFLLFFBV0o7RUFDQyx5QkFBQTtFQUNBLDBCQUFBOztBQUVBLElBZkcsUUFXSixNQUlFO0VBQ0EsV0FBQTs7QUFHRCxJQW5CRyxRQVdKLE1BUUU7RUFDQSxZQUFBOztBQXBCSCxJQUFLLFFBd0JKO0VBQ0MsYUFBQTs7QUFJRjtFWlpDLGVBQUE7RUFDQSxtQkFBQTtFQUNBLG1CQUFBO0VBQ0Esb0JBQUE7RVlXQSxpQkFBQTtFQUNBLHlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxxQkFBQTtFQUNBLHNCQUFBO0VBQ0EsV0FBQTtFVHFPQywwQkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx1QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixrQkFBQTtFQUF5Qiw0QkFBQTtFU3JPMUIsa0JBQUE7O0FBVEQsT0FXQyxNQUFLO0VBQ0osYUFBQTs7QUFaRixPQWVDO0VBQ0Msa0JBQUE7RUFDQSxVQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTs7QUFFQSxPQVBELE1BT0U7RUFDQSwwQkFBQTs7QUF2QkgsT0EyQkM7RUFDQyxXQUFBO0VBQ0Esc0JBQUE7RUFDQSxhQUFBO0VBQ0EsY0FBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFVDJNQSw0QkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx5QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixvQkFBQTtFQUF5Qiw0QkFBQTs7QVM5TzNCLE9BMkJDLGNBU0M7RUFDQyxnQkFBQTtFQUNBLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0EsbUJBQUE7RVRrTUQsNEJBQUE7RUFBaUMsb0NBQUE7RUFDakMseUJBQUE7RUFBOEIsNkJBQUE7RUFDOUIsb0JBQUE7RUFBeUIsNEJBQUE7O0FTak14QixPQWxCRixjQVNDLFNBU0U7RUFDQSxTQUFTLEVBQVQ7RUFDQSxjQUFBO0VBQ0Esa0JBQUE7RUFDQSxNQUFBO0VBQ0EsUUFBQTtFQUNBLFdBQUE7RUFDQSxPQUFBO0VBRUEseUJBQUE7RVRnS0Ysd0NBQUE7RUFDQSxvQ0FBQTtFQUNBLGdDQUFBO0VBS0EseUNBQUE7RUFBOEMsb0NBQUE7RUFDOUMscUNBQUE7RUFBMEMsNkJBQUE7RUFDMUMsaUNBQUE7RUFBc0MsNEJBQUE7O0FTakt2QyxPQUFDLE1BQ0EsY0FBYyxTQUFRO0VBQ3JCLG1CQUFBOztBQWhFSCxPQW9FQyxNQUFLLGNBQWdCLFFBRXBCLGdCQUFnQjtFQUNmLGlCQUFBOztBQXZFSCxPQW9FQyxNQUFLLGNBQWdCLFFBU3BCLFFBQU87RUFDTixzQkFBQTtFQUNBLHNCQUFBOztBQS9FSCxPQW1GQyxNQUFLLGNBQWdCLFFBQVMsUUFBTztFQUNwQyxxQkFBQTtFQUNBLHFCQUFBOztBQ3pIRjtFVjQyQkUseUJBQUE7RUFDQSxzQkFBQTtFQUNBLHFCQUFBO0VBQ0EsaUJBQUE7O0FVLzJCRixRQUdDO0VBQ0MsZUFBQTs7QUFKRixRQU1DO0VBQ0MsZ0JBQUE7O0FBUEYsUUFVQztFQUNDLGFBQUE7O0FBR0QsUUFBQyxVQUNBO0VBQ0MsYUFBQTs7QUFGRixRQUFDLFVBS0E7RUFDQyxnQkFBQTs7QUFLSDtFQUNDLGdCQUFBOztBQUVBLGtCQUFDO0VBQ0EsU0FBQTs7QUFNRCxzQkFBQztBQUFELHVCQUFDO0FBQVMsc0JBQUM7QUFBRCx1QkFBQztFQUNWLHNCQUFrQix5c0JBQWxCOztBQUlBLHNCQURBLFdBQ0M7QUFBRCx1QkFEQSxXQUNDO0FBQVMsc0JBRFYsV0FDVztBQUFELHVCQURWLFdBQ1c7RUFDVixzQkFBa0IscXRCQUFsQjs7QUFNRixzQkFBQztBQUNELHNCQUFDO0VBQ0EsNkJBQUE7O0FBS0QsdUJBQUM7QUFDRCx1QkFBQztFQUNBLGdDQUFBOztBQ3RERjtFQUNDLGFBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0VBQ0EsZ0JBQUE7RVhzU0MsOEJBQUE7RUFDQSwyQkFBQTtFQUNBLHNCQUFBO0VXblNELHFCQUFBO0VBQ0EsbUJBQUE7RVgwdUJDLHdDQUFBO0VBQ0EscUNBQUE7RUFDQSxvQ0FBQTtFQUNBLG1DQUFBO0VBQ0EsZ0NBQUE7O0FXM3VCRCxNQUFDO0VYaVFBLDRCQUFBO0VBQWlDLG9DQUFBO0VBQ2pDLHlCQUFBO0VBQThCLDZCQUFBO0VBQzlCLG9CQUFBO0VBQXlCLDRCQUFBO0VXalF6QixlQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFNBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxtQkFBQTs7QUN6QkYsSUFBSztBQUNMLE1BQU87QUFDUCxhQUFjO0FBQ2QsTUFBTztFQUNOLGdCQUFBOztBQUlEO0VBQ0MsZ0JBQUE7O0FBR0Q7RUFDQyw2QkFBQTs7QUNYQSxTQUFDO0VBQ0EseUJBQUE7RUFDQSxXQUFBOztBQUZELFNBQUMsSUFJQSxTQUNDO0FBTEYsU0FBQyxJQUlBLFNBQ0s7QUFMTixTQUFDLElBSUEsU0FDUztBQUxWLFNBQUMsSUFJQSxTQUNhO0FBTGQsU0FBQyxJQUlBLFNBQ2lCO0VBQ2YsV0FBQTs7QUFOSCxTQUFDLElBSUEsU0FLQztFaEJZRixlQUFBO0VBQ0EsbUJBQUE7RUFDQSxtQkFBQTtFQUNBLG9CQUFBO0VnQmJHLGdCQUFBOztBQVhILFNBQUMsSUFJQSxTQUtDLEVBSUM7RUFDQyxxQkFBQTtFQUNBLDhCQUFBO0VBQ0EsY0FBQTs7QUFFQSxTQWxCSCxJQUlBLFNBS0MsRUFJQyxFQUtFO0VBQ0EsY0FBQTs7QUFuQkwsU0FBQyxJQUlBLFNBb0JDO0VBQ0MsV0FBQTs7QUF6QkgsU0FBQyxJQUlBLFNBd0JDO0VBQ0MsV0FBQTs7QUE3QkgsU0FBQyxJQUlBLFNBNEJDO0VBQ0Msa0JBQUE7RUFDQSxjQUFBOztBQUtILFNBQUM7RUFDQSxrQkFBQTs7QUFFQSxTQUhBLE9BR0M7RUFDQSxXQUFBO0VBQ0EsU0FBUyxFQUFUO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsUUFBQTtFQUNBLFdBQUE7O0FDdERILElBQUs7QUFDTCxNQUFPO0FBQ1AsYUFBYztBQUNkLE1BQU87RUFDTixpQkFBQTs7QUFHRCxJQUFLLGdCQUFlO0VBQ25CLGVBQUE7O0FBR0Q7RUFDQyxtQkFBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTs7QUFIRCxPQU1DO0VBRUMsa0JBQUE7RUFDQSxVQUFBO0VBQ0EsVUFBQTtFQUNBLG1CQUFBO0VBR0EsbUJBQUE7RUFDQSw0QkFBQTs7QUFFQSxPQVhELFdBV0U7RUFDQSx5REFBQTs7QUFLSCxRQUFTO0VBQ1IsZ0JBQUE7RUFDQSxTQUFBO0VBQ0Esd0JBQUE7O0FBRUEsUUFMUSxtQkFLUDtFQUNBLFlBQUE7O0FBS0YsS0FBTTtFQUNMLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLDBCQUFBOztBQUdELEtBQU0sY0FBYTtFQUNsQixhQUFBOztBQUlBLFFBRFEsY0FDUDtFQUNBLGFBQUE7O0FBRkYsUUFBUyxjQUtSO0VBQ0MsYUFBQTs7QUFJRixRQUNDO0VBQ0MsaUJBQUE7O0FBSUY7RUFDQyxpQkFBQTs7QUFERCxTQUdDO0VBQ0MsV0FBQTtFQUNBLGlCQUFBOztBQUxGLFNBR0MsTUFJQztFQUNDLGdCQUFBOztBQUVBLFNBUEYsTUFJQyxTQUdFO0VBQ0EsdUJBQUE7RUFDQSxXQUFBOztBQUZELFNBUEYsTUFJQyxTQUdFLE1BSUE7RUFDQywwQkFBQTs7QUFmTCxTQUdDLE1BaUJDO0VBQ0MsV0FBQTtFQUNBLGFBQUE7O0FBR0QsU0F0QkQsTUFzQkU7RUFDQSxnQkFBQTs7QUFLSDtFQUNDLGdCQUFBO0VBQ0EsU0FBQTtFQUNBLFVBQUE7RUFDQSx3QkFBQTs7QUFFQSx1QkFBQztFQUNBLFlBQUE7RUFDQSxVQUFBOztBQUtGO0VBQ0MsaUJBQUE7O0FBREQsTUFHQyxJQUFHO0VBQ0YsaUJBQUE7O0FBSkYsTUFPQztFQUNDLGlCQUFBOztBQVJGLE1BT0MsY0FHQztFQUNDLGlCQUFBOztBQVhILE1BT0MsY0FPQztFQUVDLGtCQUFBOztBQWhCSCxNQW9CQztFQUNDLGtCQUFBO0VBQ0EsU0FBQTtFQUVBLFNBQUE7RUFDQSxrQkFBQTs7QWpCM0ZELFFBQWdDO0VBNkNqQyxNaUJ5Q0M7SUFVRSxVQUFBO0lBQ0EsaUJBQUE7SUFFQSxVQUFBO0lBQ0EsbUJBQUE7O0VBRUEsTUFoQkYsV0FnQkc7SUFDQSxVQUFBO0lBQ0EsV0FBQTs7O0FqQnhHSCxRQUFnQztFQTZDakMsTWlCeUNDO0lBd0JFLGFBQUE7OztBQTVDSCxNQWdEQyxlQUNDO0VBQ0MsWUFBQTtFQUNBLFlBQUE7Ozs7Ozs7Ozs7QUNySkgsUUFBUztFQUNSLG9CQUFBO0VmMjFCQyx5QkFBQTtFQUNBLHNCQUFBO0VBQ0EscUJBQUE7RUFDQSxpQkFBQTtFZTUxQkQsZUFBQTs7QUFJRCxvQkFBcUI7RWZxZWxCLE9BQUE7RUFBUyx5QkFBQTtFQUNWLG9CQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBOztBZXBlRixZQUFZO0VBQ1gsa0JBQUE7RWZnZUUsT0FBQTtFQUFTLDBCQUFBO0VBQ1Ysa0JBQUE7RUFDQSxlQUFBO0VBQ0EsVUFBQTs7QWU5ZEQsWUFOVyxPQU1WO0VBQ0EsU0FBUyxFQUFUO0VBQ0EsY0FBQTtFQUNBLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLFVBQUE7RUFDQSxXQUFBO0VBQ0EsT0FBQTtFZndPQSwwQkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx1QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixrQkFBQTtFQUF5Qiw0QkFBQTtFQW1CekIsNENBQUE7RUFDQSx5Q0FBQTtFQUNBLG9DQUFBOztBZTVRRixZQUFZLE9Ba0JYO0Vmd1BDLHdCQUFBO0VBQ0EscUJBQUE7RUFDQSxnQkFBQTtFZXhQQSxxQkFBQTs7QUFwQkYsWUFBWSxPQXVCWDtBQXZCRCxZQUFZLE9Bd0JYO0VBQ0Msa0JBQUE7RUFDQSxVQUFBOztBQTFCRixZQUFZLE9BNkJYO0VmNk9DLHdCQUFBO0VBQ0EscUJBQUE7RUFDQSxnQkFBQTs7QWUxT0Y7RWYreUJFLHlCQUFBO0VBQ0Esc0JBQUE7RUFDQSxxQkFBQTtFQUNBLGlCQUFBOztBZS95QkY7RUFDQyxjQUFBO0VBQ0Esb0JBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBOztBQUdDLFFBREQsT0FBTSxTQUNKO0VBQ0EsZUFBQTtFQUVBLHFCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxVQUFBO0VBQ0EseUJBQUE7O0FBR0QsUUFWRCxPQUFNLFNBVUo7RUFDQSxhQUFBOztBQUdELFFBZEQsT0FBTSxTQWNKO0VBQ0EsV0FBQTtFQUNBLGlCQUFBOztBQUdELFFBbkJELE9BQU0sU0FtQko7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7O0FBM0JILFFBTUMsT0FBTSxTQXdCTDtFQUNDLGNBQUE7O0FBTUgsZ0JBQWdCO0FBQ2hCLGdCQUFnQjtBQUNoQixzQkFBc0I7RUFDckIsYUFBQTs7QUFHRCxnQkFBaUI7QUFDakIsUUFBUyxPQUFNO0FBQ2YsZ0JBQWlCLFNBQVEsV0FBVztFQUNuQyxhQUFBOztBQUdELEdBQUc7RUFDRixVQUFBO0VBQ0EsZ0JBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxjQUFBO0VBQ0EseUJBQUE7O0FBTkQsR0FBRyxnQkFRRjtFQUNDLFNBQUE7O0FBVEYsR0FBRyxnQkFZRjtFQUNDLGFBQUE7O0FBR0QsR0FoQkUsZ0JBZ0JELGNBQWU7RUFDZixrQkFBQTtFZjBYQyxPQUFBO0VBQVMseUJBQUE7RUFDVixvQkFBQTtFQUNBLGlCQUFBO0VBQ0EsWUFBQTs7QWU5WUYsR0FBRyxnQkF1QkYsT0FBTztFQUNOLGlCQUFBOztBQUlELEdBNUJFLGdCQTRCQTtFQUNELFVBQUE7RUFDQSxTQUFBO0VBQ0EsMEJBQUE7RUFDQSxXQUFBOztBQUVBLEdBbENDLGdCQTRCQSxLQU1BO0VBQ0EsMkJBQUE7O0FBR0QsR0F0Q0MsZ0JBNEJBLEtBVUE7RUFDQSx3QkFBQTs7QUFYRixHQTVCRSxnQkE0QkEsS0FlRDtFQUNDLFVBQUE7RUFDQSxTQUFBOztBQUlELEdBakRDLGdCQTRCQSxLQXFCQztFQUNELGtCQUFBOztBQUVBLEdBcERBLGdCQTRCQSxLQXFCQyxLQUdBO0VBQ0EsaUJBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7O0FBR0QsR0ExREEsZ0JBNEJBLEtBcUJDLEtBU0E7QUFDRCxHQTNEQSxnQkE0QkEsS0FxQkMsS0FVQTtFQUNBLDZCQUFBOztBQUdELEdBL0RBLGdCQTRCQSxLQXFCQyxLQWNBO0VBQ0EsMEJBQUE7O0FBRUEsR0FsRUQsZ0JBNEJBLEtBcUJDLEtBY0Esc0JBR0M7RUFDQSxnQkFBQTs7QUFJRixHQXZFQSxnQkE0QkEsS0FxQkMsS0FzQkEsbUJBQW1CO0FBQ3BCLEdBeEVBLGdCQTRCQSxLQXFCQyxLQXVCQSxtQkFBbUI7QUFDcEIsR0F6RUEsZ0JBNEJBLEtBcUJDLEtBd0JBLHVCQUF1QjtBQUN4QixHQTFFQSxnQkE0QkEsS0FxQkMsS0F5QkEsdUJBQXVCO0VBQ3ZCLGdCQUFBO0VBQ0EsVUFBQTs7QUFHRCxHQS9FQSxnQkE0QkEsS0FxQkMsS0E4QkEsbUJBQW1CO0FBQ3BCLEdBaEZBLGdCQTRCQSxLQXFCQyxLQStCQSx1QkFBdUI7QUFDeEIsR0FqRkEsZ0JBNEJBLEtBcUJDLEtBZ0NBLG1CQUFtQixPQUFPO0FBQzNCLEdBbEZBLGdCQTRCQSxLQXFCQyxLQWlDQSx1QkFBdUIsT0FBTztFQUM5QixtQkFBQTs7QUFHRCxHQXRGQSxnQkE0QkEsS0FxQkMsS0FxQ0EsbUJBQW1CO0FBQ3BCLEdBdkZBLGdCQTRCQSxLQXFCQyxLQXNDQSx1QkFBdUI7RUFDdkIsbUJBQUE7O0FBR0QsR0EzRkEsZ0JBNEJBLEtBcUJDLEtBMENBO0VBTUEsbUJBQUE7O0FBTEEsR0E1RkQsZ0JBNEJBLEtBcUJDLEtBMENBLHVCQUNDO0VBQ0EsU0FBUyxFQUFUO0VBQ0EsV0FBQTs7QUFLRCxHQW5HRCxnQkE0QkEsS0FxQkMsS0EwQ0EsdUJBUUU7RUFDRCxnQkFBQTs7QUFJRixHQXhHQSxnQkE0QkEsS0FxQkMsS0F1REM7QUFBSyxHQXhHUCxnQkE0QkEsS0FxQkMsS0F1RFE7RUFDUixtQkFBQTtFQUNBLHNCQUFBOztBQXpERixHQWpEQyxnQkE0QkEsS0FxQkMsS0E2REQ7RUFDQyxpQkFBQTtFQUNBLGdCQUFBOztBQS9ERixHQWpEQyxnQkE0QkEsS0FxQkMsS0E2REQsRUFJQztFQUNDLG1CQUFBO0VBQ0EsZUFBQTs7QUFuRUgsR0FqREMsZ0JBNEJBLEtBcUJDLEtBNkRELEVBSUMsS0FJQztFQUNDLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RWZxQ0osMEJBQUE7RUFBaUMsb0NBQUE7RUFDakMsdUJBQUE7RUFBOEIsNkJBQUE7RUFDOUIsa0JBQUE7RUFBeUIsNEJBQUE7RWVyQ3JCLHNCQUFBO0VBQ0EsY0FBQTtFQUNBLGlCQUFBO0VBQ0EsWUFBQTs7QUFHQyxHQWxJSixnQkE0QkEsS0FxQkMsS0E2REQsRUFJQyxLQUlDLE9BV0UsSUFBSSxXQUNIO0FBQ0QsR0FuSUosZ0JBNEJBLEtBcUJDLEtBNkRELEVBSUMsS0FJQyxPQVdFLElBQUksV0FFSDtFQUNBLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHlCQUFBOztBQUlGLEdBMUlILGdCQTRCQSxLQXFCQyxLQTZERCxFQUlDLEtBSUMsT0FvQkUsS0FBSztFQUNMLGVBQUE7RWZnUUosT0FBQTtFQUFTLHlCQUFBO0VBQ1Ysb0JBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7O0FlN1ZBLEdBakRDLGdCQTRCQSxLQXFCQyxLQWtHRDtFQUNDLHlCQUFBO0VBQ0EsVUFBQTtFQUNBLFdBQUE7O0FBckdGLEdBakRDLGdCQTRCQSxLQXFCQyxLQWtHRCxHQU1DO0VBQ0Msa0JBQUE7RUFDQSxxQkFBQTtFQUdBLGNBQUE7O0FBRUEsR0FoS0YsZ0JBNEJBLEtBcUJDLEtBa0dELEdBTUMsR0FPRTtFQUNBLDBCQUFBOztBQUVBLEdBbktILGdCQTRCQSxLQXFCQyxLQWtHRCxHQU1DLEdBT0Usc0JBR0M7RUFDQSxhQUFBOztBQUpGLEdBaEtGLGdCQTRCQSxLQXFCQyxLQWtHRCxHQU1DLEdBT0Usc0JBT0E7RWZSSiwwQkFBQTtFQUFpQyxvQ0FBQTtFQUNqQyx1QkFBQTtFQUE4Qiw2QkFBQTtFQUM5QixrQkFBQTtFQUF5Qiw0QkFBQTtFZVFwQixjQUFBOztBQUVBLEdBM0tKLGdCQTRCQSxLQXFCQyxLQWtHRCxHQU1DLEdBT0Usc0JBT0EscUJBSUU7RUFDQSwrQkFBQTs7QUFaSCxHQWhLRixnQkE0QkEsS0FxQkMsS0FrR0QsR0FNQyxHQU9FLHNCQU9BLHFCQVFDO0VBQ0Msc0JBQUE7O0FBS0gsR0FyTEYsZ0JBNEJBLEtBcUJDLEtBa0dELEdBTUMsR0E0Qkc7QUFBSyxHQXJMVCxnQkE0QkEsS0FxQkMsS0FrR0QsR0FNQyxHQTRCVTtFQUNSLG1CQUFBO0VBQ0Esc0JBQUE7O0FBdElKLEdBakRDLGdCQTRCQSxLQXFCQyxLQWtHRCxHQU1DLEdBa0NDO0VBQ0MsVUFBQTs7QUEzSUosR0FqREMsZ0JBNEJBLEtBcUJDLEtBa0dELEdBTUMsR0FrQ0MsR0FJQztFQUNDLFVBQUE7RUFDQSxxQkFBQTtFQUNBLGVBQUE7RUFDQSxxQkFBQTs7QUFsSkwsR0FqREMsZ0JBNEJBLEtBcUJDLEtBa0dELEdBTUMsR0FrQ0MsR0FJQyxHQU9DO0VBQ0MsZUFBQTtFQUNBLG1CQUFBOztBQXZKTixHQWpEQyxnQkE0QkEsS0FxQkMsS0FrR0QsR0FNQyxHQWtDQyxHQUlDLEdBWUM7QUExSkwsR0FqREMsZ0JBNEJBLEtBcUJDLEtBa0dELEdBTUMsR0FrQ0MsR0FJQyxHQWFDO0VBQ0MsZUFBQTtFQUNBLFNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VDbFNQLGtCQUFBO0VBQ0EsbUJBQUE7RUFFQSxvQkFBQTtFQUNBLG9CQUFBOztBRHdTQSxHQTFORSxnQkEwTkE7RUFDRCxnQkFBQTs7QUFJRCxHQS9ORSxnQkErTkQ7RUFDQSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxrQkFBQTs7QUFMRCxHQS9ORSxnQkErTkQsTUFPQTtFQ3hURCxrQkFBQTtFQUNBLGtCQUFBO0VBRUEsb0JBQUE7RUFDQSxvQkFBQTtFRHNURSxxQkFBQTtFQUNBLG1CQUFBO0VBQ0EsNkJBQUE7RUFDQSxhQUFBO0VBQ0Esb0JBQUE7O0FBYkYsR0EvTkUsZ0JBK05ELE1BZ0JBO0VBRUMsb0JBQUE7RUFDQSxnQkFBQTs7QUFuQkYsR0EvTkUsZ0JBK05ELE1BZ0JBLEdBS0M7RUFDQyxpQkFBQTtFQUNBLFNBQUE7RUFDQSxxQkFBQTs7QUFHRCxHQTFQQSxnQkErTkQsTUFnQkEsR0FXRztFQUNELGtCQUFBOztBQTVCSCxHQS9ORSxnQkErTkQsTUFnQkEsR0FlQztFQUNDLFdBQUE7RUFDQSxVQUFBO0VBQ0EsV0FBQTtFQUNBLGlCQUFBO0VBQ0EsMEJBQUE7RUFDQSxtQkFBQTtFQUNBLG1CQUFBO0VmMUVGLDhCQUFBO0VBQ0EsMkJBQUE7RUFDQSxzQkFBQTs7QWVrQ0QsR0EvTkUsZ0JBK05ELE1BZ0JBLEdBZUMsR0FVQztFQUNDLGdCQUFBO0VBQ0EsWUFBQTtFQUNBLHNCQUFBOztBQTVDSixHQS9ORSxnQkErTkQsTUFnQkEsR0FnQ0M7RUFDQyxpQkFBQTtFQUNBLFlBQUE7RUFDQSxvQkFBQTs7QUFuREgsR0EvTkUsZ0JBK05ELE1BZ0JBLEdBZ0NDLEdBS0M7RUFDQyxrQkFBQTs7QUFHRCxHQXhSRCxnQkErTkQsTUFnQkEsR0FnQ0MsR0FTRTtFQUNBLFNBQVMsT0FBVDtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFNBQUE7RUFDQSxRQUFBOztBQU9MO0FBQ0EsZ0JBQWlCLFNBQVE7QUFDekI7RWZ4SUUsMEJBQUE7RUFBaUMsb0NBQUE7RUFDakMsdUJBQUE7RUFBOEIsNkJBQUE7RUFDOUIsa0JBQUE7RUFBeUIsNEJBQUE7RWV3STFCLHNCQUFBO0VDM1hBLGtCQUFBO0VBQ0EsbUJBQUE7RUFFQSxvQkFBQTtFQUNBLG9CQUFBOztBRDJYRCxnQkFBaUIsU0FBUTtBQUN6QixXQUFZO0FBQ1o7RUNqWUMsa0JBQUE7RUFDQSxtQkFBQTtFQUVBLG9CQUFBO0VBQ0Esb0JBQUE7RUQrWEEsZ0pBQUE7O0FBR0QsV0FBWTtFQUNYLFlBQUE7RUFDQSxVQUFBO0VBQ0EsU0FBQTs7QUFHRCxnQkFBaUIsU0FBUTtFZi9IdkIsOEJBQUE7RUFDQSwyQkFBQTtFQUNBLHNCQUFBO0VlK0hELGNBQUE7RUFDQSxhQUFBO0VBQ0EsV0FBQTtFQUNBLGlCQUFBO0VBQ0EsU0FBQTtFQUNBLFlBQUE7RUFDQSxhQUFBO0VBQ0EsZ0JBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxpQkFBQTtFQUNBLGNBQUE7O0FBR0QsaUJBQWlCO0VBQ2hCLFVBQUE7RUFDQSxjQUFBO0VDOVpBLGVBQUE7RUFDQSxtQkFBQTtFQUVBLG1CQUFBO0VBQ0Esb0JBQUE7RURrYUEsZ0pBQUE7O0FBVkQsaUJBQWlCLGlCQUloQjtFQUNDLGNBQUE7RUFDQSxtQkFBQTs7QUFNRCxpQkFaZ0IsaUJBWWQsS0FBSTtFQUNMLG1CQUFBOzs7QUFLRjtFQUNDLG9CQUFBOztBQURELHVCQUdDLFNBQVM7RUFDUixtQkFBQTtFQUNBLGlCQUFBOztBQUxGLHVCQVFDO0VBRUMsWUFBQTtFQUdBLGdCQUFBOztBQUlGO0VBQ0MsZUFBQTtFQUNBLE1BQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTs7QUFKRCxnQkFNQztFQUNDLGlCQUFBOztBQVBGLGdCQU1DLGtCQUdDO0VBQ0MsZ0JBQUE7O0FBVkgsZ0JBTUMsa0JBR0MsT0FHQztFQUNDLGdCQUFBOztBQU9KO0VBQ0Msa0JBQUE7RUFDQSxVQUFBO0VBQ0EsVUFBQTs7QUFFQSxLQUFDO0VBQ0EsYUFBQSJ9 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/img/github-top.png DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/img/header-bg.png DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/img/header-separator.png DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/img/logo.png DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/img/logo.svg DELETED
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="443px" height="129px" viewBox="0 0 443 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
4
- <title>Group</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="products-icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="Group">
9
- <path d="M192.234,50.622 C191.867998,48.9546583 191.268171,47.4601733 190.4345,46.1385 C189.600829,44.8168267 188.584173,43.7086711 187.3845,42.814 C186.184827,41.9193289 184.863174,41.238169 183.4195,40.7705 C181.975826,40.302831 180.461008,40.069 178.875,40.069 C175.987652,40.069 173.50701,40.6179945 171.433,41.716 C169.35899,42.8140055 167.661173,44.2678243 166.3395,46.0775 C165.017827,47.8871757 164.041836,49.9306553 163.4115,52.208 C162.781164,54.4853447 162.466,56.8236547 162.466,59.223 C162.466,61.5816785 162.781164,63.9098218 163.4115,66.2075 C164.041836,68.5051782 165.017827,70.5588243 166.3395,72.3685 C167.661173,74.1781757 169.35899,75.6319945 171.433,76.73 C173.50701,77.8280055 175.987652,78.377 178.875,78.377 C180.908344,78.377 182.738325,78.0110037 184.365,77.279 C185.991675,76.5469963 187.394661,75.550673 188.574,74.29 C189.753339,73.029327 190.708996,71.5551751 191.441,69.8675 C192.173004,68.1798249 192.640666,66.3600098 192.844,64.408 L196.992,64.408 C196.707332,67.0920134 196.077005,69.5116559 195.101,71.667 C194.124995,73.8223441 192.864341,75.6523258 191.319,77.157 C189.773659,78.6616742 187.953844,79.8206626 185.8595,80.634 C183.765156,81.4473374 181.437013,81.854 178.875,81.854 C175.458983,81.854 172.459846,81.2338395 169.8775,79.9935 C167.295154,78.7531605 165.150009,77.0960104 163.442,75.022 C161.733991,72.9479896 160.453004,70.5486803 159.599,67.824 C158.744996,65.0993197 158.318,62.2323484 158.318,59.223 C158.318,56.2136516 158.744996,53.3466803 159.599,50.622 C160.453004,47.8973197 161.733991,45.4878438 163.442,43.3935 C165.150009,41.2991562 167.295154,39.6318395 169.8775,38.3915 C172.459846,37.1511605 175.458983,36.531 178.875,36.531 C180.94901,36.531 182.972157,36.8359969 184.9445,37.446 C186.916843,38.0560031 188.706159,38.9608273 190.3125,40.1605 C191.918841,41.3601727 193.260828,42.8343246 194.3385,44.583 C195.416172,46.3316754 196.097332,48.3446553 196.382,50.622 L192.234,50.622 Z M203.516,37.446 L207.664,37.446 L207.664,60.87 L232.979,37.446 L238.591,37.446 L219.132,55.441 L239.506,81 L234.138,81 L216.021,58.308 L207.664,66.055 L207.664,81 L203.516,81 L203.516,37.446 Z M243.224,37.446 L273.297,37.446 L273.297,40.984 L247.372,40.984 L247.372,56.722 L271.65,56.722 L271.65,60.26 L247.372,60.26 L247.372,77.462 L273.602,77.462 L273.602,81 L243.224,81 L243.224,37.446 Z M306.539,81 L303.001,81 L303.001,75.022 L302.879,75.022 C302.472331,76.0386717 301.872504,76.9739957 301.0795,77.828 C300.286496,78.6820043 299.381672,79.4038304 298.365,79.9935 C297.348328,80.5831696 296.260506,81.040665 295.1015,81.366 C293.942494,81.691335 292.793672,81.854 291.655,81.854 C289.255655,81.854 287.171509,81.4168377 285.4025,80.5425 C283.633491,79.6681623 282.159339,78.4685076 280.98,76.9435 C279.800661,75.4184924 278.926336,73.6495101 278.357,71.6365 C277.787664,69.6234899 277.503,67.4986779 277.503,65.262 C277.503,63.0253221 277.787664,60.9005101 278.357,58.8875 C278.926336,56.8744899 279.800661,55.1055076 280.98,53.5805 C282.159339,52.0554924 283.633491,50.8456711 285.4025,49.951 C287.171509,49.0563289 289.255655,48.609 291.655,48.609 C292.834339,48.609 293.983161,48.7513319 295.1015,49.036 C296.219839,49.3206681 297.266995,49.7578304 298.243,50.3475 C299.219005,50.9371696 300.083163,51.6589957 300.8355,52.513 C301.587837,53.3670043 302.167331,54.3633276 302.574,55.502 L302.696,55.502 L302.696,37.446 L306.539,37.446 L306.539,81 Z M281.346,65.262 C281.346,66.8886748 281.539165,68.5051586 281.9255,70.1115 C282.311835,71.7178414 282.921829,73.151327 283.7555,74.412 C284.589171,75.672673 285.65666,76.699496 286.958,77.4925 C288.25934,78.285504 289.824991,78.682 291.655,78.682 C293.688344,78.682 295.406493,78.285504 296.8095,77.4925 C298.212507,76.699496 299.351162,75.672673 300.2255,74.412 C301.099838,73.151327 301.730165,71.7178414 302.1165,70.1115 C302.502835,68.5051586 302.696,66.8886748 302.696,65.262 C302.696,63.6353252 302.502835,62.0188414 302.1165,60.4125 C301.730165,58.8061586 301.099838,57.372673 300.2255,56.112 C299.351162,54.851327 298.212507,53.824504 296.8095,53.0315 C295.406493,52.238496 293.688344,51.842 291.655,51.842 C289.824991,51.842 288.25934,52.238496 286.958,53.0315 C285.65666,53.824504 284.589171,54.851327 283.7555,56.112 C282.921829,57.372673 282.311835,58.8061586 281.9255,60.4125 C281.539165,62.0188414 281.346,63.6353252 281.346,65.262 Z M314.1,37.446 L317.943,37.446 L317.943,43.607 L314.1,43.607 L314.1,37.446 Z M314.1,49.524 L317.943,49.524 L317.943,81 L314.1,81 L314.1,49.524 Z M331.604,49.524 L338.009,49.524 L338.009,52.757 L331.604,52.757 L331.604,73.985 C331.604,75.245673 331.776832,76.2318298 332.1225,76.9435 C332.468168,77.6551702 333.332326,78.0516663 334.715,78.133 C335.813006,78.133 336.910995,78.0720006 338.009,77.95 L338.009,81.183 C337.439664,81.183 336.870336,81.2033331 336.301,81.244 C335.731664,81.2846669 335.162336,81.305 334.593,81.305 C332.030987,81.305 330.241672,80.8068383 329.225,79.8105 C328.208328,78.8141617 327.720333,76.9740134 327.761,74.29 L327.761,52.757 L322.271,52.757 L322.271,49.524 L327.761,49.524 L327.761,40.069 L331.604,40.069 L331.604,49.524 Z M357.038,51.842 C355.207991,51.842 353.601674,52.2283295 352.219,53.001 C350.836326,53.7736705 349.687505,54.790327 348.7725,56.051 C347.857495,57.311673 347.166169,58.7451586 346.6985,60.3515 C346.230831,61.9578414 345.997,63.5946583 345.997,65.262 C345.997,66.9293417 346.230831,68.5661586 346.6985,70.1725 C347.166169,71.7788414 347.857495,73.212327 348.7725,74.473 C349.687505,75.733673 350.836326,76.7503295 352.219,77.523 C353.601674,78.2956705 355.207991,78.682 357.038,78.682 C358.868009,78.682 360.474326,78.2956705 361.857,77.523 C363.239674,76.7503295 364.388495,75.733673 365.3035,74.473 C366.218505,73.212327 366.909831,71.7788414 367.3775,70.1725 C367.845169,68.5661586 368.079,66.9293417 368.079,65.262 C368.079,63.5946583 367.845169,61.9578414 367.3775,60.3515 C366.909831,58.7451586 366.218505,57.311673 365.3035,56.051 C364.388495,54.790327 363.239674,53.7736705 361.857,53.001 C360.474326,52.2283295 358.868009,51.842 357.038,51.842 Z M357.038,48.609 C359.437345,48.609 361.562157,49.0563289 363.4125,49.951 C365.262843,50.8456711 366.818327,52.0453258 368.079,53.55 C369.339673,55.0546742 370.29533,56.8134899 370.946,58.8265 C371.59667,60.8395101 371.922,62.9846553 371.922,65.262 C371.922,67.5393447 371.59667,69.6844899 370.946,71.6975 C370.29533,73.7105101 369.339673,75.4693258 368.079,76.974 C366.818327,78.4786742 365.262843,79.6681623 363.4125,80.5425 C361.562157,81.4168377 359.437345,81.854 357.038,81.854 C354.638655,81.854 352.513843,81.4168377 350.6635,80.5425 C348.813157,79.6681623 347.257673,78.4786742 345.997,76.974 C344.736327,75.4693258 343.78067,73.7105101 343.13,71.6975 C342.47933,69.6844899 342.154,67.5393447 342.154,65.262 C342.154,62.9846553 342.47933,60.8395101 343.13,58.8265 C343.78067,56.8134899 344.736327,55.0546742 345.997,53.55 C347.257673,52.0453258 348.813157,50.8456711 350.6635,49.951 C352.513843,49.0563289 354.638655,48.609 357.038,48.609 Z M377.836,49.524 L381.374,49.524 L381.374,56.905 L381.496,56.905 C382.472005,54.3429872 383.986823,52.3706736 386.0405,50.988 C388.094177,49.6053264 390.544319,48.9749994 393.391,49.097 L393.391,52.94 C391.642325,52.8586663 390.056341,53.0924973 388.633,53.6415 C387.20966,54.1905027 385.979505,54.9733283 384.9425,55.99 C383.905495,57.0066718 383.102336,58.216493 382.533,59.6195 C381.963664,61.022507 381.679,62.5576583 381.679,64.225 L381.679,81 L377.836,81 L377.836,49.524 Z M432.242,67.153 L432.242,43.912 L432.12,43.912 L416.016,67.153 L432.242,67.153 Z M412.539,66.665 L432.303,38.3 L435.78,38.3 L435.78,67.153 L442.185,67.153 L442.185,70.386 L435.78,70.386 L435.78,81 L432.242,81 L432.242,70.386 L412.539,70.386 L412.539,66.665 Z" id="ckeditor-4-txt" fill="#32373C"></path>
10
- <path d="M91.3990305,18.4275908 C89.708134,21.8370406 88.7575758,25.6787251 88.7575758,29.7424242 C88.7575758,43.8256854 100.174315,55.2424242 114.257576,55.2424242 C114.439555,55.2424242 114.62109,55.240518 114.80216,55.2367244 L114.80216,90.9505846 C114.80216,95.2377717 112.514973,99.199296 108.80216,101.342889 L63.6969697,127.384383 C59.9841568,129.527977 55.4097826,129.527977 51.6969697,127.384383 L6.59177944,101.342889 C2.87896651,99.199296 0.591779435,95.2377717 0.591779435,90.9505846 L0.591779435,38.8675972 C0.591779435,34.5804101 2.87896651,30.6188859 6.59177944,28.4752923 L51.6969697,2.43379858 C55.4097826,0.290205045 59.9841568,0.290205045 63.6969697,2.43379858 L91.3990305,18.4275908 Z M32.8787879,42.2424242 C31.2219336,42.2424242 29.8787879,43.58557 29.8787879,45.2424242 L29.8787879,46.6741182 C29.8787879,48.3309725 31.2219336,49.6741182 32.8787879,49.6741182 L83.5454545,49.6741182 C85.2023088,49.6741182 86.5454545,48.3309725 86.5454545,46.6741182 L86.5454545,45.2424242 C86.5454545,43.58557 85.2023088,42.2424242 83.5454545,42.2424242 L32.8787879,42.2424242 Z M32.8787879,60.7203179 C31.2219336,60.7203179 29.8787879,62.0634637 29.8787879,63.7203179 L29.8787879,65.1520119 C29.8787879,66.8088662 31.2219336,68.1520119 32.8787879,68.1520119 L69.6110283,68.1520119 C71.2678826,68.1520119 72.6110283,66.8088662 72.6110283,65.1520119 L72.6110283,63.7203179 C72.6110283,62.0634637 71.2678826,60.7203179 69.6110283,60.7203179 L32.8787879,60.7203179 Z M32.8787879,79.1982116 C31.2219336,79.1982116 29.8787879,80.5413574 29.8787879,82.1982116 L29.8787879,83.6299056 C29.8787879,85.2867599 31.2219336,86.6299056 32.8787879,86.6299056 L83.5454545,86.6299056 C85.2023088,86.6299056 86.5454545,85.2867599 86.5454545,83.6299056 L86.5454545,82.1982116 C86.5454545,80.5413574 85.2023088,79.1982116 83.5454545,79.1982116 L32.8787879,79.1982116 Z M114.757576,50.2424242 C103.159596,50.2424242 93.7575758,40.840404 93.7575758,29.2424242 C93.7575758,17.6444445 103.159596,8.24242424 114.757576,8.24242424 C126.355556,8.24242424 135.757576,17.6444445 135.757576,29.2424242 C135.757576,40.840404 126.355556,50.2424242 114.757576,50.2424242 Z M118.332146,34.5716487 L120.545455,34.5716487 L120.545455,31.2467386 L118.309328,31.2467386 L118.309328,20.6363636 L113.722988,20.6363636 L107.151515,31.1244992 L107.151515,34.5716487 L114.749781,34.5716487 L114.749781,37.9454545 L118.332146,37.9454545 L118.332146,34.5716487 Z M114.772598,24.841397 L114.772598,31.2467386 L110.870786,31.2467386 L114.704145,24.841397 L114.772598,24.841397 Z" id="ckeditor-4" fill="#0287D0"></path>
11
- </g>
12
- </g>
13
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/img/navigation-tip.png DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/index.html DELETED
@@ -1,130 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>CKEditor Sample</title>
10
- <script src="../ckeditor.js"></script>
11
- <script src="js/sample.js"></script>
12
- <link rel="stylesheet" href="css/samples.css">
13
- <link rel="stylesheet" href="toolbarconfigurator/lib/codemirror/neo.css">
14
- <meta name="viewport" content="width=device-width,initial-scale=1">
15
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
16
- </head>
17
- <body id="main">
18
-
19
- <nav class="navigation-a">
20
- <div class="grid-container">
21
- <ul class="navigation-a-left grid-width-70">
22
- <li><a href="https://ckeditor.com/ckeditor-4/">Project Homepage</a></li>
23
- <li><a href="https://github.com/ckeditor/ckeditor4/issues">I found a bug</a></li>
24
- <li><a href="https://github.com/ckeditor/ckeditor4" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li>
25
- </ul>
26
- <ul class="navigation-a-right grid-width-30">
27
- <li><a href="https://ckeditor.com/blog/">CKEditor Blog</a></li>
28
- </ul>
29
- </div>
30
- </nav>
31
-
32
- <header class="header-a">
33
- <div class="grid-container">
34
- <h1 class="header-a-logo grid-width-30">
35
- <a href="index.html"><img src="img/logo.svg" onerror="this.src='img/logo.png'; this.onerror=null;" alt="CKEditor Sample"></a>
36
- </h1>
37
-
38
- <nav class="navigation-b grid-width-70">
39
- <ul>
40
- <li><a href="index.html" class="button-a button-a-background">Start</a></li>
41
- <li><a href="toolbarconfigurator/index.html" class="button-a">Toolbar configurator <span class="balloon-a balloon-a-nw">Edit your toolbar now!</span></a></li>
42
- </ul>
43
- </nav>
44
- </div>
45
- </header>
46
-
47
- <main>
48
- <div class="adjoined-top">
49
- <div class="grid-container">
50
- <div class="content grid-width-100">
51
- <h1>Congratulations!</h1>
52
- <p>
53
- If you can see CKEditor below, it means that the installation succeeded.
54
- You can now try out your new editor version, see its features, and when you are ready to move on, check some of the <a href="#sample-customize">most useful resources</a> recommended below.
55
- </p>
56
- </div>
57
- </div>
58
- </div>
59
- <div class="adjoined-bottom">
60
- <div class="grid-container">
61
- <div class="grid-width-100">
62
- <div id="editor">
63
- <h1>Hello world!</h1>
64
- <p>I'm an instance of <a href="https://ckeditor.com">CKEditor</a>.</p>
65
- </div>
66
- </div>
67
- </div>
68
- </div>
69
-
70
- <div class="grid-container">
71
- <div class="content grid-width-100">
72
- <section id="sample-customize">
73
- <h2>Customize Your Editor</h2>
74
- <p>Modular build and <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_configuration.html">numerous configuration options</a> give you nearly endless possibilities to customize CKEditor. Replace the content of your <code><a href="../config.js">config.js</a></code> file with the following code and refresh this page (<strong>remember to clear the browser cache</strong>.html)!</p>
75
- <pre class="cm-s-neo CodeMirror"><code><span style="padding-right: 0.1px;"><span class="cm-variable">CKEDITOR</span>.<span class="cm-property">editorConfig</span> <span class="cm-operator">=</span> <span class="cm-keyword">function</span>( <span class="cm-def">config</span> ) {</span>
76
- <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">language</span> <span class="cm-operator">=</span> <span class="cm-string">'es'</span>;</span>
77
- <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">uiColor</span> <span class="cm-operator">=</span> <span class="cm-string">'#F7B42C'</span>;</span>
78
- <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">height</span> <span class="cm-operator">=</span> <span class="cm-number">300</span>;</span>
79
- <span style="padding-right: 0.1px;"><span class="cm-tab"> </span><span class="cm-variable-2">config</span>.<span class="cm-property">toolbarCanCollapse</span> <span class="cm-operator">=</span> <span class="cm-atom">true</span>;</span>
80
- <span style="padding-right: 0.1px;">};</span></code></pre>
81
- </section>
82
-
83
- <section>
84
- <h2>Toolbar Configuration</h2>
85
- <p>If you want to reorder toolbar buttons or remove some of them, check <a href="toolbarconfigurator/index.html">this handy tool</a>!</p>
86
- </section>
87
-
88
- <section>
89
- <h2>More Samples!</h2>
90
- <p>Visit the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">CKEditor Examples</a> for a huge collection of samples showcasing editor features, with source code readily available to copy and use in your own implementation.</p>
91
- </section>
92
-
93
- <section>
94
- <h2>Developer's Guide</h2>
95
- <p>The most important resource for all developers working with CKEditor, integrating it with their websites and applications, and customizing to their needs. You can start from here:</p>
96
- <ul>
97
- <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_installation.html">Getting Started</a> &ndash; Explains most crucial editor concepts and practices as well as the installation process and integration with your website.</li>
98
- <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_installation.html">Advanced Installation Concepts</a> &ndash; Describes how to upgrade, install additional components (plugins, skins.html), or create a custom build.</li>
99
- </ul>
100
- <p>When you have the basics sorted out, feel free to browse some more advanced sections like:</p>
101
- <ul>
102
- <li><a href="https://ckeditor.com/docs/ckeditor4/latest/features/index.html">Features Overview</a> &ndash; Descriptions and samples of various editor features.</li>
103
- <li><a href="https://ckeditor.com/docs/ckeditor4/latest/guide/plugin_sdk_intro.html">Plugin SDK</a>, <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/widget_sdk_intro.html">Widget SDK</a>, and <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/skin_sdk_intro.html">Skin SDK</a> &ndash; Useful when you want to create your own editor components.</li>
104
- </ul>
105
- </section>
106
-
107
- <section>
108
- <h2>CKEditor JavaScript API</h2>
109
- <p>CKEditor boasts a rich <a href="https://ckeditor.com/docs/ckeditor4/latest/api/index.html">JavaScript API</a> that you can use to adjust the editor to your needs and integrate it with your website or application.</p>
110
- </section>
111
- </div>
112
- </div>
113
- </main>
114
-
115
- <footer class="footer-a grid-container">
116
- <div class="grid-container">
117
- <p class="grid-width-100">
118
- CKEditor &ndash; The text editor for the Internet &ndash; <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
119
- </p>
120
- <p class="grid-width-100" id="copy">
121
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> &ndash; Frederico Knabben. All rights reserved.
122
- </p>
123
- </div>
124
- </footer>
125
- <script>
126
- initSample();
127
- </script>
128
-
129
- </body>
130
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/js/sample.js DELETED
@@ -1,53 +0,0 @@
1
- /**
2
- * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- /* exported initSample */
7
-
8
- if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
9
- CKEDITOR.tools.enableHtml5Elements( document );
10
-
11
- // The trick to keep the editor in the sample quite small
12
- // unless user specified own height.
13
- CKEDITOR.config.height = 150;
14
- CKEDITOR.config.width = 'auto';
15
-
16
- var initSample = ( function() {
17
- var wysiwygareaAvailable = isWysiwygareaAvailable(),
18
- isBBCodeBuiltIn = !!CKEDITOR.plugins.get( 'bbcode' );
19
-
20
- return function() {
21
- var editorElement = CKEDITOR.document.getById( 'editor' );
22
-
23
- // :(((
24
- if ( isBBCodeBuiltIn ) {
25
- editorElement.setHtml(
26
- 'Hello world!\n\n' +
27
- 'I\'m an instance of [url=https://ckeditor.com]CKEditor[/url].'
28
- );
29
- }
30
-
31
- // Depending on the wysiwygarea plugin availability initialize classic or inline editor.
32
- if ( wysiwygareaAvailable ) {
33
- CKEDITOR.replace( 'editor' );
34
- } else {
35
- editorElement.setAttribute( 'contenteditable', 'true' );
36
- CKEDITOR.inline( 'editor' );
37
-
38
- // TODO we can consider displaying some info box that
39
- // without wysiwygarea the classic editor may not work.
40
- }
41
- };
42
-
43
- function isWysiwygareaAvailable() {
44
- // If in development mode, then the wysiwygarea must be available.
45
- // Split REV into two strings so builder does not replace it :D.
46
- if ( CKEDITOR.revision == ( '%RE' + 'V%' ) ) {
47
- return true;
48
- }
49
-
50
- return !!CKEDITOR.plugins.get( 'wysiwygarea' );
51
- }
52
- } )();
53
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/js/sf.js DELETED
@@ -1,17 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- var SF=function(){function d(a){return(a=a.attributes?a.attributes.getNamedItem("class"):null)?a.value.split(" "):[]}function c(a){var e=document.createAttribute("class");e.value=a.join(" ");return e}var b={attachListener:function(a,e,b){if(a.addEventListener)a.addEventListener(e,b,!1);else if(a.attachEvent)a.attachEvent("on"+e,function(){b.apply(a,arguments)});else throw Error("Could not attach event.");}};b.indexOf=function(){var a=Array.prototype.indexOf;return"function"===a?function(e,b){return a.call(e,
6
- b)}:function(a,b){for(var c=a.length,d=0;d<c;d++)if(a[d]===b)return d;return-1}}();b.accept=function(a,e){var c;a.children?(c=a.children,e(a)):"number"===typeof a.length&&(c=a);for(var d=c?c.length||0:0;d--;)b.accept(c[d],e)};b.getByClass=function(){var a=document.getElementsByClassName;return"function"===typeof a?function(e,b){"string"===typeof e&&(b=e,e=document);return a.call(e,b)}:function(a,c){"string"===typeof a&&(c=a,a=document.getElementsByTagName("html")[0]);var d=[];b.accept(a,function(a){b.classList.contains(a,
7
- c)&&d.push(a)});return d}}();b.classList={};b.classList.add=function(a,b){var f=d(a);f.push(b);a.attributes.setNamedItem(c(f))};b.classList.remove=function(a,e){var f=d(a,e),n=b.indexOf(f,e);-1!==n&&(f.splice(n,1),a.attributes.setNamedItem(c(f)))};b.classList.contains=function(a,c){return-1!==b.indexOf(d(a),c)};b.classList.toggle=function(a,b){this.contains(a,b)?this.remove(a,b):this.add(a,b)};return b}();"use strict";
8
- (function(){function d(c){for(var b in c)delete c[b]}SF.modal=function(c){function b(a){27==a.keyCode&&f.close()}c.modalClass="modal content";c.closeClass="modal-close";c.modalStyles=d;c.closeStyles=d;var a=c.afterCreate,e=c.afterClose;c.afterCreate=function(c){a&&a(c);window.addEventListener("keydown",b)};c.afterClose=function(a){e&&e(a);window.removeEventListener("keydown",b)};var f=(new picoModal(c)).afterCreate(c.afterCreate).afterClose(c.afterClose);return f}})();"use strict";
9
- (function(){for(var d=SF.getByClass("toggler"),c=d.length;c--;)SF.attachListener(d[c],"click",function(){var b=SF.classList.contains(this,"icon-toggler-expanded")||SF.classList.contains(this,"icon-toggler-collapsed"),a=document.getElementById(this.getAttribute("data-for"));SF.classList.toggle(this,"collapsed");SF.classList.contains(this,"collapsed")?(SF.classList.add(a,"collapsed"),b&&(SF.classList.remove(this,"icon-toggler-expanded"),SF.classList.add(this,"icon-toggler-collapsed"))):(SF.classList.remove(a,
10
- "collapsed"),b&&(SF.classList.remove(this,"icon-toggler-collapsed"),SF.classList.add(this,"icon-toggler-expanded")))})})();"use strict";(function(){for(var d=SF.getByClass("tree-a"),c=d.length;c--;)SF.attachListener(d[c],"click",function(b){b=b.target||b.srcElement;"H2"!==b.nodeName||SF.classList.contains(b,"tree-a-no-sub")||SF.classList.toggle(b,"tree-a-active")})})();
11
- (function(d,c){function b(a){return"object"===typeof Node?a instanceof Node:a&&"object"===typeof a&&"number"===typeof a.nodeType}function a(){var a=[];return{watch:a.push.bind(a),trigger:function(b){for(var c=!0,d={preventDefault:function(){c=!1}},e=0;e<a.length;e++)a[e](b,d);return c}}}function e(a){this.elem=a}function f(a,b){return e.div().clazz("pico-overlay").clazz(a("overlayClass","")).stylize({display:"block",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1E4}).stylize(a("overlayStyles",
12
- {opacity:.5,background:"#000"})).onClick(function(){a("overlayClose",!0)&&b()})}function n(a,b){var c=a("width","auto");"number"===typeof c&&(c=""+c+"px");return e.div().clazz("pico-content").clazz(a("modalClass","")).stylize({display:"block",position:"fixed",zIndex:10001,left:"50%",top:"50px",width:c,"-ms-transform":"translateX(-50%)","-moz-transform":"translateX(-50%)","-webkit-transform":"translateX(-50%)","-o-transform":"translateX(-50%)",transform:"translateX(-50%)"}).stylize(a("modalStyles",
13
- {backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(a("content")).attr("role","dialog").onClick(function(a){(new e(a.target)).anyAncestor(function(a){return/\bpico-close\b/.test(a.elem.className)})&&b()})}function p(a){return function(){return a().elem}}function k(c){function e(a,b){var d=c[a];"function"===typeof d&&(d=d(b));return void 0===d?b:d}function k(){l().hide();m().hide();v.trigger(h)}function q(){w.trigger(h)&&k()}function g(a){return function(){a.apply(this,arguments);return h}}
14
- function r(a){if(!t){var c=n(e,q),b=f(e,q),d;d=e("closeButton",!0)?c.child().html(e("closeHtml","\x26#xD7;")).clazz("pico-close").clazz(e("closeClass")).stylize(e("closeStyles",{borderRadius:"2px",cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})):void 0;t={modal:c,overlay:b,close:d};x.trigger(h)}return t[a]}if("string"===typeof c||b(c))c={content:c};var x=a(),y=a(),z=a(),w=a(),v=a(),t,m=r.bind(d,
15
- "modal"),l=r.bind(d,"overlay"),u=r.bind(d,"close"),h={modalElem:p(m),closeElem:p(u),overlayElem:p(l),show:function(){y.trigger(h)&&(l().show(),u(),m().show(),z.trigger(h));return this},close:g(q),forceClose:g(k),destroy:function(){m=m().destroy();l=l().destroy();u=void 0},options:function(a){c=a},afterCreate:g(x.watch),beforeShow:g(y.watch),afterShow:g(z.watch),beforeClose:g(w.watch),afterClose:g(v.watch)};return h}e.div=function(a){var b=c.createElement("div");(a||c.body).appendChild(b);return new e(b)};
16
- e.prototype={child:function(){return e.div(this.elem)},stylize:function(a){a=a||{};"undefined"!==typeof a.opacity&&(a.filter="alpha(opacity\x3d"+100*a.opacity+")");for(var b in a)a.hasOwnProperty(b)&&(this.elem.style[b]=a[b]);return this},clazz:function(a){this.elem.className+=" "+a;return this},html:function(a){b(a)?this.elem.appendChild(a):this.elem.innerHTML=a;return this},onClick:function(a){this.elem.addEventListener("click",a);return this},destroy:function(){c.body.removeChild(this.elem)},hide:function(){this.elem.style.display=
17
- "none"},show:function(){this.elem.style.display="block"},attr:function(a,b){this.elem.setAttribute(a,b);return this},anyAncestor:function(a){for(var b=this.elem;b;){if(a(new e(b)))return!0;b=b.parentNode}return!1}};"function"===typeof d.define&&d.define.amd?d.define(function(){return k}):d.picoModal=k})(window,document);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/ajax.html DELETED
@@ -1,86 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Ajax &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <script>
14
-
15
- var editor, html = '';
16
-
17
- function createEditor() {
18
- if ( editor )
19
- return;
20
-
21
- // Create a new editor inside the <div id="editor">, setting its value to html
22
- var config = {};
23
- editor = CKEDITOR.appendTo( 'editor', config, html );
24
- }
25
-
26
- function removeEditor() {
27
- if ( !editor )
28
- return;
29
-
30
- // Retrieve the editor contents. In an Ajax application, this data would be
31
- // sent to the server or used in any other way.
32
- document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
33
- document.getElementById( 'contents' ).style.display = '';
34
-
35
- // Destroy the editor.
36
- editor.destroy();
37
- editor = null;
38
- }
39
-
40
- </script>
41
- </head>
42
- <body>
43
- <h1 class="samples">
44
- <a href="index.html">CKEditor Samples</a> &raquo; Create and Destroy Editor Instances for Ajax Applications
45
- </h1>
46
- <div class="warning deprecated">
47
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/saveajax.html">brand new version in CKEditor Examples</a>.
48
- </div>
49
- <div class="description">
50
- <p>
51
- This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
52
- area will be displayed in a <code>&lt;div&gt;</code> element.
53
- </p>
54
- <p>
55
- For details of how to create this setup check the source code of this sample page
56
- for JavaScript code responsible for the creation and destruction of a CKEditor instance.
57
- </p>
58
- </div>
59
- <p>Click the buttons to create and remove a CKEditor instance.</p>
60
- <p>
61
- <input onclick="createEditor();" type="button" value="Create Editor">
62
- <input onclick="removeEditor();" type="button" value="Remove Editor">
63
- </p>
64
- <!-- This div will hold the editor. -->
65
- <div id="editor">
66
- </div>
67
- <div id="contents" style="display: none">
68
- <p>
69
- Edited Contents:
70
- </p>
71
- <!-- This div will be used to display the editor contents. -->
72
- <div id="editorcontents">
73
- </div>
74
- </div>
75
- <div id="footer">
76
- <hr>
77
- <p>
78
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
79
- </p>
80
- <p id="copy">
81
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
82
- Knabben. All rights reserved.
83
- </p>
84
- </div>
85
- </body>
86
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/api.html DELETED
@@ -1,211 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>API Usage &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <script>
14
-
15
- // The instanceReady event is fired, when an instance of CKEditor has finished
16
- // its initialization.
17
- CKEDITOR.on( 'instanceReady', function( ev ) {
18
- // Show the editor name and description in the browser status bar.
19
- document.getElementById( 'eMessage' ).innerHTML = 'Instance <code>' + ev.editor.name + '<\/code> loaded.';
20
-
21
- // Show this sample buttons.
22
- document.getElementById( 'eButtons' ).style.display = 'block';
23
- });
24
-
25
- function InsertHTML() {
26
- // Get the editor instance that we want to interact with.
27
- var editor = CKEDITOR.instances.editor1;
28
- var value = document.getElementById( 'htmlArea' ).value;
29
-
30
- // Check the active editing mode.
31
- if ( editor.mode == 'wysiwyg' )
32
- {
33
- // Insert HTML code.
34
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-insertHtml
35
- editor.insertHtml( value );
36
- }
37
- else
38
- alert( 'You must be in WYSIWYG mode!' );
39
- }
40
-
41
- function InsertText() {
42
- // Get the editor instance that we want to interact with.
43
- var editor = CKEDITOR.instances.editor1;
44
- var value = document.getElementById( 'txtArea' ).value;
45
-
46
- // Check the active editing mode.
47
- if ( editor.mode == 'wysiwyg' )
48
- {
49
- // Insert as plain text.
50
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-insertText
51
- editor.insertText( value );
52
- }
53
- else
54
- alert( 'You must be in WYSIWYG mode!' );
55
- }
56
-
57
- function SetContents() {
58
- // Get the editor instance that we want to interact with.
59
- var editor = CKEDITOR.instances.editor1;
60
- var value = document.getElementById( 'htmlArea' ).value;
61
-
62
- // Set editor contents (replace current contents).
63
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
64
- editor.setData( value );
65
- }
66
-
67
- function GetContents() {
68
- // Get the editor instance that you want to interact with.
69
- var editor = CKEDITOR.instances.editor1;
70
-
71
- // Get editor contents
72
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-getData
73
- alert( editor.getData() );
74
- }
75
-
76
- function ExecuteCommand( commandName ) {
77
- // Get the editor instance that we want to interact with.
78
- var editor = CKEDITOR.instances.editor1;
79
-
80
- // Check the active editing mode.
81
- if ( editor.mode == 'wysiwyg' )
82
- {
83
- // Execute the command.
84
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-execCommand
85
- editor.execCommand( commandName );
86
- }
87
- else
88
- alert( 'You must be in WYSIWYG mode!' );
89
- }
90
-
91
- function CheckDirty() {
92
- // Get the editor instance that we want to interact with.
93
- var editor = CKEDITOR.instances.editor1;
94
- // Checks whether the current editor contents present changes when compared
95
- // to the contents loaded into the editor at startup
96
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-checkDirty
97
- alert( editor.checkDirty() );
98
- }
99
-
100
- function ResetDirty() {
101
- // Get the editor instance that we want to interact with.
102
- var editor = CKEDITOR.instances.editor1;
103
- // Resets the "dirty state" of the editor (see CheckDirty())
104
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-resetDirty
105
- editor.resetDirty();
106
- alert( 'The "IsDirty" status has been reset' );
107
- }
108
-
109
- function Focus() {
110
- CKEDITOR.instances.editor1.focus();
111
- }
112
-
113
- function onFocus() {
114
- document.getElementById( 'eMessage' ).innerHTML = '<b>' + this.name + ' is focused </b>';
115
- }
116
-
117
- function onBlur() {
118
- document.getElementById( 'eMessage' ).innerHTML = this.name + ' lost focus';
119
- }
120
-
121
- </script>
122
-
123
- </head>
124
- <body>
125
- <h1 class="samples">
126
- <a href="index.html">CKEditor Samples</a> &raquo; Using CKEditor JavaScript API
127
- </h1>
128
- <div class="warning deprecated">
129
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/api.html">brand new version in CKEditor Examples</a>.
130
- </div>
131
- <div class="description">
132
- <p>
133
- This sample shows how to use the
134
- <a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html">CKEditor JavaScript API</a>
135
- to interact with the editor at runtime.
136
- </p>
137
- <p>
138
- For details on how to create this setup check the source code of this sample page.
139
- </p>
140
- </div>
141
-
142
- <!-- This <div> holds alert messages to be display in the sample page. -->
143
- <div id="alerts">
144
- <noscript>
145
- <p>
146
- <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
147
- support, like yours, you should still see the contents (HTML data) and you should
148
- be able to edit it normally, without a rich editor interface.
149
- </p>
150
- </noscript>
151
- </div>
152
- <form action="../../../samples/sample_posteddata.php" method="post">
153
- <textarea cols="100" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
154
-
155
- <script>
156
- // Replace the <textarea id="editor1"> with an CKEditor instance.
157
- CKEDITOR.replace( 'editor1', {
158
- on: {
159
- focus: onFocus,
160
- blur: onBlur,
161
-
162
- // Check for availability of corresponding plugins.
163
- pluginsLoaded: function( evt ) {
164
- var doc = CKEDITOR.document, ed = evt.editor;
165
- if ( !ed.getCommand( 'bold' ) )
166
- doc.getById( 'exec-bold' ).hide();
167
- if ( !ed.getCommand( 'link' ) )
168
- doc.getById( 'exec-link' ).hide();
169
- }
170
- }
171
- });
172
- </script>
173
-
174
- <p id="eMessage">
175
- </p>
176
-
177
- <div id="eButtons" style="display: none">
178
- <input id="exec-bold" onclick="ExecuteCommand('bold');" type="button" value="Execute &quot;bold&quot; Command">
179
- <input id="exec-link" onclick="ExecuteCommand('link');" type="button" value="Execute &quot;link&quot; Command">
180
- <input onclick="Focus();" type="button" value="Focus">
181
- <br><br>
182
- <input onclick="InsertHTML();" type="button" value="Insert HTML">
183
- <input onclick="SetContents();" type="button" value="Set Editor Contents">
184
- <input onclick="GetContents();" type="button" value="Get Editor Contents (HTML)">
185
- <br>
186
- <textarea cols="100" id="htmlArea" rows="3">&lt;h2&gt;Test&lt;/h2&gt;&lt;p&gt;This is some &lt;a href="/Test1.html"&gt;sample&lt;/a&gt; HTML code.&lt;/p&gt;</textarea>
187
- <br>
188
- <br>
189
- <input onclick="InsertText();" type="button" value="Insert Text">
190
- <br>
191
- <textarea cols="100" id="txtArea" rows="3"> First line with some leading whitespaces.
192
-
193
- Second line of text preceded by two line breaks.</textarea>
194
- <br>
195
- <br>
196
- <input onclick="CheckDirty();" type="button" value="checkDirty()">
197
- <input onclick="ResetDirty();" type="button" value="resetDirty()">
198
- </div>
199
- </form>
200
- <div id="footer">
201
- <hr>
202
- <p>
203
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
204
- </p>
205
- <p id="copy">
206
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
207
- Knabben. All rights reserved.
208
- </p>
209
- </div>
210
- </body>
211
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/appendto.html DELETED
@@ -1,60 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Append To Page Element Using JavaScript Code &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- </head>
14
- <body>
15
- <h1 class="samples">
16
- <a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code
17
- </h1>
18
- <div class="warning deprecated">
19
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
20
- </div>
21
- <div id="section1">
22
- <div class="description">
23
- <p>
24
- The <code><a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html#method-appendTo">CKEDITOR.appendTo()</a></code> method serves to to place editors inside existing DOM elements. Unlike <code><a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html#method-replace">CKEDITOR.replace()</a></code>,
25
- a target container to be replaced is no longer necessary. A new editor
26
- instance is inserted directly wherever it is desired.
27
- </p>
28
- <pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
29
- { /* Configuration options to be used. */ }
30
- 'Editor content to be used.'
31
- );</pre>
32
- </div>
33
- <script>
34
-
35
- // This call can be placed at any point after the
36
- // DOM element to append CKEditor to or inside the <head><script>
37
- // in a window.onload event handler.
38
-
39
- // Append a CKEditor instance using the default configuration and the
40
- // provided content to the <div> element of ID "section1".
41
- CKEDITOR.appendTo( 'section1',
42
- null,
43
- '<p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p>'
44
- );
45
-
46
- </script>
47
- </div>
48
- <br>
49
- <div id="footer">
50
- <hr>
51
- <p>
52
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
53
- </p>
54
- <p id="copy">
55
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
56
- Knabben. All rights reserved.
57
- </p>
58
- </div>
59
- </body>
60
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/inlineall/logo.png DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css DELETED
@@ -1,204 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- *
5
- * Styles used by the XHTML 1.1 sample page (xhtml.html).
6
- */
7
-
8
- /**
9
- * Basic definitions for the editing area.
10
- */
11
- body
12
- {
13
- font-family: Arial, Verdana, sans-serif;
14
- font-size: 80%;
15
- color: #000000;
16
- background-color: #ffffff;
17
- padding: 5px;
18
- margin: 0px;
19
- }
20
-
21
- /**
22
- * Core styles.
23
- */
24
-
25
- .Bold
26
- {
27
- font-weight: bold;
28
- }
29
-
30
- .Italic
31
- {
32
- font-style: italic;
33
- }
34
-
35
- .Underline
36
- {
37
- text-decoration: underline;
38
- }
39
-
40
- .StrikeThrough
41
- {
42
- text-decoration: line-through;
43
- }
44
-
45
- .Subscript
46
- {
47
- vertical-align: sub;
48
- font-size: smaller;
49
- }
50
-
51
- .Superscript
52
- {
53
- vertical-align: super;
54
- font-size: smaller;
55
- }
56
-
57
- /**
58
- * Font faces.
59
- */
60
-
61
- .FontComic
62
- {
63
- font-family: 'Comic Sans MS';
64
- }
65
-
66
- .FontCourier
67
- {
68
- font-family: 'Courier New';
69
- }
70
-
71
- .FontTimes
72
- {
73
- font-family: 'Times New Roman';
74
- }
75
-
76
- /**
77
- * Font sizes.
78
- */
79
-
80
- .FontSmaller
81
- {
82
- font-size: smaller;
83
- }
84
-
85
- .FontLarger
86
- {
87
- font-size: larger;
88
- }
89
-
90
- .FontSmall
91
- {
92
- font-size: 8pt;
93
- }
94
-
95
- .FontBig
96
- {
97
- font-size: 14pt;
98
- }
99
-
100
- .FontDouble
101
- {
102
- font-size: 200%;
103
- }
104
-
105
- /**
106
- * Font colors.
107
- */
108
- .FontColor1
109
- {
110
- color: #ff9900;
111
- }
112
-
113
- .FontColor2
114
- {
115
- color: #0066cc;
116
- }
117
-
118
- .FontColor3
119
- {
120
- color: #ff0000;
121
- }
122
-
123
- .FontColor1BG
124
- {
125
- background-color: #ff9900;
126
- }
127
-
128
- .FontColor2BG
129
- {
130
- background-color: #0066cc;
131
- }
132
-
133
- .FontColor3BG
134
- {
135
- background-color: #ff0000;
136
- }
137
-
138
- /**
139
- * Indentation.
140
- */
141
-
142
- .Indent1
143
- {
144
- margin-left: 40px;
145
- }
146
-
147
- .Indent2
148
- {
149
- margin-left: 80px;
150
- }
151
-
152
- .Indent3
153
- {
154
- margin-left: 120px;
155
- }
156
-
157
- /**
158
- * Alignment.
159
- */
160
-
161
- .JustifyLeft
162
- {
163
- text-align: left;
164
- }
165
-
166
- .JustifyRight
167
- {
168
- text-align: right;
169
- }
170
-
171
- .JustifyCenter
172
- {
173
- text-align: center;
174
- }
175
-
176
- .JustifyFull
177
- {
178
- text-align: justify;
179
- }
180
-
181
- /**
182
- * Other.
183
- */
184
-
185
- code
186
- {
187
- font-family: courier, monospace;
188
- background-color: #eeeeee;
189
- padding-left: 1px;
190
- padding-right: 1px;
191
- border: #c0c0c0 1px solid;
192
- }
193
-
194
- kbd
195
- {
196
- padding: 0px 1px 0px 1px;
197
- border-width: 1px 2px 2px 1px;
198
- border-style: solid;
199
- }
200
-
201
- blockquote
202
- {
203
- color: #808080;
204
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/posteddata.php DELETED
@@ -1,60 +0,0 @@
1
- <!DOCTYPE html>
2
- <?php
3
- /*
4
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
5
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
6
- */
7
- ?>
8
- <html lang="en">
9
- <head>
10
- <meta charset="utf-8">
11
- <title>Sample &mdash; CKEditor</title>
12
- <link rel="stylesheet" href="sample.css">
13
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
14
- </head>
15
- <body>
16
- <h1 class="samples">
17
- CKEditor &mdash; Posted Data
18
- </h1>
19
- <table border="1" cellspacing="0" id="outputSample">
20
- <colgroup><col width="120"></colgroup>
21
- <thead>
22
- <tr>
23
- <th>Field&nbsp;Name</th>
24
- <th>Value</th>
25
- </tr>
26
- </thead>
27
- <?php
28
-
29
- if (!empty($_POST))
30
- {
31
- foreach ( $_POST as $key => $value )
32
- {
33
- if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
34
- continue;
35
-
36
- if ( get_magic_quotes_gpc() )
37
- $value = htmlspecialchars( stripslashes((string)$value) );
38
- else
39
- $value = htmlspecialchars( (string)$value );
40
- ?>
41
- <tr>
42
- <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th>
43
- <td><pre class="samples"><?php echo $value; ?></pre></td>
44
- </tr>
45
- <?php
46
- }
47
- }
48
- ?>
49
- </table>
50
- <div id="footer">
51
- <hr>
52
- <p>
53
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
54
- </p>
55
- <p id="copy">
56
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
57
- </p>
58
- </div>
59
- </body>
60
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/sample.jpg DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/assets/uilanguages/languages.js DELETED
@@ -1,7 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- var CKEDITOR_LANGS=function(){var c={af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",bg:"Bulgarian",bn:"Bengali/Bangla",bs:"Bosnian",ca:"Catalan",cs:"Czech",cy:"Welsh",da:"Danish",de:"German","de-ch":"German (Switzerland)",el:"Greek",en:"English","en-au":"English (Australia)","en-ca":"English (Canadian)","en-gb":"English (United Kingdom)",eo:"Esperanto",es:"Spanish","es-mx":"Spanish (Mexico)",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fo:"Faroese",fr:"French","fr-ca":"French (Canada)",gl:"Galician",
6
- gu:"Gujarati",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",id:"Indonesian",is:"Icelandic",it:"Italian",ja:"Japanese",ka:"Georgian",km:"Khmer",ko:"Korean",ku:"Kurdish",lt:"Lithuanian",lv:"Latvian",mk:"Macedonian",mn:"Mongolian",ms:"Malay",nb:"Norwegian Bokmal",nl:"Dutch",no:"Norwegian",oc:"Occitan",pl:"Polish",pt:"Portuguese (Portugal)","pt-br":"Portuguese (Brazil)",ro:"Romanian",ru:"Russian",si:"Sinhala",sk:"Slovak",sq:"Albanian",sl:"Slovenian",sr:"Serbian (Cyrillic)","sr-latn":"Serbian (Latin)",
7
- sv:"Swedish",th:"Thai",tr:"Turkish",tt:"Tatar",ug:"Uighur",uk:"Ukrainian",vi:"Vietnamese",zh:"Chinese Traditional","zh-cn":"Chinese Simplified"},b=[],a;for(a in CKEDITOR.lang.languages)b.push({code:a,name:c[a]||a});b.sort(function(a,b){return a.name<b.name?-1:1});return b}();
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/datafiltering.html DELETED
@@ -1,509 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Data Filtering &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <script>
14
- // Remove advanced tabs for all editors.
15
- CKEDITOR.config.removeDialogTabs = 'image:advanced;link:advanced;flash:advanced;creatediv:advanced;editdiv:advanced';
16
- </script>
17
- </head>
18
- <body>
19
- <h1 class="samples">
20
- <a href="index.html">CKEditor Samples</a> &raquo; Data Filtering and Features Activation
21
- </h1>
22
- <div class="warning deprecated">
23
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/acf.html">brand new version in CKEditor Examples</a>.
24
- </div>
25
- <div class="description">
26
- <p>
27
- This sample page demonstrates the idea of Advanced Content Filter
28
- (<abbr title="Advanced Content Filter">ACF</abbr>), a sophisticated
29
- tool that takes control over what kind of data is accepted by the editor and what
30
- kind of output is produced.
31
- </p>
32
- <h2>When and what is being filtered?</h2>
33
- <p>
34
- <abbr title="Advanced Content Filter">ACF</abbr> controls
35
- <strong>every single source of data</strong> that comes to the editor.
36
- It process both HTML that is inserted manually (i.e. pasted by the user)
37
- and programmatically like:
38
- </p>
39
- <pre class="samples">
40
- editor.setData( '&lt;p&gt;Hello world!&lt;/p&gt;' );
41
- </pre>
42
- <p>
43
- <abbr title="Advanced Content Filter">ACF</abbr> discards invalid,
44
- useless HTML tags and attributes so the editor remains "clean" during
45
- runtime. <abbr title="Advanced Content Filter">ACF</abbr> behaviour
46
- can be configured and adjusted for a particular case to prevent the
47
- output HTML (i.e. in CMS systems) from being polluted.
48
-
49
- This kind of filtering is a first, client-side line of defense
50
- against "<a href="http://en.wikipedia.org/wiki/Tag_soup">tag soups</a>",
51
- the tool that precisely restricts which tags, attributes and styles
52
- are allowed (desired). When properly configured, <abbr title="Advanced Content Filter">ACF</abbr>
53
- is an easy and fast way to produce a high-quality, intentionally filtered HTML.
54
- </p>
55
-
56
- <h3>How to configure or disable ACF?</h3>
57
- <p>
58
- Advanced Content Filter is enabled by default, working in "automatic mode", yet
59
- it provides a set of easy rules that allow adjusting filtering rules
60
- and disabling the entire feature when necessary. The config property
61
- responsible for this feature is <code><a class="samples"
62
- href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-allowedContent">config.allowedContent</a></code>.
63
- </p>
64
- <p>
65
- By "automatic mode" is meant that loaded plugins decide which kind
66
- of content is enabled and which is not. For example, if the link
67
- plugin is loaded it implies that <code>&lt;a&gt;</code> tag is
68
- automatically allowed. Each plugin is given a set
69
- of predefined <abbr title="Advanced Content Filter">ACF</abbr> rules
70
- that control the editor until <code><a class="samples"
71
- href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-allowedContent">
72
- config.allowedContent</a></code>
73
- is defined manually.
74
- </p>
75
- <p>
76
- Let's assume our intention is to restrict the editor to accept (produce) <strong>paragraphs
77
- only: no attributes, no styles, no other tags</strong>.
78
- With <abbr title="Advanced Content Filter">ACF</abbr>
79
- this is very simple. Basically set <code><a class="samples"
80
- href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-allowedContent">
81
- config.allowedContent</a></code> to <code>'p'</code>:
82
- </p>
83
- <pre class="samples">
84
- var editor = CKEDITOR.replace( <em>textarea_id</em>, {
85
- <strong>allowedContent: 'p'</strong>
86
- } );
87
- </pre>
88
- <p>
89
- Now try to play with allowed content:
90
- </p>
91
- <pre class="samples">
92
- // Trying to insert disallowed tag and attribute.
93
- editor.setData( '&lt;p <strong>style="color: red"</strong>&gt;Hello <strong>&lt;em&gt;world&lt;/em&gt;</strong>!&lt;/p&gt;' );
94
- alert( editor.getData() );
95
-
96
- // Filtered data is returned.
97
- "&lt;p&gt;Hello world!&lt;/p&gt;"
98
- </pre>
99
- <p>
100
- What happened? Since <code>config.allowedContent: 'p'</code> is set the editor assumes
101
- that only plain <code>&lt;p&gt;</code> are accepted. Nothing more. This is why
102
- <code>style</code> attribute and <code>&lt;em&gt;</code> tag are gone. The same
103
- filtering would happen if we pasted disallowed HTML into this editor.
104
- </p>
105
- <p>
106
- This is just a small sample of what <abbr title="Advanced Content Filter">ACF</abbr>
107
- can do. To know more, please refer to the sample section below and
108
- <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html">the official Advanced Content Filter guide</a>.
109
- </p>
110
- <p>
111
- You may, of course, want CKEditor to avoid filtering of any kind.
112
- To get rid of <abbr title="Advanced Content Filter">ACF</abbr>,
113
- basically set <code><a class="samples"
114
- href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-allowedContent">
115
- config.allowedContent</a></code> to <code>true</code> like this:
116
- </p>
117
- <pre class="samples">
118
- CKEDITOR.replace( <em>textarea_id</em>, {
119
- <strong>allowedContent: true</strong>
120
- } );
121
- </pre>
122
-
123
- <h2>Beyond data flow: Features activation</h2>
124
- <p>
125
- <abbr title="Advanced Content Filter">ACF</abbr> is far more than
126
- <abbr title="Input/Output">I/O</abbr> control: the entire
127
- <abbr title="User Interface">UI</abbr> of the editor is adjusted to what
128
- filters restrict. For example: if <code>&lt;a&gt;</code> tag is
129
- <strong>disallowed</strong>
130
- by <abbr title="Advanced Content Filter">ACF</abbr>,
131
- then accordingly <code>link</code> command, toolbar button and link dialog
132
- are also disabled. Editor is smart: it knows which features must be
133
- removed from the interface to match filtering rules.
134
- </p>
135
- <p>
136
- CKEditor can be far more specific. If <code>&lt;a&gt;</code> tag is
137
- <strong>allowed</strong> by filtering rules to be used but it is restricted
138
- to have only one attribute (<code>href</code>)
139
- <code>config.allowedContent = 'a[!href]'</code>, then
140
- "Target" tab of the link dialog is automatically disabled as <code>target</code>
141
- attribute isn't included in <abbr title="Advanced Content Filter">ACF</abbr> rules
142
- for <code>&lt;a&gt;</code>. This behaviour applies to dialog fields, context
143
- menus and toolbar buttons.
144
- </p>
145
-
146
- <h2>Sample configurations</h2>
147
- <p>
148
- There are several editor instances below that present different
149
- <abbr title="Advanced Content Filter">ACF</abbr> setups. <strong>All of them,
150
- except the inline instance, share the same HTML content</strong> to visualize
151
- how different filtering rules affect the same input data.
152
- </p>
153
- </div>
154
-
155
- <div>
156
- <label for="editor1">
157
- Editor 1:
158
- </label>
159
- <div class="description">
160
- <p>
161
- This editor is using default configuration ("automatic mode"). It means that
162
- <code><a class="samples"
163
- href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-allowedContent">
164
- config.allowedContent</a></code> is defined by loaded plugins.
165
- Each plugin extends filtering rules to make it's own associated content
166
- available for the user.
167
- </p>
168
- </div>
169
- <textarea cols="80" id="editor1" name="editor1" rows="10">
170
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
171
- </textarea>
172
-
173
- <script>
174
-
175
- CKEDITOR.replace( 'editor1' );
176
-
177
- </script>
178
- </div>
179
-
180
- <br>
181
-
182
- <div>
183
- <label for="editor2">
184
- Editor 2:
185
- </label>
186
- <div class="description">
187
- <p>
188
- This editor is using a custom configuration for
189
- <abbr title="Advanced Content Filter">ACF</abbr>:
190
- </p>
191
- <pre class="samples">
192
- CKEDITOR.replace( 'editor2', {
193
- allowedContent:
194
- 'h1 h2 h3 p blockquote strong em;' +
195
- 'a[!href];' +
196
- 'img(left,right)[!src,alt,width,height];' +
197
- 'table tr th td caption;' +
198
- 'span{!font-family};' +'
199
- 'span{!color};' +
200
- 'span(!marker);' +
201
- 'del ins'
202
- } );
203
- </pre>
204
- <p>
205
- The following rules may require additional explanation:
206
- </p>
207
- <ul>
208
- <li>
209
- <code>h1 h2 h3 p blockquote strong em</code> - These tags
210
- are accepted by the editor. Any tag attributes will be discarded.
211
- </li>
212
- <li>
213
- <code>a[!href]</code> - <code>href</code> attribute is obligatory
214
- for <code>&lt;a&gt;</code> tag. Tags without this attribute
215
- are disarded. No other attribute will be accepted.
216
- </li>
217
- <li>
218
- <code>img(left,right)[!src,alt,width,height]</code> - <code>src</code>
219
- attribute is obligatory for <code>&lt;img&gt;</code> tag.
220
- <code>alt</code>, <code>width</code>, <code>height</code>
221
- and <code>class</code> attributes are accepted but
222
- <code>class</code> must be either <code>class="left"</code>
223
- or <code>class="right"</code>
224
- </li>
225
- <li>
226
- <code>table tr th td caption</code> - These tags
227
- are accepted by the editor. Any tag attributes will be discarded.
228
- </li>
229
- <li>
230
- <code>span{!font-family}</code>, <code>span{!color}</code>,
231
- <code>span(!marker)</code> - <code>&lt;span&gt;</code> tags
232
- will be accepted if either <code>font-family</code> or
233
- <code>color</code> style is set or <code>class="marker"</code>
234
- is present.
235
- </li>
236
- <li>
237
- <code>del ins</code> - These tags
238
- are accepted by the editor. Any tag attributes will be discarded.
239
- </li>
240
- </ul>
241
- <p>
242
- Please note that <strong><abbr title="User Interface">UI</abbr> of the
243
- editor is different</strong>. It's a response to what happened to the filters.
244
- Since <code>text-align</code> isn't allowed, the align toolbar is gone.
245
- The same thing happened to subscript/superscript, strike, underline
246
- (<code>&lt;u&gt;</code>, <code>&lt;sub&gt;</code>, <code>&lt;sup&gt;</code>
247
- are disallowed by <code><a class="samples"
248
- href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-allowedContent">
249
- config.allowedContent</a></code>) and many other buttons.
250
- </p>
251
- </div>
252
- <textarea cols="80" id="editor2" name="editor2" rows="10">
253
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
254
- </textarea>
255
- <script>
256
-
257
- CKEDITOR.replace( 'editor2', {
258
- allowedContent:
259
- 'h1 h2 h3 p blockquote strong em;' +
260
- 'a[!href];' +
261
- 'img(left,right)[!src,alt,width,height];' +
262
- 'table tr th td caption;' +
263
- 'span{!font-family};' +
264
- 'span{!color};' +
265
- 'span(!marker);' +
266
- 'del ins'
267
- } );
268
-
269
- </script>
270
- </div>
271
-
272
- <br>
273
-
274
- <div>
275
- <label for="editor3">
276
- Editor 3:
277
- </label>
278
- <div class="description">
279
- <p>
280
- This editor is using a custom configuration for
281
- <abbr title="Advanced Content Filter">ACF</abbr>.
282
- Note that filters can be configured as an object literal
283
- as an alternative to a string-based definition.
284
- </p>
285
- <pre class="samples">
286
- CKEDITOR.replace( 'editor3', {
287
- allowedContent: {
288
- 'b i ul ol big small': true,
289
- 'h1 h2 h3 p blockquote li': {
290
- styles: 'text-align'
291
- },
292
- a: { attributes: '!href,target' },
293
- img: {
294
- attributes: '!src,alt',
295
- styles: 'width,height',
296
- classes: 'left,right'
297
- }
298
- }
299
- } );
300
- </pre>
301
- </div>
302
- <textarea cols="80" id="editor3" name="editor3" rows="10">
303
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
304
- </textarea>
305
- <script>
306
-
307
- CKEDITOR.replace( 'editor3', {
308
- allowedContent: {
309
- 'b i ul ol big small': true,
310
- 'h1 h2 h3 p blockquote li': {
311
- styles: 'text-align'
312
- },
313
- a: { attributes: '!href,target' },
314
- img: {
315
- attributes: '!src,alt',
316
- styles: 'width,height',
317
- classes: 'left,right'
318
- }
319
- }
320
- } );
321
-
322
- </script>
323
- </div>
324
-
325
- <br>
326
-
327
- <div>
328
- <label for="editor4">
329
- Editor 4:
330
- </label>
331
- <div class="description">
332
- <p>
333
- This editor is using a custom set of plugins and buttons.
334
- </p>
335
- <pre class="samples">
336
- CKEDITOR.replace( 'editor4', {
337
- removePlugins: 'bidi,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',
338
- removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',
339
- format_tags: 'p;h1;h2;h3;pre;address'
340
- } );
341
- </pre>
342
- <p>
343
- As you can see, removing plugins and buttons implies filtering.
344
- Several tags are not allowed in the editor because there's no
345
- plugin/button that is responsible for creating and editing this
346
- kind of content (for example: the image is missing because
347
- of <code>removeButtons: 'Image'</code>). The conclusion is that
348
- <abbr title="Advanced Content Filter">ACF</abbr> works "backwards"
349
- as well: <strong>modifying <abbr title="User Interface">UI</abbr>
350
- elements is changing allowed content rules</strong>.
351
- </p>
352
- </div>
353
- <textarea cols="80" id="editor4" name="editor4" rows="10">
354
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
355
- </textarea>
356
- <script>
357
-
358
- CKEDITOR.replace( 'editor4', {
359
- removePlugins: 'bidi,div,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',
360
- removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',
361
- format_tags: 'p;h1;h2;h3;pre;address'
362
- } );
363
-
364
- </script>
365
- </div>
366
-
367
- <br>
368
-
369
- <div>
370
- <label for="editor5">
371
- Editor 5:
372
- </label>
373
- <div class="description">
374
- <p>
375
- This editor is built on editable <code>&lt;h1&gt;</code> element.
376
- <abbr title="Advanced Content Filter">ACF</abbr> takes care of
377
- what can be included in <code>&lt;h1&gt;</code>. Note that there
378
- are no block styles in Styles combo. Also why lists, indentation,
379
- blockquote, div, form and other buttons are missing.
380
- </p>
381
- <p>
382
- <abbr title="Advanced Content Filter">ACF</abbr> makes sure that
383
- no disallowed tags will come to <code>&lt;h1&gt;</code> so the final
384
- markup is valid. If the user tried to paste some invalid HTML
385
- into this editor (let's say a list), it would be automatically
386
- converted into plain text.
387
- </p>
388
- </div>
389
- <h1 id="editor5" contenteditable="true">
390
- <em>Apollo 11</em> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC.
391
- </h1>
392
- </div>
393
-
394
- <br>
395
-
396
- <div>
397
- <label for="editor3">
398
- Editor 6:
399
- </label>
400
- <div class="description">
401
- <p>
402
- This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>.
403
- It's using the <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_disallowed_content.html" rel="noopener noreferrer" target="_blank">
404
- Disallowed Content</a> property of the filter to eliminate all <code>title</code> attributes.
405
- </p>
406
-
407
- <pre class="samples">
408
- CKEDITOR.replace( 'editor6', {
409
- allowedContent: {
410
- 'b i ul ol big small': true,
411
- 'h1 h2 h3 p blockquote li': {
412
- styles: 'text-align'
413
- },
414
- a: {attributes: '!href,target'},
415
- img: {
416
- attributes: '!src,alt',
417
- styles: 'width,height',
418
- classes: 'left,right'
419
- }
420
- },
421
- disallowedContent: '*{title*}'
422
- } );
423
- </pre>
424
- </div>
425
- <textarea cols="80" id="editor6" name="editor6" rows="10">
426
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
427
- </textarea>
428
- <script>
429
-
430
- CKEDITOR.replace( 'editor6', {
431
- allowedContent: {
432
- 'b i ul ol big small': true,
433
- 'h1 h2 h3 p blockquote li': {
434
- styles: 'text-align'
435
- },
436
- a: {attributes: '!href,target'},
437
- img: {
438
- attributes: '!src,alt',
439
- styles: 'width,height',
440
- classes: 'left,right'
441
- }
442
- },
443
- disallowedContent: '*{title*}'
444
- } );
445
-
446
- </script>
447
- </div>
448
-
449
- <br>
450
-
451
- <div>
452
- <label for="editor7">
453
- Editor 7:
454
- </label>
455
- <div class="description">
456
- <p>
457
- This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>.
458
- It's using the <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_disallowed_content.html" rel="noopener noreferrer" target="_blank">
459
- Disallowed Content</a> property of the filter to eliminate all <code>a</code> and <code>img</code> tags,
460
- while allowing all other tags.
461
- </p>
462
- <pre class="samples">
463
- CKEDITOR.replace( 'editor7', {
464
- allowedContent: {
465
- // Allow all content.
466
- $1: {
467
- elements: CKEDITOR.dtd,
468
- attributes: true,
469
- styles: true,
470
- classes: true
471
- }
472
- },
473
- disallowedContent: 'img a'
474
- } );
475
- </pre>
476
- </div>
477
- <textarea cols="80" id="editor7" name="editor7" rows="10">
478
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
479
- </textarea>
480
- <script>
481
-
482
- CKEDITOR.replace( 'editor7', {
483
- allowedContent: {
484
- // allow all content
485
- $1: {
486
- elements: CKEDITOR.dtd,
487
- attributes: true,
488
- styles: true,
489
- classes: true
490
- }
491
- },
492
- disallowedContent: 'img a'
493
- } );
494
-
495
- </script>
496
- </div>
497
-
498
- <div id="footer">
499
- <hr>
500
- <p>
501
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
502
- </p>
503
- <p id="copy">
504
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
505
- Knabben. All rights reserved.
506
- </p>
507
- </div>
508
- </body>
509
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/dialog/assets/my_dialog.js DELETED
@@ -1,48 +0,0 @@
1
- /**
2
- * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- CKEDITOR.dialog.add( 'myDialog', function() {
7
- return {
8
- title: 'My Dialog',
9
- minWidth: 400,
10
- minHeight: 200,
11
- contents: [
12
- {
13
- id: 'tab1',
14
- label: 'First Tab',
15
- title: 'First Tab',
16
- elements: [
17
- {
18
- id: 'input1',
19
- type: 'text',
20
- label: 'Text Field'
21
- },
22
- {
23
- id: 'select1',
24
- type: 'select',
25
- label: 'Select Field',
26
- items: [
27
- [ 'option1', 'value1' ],
28
- [ 'option2', 'value2' ]
29
- ]
30
- }
31
- ]
32
- },
33
- {
34
- id: 'tab2',
35
- label: 'Second Tab',
36
- title: 'Second Tab',
37
- elements: [
38
- {
39
- id: 'button1',
40
- type: 'button',
41
- label: 'Button Field'
42
- }
43
- ]
44
- }
45
- ]
46
- };
47
- } );
48
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/dialog/dialog.html DELETED
@@ -1,191 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Using API to Customize Dialog Windows &mdash; CKEditor Sample</title>
10
- <script src="../../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="../../../samples/old/sample.css">
12
- <meta name="ckeditor-sample-name" content="Using the JavaScript API to customize dialog windows">
13
- <meta name="ckeditor-sample-group" content="Advanced Samples">
14
- <meta name="ckeditor-sample-description" content="Using the dialog windows API to customize dialog windows without changing the original editor code.">
15
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
16
- <style>
17
-
18
- .cke_button__mybutton_icon
19
- {
20
- display: none !important;
21
- }
22
-
23
- .cke_button__mybutton_label
24
- {
25
- display: inline !important;
26
- }
27
-
28
- </style>
29
- <script>
30
-
31
- CKEDITOR.on( 'instanceCreated', function( ev ){
32
- var editor = ev.editor;
33
-
34
- // Listen for the "pluginsLoaded" event, so we are sure that the
35
- // "dialog" plugin has been loaded and we are able to do our
36
- // customizations.
37
- editor.on( 'pluginsLoaded', function() {
38
-
39
- // If our custom dialog has not been registered, do that now.
40
- if ( !CKEDITOR.dialog.exists( 'myDialog' ) ) {
41
- // We need to do the following trick to find out the dialog
42
- // definition file URL path. In the real world, you would simply
43
- // point to an absolute path directly, like "/mydir/mydialog.js".
44
- var href = document.location.href.split( '/' );
45
- href.pop();
46
- href.push( 'assets/my_dialog.js' );
47
- href = href.join( '/' );
48
-
49
- // Finally, register the dialog.
50
- CKEDITOR.dialog.add( 'myDialog', href );
51
- }
52
-
53
- // Register the command used to open the dialog.
54
- editor.addCommand( 'myDialogCmd', new CKEDITOR.dialogCommand( 'myDialog' ) );
55
-
56
- // Add the a custom toolbar buttons, which fires the above
57
- // command..
58
- editor.ui.add( 'MyButton', CKEDITOR.UI_BUTTON, {
59
- label: 'My Dialog',
60
- command: 'myDialogCmd'
61
- });
62
- });
63
- });
64
-
65
- // When opening a dialog, its "definition" is created for it, for
66
- // each editor instance. The "dialogDefinition" event is then
67
- // fired. We should use this event to make customizations to the
68
- // definition of existing dialogs.
69
- CKEDITOR.on( 'dialogDefinition', function( ev ) {
70
- // Take the dialog name and its definition from the event data.
71
- var dialogName = ev.data.name;
72
- var dialogDefinition = ev.data.definition;
73
-
74
- // Check if the definition is from the dialog we're
75
- // interested on (the "Link" dialog).
76
- if ( dialogName == 'myDialog' && ev.editor.name == 'editor2' ) {
77
- // Get a reference to the "Link Info" tab.
78
- var infoTab = dialogDefinition.getContents( 'tab1' );
79
-
80
- // Add a new text field to the "tab1" tab page.
81
- infoTab.add( {
82
- type: 'text',
83
- label: 'My Custom Field',
84
- id: 'customField',
85
- 'default': 'Sample!',
86
- validate: function() {
87
- if ( ( /\d/ ).test( this.getValue() ) )
88
- return 'My Custom Field must not contain digits';
89
- }
90
- });
91
-
92
- // Remove the "select1" field from the "tab1" tab.
93
- infoTab.remove( 'select1' );
94
-
95
- // Set the default value for "input1" field.
96
- var input1 = infoTab.get( 'input1' );
97
- input1[ 'default' ] = 'www.example.com';
98
-
99
- // Remove the "tab2" tab page.
100
- dialogDefinition.removeContents( 'tab2' );
101
-
102
- // Add a new tab to the "Link" dialog.
103
- dialogDefinition.addContents( {
104
- id: 'customTab',
105
- label: 'My Tab',
106
- accessKey: 'M',
107
- elements: [
108
- {
109
- id: 'myField1',
110
- type: 'text',
111
- label: 'My Text Field'
112
- },
113
- {
114
- id: 'myField2',
115
- type: 'text',
116
- label: 'Another Text Field'
117
- }
118
- ]
119
- });
120
-
121
- // Provide the focus handler to start initial focus in "customField" field.
122
- dialogDefinition.onFocus = function() {
123
- var urlField = this.getContentElement( 'tab1', 'customField' );
124
- urlField.select();
125
- };
126
- }
127
- });
128
-
129
- var config = {
130
- extraPlugins: 'dialog',
131
- toolbar: [ [ 'MyButton' ] ]
132
- };
133
-
134
- </script>
135
- </head>
136
- <body>
137
- <h1 class="samples">
138
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Using CKEditor Dialog API
139
- </h1>
140
- <div class="warning deprecated">
141
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
142
- </div>
143
- <div class="description">
144
- <p>
145
- This sample shows how to use the
146
- <a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dialog.html">CKEditor Dialog API</a>
147
- to customize CKEditor dialog windows without changing the original editor code.
148
- The following customizations are being done in the example below:
149
- </p>
150
- <p>
151
- For details on how to create this setup check the source code of this sample page.
152
- </p>
153
- </div>
154
- <p>A custom dialog is added to the editors using the <code>pluginsLoaded</code> event, from an external <a target="_blank" href="assets/my_dialog.js">dialog definition file</a>:</p>
155
- <ol>
156
- <li><strong>Creating a custom dialog window</strong> &ndash; "My Dialog" dialog window opened with the "My Dialog" toolbar button.</li>
157
- <li><strong>Creating a custom button</strong> &ndash; Add button to open the dialog with "My Dialog" toolbar button.</li>
158
- </ol>
159
- <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
160
- <script>
161
- // Replace the <textarea id="editor1"> with an CKEditor instance.
162
- CKEDITOR.replace( 'editor1', config );
163
- </script>
164
- <p>The below editor modify the dialog definition of the above added dialog using the <code>dialogDefinition</code> event:</p>
165
- <ol>
166
- <li><strong>Adding dialog tab</strong> &ndash; Add new tab "My Tab" to dialog window.</li>
167
- <li><strong>Removing a dialog window tab</strong> &ndash; Remove "Second Tab" page from the dialog window.</li>
168
- <li><strong>Adding dialog window fields</strong> &ndash; Add "My Custom Field" to the dialog window.</li>
169
- <li><strong>Removing dialog window field</strong> &ndash; Remove "Select Field" selection field from the dialog window.</li>
170
- <li><strong>Setting default values for dialog window fields</strong> &ndash; Set default value of "Text Field" text field. </li>
171
- <li><strong>Setup initial focus for dialog window</strong> &ndash; Put initial focus on "My Custom Field" text field. </li>
172
- </ol>
173
- <textarea cols="80" id="editor2" name="editor2" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
174
- <script>
175
-
176
- // Replace the <textarea id="editor1"> with an CKEditor instance.
177
- CKEDITOR.replace( 'editor2', config );
178
-
179
- </script>
180
- <div id="footer">
181
- <hr>
182
- <p>
183
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
184
- </p>
185
- <p id="copy">
186
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
187
- Knabben. All rights reserved.
188
- </p>
189
- </div>
190
- </body>
191
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/divreplace.html DELETED
@@ -1,145 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Replace DIV &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <style>
14
-
15
- div.editable
16
- {
17
- border: solid 2px transparent;
18
- padding-left: 15px;
19
- padding-right: 15px;
20
- }
21
-
22
- div.editable:hover
23
- {
24
- border-color: black;
25
- }
26
-
27
- </style>
28
- <script>
29
-
30
- // Uncomment the following code to test the "Timeout Loading Method".
31
- // CKEDITOR.loadFullCoreTimeout = 5;
32
-
33
- window.onload = function() {
34
- // Listen to the double click event.
35
- if ( window.addEventListener )
36
- document.body.addEventListener( 'dblclick', onDoubleClick, false );
37
- else if ( window.attachEvent )
38
- document.body.attachEvent( 'ondblclick', onDoubleClick );
39
-
40
- };
41
-
42
- function onDoubleClick( ev ) {
43
- // Get the element which fired the event. This is not necessarily the
44
- // element to which the event has been attached.
45
- var element = ev.target || ev.srcElement;
46
-
47
- // Find out the div that holds this element.
48
- var name;
49
-
50
- do {
51
- element = element.parentNode;
52
- }
53
- while ( element && ( name = element.nodeName.toLowerCase() ) &&
54
- ( name != 'div' || element.className.indexOf( 'editable' ) == -1 ) && name != 'body' );
55
-
56
- if ( name == 'div' && element.className.indexOf( 'editable' ) != -1 )
57
- replaceDiv( element );
58
- }
59
-
60
- var editor;
61
-
62
- function replaceDiv( div ) {
63
- if ( editor )
64
- editor.destroy();
65
-
66
- editor = CKEDITOR.replace( div );
67
- }
68
-
69
- </script>
70
- </head>
71
- <body>
72
- <h1 class="samples">
73
- <a href="index.html">CKEditor Samples</a> &raquo; Replace DIV with CKEditor on the Fly
74
- </h1>
75
- <div class="warning deprecated">
76
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
77
- </div>
78
- <div class="description">
79
- <p>
80
- This sample shows how to automatically replace <code>&lt;div&gt;</code> elements
81
- with a CKEditor instance on the fly, following user's doubleclick. The content
82
- that was previously placed inside the <code>&lt;div&gt;</code> element will now
83
- be moved into CKEditor editing area.
84
- </p>
85
- <p>
86
- For details on how to create this setup check the source code of this sample page.
87
- </p>
88
- </div>
89
- <p>
90
- Double-click any of the following <code>&lt;div&gt;</code> elements to transform them into
91
- editor instances.
92
- </p>
93
- <div class="editable">
94
- <h3>
95
- Part 1
96
- </h3>
97
- <p>
98
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
99
- semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
100
- rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
101
- nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
102
- eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
103
- </p>
104
- </div>
105
- <div class="editable">
106
- <h3>
107
- Part 2
108
- </h3>
109
- <p>
110
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
111
- semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
112
- rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
113
- nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
114
- eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
115
- </p>
116
- <p>
117
- Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus
118
- sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum
119
- vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate.
120
- </p>
121
- </div>
122
- <div class="editable">
123
- <h3>
124
- Part 3
125
- </h3>
126
- <p>
127
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
128
- semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
129
- rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
130
- nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
131
- eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
132
- </p>
133
- </div>
134
- <div id="footer">
135
- <hr>
136
- <p>
137
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
138
- </p>
139
- <p id="copy">
140
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
141
- Knabben. All rights reserved.
142
- </p>
143
- </div>
144
- </body>
145
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/enterkey/enterkey.html DELETED
@@ -1,107 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>ENTER Key Configuration &mdash; CKEditor Sample</title>
10
- <script src="../../../ckeditor.js"></script>
11
- <link href="../../../samples/old/sample.css" rel="stylesheet">
12
- <meta name="ckeditor-sample-name" content="Using the &quot;Enter&quot; key in CKEditor">
13
- <meta name="ckeditor-sample-group" content="Advanced Samples">
14
- <meta name="ckeditor-sample-description" content="Configuring the behavior of &lt;em&gt;Enter&lt;/em&gt; and &lt;em&gt;Shift+Enter&lt;/em&gt; keys.">
15
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
16
- <script>
17
-
18
- var editor;
19
-
20
- function changeEnter() {
21
- // If we already have an editor, let's destroy it first.
22
- if ( editor )
23
- editor.destroy( true );
24
-
25
- // Create the editor again, with the appropriate settings.
26
- editor = CKEDITOR.replace( 'editor1', {
27
- extraPlugins: 'enterkey',
28
- enterMode: Number( document.getElementById( 'xEnter' ).value ),
29
- shiftEnterMode: Number( document.getElementById( 'xShiftEnter' ).value )
30
- });
31
- }
32
-
33
- window.onload = changeEnter;
34
-
35
- </script>
36
- </head>
37
- <body>
38
- <h1 class="samples">
39
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; ENTER Key Configuration
40
- </h1>
41
- <div class="warning deprecated">
42
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/enterkey.html">brand new version in CKEditor Examples</a>.
43
- </div>
44
- <div class="description">
45
- <p>
46
- This sample shows how to configure the <em>Enter</em> and <em>Shift+Enter</em> keys
47
- to perform actions specified in the
48
- <a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-enterMode"><code>enterMode</code></a>
49
- and <a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-shiftEnterMode"><code>shiftEnterMode</code></a>
50
- parameters, respectively.
51
- You can choose from the following options:
52
- </p>
53
- <ul class="samples">
54
- <li><strong><code>ENTER_P</code></strong> &ndash; new <code>&lt;p&gt;</code> paragraphs are created;</li>
55
- <li><strong><code>ENTER_BR</code></strong> &ndash; lines are broken with <code>&lt;br&gt;</code> elements;</li>
56
- <li><strong><code>ENTER_DIV</code></strong> &ndash; new <code>&lt;div&gt;</code> blocks are created.</li>
57
- </ul>
58
- <p>
59
- The sample code below shows how to configure CKEditor to create a <code>&lt;div&gt;</code> block when <em>Enter</em> key is pressed.
60
- </p>
61
- <pre class="samples">
62
- CKEDITOR.replace( '<em>textarea_id</em>', {
63
- <strong>enterMode: CKEDITOR.ENTER_DIV</strong>
64
- });</pre>
65
- <p>
66
- Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
67
- the <code>&lt;textarea&gt;</code> element to be replaced.
68
- </p>
69
- </div>
70
- <div style="float: left; margin-right: 20px">
71
- When <em>Enter</em> is pressed:<br>
72
- <select id="xEnter" onchange="changeEnter();">
73
- <option selected="selected" value="1">Create a new &lt;P&gt; (recommended)</option>
74
- <option value="3">Create a new &lt;DIV&gt;</option>
75
- <option value="2">Break the line with a &lt;BR&gt;</option>
76
- </select>
77
- </div>
78
- <div style="float: left">
79
- When <em>Shift+Enter</em> is pressed:<br>
80
- <select id="xShiftEnter" onchange="changeEnter();">
81
- <option value="1">Create a new &lt;P&gt;</option>
82
- <option value="3">Create a new &lt;DIV&gt;</option>
83
- <option selected="selected" value="2">Break the line with a &lt;BR&gt; (recommended)</option>
84
- </select>
85
- </div>
86
- <br style="clear: both">
87
- <form action="../../../samples/sample_posteddata.php" method="post">
88
- <p>
89
- <br>
90
- <textarea cols="80" id="editor1" name="editor1" rows="10">This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.</textarea>
91
- </p>
92
- <p>
93
- <input type="submit" value="Submit">
94
- </p>
95
- </form>
96
- <div id="footer">
97
- <hr>
98
- <p>
99
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
100
- </p>
101
- <p id="copy">
102
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
103
- Knabben. All rights reserved.
104
- </p>
105
- </div>
106
- </body>
107
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js DELETED
@@ -1,19 +0,0 @@
1
- var swfobject=function(){function w(){if(!u){try{var a=d.getElementsByTagName("body")[0].appendChild(d.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}u=!0;for(var a=z.length,c=0;c<a;c++)z[c]()}}function M(a){u?a():z[z.length]=a}function N(a){if("undefined"!=typeof n.addEventListener)n.addEventListener("load",a,!1);else if("undefined"!=typeof d.addEventListener)d.addEventListener("load",a,!1);else if("undefined"!=typeof n.attachEvent)U(n,"onload",a);else if("function"==typeof n.onload){var b=
2
- n.onload;n.onload=function(){b();a()}}else n.onload=a}function V(){var a=d.getElementsByTagName("body")[0],b=d.createElement("object");b.setAttribute("type","application/x-shockwave-flash");var c=a.appendChild(b);if(c){var f=0;(function(){if("undefined"!=typeof c.GetVariable){var g=c.GetVariable("$version");g&&(g=g.split(" ")[1].split(","),e.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)])}else if(10>f){f++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;E()})()}else E()}
3
- function E(){var a=r.length;if(0<a)for(var b=0;b<a;b++){var c=r[b].id,f=r[b].callbackFn,g={success:!1,id:c};if(0<e.pv[0]){var d=p(c);if(d)if(!A(r[b].swfVersion)||e.wk&&312>e.wk)if(r[b].expressInstall&&F()){g={};g.data=r[b].expressInstall;g.width=d.getAttribute("width")||"0";g.height=d.getAttribute("height")||"0";d.getAttribute("class")&&(g.styleclass=d.getAttribute("class"));d.getAttribute("align")&&(g.align=d.getAttribute("align"));for(var h={},d=d.getElementsByTagName("param"),k=d.length,l=0;l<
4
- k;l++)"movie"!=d[l].getAttribute("name").toLowerCase()&&(h[d[l].getAttribute("name")]=d[l].getAttribute("value"));G(g,h,c,f)}else W(d),f&&f(g);else v(c,!0),f&&(g.success=!0,g.ref=H(c),f(g))}else v(c,!0),f&&((c=H(c))&&"undefined"!=typeof c.SetVariable&&(g.success=!0,g.ref=c),f(g))}}function H(a){var b=null;(a=p(a))&&"OBJECT"==a.nodeName&&("undefined"!=typeof a.SetVariable?b=a:(a=a.getElementsByTagName("object")[0])&&(b=a));return b}function F(){return!B&&A("6.0.65")&&(e.win||e.mac)&&!(e.wk&&312>e.wk)}
5
- function G(a,b,c,f){B=!0;I=f||null;O={success:!1,id:c};var g=p(c);if(g){"OBJECT"==g.nodeName?(y=J(g),C=null):(y=g,C=c);a.id="SWFObjectExprInst";if("undefined"==typeof a.width||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if("undefined"==typeof a.height||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";d.title=d.title.slice(0,47)+" - Flash Player Installation";f=e.ie&&e.win?"ActiveX":"PlugIn";f="MMredirectURL\x3d"+n.location.toString().replace(/&/g,"%26")+"\x26MMplayerType\x3d"+
6
- f+"\x26MMdoctitle\x3d"+d.title;b.flashvars="undefined"!=typeof b.flashvars?b.flashvars+("\x26"+f):f;e.ie&&e.win&&4!=g.readyState&&(f=d.createElement("div"),c+="SWFObjectNew",f.setAttribute("id",c),g.parentNode.insertBefore(f,g),g.style.display="none",function(){4==g.readyState?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}());K(a,b,c)}}function W(a){if(e.ie&&e.win&&4!=a.readyState){var b=d.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(J(a),b);a.style.display=
7
- "none";(function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(J(a),a)}function J(a){var b=d.createElement("div");if(e.win&&e.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName("object")[0])if(a=a.childNodes)for(var c=a.length,f=0;f<c;f++)1==a[f].nodeType&&"PARAM"==a[f].nodeName||8==a[f].nodeType||b.appendChild(a[f].cloneNode(!0));return b}function K(a,b,c){var f,g=p(c);if(e.wk&&312>e.wk)return f;if(g)if("undefined"==typeof a.id&&
8
- (a.id=c),e.ie&&e.win){var q="",h;for(h in a)a[h]!=Object.prototype[h]&&("data"==h.toLowerCase()?b.movie=a[h]:"styleclass"==h.toLowerCase()?q+=' class\x3d"'+a[h]+'"':"classid"!=h.toLowerCase()&&(q+=" "+h+'\x3d"'+a[h]+'"'));h="";for(var k in b)b[k]!=Object.prototype[k]&&(h+='\x3cparam name\x3d"'+k+'" value\x3d"'+b[k]+'" /\x3e');g.outerHTML='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+q+"\x3e"+h+"\x3c/object\x3e";D[D.length]=a.id;f=p(a.id)}else{k=d.createElement("object");k.setAttribute("type",
9
- "application/x-shockwave-flash");for(var l in a)a[l]!=Object.prototype[l]&&("styleclass"==l.toLowerCase()?k.setAttribute("class",a[l]):"classid"!=l.toLowerCase()&&k.setAttribute(l,a[l]));for(q in b)b[q]!=Object.prototype[q]&&"movie"!=q.toLowerCase()&&(a=k,h=q,l=b[q],c=d.createElement("param"),c.setAttribute("name",h),c.setAttribute("value",l),a.appendChild(c));g.parentNode.replaceChild(k,g);f=k}return f}function P(a){var b=p(a);b&&"OBJECT"==b.nodeName&&(e.ie&&e.win?(b.style.display="none",function(){if(4==
10
- b.readyState){var c=p(a);if(c){for(var f in c)"function"==typeof c[f]&&(c[f]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function p(a){var b=null;try{b=d.getElementById(a)}catch(c){}return b}function U(a,b,c){a.attachEvent(b,c);x[x.length]=[a,b,c]}function A(a){var b=e.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:
11
- !1}function Q(a,b,c,f){if(!e.ie||!e.mac){var g=d.getElementsByTagName("head")[0];g&&(c=c&&"string"==typeof c?c:"screen",f&&(L=m=null),m&&L==c||(f=d.createElement("style"),f.setAttribute("type","text/css"),f.setAttribute("media",c),m=g.appendChild(f),e.ie&&e.win&&"undefined"!=typeof d.styleSheets&&0<d.styleSheets.length&&(m=d.styleSheets[d.styleSheets.length-1]),L=c),e.ie&&e.win?m&&"object"==typeof m.addRule&&m.addRule(a,b):m&&"undefined"!=typeof d.createTextNode&&m.appendChild(d.createTextNode(a+
12
- " {"+b+"}")))}}function v(a,b){if(R){var c=b?"visible":"hidden";u&&p(a)?p(a).style.visibility=c:Q("#"+a,"visibility:"+c)}}function S(a){return null!=/[\\\"<>\.;]/.exec(a)&&"undefined"!=typeof encodeURIComponent?encodeURIComponent(a):a}var n=window,d=document,t=navigator,T=!1,z=[function(){T?V():E()}],r=[],D=[],x=[],y,C,I,O,u=!1,B=!1,m,L,R=!0,e=function(){var a="undefined"!=typeof d.getElementById&&"undefined"!=typeof d.getElementsByTagName&&"undefined"!=typeof d.createElement,b=t.userAgent.toLowerCase(),
13
- c=t.platform.toLowerCase(),f=c?/win/.test(c):/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!+"\v1",e=[0,0,0],h=null;if("undefined"!=typeof t.plugins&&"object"==typeof t.plugins["Shockwave Flash"])!(h=t.plugins["Shockwave Flash"].description)||"undefined"!=typeof t.mimeTypes&&t.mimeTypes["application/x-shockwave-flash"]&&!t.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(T=!0,g=!1,h=h.replace(/^.*\s+(\S+\s+\S+$)/,
14
- "$1"),e[0]=parseInt(h.replace(/^(.*)\..*$/,"$1"),10),e[1]=parseInt(h.replace(/^.*\.(.*)\s.*$/,"$1"),10),e[2]=/[a-zA-Z]/.test(h)?parseInt(h.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if("undefined"!=typeof n.ActiveXObject)try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");k&&(h=k.GetVariable("$version"))&&(g=!0,h=h.split(" ")[1].split(","),e=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)])}catch(l){}return{w3:a,pv:e,wk:b,ie:g,win:f,mac:c}}();(function(){e.w3&&(("undefined"!=typeof d.readyState&&
15
- "complete"==d.readyState||"undefined"==typeof d.readyState&&(d.getElementsByTagName("body")[0]||d.body))&&w(),u||("undefined"!=typeof d.addEventListener&&d.addEventListener("DOMContentLoaded",w,!1),e.ie&&e.win&&(d.attachEvent("onreadystatechange",function(){"complete"==d.readyState&&(d.detachEvent("onreadystatechange",arguments.callee),w())}),n==top&&function(){if(!u){try{d.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}w()}}()),e.wk&&function(){u||(/loaded|complete/.test(d.readyState)?
16
- w():setTimeout(arguments.callee,0))}(),N(w)))})();(function(){e.ie&&e.win&&window.attachEvent("onunload",function(){for(var a=x.length,b=0;b<a;b++)x[b][0].detachEvent(x[b][1],x[b][2]);a=D.length;for(b=0;b<a;b++)P(D[b]);for(var c in e)e[c]=null;e=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})})();return{registerObject:function(a,b,c,f){if(e.w3&&a&&b){var d={};d.id=a;d.swfVersion=b;d.expressInstall=c;d.callbackFn=f;r[r.length]=d;v(a,!1)}else f&&f({success:!1,id:a})},getObjectById:function(a){if(e.w3)return H(a)},
17
- embedSWF:function(a,b,c,d,g,q,h,k,l,n){var p={success:!1,id:b};e.w3&&!(e.wk&&312>e.wk)&&a&&b&&c&&d&&g?(v(b,!1),M(function(){c+="";d+="";var e={};if(l&&"object"===typeof l)for(var m in l)e[m]=l[m];e.data=a;e.width=c;e.height=d;m={};if(k&&"object"===typeof k)for(var r in k)m[r]=k[r];if(h&&"object"===typeof h)for(var t in h)m.flashvars="undefined"!=typeof m.flashvars?m.flashvars+("\x26"+t+"\x3d"+h[t]):t+"\x3d"+h[t];if(A(g))r=K(e,m,b),e.id==b&&v(b,!0),p.success=!0,p.ref=r;else{if(q&&F()){e.data=q;G(e,
18
- m,b,n);return}v(b,!0)}n&&n(p)})):n&&n(p)},switchOffAutoHideShow:function(){R=!1},ua:e,getFlashPlayerVersion:function(){return{major:e.pv[0],minor:e.pv[1],release:e.pv[2]}},hasFlashPlayerVersion:A,createSWF:function(a,b,c){if(e.w3)return K(a,b,c)},showExpressInstall:function(a,b,c,d){e.w3&&F()&&G(a,b,c,d)},removeSWF:function(a){e.w3&&P(a)},createCSS:function(a,b,c,d){e.w3&&Q(a,b,c,d)},addDomLoadEvent:M,addLoadEvent:N,getQueryParamValue:function(a){var b=d.location.search||d.location.hash;if(b){/\?/.test(b)&&
19
- (b=b.split("?")[1]);if(null==a)return S(b);for(var b=b.split("\x26"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("\x3d"))==a)return S(b[c].substring(b[c].indexOf("\x3d")+1))}return""},expressInstallCallback:function(){if(B){var a=p("SWFObjectExprInst");a&&y&&(a.parentNode.replaceChild(y,a),C&&(v(C,!0),e.ie&&e.win&&(y.style.display="block")),I&&I(O));B=!1}}}}();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/outputforflash.html DELETED
@@ -1,284 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Output for Flash &mdash; CKEditor Sample</title>
10
- <script src="../../../ckeditor.js"></script>
11
- <script src="../../../samples/old/sample.js"></script>
12
- <script src="assets/outputforflash/swfobject.js"></script>
13
- <link href="../../../samples/old/sample.css" rel="stylesheet">
14
- <meta name="ckeditor-sample-required-plugins" content="sourcearea">
15
- <meta name="ckeditor-sample-name" content="Output for Flash">
16
- <meta name="ckeditor-sample-group" content="Advanced Samples">
17
- <meta name="ckeditor-sample-description" content="Configuring CKEditor to produce HTML code that can be used with Adobe Flash.">
18
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
19
- <style>
20
-
21
- .alert
22
- {
23
- background: #ffa84c;
24
- padding: 10px 15px;
25
- font-weight: bold;
26
- display: block;
27
- margin-bottom: 20px;
28
- }
29
-
30
- </style>
31
- </head>
32
- <body>
33
- <h1 class="samples">
34
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Producing Flash Compliant HTML Output
35
- </h1>
36
- <div class="warning deprecated">
37
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
38
- </div>
39
- <div class="description">
40
- <p>
41
- This sample shows how to configure CKEditor to output
42
- HTML code that can be used with
43
- <a class="samples" href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000922.html">
44
- Adobe Flash</a>.
45
- The code will contain a subset of standard HTML elements like <code>&lt;b&gt;</code>,
46
- <code>&lt;i&gt;</code>, and <code>&lt;p&gt;</code> as well as HTML attributes.
47
- </p>
48
- <p>
49
- To add a CKEditor instance outputting Flash compliant HTML code, load the editor using a standard
50
- JavaScript call, and define CKEditor features to use HTML elements and attributes.
51
- </p>
52
- <p>
53
- For details on how to create this setup check the source code of this sample page.
54
- </p>
55
- </div>
56
- <p>
57
- To see how it works, create some content in the editing area of CKEditor on the left
58
- and send it to the Flash object on the right side of the page by using the
59
- <strong>Send to Flash</strong> button.
60
- </p>
61
- <table style="width: 100%; border-spacing: 0; border-collapse:collapse;">
62
- <tr>
63
- <td style="width: 100%">
64
- <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;&lt;b&gt;&lt;font size=&quot;18&quot; style=&quot;font-size:18px;&quot;&gt;Flash and HTML&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It is possible to have &lt;a href=&quot;https://ckeditor.com&quot;&gt;CKEditor&lt;/a&gt; creating content that will be later loaded inside &lt;b&gt;Flash&lt;/b&gt; objects and animations.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Flash has a few limitations when dealing with HTML:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;It has limited support on tags.&lt;/li&gt;&lt;li&gt;There is no margin between block elements, like paragraphs.&lt;/li&gt;&lt;/ul&gt;</textarea>
65
- <script>
66
-
67
- if ( document.location.protocol == 'file:' )
68
- alert( 'Warning: This samples does not work when loaded from local filesystem' +
69
- 'due to security restrictions implemented in Flash.' +
70
- '\n\nPlease load the sample from a web server instead.' );
71
-
72
- var editor = CKEDITOR.replace( 'editor1', {
73
- /*
74
- * Ensure that htmlwriter plugin, which is required for this sample, is loaded.
75
- */
76
- extraPlugins: 'htmlwriter',
77
-
78
- height: 290,
79
- width: '100%',
80
- toolbar: [
81
- [ 'Source', '-', 'Bold', 'Italic', 'Underline', '-', 'BulletedList', '-', 'Link', 'Unlink' ],
82
- [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
83
- '/',
84
- [ 'Font', 'FontSize' ],
85
- [ 'TextColor', '-', 'About' ]
86
- ],
87
-
88
- /*
89
- * Style sheet for the contents
90
- */
91
- contentsCss: 'body {color:#000; background-color#FFF; font-family: Arial; font-size:80%;} p, ol, ul {margin-top: 0px; margin-bottom: 0px;}',
92
-
93
- /*
94
- * Quirks doctype
95
- */
96
- docType: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">',
97
-
98
- /*
99
- * Core styles.
100
- */
101
- coreStyles_bold: { element: 'b' },
102
- coreStyles_italic: { element: 'i' },
103
- coreStyles_underline: { element: 'u' },
104
-
105
- /*
106
- * Font face.
107
- */
108
-
109
- // Define the way font elements will be applied to the document. The "font"
110
- // element will be used.
111
- font_style: {
112
- element: 'font',
113
- attributes: { 'face': '#(family)' }
114
- },
115
-
116
- /*
117
- * Font sizes.
118
- */
119
-
120
- // The CSS part of the font sizes isn't used by Flash, it is there to get the
121
- // font rendered correctly in CKEditor.
122
- fontSize_sizes: '8px/8;9px/9;10px/10;11px/11;12px/12;14px/14;16px/16;18px/18;20px/20;22px/22;24px/24;26px/26;28px/28;36px/36;48px/48;72px/72',
123
- fontSize_style: {
124
- element: 'font',
125
- attributes: { 'size': '#(size)' },
126
- styles: { 'font-size': '#(size)px' }
127
- } ,
128
-
129
- /*
130
- * Font colors.
131
- */
132
- colorButton_enableMore: true,
133
-
134
- colorButton_foreStyle: {
135
- element: 'font',
136
- attributes: { 'color': '#(color)' }
137
- },
138
-
139
- colorButton_backStyle: {
140
- element: 'font',
141
- styles: { 'background-color': '#(color)' }
142
- },
143
-
144
- on: { 'instanceReady': configureFlashOutput }
145
- });
146
-
147
- /*
148
- * Adjust the behavior of the dataProcessor to match the
149
- * requirements of Flash
150
- */
151
- function configureFlashOutput( ev ) {
152
- var editor = ev.editor,
153
- dataProcessor = editor.dataProcessor,
154
- htmlFilter = dataProcessor && dataProcessor.htmlFilter;
155
-
156
- // Out self closing tags the HTML4 way, like <br>.
157
- dataProcessor.writer.selfClosingEnd = '>';
158
-
159
- // Make output formatting match Flash expectations
160
- var dtd = CKEDITOR.dtd;
161
- for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
162
- dataProcessor.writer.setRules( e, {
163
- indent: false,
164
- breakBeforeOpen: false,
165
- breakAfterOpen: false,
166
- breakBeforeClose: false,
167
- breakAfterClose: false
168
- });
169
- }
170
- dataProcessor.writer.setRules( 'br', {
171
- indent: false,
172
- breakBeforeOpen: false,
173
- breakAfterOpen: false,
174
- breakBeforeClose: false,
175
- breakAfterClose: false
176
- });
177
-
178
- // Output properties as attributes, not styles.
179
- htmlFilter.addRules( {
180
- elements: {
181
- $: function( element ) {
182
- var style, match, width, height, align;
183
-
184
- // Output dimensions of images as width and height
185
- if ( element.name == 'img' ) {
186
- style = element.attributes.style;
187
-
188
- if ( style ) {
189
- // Get the width from the style.
190
- match = ( /(?:^|\s)width\s*:\s*(\d+)px/i ).exec( style );
191
- width = match && match[1];
192
-
193
- // Get the height from the style.
194
- match = ( /(?:^|\s)height\s*:\s*(\d+)px/i ).exec( style );
195
- height = match && match[1];
196
-
197
- if ( width ) {
198
- element.attributes.style = element.attributes.style.replace( /(?:^|\s)width\s*:\s*(\d+)px;?/i , '' );
199
- element.attributes.width = width;
200
- }
201
-
202
- if ( height ) {
203
- element.attributes.style = element.attributes.style.replace( /(?:^|\s)height\s*:\s*(\d+)px;?/i , '' );
204
- element.attributes.height = height;
205
- }
206
- }
207
- }
208
-
209
- // Output alignment of paragraphs using align
210
- if ( element.name == 'p' ) {
211
- style = element.attributes.style;
212
-
213
- if ( style ) {
214
- // Get the align from the style.
215
- match = ( /(?:^|\s)text-align\s*:\s*(\w*);?/i ).exec( style );
216
- align = match && match[1];
217
-
218
- if ( align ) {
219
- element.attributes.style = element.attributes.style.replace( /(?:^|\s)text-align\s*:\s*(\w*);?/i , '' );
220
- element.attributes.align = align;
221
- }
222
- }
223
- }
224
-
225
- if ( element.attributes.style === '' )
226
- delete element.attributes.style;
227
-
228
- return element;
229
- }
230
- }
231
- });
232
- }
233
-
234
- function sendToFlash() {
235
- var html = CKEDITOR.instances.editor1.getData() ;
236
-
237
- // Quick fix for link color.
238
- html = html.replace( /<a /g, '<font color="#0000FF"><u><a ' )
239
- html = html.replace( /<\/a>/g, '</a></u></font>' )
240
-
241
- var flash = document.getElementById( 'ckFlashContainer' ) ;
242
- flash.setData( html ) ;
243
- }
244
-
245
- CKEDITOR.domReady( function() {
246
- if ( !swfobject.hasFlashPlayerVersion( '8' ) ) {
247
- CKEDITOR.dom.element.createFromHtml( '<span class="alert">' +
248
- 'At least Adobe Flash Player 8 is required to run this sample. ' +
249
- 'You can download it from <a href="http://get.adobe.com/flashplayer">Adobe\'s website</a>.' +
250
- '</span>' ).insertBefore( editor.element );
251
- }
252
-
253
- swfobject.embedSWF(
254
- 'assets/outputforflash/outputforflash.swf',
255
- 'ckFlashContainer',
256
- '550',
257
- '400',
258
- '8',
259
- { wmode: 'transparent' }
260
- );
261
- });
262
-
263
- </script>
264
- <p>
265
- <input type="button" value="Send to Flash" onclick="sendToFlash();">
266
- </p>
267
- </td>
268
- <td style="vertical-align: top; padding-left: 20px">
269
- <div id="ckFlashContainer"></div>
270
- </td>
271
- </tr>
272
- </table>
273
- <div id="footer">
274
- <hr>
275
- <p>
276
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
277
- </p>
278
- <p id="copy">
279
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
280
- Knabben. All rights reserved.
281
- </p>
282
- </div>
283
- </body>
284
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/htmlwriter/outputhtml.html DELETED
@@ -1,225 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>HTML Compliant Output &mdash; CKEditor Sample</title>
10
- <script src="../../../ckeditor.js"></script>
11
- <script src="../../../samples/old/sample.js"></script>
12
- <link href="../../../samples/old/sample.css" rel="stylesheet">
13
- <meta name="ckeditor-sample-required-plugins" content="sourcearea">
14
- <meta name="ckeditor-sample-name" content="Output HTML">
15
- <meta name="ckeditor-sample-group" content="Advanced Samples">
16
- <meta name="ckeditor-sample-description" content="Configuring CKEditor to produce legacy HTML 4 code.">
17
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
18
- </head>
19
- <body>
20
- <h1 class="samples">
21
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Producing HTML Compliant Output
22
- </h1>
23
- <div class="warning deprecated">
24
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
25
- </div>
26
- <div class="description">
27
- <p>
28
- This sample shows how to configure CKEditor to output valid
29
- <a class="samples" href="http://www.w3.org/TR/html401/">HTML 4.01</a> code.
30
- Traditional HTML elements like <code>&lt;b&gt;</code>,
31
- <code>&lt;i&gt;</code>, and <code>&lt;font&gt;</code> are used in place of
32
- <code>&lt;strong&gt;</code>, <code>&lt;em&gt;</code>, and CSS styles.
33
- </p>
34
- <p>
35
- To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard
36
- JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes.
37
- </p>
38
- <p>
39
- A snippet of the configuration code can be seen below; check the source of this page for
40
- full definition:
41
- </p>
42
- <pre class="samples">
43
- CKEDITOR.replace( '<em>textarea_id</em>', {
44
- coreStyles_bold: { element: 'b' },
45
- coreStyles_italic: { element: 'i' },
46
-
47
- fontSize_style: {
48
- element: 'font',
49
- attributes: { 'size': '#(size)' }
50
- }
51
-
52
- ...
53
- });</pre>
54
- </div>
55
- <form action="../../../samples/sample_posteddata.php" method="post">
56
- <p>
57
- <label for="editor1">
58
- Editor 1:
59
- </label>
60
- <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;b&gt;sample text&lt;/b&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
61
- <script>
62
-
63
- CKEDITOR.replace( 'editor1', {
64
- /*
65
- * Ensure that htmlwriter plugin, which is required for this sample, is loaded.
66
- */
67
- extraPlugins: 'htmlwriter',
68
-
69
- /*
70
- * Style sheet for the contents
71
- */
72
- contentsCss: 'body {color:#000; background-color#:FFF;}',
73
-
74
- /*
75
- * Simple HTML5 doctype
76
- */
77
- docType: '<!DOCTYPE HTML>',
78
-
79
- /*
80
- * Allowed content rules which beside limiting allowed HTML
81
- * will also take care of transforming styles to attributes
82
- * (currently only for img - see transformation rules defined below).
83
- *
84
- * Read more: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html
85
- */
86
- allowedContent:
87
- 'h1 h2 h3 p pre[align]; ' +
88
- 'blockquote code kbd samp var del ins cite q b i u strike ul ol li hr table tbody tr td th caption; ' +
89
- 'img[!src,alt,align,width,height]; font[!face]; font[!family]; font[!color]; font[!size]; font{!background-color}; a[!href]; a[!name]',
90
-
91
- /*
92
- * Core styles.
93
- */
94
- coreStyles_bold: { element: 'b' },
95
- coreStyles_italic: { element: 'i' },
96
- coreStyles_underline: { element: 'u' },
97
- coreStyles_strike: { element: 'strike' },
98
-
99
- /*
100
- * Font face.
101
- */
102
-
103
- // Define the way font elements will be applied to the document.
104
- // The "font" element will be used.
105
- font_style: {
106
- element: 'font',
107
- attributes: { 'face': '#(family)' }
108
- },
109
-
110
- /*
111
- * Font sizes.
112
- */
113
- fontSize_sizes: 'xx-small/1;x-small/2;small/3;medium/4;large/5;x-large/6;xx-large/7',
114
- fontSize_style: {
115
- element: 'font',
116
- attributes: { 'size': '#(size)' }
117
- },
118
-
119
- /*
120
- * Font colors.
121
- */
122
-
123
- colorButton_foreStyle: {
124
- element: 'font',
125
- attributes: { 'color': '#(color)' }
126
- },
127
-
128
- colorButton_backStyle: {
129
- element: 'font',
130
- styles: { 'background-color': '#(color)' }
131
- },
132
-
133
- /*
134
- * Styles combo.
135
- */
136
- stylesSet: [
137
- { name: 'Computer Code', element: 'code' },
138
- { name: 'Keyboard Phrase', element: 'kbd' },
139
- { name: 'Sample Text', element: 'samp' },
140
- { name: 'Variable', element: 'var' },
141
- { name: 'Deleted Text', element: 'del' },
142
- { name: 'Inserted Text', element: 'ins' },
143
- { name: 'Cited Work', element: 'cite' },
144
- { name: 'Inline Quotation', element: 'q' }
145
- ],
146
-
147
- on: {
148
- pluginsLoaded: configureTransformations,
149
- loaded: configureHtmlWriter
150
- }
151
- });
152
-
153
- /*
154
- * Add missing content transformations.
155
- */
156
- function configureTransformations( evt ) {
157
- var editor = evt.editor;
158
-
159
- editor.dataProcessor.htmlFilter.addRules( {
160
- attributes: {
161
- style: function( value, element ) {
162
- // Return #RGB for background and border colors
163
- return CKEDITOR.tools.convertRgbToHex( value );
164
- }
165
- }
166
- } );
167
-
168
- // Default automatic content transformations do not yet take care of
169
- // align attributes on blocks, so we need to add our own transformation rules.
170
- function alignToAttribute( element ) {
171
- if ( element.styles[ 'text-align' ] ) {
172
- element.attributes.align = element.styles[ 'text-align' ];
173
- delete element.styles[ 'text-align' ];
174
- }
175
- }
176
- editor.filter.addTransformations( [
177
- [ { element: 'p', right: alignToAttribute } ],
178
- [ { element: 'h1', right: alignToAttribute } ],
179
- [ { element: 'h2', right: alignToAttribute } ],
180
- [ { element: 'h3', right: alignToAttribute } ],
181
- [ { element: 'pre', right: alignToAttribute } ]
182
- ] );
183
- }
184
-
185
- /*
186
- * Adjust the behavior of htmlWriter to make it output HTML like FCKeditor.
187
- */
188
- function configureHtmlWriter( evt ) {
189
- var editor = evt.editor,
190
- dataProcessor = editor.dataProcessor;
191
-
192
- // Out self closing tags the HTML4 way, like <br>.
193
- dataProcessor.writer.selfClosingEnd = '>';
194
-
195
- // Make output formatting behave similar to FCKeditor.
196
- var dtd = CKEDITOR.dtd;
197
- for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) {
198
- dataProcessor.writer.setRules( e, {
199
- indent: true,
200
- breakBeforeOpen: true,
201
- breakAfterOpen: false,
202
- breakBeforeClose: !dtd[ e ][ '#' ],
203
- breakAfterClose: true
204
- });
205
- }
206
- }
207
-
208
- </script>
209
- </p>
210
- <p>
211
- <input type="submit" value="Submit">
212
- </p>
213
- </form>
214
- <div id="footer">
215
- <hr>
216
- <p>
217
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
218
- </p>
219
- <p id="copy">
220
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
221
- Knabben. All rights reserved.
222
- </p>
223
- </div>
224
- </body>
225
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/index.html DELETED
@@ -1,132 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>CKEditor Samples</title>
10
- <link rel="stylesheet" href="sample.css">
11
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
12
- </head>
13
- <body>
14
- <h1 class="samples">
15
- CKEditor Samples
16
- </h1>
17
- <div class="warning deprecated">
18
- These samples are not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
19
- </div>
20
- <div class="twoColumns">
21
- <div class="twoColumnsLeft">
22
- <h2 class="samples">
23
- Basic Samples
24
- </h2>
25
- <dl class="samples">
26
- <dt><a class="samples" href="replacebyclass.html">Replace textarea elements by class name</a></dt>
27
- <dd>Automatic replacement of all textarea elements of a given class with a CKEditor instance.</dd>
28
-
29
- <dt><a class="samples" href="replacebycode.html">Replace textarea elements by code</a></dt>
30
- <dd>Replacement of textarea elements with CKEditor instances by using a JavaScript call.</dd>
31
-
32
- <dt><a class="samples" href="jquery.html">Create editors with jQuery</a></dt>
33
- <dd>Creating standard and inline CKEditor instances with jQuery adapter.</dd>
34
- </dl>
35
-
36
- <h2 class="samples">
37
- Basic Customization
38
- </h2>
39
- <dl class="samples">
40
- <dt><a class="samples" href="uicolor.html">User Interface color</a></dt>
41
- <dd>Changing CKEditor User Interface color and adding a toolbar button that lets the user set the UI color.</dd>
42
-
43
- <dt><a class="samples" href="uilanguages.html">User Interface languages</a></dt>
44
- <dd>Changing CKEditor User Interface language and adding a drop-down list that lets the user choose the UI language.</dd>
45
- </dl>
46
-
47
-
48
- <h2 class="samples">Plugins</h2>
49
- <dl class="samples">
50
- <dt><a class="samples" href="magicline/magicline.html">Magicline plugin</a></dt>
51
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
52
-
53
- <dt><a class="samples" href="wysiwygarea/fullpage.html">Full page support</a></dt>
54
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
55
- </dl>
56
- </div>
57
- <div class="twoColumnsRight">
58
- <h2 class="samples">
59
- Inline Editing
60
- </h2>
61
- <dl class="samples">
62
- <dt><a class="samples" href="inlineall.html">Massive inline editor creation</a></dt>
63
- <dd>Turn all elements with <code>contentEditable = true</code> attribute into inline editors.</dd>
64
-
65
- <dt><a class="samples" href="inlinebycode.html">Convert element into an inline editor by code</a></dt>
66
- <dd>Conversion of DOM elements into inline CKEditor instances by using a JavaScript call.</dd>
67
-
68
- <dt><a class="samples" href="inlinetextarea.html">Replace textarea with inline editor</a> <span class="new">New!</span></dt>
69
- <dd>A form with a textarea that is replaced by an inline editor at runtime.</dd>
70
-
71
-
72
- </dl>
73
-
74
- <h2 class="samples">
75
- Advanced Samples
76
- </h2>
77
- <dl class="samples">
78
- <dt><a class="samples" href="datafiltering.html">Data filtering and features activation</a> <span class="new">New!</span></dt>
79
- <dd>Data filtering and automatic features activation basing on configuration.</dd>
80
-
81
- <dt><a class="samples" href="divreplace.html">Replace DIV elements on the fly</a></dt>
82
- <dd>Transforming a <code>div</code> element into an instance of CKEditor with a mouse click.</dd>
83
-
84
- <dt><a class="samples" href="appendto.html">Append editor instances</a></dt>
85
- <dd>Appending editor instances to existing DOM elements.</dd>
86
-
87
- <dt><a class="samples" href="ajax.html">Create and destroy editor instances for Ajax applications</a></dt>
88
- <dd>Creating and destroying CKEditor instances on the fly and saving the contents entered into the editor window.</dd>
89
-
90
- <dt><a class="samples" href="api.html">Basic usage of the API</a></dt>
91
- <dd>Using the CKEditor JavaScript API to interact with the editor at runtime.</dd>
92
-
93
- <dt><a class="samples" href="xhtmlstyle.html">XHTML-compliant style</a></dt>
94
- <dd>Configuring CKEditor to produce XHTML 1.1 compliant attributes and styles.</dd>
95
-
96
- <dt><a class="samples" href="readonly.html">Read-only mode</a></dt>
97
- <dd>Using the readOnly API to block introducing changes to the editor contents.</dd>
98
-
99
- <dt><a class="samples" href="tabindex.html">"Tab" key-based navigation</a></dt>
100
- <dd>Navigating among editor instances with tab key.</dd>
101
-
102
-
103
-
104
- <dt><a class="samples" href="dialog/dialog.html">Using the JavaScript API to customize dialog windows</a></dt>
105
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
106
-
107
- <dt><a class="samples" href="enterkey/enterkey.html">Using the &quot;Enter&quot; key in CKEditor</a></dt>
108
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
109
-
110
- <dt><a class="samples" href="htmlwriter/outputforflash.html">Output for Flash</a></dt>
111
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
112
-
113
- <dt><a class="samples" href="htmlwriter/outputhtml.html">Output HTML</a></dt>
114
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
115
-
116
- <dt><a class="samples" href="toolbar/toolbar.html">Toolbar Configurations</a></dt>
117
- <dd>Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.</dd>
118
-
119
- </dl>
120
- </div>
121
- </div>
122
- <div id="footer">
123
- <hr>
124
- <p>
125
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
126
- </p>
127
- <p id="copy">
128
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
129
- </p>
130
- </div>
131
- </body>
132
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/inlineall.html DELETED
@@ -1,315 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Massive inline editing &mdash; CKEditor Sample</title>
10
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
11
- <script src="../../ckeditor.js"></script>
12
- <script>
13
-
14
- // This code is generally not necessary, but it is here to demonstrate
15
- // how to customize specific editor instances on the fly. This fits well
16
- // this demo because we have editable elements (like headers) that
17
- // require less features.
18
-
19
- // The "instanceCreated" event is fired for every editor instance created.
20
- CKEDITOR.on( 'instanceCreated', function( event ) {
21
- var editor = event.editor,
22
- element = editor.element;
23
-
24
- // Customize editors for headers and tag list.
25
- // These editors don't need features like smileys, templates, iframes etc.
26
- if ( element.is( 'h1', 'h2', 'h3' ) || element.getAttribute( 'id' ) == 'taglist' ) {
27
- // Customize the editor configurations on "configLoaded" event,
28
- // which is fired after the configuration file loading and
29
- // execution. This makes it possible to change the
30
- // configurations before the editor initialization takes place.
31
- editor.on( 'configLoaded', function() {
32
-
33
- // Remove unnecessary plugins to make the editor simpler.
34
- editor.config.removePlugins = 'colorbutton,find,flash,font,' +
35
- 'forms,iframe,image,newpage,removeformat,' +
36
- 'smiley,specialchar,stylescombo,templates';
37
-
38
- // Rearrange the layout of the toolbar.
39
- editor.config.toolbarGroups = [
40
- { name: 'editing', groups: [ 'basicstyles', 'links' ] },
41
- { name: 'undo' },
42
- { name: 'clipboard', groups: [ 'selection', 'clipboard' ] },
43
- { name: 'about' }
44
- ];
45
- });
46
- }
47
- });
48
-
49
- </script>
50
- <link href="sample.css" rel="stylesheet">
51
- <style>
52
-
53
- /* The following styles are just to make the page look nice. */
54
-
55
- /* Workaround to show Arial Black in Firefox. */
56
- @font-face
57
- {
58
- font-family: 'arial-black';
59
- src: local('Arial Black');
60
- }
61
-
62
- *[contenteditable="true"]
63
- {
64
- padding: 10px;
65
- }
66
-
67
- #container
68
- {
69
- width: 960px;
70
- margin: 30px auto 0;
71
- }
72
-
73
- #header
74
- {
75
- overflow: hidden;
76
- padding: 0 0 30px;
77
- border-bottom: 5px solid #05B2D2;
78
- position: relative;
79
- }
80
-
81
- #headerLeft,
82
- #headerRight
83
- {
84
- width: 49%;
85
- overflow: hidden;
86
- }
87
-
88
- #headerLeft
89
- {
90
- float: left;
91
- padding: 10px 1px 1px;
92
- }
93
-
94
- #headerLeft h2,
95
- #headerLeft h3
96
- {
97
- text-align: right;
98
- margin: 0;
99
- overflow: hidden;
100
- font-weight: normal;
101
- }
102
-
103
- #headerLeft h2
104
- {
105
- font-family: "Arial Black",arial-black;
106
- font-size: 4.6em;
107
- line-height: 1.1;
108
- text-transform: uppercase;
109
- }
110
-
111
- #headerLeft h3
112
- {
113
- font-size: 2.3em;
114
- line-height: 1.1;
115
- margin: .2em 0 0;
116
- color: #666;
117
- }
118
-
119
- #headerRight
120
- {
121
- float: right;
122
- padding: 1px;
123
- }
124
-
125
- #headerRight p
126
- {
127
- line-height: 1.8;
128
- text-align: justify;
129
- margin: 0;
130
- }
131
-
132
- #headerRight p + p
133
- {
134
- margin-top: 20px;
135
- }
136
-
137
- #headerRight > div
138
- {
139
- padding: 20px;
140
- margin: 0 0 0 30px;
141
- font-size: 1.4em;
142
- color: #666;
143
- }
144
-
145
- #columns
146
- {
147
- color: #333;
148
- overflow: hidden;
149
- padding: 20px 0;
150
- }
151
-
152
- #columns > div
153
- {
154
- float: left;
155
- width: 33.3%;
156
- }
157
-
158
- #columns #column1 > div
159
- {
160
- margin-left: 1px;
161
- }
162
-
163
- #columns #column3 > div
164
- {
165
- margin-right: 1px;
166
- }
167
-
168
- #columns > div > div
169
- {
170
- margin: 0px 10px;
171
- padding: 10px 20px;
172
- }
173
-
174
- #columns blockquote
175
- {
176
- margin-left: 15px;
177
- }
178
-
179
- #tagLine
180
- {
181
- border-top: 5px solid #05B2D2;
182
- padding-top: 20px;
183
- }
184
-
185
- #taglist {
186
- display: inline-block;
187
- margin-left: 20px;
188
- font-weight: bold;
189
- margin: 0 0 0 20px;
190
- }
191
-
192
- </style>
193
- </head>
194
- <body>
195
- <div>
196
- <h1 class="samples"><a href="index.html">CKEditor Samples</a> &raquo; Massive inline editing</h1>
197
- <div class="warning deprecated">
198
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/inline.html">brand new version in CKEditor Examples</a>.
199
- </div>
200
- <div class="description">
201
- <p>This sample page demonstrates the inline editing feature - CKEditor instances will be created automatically from page elements with <strong>contentEditable</strong> attribute set to value <strong>true</strong>:</p>
202
- <pre class="samples">&lt;div <strong>contenteditable="true</strong>" &gt; ... &lt;/div&gt;</pre>
203
- <p>Click inside of any element below to start editing.</p>
204
- </div>
205
- </div>
206
- <div id="container">
207
- <div id="header">
208
- <div id="headerLeft">
209
- <h2 id="sampleTitle" contenteditable="true">
210
- CKEditor<br> Goes Inline!
211
- </h2>
212
- <h3 contenteditable="true">
213
- Lorem ipsum dolor sit amet dolor duis blandit vestibulum faucibus a, tortor.
214
- </h3>
215
- </div>
216
- <div id="headerRight">
217
- <div contenteditable="true">
218
- <p>
219
- Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies.
220
- </p>
221
- <p>
222
- Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. Vestibulum dapibus, mauris nec malesuada fames ac.
223
- </p>
224
- </div>
225
- </div>
226
- </div>
227
- <div id="columns">
228
- <div id="column1">
229
- <div contenteditable="true">
230
- <h3>
231
- Fusce vitae porttitor
232
- </h3>
233
- <p>
234
- <strong>
235
- Lorem ipsum dolor sit amet dolor. Duis blandit vestibulum faucibus a, tortor.
236
- </strong>
237
- </p>
238
- <p>
239
- Proin nunc justo felis mollis tincidunt, risus risus pede, posuere cubilia Curae, Nullam euismod, enim. Etiam nibh ultricies dolor ac dignissim erat volutpat. Vivamus fermentum <a href="https://ckeditor.com/">nisl nulla sem in</a> metus. Maecenas wisi. Donec nec erat volutpat.
240
- </p>
241
- <blockquote>
242
- <p>
243
- Fusce vitae porttitor a, euismod convallis nisl, blandit risus tortor, pretium.
244
- Vehicula vitae, imperdiet vel, ornare enim vel sodales rutrum
245
- </p>
246
- </blockquote>
247
- <blockquote>
248
- <p>
249
- Libero nunc, rhoncus ante ipsum non ipsum. Nunc eleifend pede turpis id sollicitudin fringilla. Phasellus ultrices, velit ac arcu.
250
- </p>
251
- </blockquote>
252
- <p>Pellentesque nunc. Donec suscipit erat. Pellentesque habitant morbi tristique ullamcorper.</p>
253
- <p><s>Mauris mattis feugiat lectus nec mauris. Nullam vitae ante.</s></p>
254
- </div>
255
- </div>
256
- <div id="column2">
257
- <div contenteditable="true">
258
- <h3>
259
- Integer condimentum sit amet
260
- </h3>
261
- <p>
262
- <strong>Aenean nonummy a, mattis varius. Cras aliquet.</strong>
263
- Praesent <a href="https://ckeditor.com/">magna non mattis ac, rhoncus nunc</a>, rhoncus eget, cursus pulvinar mollis.</p>
264
- <p>Proin id nibh. Sed eu libero posuere sed, lectus. Phasellus dui gravida gravida feugiat mattis ac, felis.</p>
265
- <p>Integer condimentum sit amet, tempor elit odio, a dolor non ante at sapien. Sed ac lectus. Nulla ligula quis eleifend mi, id leo velit pede cursus arcu id nulla ac lectus. Phasellus vestibulum. Nunc viverra enim quis diam.</p>
266
- </div>
267
- <div contenteditable="true">
268
- <h3>
269
- Praesent wisi accumsan sit amet nibh
270
- </h3>
271
- <p>Donec ullamcorper, risus tortor, pretium porttitor. Morbi quam quis lectus non leo.</p>
272
- <p style="margin-left: 40px; ">Integer faucibus scelerisque. Proin faucibus at, aliquet vulputate, odio at eros. Fusce <a href="https://ckeditor.com/">gravida, erat vitae augue</a>. Fusce urna fringilla gravida.</p>
273
- <p>In hac habitasse platea dictumst. Praesent wisi accumsan sit amet nibh. Maecenas orci luctus a, lacinia quam sem, posuere commodo, odio condimentum tempor, pede semper risus. Suspendisse pede. In hac habitasse platea dictumst. Nam sed laoreet sit amet erat. Integer.</p>
274
- </div>
275
- </div>
276
- <div id="column3">
277
- <div contenteditable="true">
278
- <p>
279
- <img src="assets/inlineall/logo.png" alt="CKEditor logo" style="float:left">
280
- </p>
281
- <p>Quisque justo neque, mattis sed, fermentum ultrices <strong>posuere cubilia Curae</strong>, Vestibulum elit metus, quis placerat ut, lectus. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi.</p>
282
- <h3>
283
- Nullam laoreet vel consectetuer tellus suscipit
284
- </h3>
285
- <ul>
286
- <li>Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis.</li>
287
- <li>Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi.</li>
288
- <li>Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.</li>
289
- </ul>
290
- <p>Quisque justo neque, mattis sed, <a href="https://ckeditor.com/">fermentum ultrices posuere cubilia</a> Curae, Vestibulum elit metus, quis placerat ut, lectus.</p>
291
- <p>Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis.</p>
292
- <p>Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi. Sed in nonummy faucibus turpis. Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.</p>
293
- </div>
294
- </div>
295
- </div>
296
- <div id="tagLine">
297
- Tags of this article:
298
- <p id="taglist" contenteditable="true">
299
- inline, editing, floating, CKEditor
300
- </p>
301
- </div>
302
- </div>
303
- <div id="footer">
304
- <hr>
305
- <p>
306
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">
307
- https://ckeditor.com</a>
308
- </p>
309
- <p id="copy">
310
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a>
311
- - Frederico Knabben. All rights reserved.
312
- </p>
313
- </div>
314
- </body>
315
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/inlinebycode.html DELETED
@@ -1,125 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Inline Editing by Code &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <style>
14
-
15
- #editable
16
- {
17
- padding: 10px;
18
- float: left;
19
- }
20
-
21
- </style>
22
- </head>
23
- <body>
24
- <h1 class="samples">
25
- <a href="index.html">CKEditor Samples</a> &raquo; Inline Editing by Code
26
- </h1>
27
- <div class="warning deprecated">
28
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/inline.html">brand new version in CKEditor Examples</a>.
29
- </div>
30
- <div class="description">
31
- <p>
32
- This sample shows how to create an inline editor instance of CKEditor. It is created
33
- with a JavaScript call using the following code:
34
- </p>
35
- <pre class="samples">
36
- // This property tells CKEditor to not activate every element with contenteditable=true element.
37
- CKEDITOR.disableAutoInline = true;
38
-
39
- var editor = CKEDITOR.inline( document.getElementById( 'editable' ) );
40
- </pre>
41
- <p>
42
- Note that <code>editable</code> in the code above is the <code>id</code>
43
- attribute of the <code>&lt;div&gt;</code> element to be converted into an inline instance.
44
- </p>
45
- </div>
46
- <div id="editable" contenteditable="true">
47
- <h1><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg" /> Apollo 11</h1>
48
-
49
- <p><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
50
-
51
- <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
52
-
53
- <h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>
54
-
55
- <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
56
-
57
- <blockquote>
58
- <p>One small step for [a] man, one giant leap for mankind.</p>
59
- </blockquote>
60
-
61
- <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
62
-
63
- <blockquote>
64
- <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
65
- </blockquote>
66
-
67
- <h2>Technical details <a id="tech-details" name="tech-details"></a></h2>
68
-
69
- <table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;">
70
- <caption><strong>Mission crew</strong></caption>
71
- <thead>
72
- <tr>
73
- <th scope="col">Position</th>
74
- <th scope="col">Astronaut</th>
75
- </tr>
76
- </thead>
77
- <tbody>
78
- <tr>
79
- <td>Commander</td>
80
- <td>Neil A. Armstrong</td>
81
- </tr>
82
- <tr>
83
- <td>Command Module Pilot</td>
84
- <td>Michael Collins</td>
85
- </tr>
86
- <tr>
87
- <td>Lunar Module Pilot</td>
88
- <td>Edwin &quot;Buzz&quot; E. Aldrin, Jr.</td>
89
- </tr>
90
- </tbody>
91
- </table>
92
-
93
- <p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
94
-
95
- <ol>
96
- <li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
97
- <li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
98
- <li><strong>Lunar Module</strong> for landing on the Moon.</li>
99
- </ol>
100
-
101
- <p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
102
-
103
- <hr />
104
- <p style="text-align: right;"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p>
105
- </div>
106
-
107
- <script>
108
- // We need to turn off the automatic editor creation first.
109
- CKEDITOR.disableAutoInline = true;
110
-
111
- var editor = CKEDITOR.inline( 'editable' );
112
- </script>
113
- <div id="footer">
114
- <hr>
115
- <p contenteditable="true">
116
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">
117
- https://ckeditor.com</a>
118
- </p>
119
- <p id="copy">
120
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a>
121
- - Frederico Knabben. All rights reserved.
122
- </p>
123
- </div>
124
- </body>
125
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/inlinetextarea.html DELETED
@@ -1,114 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Replace Textarea with Inline Editor &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <style>
14
-
15
- /* Style the CKEditor element to look like a textfield */
16
- .cke_textarea_inline
17
- {
18
- padding: 10px;
19
- height: 200px;
20
- overflow: auto;
21
-
22
- border: 1px solid gray;
23
- -webkit-appearance: textfield;
24
- }
25
-
26
- </style>
27
- </head>
28
- <body>
29
- <h1 class="samples">
30
- <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea with Inline Editor
31
- </h1>
32
- <div class="warning deprecated">
33
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/inline.html">brand new version in CKEditor Examples</a>.
34
- </div>
35
- <div class="description">
36
- <p>
37
- You can also create an inline editor from a <code>textarea</code>
38
- element. In this case the <code>textarea</code> will be replaced
39
- by a <code>div</code> element with inline editing enabled.
40
- </p>
41
- <pre class="samples">
42
- // "article-body" is the name of a textarea element.
43
- var editor = CKEDITOR.inline( 'article-body' );
44
- </pre>
45
- </div>
46
- <form action="sample_posteddata.php" method="post">
47
- <h2>This is a sample form with some fields</h2>
48
- <p>
49
- Title:<br>
50
- <input type="text" name="title" value="Sample Form"></p>
51
- <p>
52
- Article Body (Textarea converted to CKEditor):<br>
53
- <textarea name="article-body" style="height: 200px">
54
- &lt;h2&gt;Technical details &lt;a id="tech-details" name="tech-details"&gt;&lt;/a&gt;&lt;/h2&gt;
55
-
56
- &lt;table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;"&gt;
57
- &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt;
58
- &lt;thead&gt;
59
- &lt;tr&gt;
60
- &lt;th scope="col"&gt;Position&lt;/th&gt;
61
- &lt;th scope="col"&gt;Astronaut&lt;/th&gt;
62
- &lt;/tr&gt;
63
- &lt;/thead&gt;
64
- &lt;tbody&gt;
65
- &lt;tr&gt;
66
- &lt;td&gt;Commander&lt;/td&gt;
67
- &lt;td&gt;Neil A. Armstrong&lt;/td&gt;
68
- &lt;/tr&gt;
69
- &lt;tr&gt;
70
- &lt;td&gt;Command Module Pilot&lt;/td&gt;
71
- &lt;td&gt;Michael Collins&lt;/td&gt;
72
- &lt;/tr&gt;
73
- &lt;tr&gt;
74
- &lt;td&gt;Lunar Module Pilot&lt;/td&gt;
75
- &lt;td&gt;Edwin &quot;Buzz&quot; E. Aldrin, Jr.&lt;/td&gt;
76
- &lt;/tr&gt;
77
- &lt;/tbody&gt;
78
- &lt;/table&gt;
79
-
80
- &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center"&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href="http://en.wikipedia.org/wiki/NASA" title="NASA"&gt;NASA&lt;/a&gt;&#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt;
81
-
82
- &lt;ol&gt;
83
- &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt;
84
- &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt;
85
- &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt;
86
- &lt;/ol&gt;
87
-
88
- &lt;p&gt;After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis"&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean"&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt;
89
-
90
- &lt;hr /&gt;
91
- &lt;p style="text-align: right;"&gt;&lt;small&gt;Source: &lt;a href="http://en.wikipedia.org/wiki/Apollo_11"&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
92
- </textarea>
93
- </p>
94
- <p>
95
- <input type="submit" value="Submit">
96
- </p>
97
- </form>
98
-
99
- <script>
100
- CKEDITOR.inline( 'article-body' );
101
- </script>
102
- <div id="footer">
103
- <hr>
104
- <p>
105
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">
106
- https://ckeditor.com</a>
107
- </p>
108
- <p id="copy">
109
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a>
110
- - Frederico Knabben. All rights reserved.
111
- </p>
112
- </div>
113
- </body>
114
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/jquery.html DELETED
@@ -1,104 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>jQuery Adapter &mdash; CKEditor Sample</title>
10
- <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
11
- <script src="../../ckeditor.js"></script>
12
- <script src="../../adapters/jquery.js"></script>
13
- <link href="sample.css" rel="stylesheet">
14
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
15
- <style>
16
-
17
- #editable
18
- {
19
- padding: 10px;
20
- float: left;
21
- }
22
-
23
- </style>
24
- <script>
25
-
26
- CKEDITOR.disableAutoInline = true;
27
-
28
- $( document ).ready( function() {
29
- $( '#editor1' ).ckeditor(); // Use CKEDITOR.replace() if element is <textarea>.
30
- $( '#editable' ).ckeditor(); // Use CKEDITOR.inline().
31
- } );
32
-
33
- function setValue() {
34
- $( '#editor1' ).val( $( 'input#val' ).val() );
35
- }
36
-
37
- </script>
38
- </head>
39
- <body>
40
- <h1 class="samples">
41
- <a href="index.html" id="a-test">CKEditor Samples</a> &raquo; Create Editors with jQuery
42
- </h1>
43
- <div class="warning deprecated">
44
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
45
- </div>
46
- <form action="sample_posteddata.php" method="post">
47
- <div class="description">
48
- <p>
49
- This sample shows how to use the <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_jquery.html">jQuery adapter</a>.
50
- Note that you have to include both CKEditor and jQuery scripts before including the adapter.
51
- </p>
52
-
53
- <pre class="samples">
54
- &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
55
- &lt;script src="/ckedit../../ckeditor.js"&gt;&lt;/script&gt;
56
- &lt;script src="/ckeditor/adapters/jquery.js"&gt;&lt;/script&gt;
57
- </pre>
58
-
59
- <p>Then you can replace HTML elements with a CKEditor instance using the <code>ckeditor()</code> method.</p>
60
-
61
- <pre class="samples">
62
- $( document ).ready( function() {
63
- $( 'textarea#editor1' ).ckeditor();
64
- } );
65
- </pre>
66
- </div>
67
-
68
- <h2 class="samples">Inline Example</h2>
69
-
70
- <div id="editable" contenteditable="true">
71
- <p><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg"/><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>
72
- <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.
73
- <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
74
- <blockquote><p>One small step for [a] man, one giant leap for mankind.</p></blockquote> <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p> <blockquote><p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p></blockquote>
75
- </div>
76
-
77
- <br style="clear: both">
78
-
79
- <h2 class="samples">Classic (iframe-based) Example</h2>
80
-
81
- <textarea cols="80" id="editor1" name="editor1" rows="10">
82
- &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
83
- </textarea>
84
-
85
- <p style="overflow: hidden">
86
- <input style="float: left" type="submit" value="Submit">
87
- <span style="float: right">
88
- <input type="text" id="val" value="I'm using jQuery val()!" size="30">
89
- <input onclick="setValue();" type="button" value="Set value">
90
- </span>
91
- </p>
92
- </form>
93
- <div id="footer">
94
- <hr>
95
- <p>
96
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
97
- </p>
98
- <p id="copy">
99
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
100
- Knabben. All rights reserved.
101
- </p>
102
- </div>
103
- </body>
104
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/magicline/magicline.html DELETED
@@ -1,210 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Using Magicline plugin &mdash; CKEditor Sample</title>
10
- <script src="../../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="../../../samples/old/sample.css">
12
- <meta name="ckeditor-sample-name" content="Magicline plugin">
13
- <meta name="ckeditor-sample-group" content="Plugins">
14
- <meta name="ckeditor-sample-description" content="Using the Magicline plugin to access difficult focus spaces.">
15
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
16
- </head>
17
- <body>
18
- <h1 class="samples">
19
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Using Magicline plugin
20
- </h1>
21
- <div class="warning deprecated">
22
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/magicline.html">brand new version in CKEditor Examples</a>.
23
- </div>
24
- <div class="description">
25
- <p>
26
- This sample shows the advantages of <strong>Magicline</strong> plugin
27
- which is to enhance the editing process. Thanks to this plugin,
28
- a number of difficult focus spaces which are inaccessible due to
29
- browser issues can now be focused.
30
- </p>
31
- <p>
32
- <strong>Magicline</strong> plugin shows a red line with a handler
33
- which, when clicked, inserts a paragraph and allows typing. To see this,
34
- focus an editor and move your mouse above the focus space you want
35
- to access. The plugin is enabled by default so no additional
36
- configuration is necessary.
37
- </p>
38
- </div>
39
- <div>
40
- <label for="editor1">
41
- Editor 1:
42
- </label>
43
- <div class="description">
44
- <p>
45
- This editor uses a default <strong>Magicline</strong> setup.
46
- </p>
47
- </div>
48
- <textarea cols="80" id="editor1" name="editor1" rows="10">
49
- &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
50
- &lt;tbody&gt;
51
- &lt;tr&gt;
52
- &lt;td&gt;This table&lt;/td&gt;
53
- &lt;td&gt;is the&lt;/td&gt;
54
- &lt;td&gt;very first&lt;/td&gt;
55
- &lt;td&gt;element of the document.&lt;/td&gt;
56
- &lt;/tr&gt;
57
- &lt;tr&gt;
58
- &lt;td&gt;We are still&lt;/td&gt;
59
- &lt;td&gt;able to acces&lt;/td&gt;
60
- &lt;td&gt;the space before it.&lt;/td&gt;
61
- &lt;td&gt;
62
- &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
63
- &lt;tbody&gt;
64
- &lt;tr&gt;
65
- &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt;
66
- &lt;/tr&gt;
67
- &lt;tr&gt;
68
- &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt;
69
- &lt;/tr&gt;
70
- &lt;/tbody&gt;
71
- &lt;/table&gt;
72
- &lt;/td&gt;
73
- &lt;/tr&gt;
74
- &lt;/tbody&gt;
75
- &lt;/table&gt;
76
-
77
- &lt;p&gt;Two succesive horizontal lines (&lt;tt&gt;HR&lt;/tt&gt; tags). We can access the space in between:&lt;/p&gt;
78
-
79
- &lt;hr /&gt;
80
- &lt;hr /&gt;
81
- &lt;ol&gt;
82
- &lt;li&gt;This numbered list...&lt;/li&gt;
83
- &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt;
84
- &lt;li&gt;...and another list.&lt;/li&gt;
85
- &lt;/ol&gt;
86
-
87
- &lt;ul&gt;
88
- &lt;li&gt;We can type between the lists...&lt;/li&gt;
89
- &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt;
90
- &lt;/ul&gt;
91
-
92
- &lt;p&gt;Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.&lt;/p&gt;
93
-
94
- &lt;p&gt;Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.&lt;/p&gt;
95
-
96
- &lt;p&gt;Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.&lt;/p&gt;
97
-
98
- &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt;
99
- &lt;p&gt;This text is wrapped in a&amp;nbsp;&lt;tt&gt;DIV&lt;/tt&gt;&amp;nbsp;element. We can type after this element though.&lt;/p&gt;
100
- &lt;/div&gt;
101
- </textarea>
102
- <script>
103
-
104
- // This call can be placed at any point after the
105
- // <textarea>, or inside a <head><script> in a
106
- // window.onload event handler.
107
-
108
- CKEDITOR.replace( 'editor1', {
109
- extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
110
- allowedContent: true // Switch off the ACF, so very complex content created to
111
- // show magicline's power isn't filtered.
112
- } );
113
-
114
- </script>
115
- </div>
116
- <br>
117
- <div>
118
- <label for="editor2">
119
- Editor 2:
120
- </label>
121
- <div class="description">
122
- <p>
123
- This editor is using a blue line.
124
- </p>
125
- <pre class="samples">
126
- CKEDITOR.replace( 'editor2', {
127
- magicline_color: 'blue'
128
- });</pre>
129
- </div>
130
- <textarea cols="80" id="editor2" name="editor2" rows="10">
131
- &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
132
- &lt;tbody&gt;
133
- &lt;tr&gt;
134
- &lt;td&gt;This table&lt;/td&gt;
135
- &lt;td&gt;is the&lt;/td&gt;
136
- &lt;td&gt;very first&lt;/td&gt;
137
- &lt;td&gt;element of the document.&lt;/td&gt;
138
- &lt;/tr&gt;
139
- &lt;tr&gt;
140
- &lt;td&gt;We are still&lt;/td&gt;
141
- &lt;td&gt;able to acces&lt;/td&gt;
142
- &lt;td&gt;the space before it.&lt;/td&gt;
143
- &lt;td&gt;
144
- &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
145
- &lt;tbody&gt;
146
- &lt;tr&gt;
147
- &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt;
148
- &lt;/tr&gt;
149
- &lt;tr&gt;
150
- &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt;
151
- &lt;/tr&gt;
152
- &lt;/tbody&gt;
153
- &lt;/table&gt;
154
- &lt;/td&gt;
155
- &lt;/tr&gt;
156
- &lt;/tbody&gt;
157
- &lt;/table&gt;
158
-
159
- &lt;p&gt;Two succesive horizontal lines (&lt;tt&gt;HR&lt;/tt&gt; tags). We can access the space in between:&lt;/p&gt;
160
-
161
- &lt;hr /&gt;
162
- &lt;hr /&gt;
163
- &lt;ol&gt;
164
- &lt;li&gt;This numbered list...&lt;/li&gt;
165
- &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt;
166
- &lt;li&gt;...and another list.&lt;/li&gt;
167
- &lt;/ol&gt;
168
-
169
- &lt;ul&gt;
170
- &lt;li&gt;We can type between the lists...&lt;/li&gt;
171
- &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt;
172
- &lt;/ul&gt;
173
-
174
- &lt;p&gt;Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.&lt;/p&gt;
175
-
176
- &lt;p&gt;Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.&lt;/p&gt;
177
-
178
- &lt;p&gt;Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.&lt;/p&gt;
179
-
180
- &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt;
181
- &lt;p&gt;This text is wrapped in a&amp;nbsp;&lt;tt&gt;DIV&lt;/tt&gt;&amp;nbsp;element. We can type after this element though.&lt;/p&gt;
182
- &lt;/div&gt;
183
- </textarea>
184
- <script>
185
-
186
- // This call can be placed at any point after the
187
- // <textarea>, or inside a <head><script> in a
188
- // window.onload event handler.
189
-
190
- CKEDITOR.replace( 'editor2', {
191
- extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
192
- magicline_color: 'blue', // Blue line
193
- allowedContent: true // Switch off the ACF, so very complex content created to
194
- // show magicline's power isn't filtered.
195
- });
196
-
197
- </script>
198
- </div>
199
- <div id="footer">
200
- <hr>
201
- <p>
202
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
203
- </p>
204
- <p id="copy">
205
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
206
- Knabben. All rights reserved.
207
- </p>
208
- </div>
209
- </body>
210
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/readonly.html DELETED
@@ -1,77 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Using the CKEditor Read-Only API &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <script>
14
-
15
- var editor;
16
-
17
- // The instanceReady event is fired, when an instance of CKEditor has finished
18
- // its initialization.
19
- CKEDITOR.on( 'instanceReady', function( ev ) {
20
- editor = ev.editor;
21
-
22
- // Show this "on" button.
23
- document.getElementById( 'readOnlyOn' ).style.display = '';
24
-
25
- // Event fired when the readOnly property changes.
26
- editor.on( 'readOnly', function() {
27
- document.getElementById( 'readOnlyOn' ).style.display = this.readOnly ? 'none' : '';
28
- document.getElementById( 'readOnlyOff' ).style.display = this.readOnly ? '' : 'none';
29
- });
30
- });
31
-
32
- function toggleReadOnly( isReadOnly ) {
33
- // Change the read-only state of the editor.
34
- // https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setReadOnly
35
- editor.setReadOnly( isReadOnly );
36
- }
37
-
38
- </script>
39
- </head>
40
- <body>
41
- <h1 class="samples">
42
- <a href="index.html">CKEditor Samples</a> &raquo; Using the CKEditor Read-Only API
43
- </h1>
44
- <div class="warning deprecated">
45
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/readonly.html">brand new version in CKEditor Examples</a>.
46
- </div>
47
- <div class="description">
48
- <p>
49
- This sample shows how to use the
50
- <code><a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setReadOnly">setReadOnly</a></code>
51
- API to put editor into the read-only state that makes it impossible for users to change the editor contents.
52
- </p>
53
- <p>
54
- For details on how to create this setup check the source code of this sample page.
55
- </p>
56
- </div>
57
- <form action="sample_posteddata.php" method="post">
58
- <p>
59
- <textarea class="ckeditor" id="editor1" name="editor1" cols="100" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
60
- </p>
61
- <p>
62
- <input id="readOnlyOn" onclick="toggleReadOnly();" type="button" value="Make it read-only" style="display:none">
63
- <input id="readOnlyOff" onclick="toggleReadOnly( false );" type="button" value="Make it editable again" style="display:none">
64
- </p>
65
- </form>
66
- <div id="footer">
67
- <hr>
68
- <p>
69
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
70
- </p>
71
- <p id="copy">
72
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
73
- Knabben. All rights reserved.
74
- </p>
75
- </div>
76
- </body>
77
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/replacebyclass.html DELETED
@@ -1,61 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Replace Textareas by Class Name &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- </head>
14
- <body>
15
- <h1 class="samples">
16
- <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea Elements by Class Name
17
- </h1>
18
- <div class="warning deprecated">
19
- This sample is not maintained anymore. Check out the <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/index.html">brand new samples in CKEditor Examples</a>.
20
- </div>
21
- <div class="description">
22
- <p>
23
- This sample shows how to automatically replace all <code>&lt;textarea&gt;</code> elements
24
- of a given class with a CKEditor instance.
25
- </p>
26
- <p>
27
- To replace a <code>&lt;textarea&gt;</code> element, simply assign it the <code>ckeditor</code>
28
- class, as in the code below:
29
- </p>
30
- <pre class="samples">
31
- &lt;textarea <strong>class="ckeditor</strong>" name="editor1"&gt;&lt;/textarea&gt;
32
- </pre>
33
- <p>
34
- Note that other <code>&lt;textarea&gt;</code> attributes (like <code>id</code> or <code>name</code>) need to be adjusted to your document.
35
- </p>
36
- </div>
37
- <form action="sample_posteddata.php" method="post">
38
- <p>
39
- <label for="editor1">
40
- Editor 1:
41
- </label>
42
- <textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10">
43
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
44
- </textarea>
45
- </p>
46
- <p>
47
- <input type="submit" value="Submit">
48
- </p>
49
- </form>
50
- <div id="footer">
51
- <hr>
52
- <p>
53
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
54
- </p>
55
- <p id="copy">
56
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
57
- Knabben. All rights reserved.
58
- </p>
59
- </div>
60
- </body>
61
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/replacebycode.html DELETED
@@ -1,60 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Replace Textarea by Code &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- </head>
14
- <body>
15
- <h1 class="samples">
16
- <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea Elements Using JavaScript Code
17
- </h1>
18
- <div class="warning deprecated">
19
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/classic.html">brand new version in CKEditor Examples</a>.
20
- </div>
21
- <form action="sample_posteddata.php" method="post">
22
- <div class="description">
23
- <p>
24
- This editor is using an <code>&lt;iframe&gt;</code> element-based editing area, provided by the <strong>Wysiwygarea</strong> plugin.
25
- </p>
26
- <pre class="samples">
27
- CKEDITOR.replace( '<em>textarea_id</em>' )
28
- </pre>
29
- </div>
30
- <textarea cols="80" id="editor1" name="editor1" rows="10">
31
- &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
32
- </textarea>
33
- <script>
34
-
35
- // This call can be placed at any point after the
36
- // <textarea>, or inside a <head><script> in a
37
- // window.onload event handler.
38
-
39
- // Replace the <textarea id="editor"> with an CKEditor
40
- // instance, using default configurations.
41
-
42
- CKEDITOR.replace( 'editor1' );
43
-
44
- </script>
45
- <p>
46
- <input type="submit" value="Submit">
47
- </p>
48
- </form>
49
- <div id="footer">
50
- <hr>
51
- <p>
52
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
53
- </p>
54
- <p id="copy">
55
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
56
- Knabben. All rights reserved.
57
- </p>
58
- </div>
59
- </body>
60
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/sample.css DELETED
@@ -1,357 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- html, body, h1, h2, h3, h4, h5, h6, div, span, blockquote, p, address, form, fieldset, img, ul, ol, dl, dt, dd, li, hr, table, td, th, strong, em, sup, sub, dfn, ins, del, q, cite, var, samp, code, kbd, tt, pre
7
- {
8
- line-height: 1.5;
9
- }
10
-
11
- body
12
- {
13
- padding: 10px 30px;
14
- }
15
-
16
- input, textarea, select, option, optgroup, button, td, th
17
- {
18
- font-size: 100%;
19
- }
20
-
21
- pre
22
- {
23
- -moz-tab-size: 4;
24
- tab-size: 4;
25
- }
26
-
27
- pre, code, kbd, samp, tt
28
- {
29
- font-family: monospace,monospace;
30
- font-size: 1em;
31
- }
32
-
33
- body {
34
- width: 960px;
35
- margin: 0 auto;
36
- }
37
-
38
- code
39
- {
40
- background: #f3f3f3;
41
- border: 1px solid #ddd;
42
- padding: 1px 4px;
43
- border-radius: 3px;
44
- }
45
-
46
- abbr
47
- {
48
- border-bottom: 1px dotted #555;
49
- cursor: pointer;
50
- }
51
-
52
- .new, .beta
53
- {
54
- text-transform: uppercase;
55
- font-size: 10px;
56
- font-weight: bold;
57
- padding: 1px 4px;
58
- margin: 0 0 0 5px;
59
- color: #fff;
60
- float: right;
61
- border-radius: 3px;
62
- }
63
-
64
- .new
65
- {
66
- background: #FF7E00;
67
- border: 1px solid #DA8028;
68
- text-shadow: 0 1px 0 #C97626;
69
-
70
- box-shadow: 0 2px 3px 0 #FFA54E inset;
71
- }
72
-
73
- .beta
74
- {
75
- background: #18C0DF;
76
- border: 1px solid #19AAD8;
77
- text-shadow: 0 1px 0 #048CAD;
78
- font-style: italic;
79
-
80
- box-shadow: 0 2px 3px 0 #50D4FD inset;
81
- }
82
-
83
- h1.samples
84
- {
85
- color: #0782C1;
86
- font-size: 200%;
87
- font-weight: normal;
88
- margin: 0;
89
- padding: 0;
90
- }
91
-
92
- h1.samples a
93
- {
94
- color: #0782C1;
95
- text-decoration: none;
96
- border-bottom: 1px dotted #0782C1;
97
- }
98
-
99
- .samples a:hover
100
- {
101
- border-bottom: 1px dotted #0782C1;
102
- }
103
-
104
- h2.samples
105
- {
106
- color: #000000;
107
- font-size: 130%;
108
- margin: 15px 0 0 0;
109
- padding: 0;
110
- }
111
-
112
- p, blockquote, address, form, pre, dl, h1.samples, h2.samples
113
- {
114
- margin-bottom: 15px;
115
- }
116
-
117
- ul.samples
118
- {
119
- margin-bottom: 15px;
120
- }
121
-
122
- .clear
123
- {
124
- clear: both;
125
- }
126
-
127
- fieldset
128
- {
129
- margin: 0;
130
- padding: 10px;
131
- }
132
-
133
- body, input, textarea
134
- {
135
- color: #333333;
136
- font-family: Arial, Helvetica, sans-serif;
137
- }
138
-
139
- body
140
- {
141
- font-size: 75%;
142
- }
143
-
144
- a.samples
145
- {
146
- color: #189DE1;
147
- text-decoration: none;
148
- }
149
-
150
- form
151
- {
152
- margin: 0;
153
- padding: 0;
154
- }
155
-
156
- pre.samples
157
- {
158
- background-color: #F7F7F7;
159
- border: 1px solid #D7D7D7;
160
- overflow: auto;
161
- padding: 0.25em;
162
- white-space: pre-wrap; /* CSS 2.1 */
163
- word-wrap: break-word; /* IE7 */
164
- }
165
-
166
- #footer
167
- {
168
- clear: both;
169
- padding-top: 10px;
170
- }
171
-
172
- #footer hr
173
- {
174
- margin: 10px 0 15px 0;
175
- height: 1px;
176
- border: solid 1px gray;
177
- border-bottom: none;
178
- }
179
-
180
- #footer p
181
- {
182
- margin: 0 10px 10px 10px;
183
- float: left;
184
- }
185
-
186
- #footer #copy
187
- {
188
- float: right;
189
- }
190
-
191
- #outputSample
192
- {
193
- width: 100%;
194
- table-layout: fixed;
195
- }
196
-
197
- #outputSample thead th
198
- {
199
- color: #dddddd;
200
- background-color: #999999;
201
- padding: 4px;
202
- white-space: nowrap;
203
- }
204
-
205
- #outputSample tbody th
206
- {
207
- vertical-align: top;
208
- text-align: left;
209
- }
210
-
211
- #outputSample pre
212
- {
213
- margin: 0;
214
- padding: 0;
215
- }
216
-
217
- .description
218
- {
219
- border: 1px dotted #B7B7B7;
220
- margin-bottom: 10px;
221
- padding: 10px 10px 0;
222
- overflow: hidden;
223
- }
224
-
225
- label
226
- {
227
- display: block;
228
- margin-bottom: 6px;
229
- }
230
-
231
- /**
232
- * CKEditor editables are automatically set with the "cke_editable" class
233
- * plus cke_editable_(inline|themed) depending on the editor type.
234
- */
235
-
236
- /* Style a bit the inline editables. */
237
- .cke_editable.cke_editable_inline
238
- {
239
- cursor: pointer;
240
- }
241
-
242
- /* Once an editable element gets focused, the "cke_focus" class is
243
- added to it, so we can style it differently. */
244
- .cke_editable.cke_editable_inline.cke_focus
245
- {
246
- box-shadow: inset 0px 0px 20px 3px #ddd, inset 0 0 1px #000;
247
- outline: none;
248
- background: #eee;
249
- cursor: text;
250
- }
251
-
252
- /* Avoid pre-formatted overflows inline editable. */
253
- .cke_editable_inline pre
254
- {
255
- white-space: pre-wrap;
256
- word-wrap: break-word;
257
- }
258
-
259
- /**
260
- * Samples index styles.
261
- */
262
-
263
- .twoColumns,
264
- .twoColumnsLeft,
265
- .twoColumnsRight
266
- {
267
- overflow: hidden;
268
- }
269
-
270
- .twoColumnsLeft,
271
- .twoColumnsRight
272
- {
273
- width: 45%;
274
- }
275
-
276
- .twoColumnsLeft
277
- {
278
- float: left;
279
- }
280
-
281
- .twoColumnsRight
282
- {
283
- float: right;
284
- }
285
-
286
- dl.samples
287
- {
288
- padding: 0 0 0 40px;
289
- }
290
- dl.samples > dt
291
- {
292
- display: list-item;
293
- list-style-type: disc;
294
- list-style-position: outside;
295
- margin: 0 0 3px;
296
- }
297
- dl.samples > dd
298
- {
299
- margin: 0 0 3px;
300
- }
301
- .warning
302
- {
303
- color: #ff0000;
304
- background-color: #FFCCBA;
305
- border: 2px dotted #ff0000;
306
- padding: 15px 10px;
307
- margin: 10px 0;
308
- }
309
-
310
- .warning.deprecated {
311
- font-size: 1.3em;
312
- }
313
-
314
- /* Used on inline samples */
315
-
316
- blockquote
317
- {
318
- font-style: italic;
319
- font-family: Georgia, Times, "Times New Roman", serif;
320
- padding: 2px 0;
321
- border-style: solid;
322
- border-color: #ccc;
323
- border-width: 0;
324
- }
325
-
326
- .cke_contents_ltr blockquote
327
- {
328
- padding-left: 20px;
329
- padding-right: 8px;
330
- border-left-width: 5px;
331
- }
332
-
333
- .cke_contents_rtl blockquote
334
- {
335
- padding-left: 8px;
336
- padding-right: 20px;
337
- border-right-width: 5px;
338
- }
339
-
340
- img.right {
341
- border: 1px solid #ccc;
342
- float: right;
343
- margin-left: 15px;
344
- padding: 5px;
345
- }
346
-
347
- img.left {
348
- border: 1px solid #ccc;
349
- float: left;
350
- margin-right: 15px;
351
- padding: 5px;
352
- }
353
-
354
- .marker
355
- {
356
- background-color: Yellow;
357
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/sample.js DELETED
@@ -1,50 +0,0 @@
1
- /**
2
- * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- // Tool scripts for the sample pages.
7
- // This file can be ignored and is not required to make use of CKEditor.
8
-
9
- ( function() {
10
- CKEDITOR.on( 'instanceReady', function( ev ) {
11
- // Check for sample compliance.
12
- var editor = ev.editor,
13
- meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ),
14
- requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [],
15
- missing = [],
16
- i;
17
-
18
- if ( requires.length ) {
19
- for ( i = 0; i < requires.length; i++ ) {
20
- if ( !editor.plugins[ requires[ i ] ] )
21
- missing.push( '<code>' + requires[ i ] + '</code>' );
22
- }
23
-
24
- if ( missing.length ) {
25
- var warn = CKEDITOR.dom.element.createFromHtml(
26
- '<div class="warning">' +
27
- '<span>To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.</span>' +
28
- '</div>'
29
- );
30
- warn.insertBefore( editor.container );
31
- }
32
- }
33
-
34
- // Set icons.
35
- var doc = new CKEDITOR.dom.document( document ),
36
- icons = doc.find( '.button_icon' );
37
-
38
- for ( i = 0; i < icons.count(); i++ ) {
39
- var icon = icons.getItem( i ),
40
- name = icon.getAttribute( 'data-icon' ),
41
- style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) );
42
-
43
- icon.addClass( 'cke_button_icon' );
44
- icon.addClass( 'cke_button__' + name + '_icon' );
45
- icon.setAttribute( 'style', style );
46
- icon.setStyle( 'float', 'none' );
47
-
48
- }
49
- } );
50
- } )();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/sample_posteddata.php DELETED
@@ -1,16 +0,0 @@
1
- <?php /* <body><pre>
2
-
3
- -------------------------------------------------------------------------------------------
4
- CKEditor - Posted Data
5
-
6
- We are sorry, but your Web server does not support the PHP language used in this script.
7
-
8
- Please note that CKEditor can be used with any other server-side language than just PHP.
9
- To save the content created with CKEditor you need to read the POST data on the server
10
- side and write it to a file or the database.
11
-
12
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
13
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
14
- -------------------------------------------------------------------------------------------
15
-
16
- </pre><div style="display:none"></body> */ include "assets/posteddata.php"; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/tabindex.html DELETED
@@ -1,79 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>TAB Key-Based Navigation &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link href="sample.css" rel="stylesheet">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- <style>
14
-
15
- .cke_focused,
16
- .cke_editable.cke_focused
17
- {
18
- outline: 3px dotted blue !important;
19
- *border: 3px dotted blue !important; /* For IE7 */
20
- }
21
-
22
- </style>
23
- <script>
24
-
25
- CKEDITOR.on( 'instanceReady', function( evt ) {
26
- var editor = evt.editor;
27
- editor.setData( 'This editor has it\'s tabIndex set to <strong>' + editor.tabIndex + '</strong>' );
28
-
29
- // Apply focus class name.
30
- editor.on( 'focus', function() {
31
- editor.container.addClass( 'cke_focused' );
32
- });
33
- editor.on( 'blur', function() {
34
- editor.container.removeClass( 'cke_focused' );
35
- });
36
-
37
- // Put startup focus on the first editor in tab order.
38
- if ( editor.tabIndex == 1 )
39
- editor.focus();
40
- });
41
-
42
- </script>
43
- </head>
44
- <body>
45
- <h1 class="samples">
46
- <a href="index.html">CKEditor Samples</a> &raquo; TAB Key-Based Navigation
47
- </h1>
48
- <div class="warning deprecated">
49
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/tabindex.html">brand new version in CKEditor Examples</a>.
50
- </div>
51
- <div class="description">
52
- <p>
53
- This sample shows how tab key navigation among editor instances is
54
- affected by the <code>tabIndex</code> attribute from
55
- the original page element. Use TAB key to move between the editors.
56
- </p>
57
- </div>
58
- <p>
59
- <textarea class="ckeditor" cols="80" id="editor4" rows="10" tabindex="1"></textarea>
60
- </p>
61
- <div class="ckeditor" contenteditable="true" id="editor1" tabindex="4"></div>
62
- <p>
63
- <textarea class="ckeditor" cols="80" id="editor2" rows="10" tabindex="2"></textarea>
64
- </p>
65
- <p>
66
- <textarea class="ckeditor" cols="80" id="editor3" rows="10" tabindex="3"></textarea>
67
- </p>
68
- <div id="footer">
69
- <hr>
70
- <p>
71
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
72
- </p>
73
- <p id="copy">
74
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
75
- Knabben. All rights reserved.
76
- </p>
77
- </div>
78
- </body>
79
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/toolbar/toolbar.html DELETED
@@ -1,236 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Toolbar Configuration &mdash; CKEditor Sample</title>
10
- <meta name="ckeditor-sample-name" content="Toolbar Configurations">
11
- <meta name="ckeditor-sample-group" content="Advanced Samples">
12
- <meta name="ckeditor-sample-description" content="Configuring CKEditor to display full or custom toolbar layout.">
13
- <script src="../../../ckeditor.js"></script>
14
- <link href="../../../samples/old/sample.css" rel="stylesheet">
15
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
16
- </head>
17
- <body>
18
- <h1 class="samples">
19
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Toolbar Configuration
20
- </h1>
21
- <div class="warning deprecated">
22
- This sample is not maintained anymore. Check out the <a href="../../../samples/toolbarconfigurator/index.html#basic">brand new CKEditor Toolbar Configurator</a>.
23
- </div>
24
- <div class="description">
25
- <p>
26
- This sample page demonstrates editor with loaded <a href="#fullToolbar">full toolbar</a> (all registered buttons) and, if
27
- current editor's configuration modifies default settings, also editor with <a href="#currentToolbar">modified toolbar</a>.
28
- </p>
29
-
30
- <p>Since CKEditor 4 there are two ways to configure toolbar buttons.</p>
31
-
32
- <h2 class="samples">By <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbar">config.toolbar</a></h2>
33
-
34
- <p>
35
- You can explicitly define which buttons are displayed in which groups and in which order.
36
- This is the more precise setting, but less flexible. If newly added plugin adds its
37
- own button you'll have to add it manually to your <code>config.toolbar</code> setting as well.
38
- </p>
39
-
40
- <p>To add a CKEditor instance with custom toolbar setting, insert the following JavaScript call to your code:</p>
41
-
42
- <pre class="samples">
43
- CKEDITOR.replace( <em>'textarea_id'</em>, {
44
- <strong>toolbar:</strong> [
45
- { name: 'document', items: [ 'Source', '-', 'NewPage', 'Preview', '-', 'Templates' ] }, // Defines toolbar group with name (used to create voice label) and items in 3 subgroups.
46
- [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ], // Defines toolbar group without name.
47
- '/', // Line break - next group will be placed in new line.
48
- { name: 'basicstyles', items: [ 'Bold', 'Italic' ] }
49
- ]
50
- });</pre>
51
-
52
- <h2 class="samples">By <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbarGroups">config.toolbarGroups</a></h2>
53
-
54
- <p>
55
- You can define which groups of buttons (like e.g. <code>basicstyles</code>, <code>clipboard</code>
56
- and <code>forms</code>) are displayed and in which order. Registered buttons are associated
57
- with toolbar groups by <code>toolbar</code> property in their definition.
58
- This setting's advantage is that you don't have to modify toolbar configuration
59
- when adding/removing plugins which register their own buttons.
60
- </p>
61
-
62
- <p>To add a CKEditor instance with custom toolbar groups setting, insert the following JavaScript call to your code:</p>
63
-
64
- <pre class="samples">
65
- CKEDITOR.replace( <em>'textarea_id'</em>, {
66
- <strong>toolbarGroups:</strong> [
67
- { name: 'document', groups: [ 'mode', 'document' ] }, // Displays document group with its two subgroups.
68
- { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, // Group's name will be used to create voice label.
69
- '/', // Line break - next group will be placed in new line.
70
- { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
71
- { name: 'links' }
72
- ]
73
-
74
- // NOTE: Remember to leave 'toolbar' property with the default value (null).
75
- });</pre>
76
- </div>
77
-
78
- <div id="currentToolbar" style="display: none">
79
- <h2 class="samples">Current toolbar configuration</h2>
80
- <p>Below you can see editor with current toolbar definition.</p>
81
- <textarea cols="80" id="editorCurrent" name="editorCurrent" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
82
- <pre id="editorCurrentCfg" class="samples"></pre>
83
- </div>
84
-
85
- <div id="fullToolbar">
86
- <h2 class="samples">Full toolbar configuration</h2>
87
- <p>Below you can see editor with full toolbar, generated automatically by the editor.</p>
88
- <p>
89
- <strong>Note</strong>: To create editor instance with full toolbar you don't have to set anything.
90
- Just leave <code>toolbar</code> and <code>toolbarGroups</code> with the default, <code>null</code> values.
91
- </p>
92
- <textarea cols="80" id="editorFull" name="editorFull" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
93
- <pre id="editorFullCfg" class="samples"></pre>
94
- </div>
95
-
96
- <script>
97
-
98
- (function() {
99
- 'use strict';
100
-
101
- var buttonsNames;
102
-
103
- CKEDITOR.config.extraPlugins = 'toolbar';
104
-
105
- CKEDITOR.on( 'instanceReady', function( evt ) {
106
- var editor = evt.editor,
107
- editorCurrent = editor.name == 'editorCurrent',
108
- defaultToolbar = !( editor.config.toolbar || editor.config.toolbarGroups || editor.config.removeButtons ),
109
- pre = CKEDITOR.document.getById( editor.name + 'Cfg' ),
110
- output = '';
111
-
112
- if ( editorCurrent ) {
113
- // If default toolbar configuration has been modified, show "current toolbar" section.
114
- if ( !defaultToolbar )
115
- CKEDITOR.document.getById( 'currentToolbar' ).show();
116
- else
117
- return;
118
- }
119
-
120
- if ( !buttonsNames )
121
- buttonsNames = createButtonsNamesHash( editor.ui.items );
122
-
123
- // Toolbar isn't set explicitly, so it was created automatically from toolbarGroups.
124
- if ( !editor.config.toolbar ) {
125
- output +=
126
- '// Toolbar configuration generated automatically by the editor based on config.toolbarGroups.\n' +
127
- dumpToolbarConfiguration( editor ) +
128
- '\n\n' +
129
- '// Toolbar groups configuration.\n' +
130
- dumpToolbarConfiguration( editor, true )
131
- }
132
- // Toolbar groups doesn't count in this case - print only toolbar.
133
- else {
134
- output += '// Toolbar configuration.\n' +
135
- dumpToolbarConfiguration( editor );
136
- }
137
-
138
- // Recreate to avoid old IE from loosing whitespaces on filling <pre> content.
139
- var preOutput = pre.getOuterHtml().replace( /(?=<\/)/, output );
140
- CKEDITOR.dom.element.createFromHtml( preOutput ).replace( pre );
141
- } );
142
-
143
- CKEDITOR.replace( 'editorCurrent', { height: 100 } );
144
- CKEDITOR.replace( 'editorFull', {
145
- // Reset toolbar settings, so full toolbar will be generated automatically.
146
- toolbar: null,
147
- toolbarGroups: null,
148
- removeButtons: null,
149
- height: 100
150
- } );
151
-
152
- function dumpToolbarConfiguration( editor, printGroups ) {
153
- var output = [],
154
- toolbar = editor.toolbar;
155
-
156
- for ( var i = 0; i < toolbar.length; ++i ) {
157
- var group = dumpToolbarGroup( toolbar[ i ], printGroups );
158
- if ( group )
159
- output.push( group );
160
- }
161
-
162
- return 'config.toolbar' + ( printGroups ? 'Groups' : '' ) + ' = [\n\t' + output.join( ',\n\t' ) + '\n];';
163
- }
164
-
165
- function dumpToolbarGroup( group, printGroups ) {
166
- var output = [];
167
-
168
- if ( typeof group == 'string' )
169
- return '\'' + group + '\'';
170
- if ( CKEDITOR.tools.isArray( group ) )
171
- return dumpToolbarItems( group );
172
- // Skip group when printing entire toolbar configuration and there are no items in this group.
173
- if ( !printGroups && !group.items )
174
- return;
175
-
176
- if ( group.name )
177
- output.push( 'name: \'' + group.name + '\'' );
178
-
179
- if ( group.groups )
180
- output.push( 'groups: ' + dumpToolbarItems( group.groups ) );
181
-
182
- if ( !printGroups )
183
- output.push( 'items: ' + dumpToolbarItems( group.items ) );
184
-
185
- return '{ ' + output.join( ', ' ) + ' }';
186
- }
187
-
188
- function dumpToolbarItems( items ) {
189
- if ( typeof items == 'string' )
190
- return '\'' + items + '\'';
191
-
192
- var names = [],
193
- i, item;
194
-
195
- for ( var i = 0; i < items.length; ++i ) {
196
- item = items[ i ];
197
- if ( typeof item == 'string' )
198
- names.push( item );
199
- else {
200
- if ( item.type == CKEDITOR.UI_SEPARATOR )
201
- names.push( '-' );
202
- else
203
- names.push( buttonsNames[ item.name ] );
204
- }
205
- }
206
-
207
- return '[ \'' + names.join( '\', \'' ) + '\' ]';
208
- }
209
-
210
- // Creates { 'lowercased': 'LowerCased' } buttons names hash.
211
- function createButtonsNamesHash( items ) {
212
- var hash = {},
213
- name;
214
-
215
- for ( name in items ) {
216
- hash[ items[ name ].name ] = name;
217
- }
218
-
219
- return hash;
220
- }
221
-
222
- })();
223
- </script>
224
-
225
- <div id="footer">
226
- <hr>
227
- <p>
228
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
229
- </p>
230
- <p id="copy">
231
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
232
- Knabben. All rights reserved.
233
- </p>
234
- </div>
235
- </body>
236
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/uicolor.html DELETED
@@ -1,73 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>UI Color Picker &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <link rel="stylesheet" href="sample.css">
12
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
13
- </head>
14
- <body>
15
- <h1 class="samples">
16
- <a href="index.html">CKEditor Samples</a> &raquo; UI Color
17
- </h1>
18
- <div class="warning deprecated">
19
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/uicolor.html">brand new version in CKEditor Examples</a>.
20
- </div>
21
- <div class="description">
22
- <p>
23
- This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements
24
- with a CKEditor instance with an option to change the color of its user interface.<br>
25
- <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin
26
- compatibility. The Moono and Kama skins are examples of skins that work with it.
27
- </p>
28
- </div>
29
- <form action="sample_posteddata.php" method="post">
30
- <p>
31
- This editor instance has a UI color value defined in configuration to change the skin color,
32
- To specify the color of the user interface, set the <code>uiColor</code> property:
33
- </p>
34
- <pre class="samples">
35
- CKEDITOR.replace( '<em>textarea_id</em>', {
36
- <strong>uiColor: '#14B8C4'</strong>
37
- });</pre>
38
- <p>
39
- Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
40
- the <code>&lt;textarea&gt;</code> element to be replaced.
41
- </p>
42
- <p>
43
- <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
44
- <script>
45
-
46
- // Replace the <textarea id="editor"> with an CKEditor
47
- // instance, using default configurations.
48
- CKEDITOR.replace( 'editor1', {
49
- uiColor: '#14B8C4',
50
- toolbar: [
51
- [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
52
- [ 'FontSize', 'TextColor', 'BGColor' ]
53
- ]
54
- });
55
-
56
- </script>
57
- </p>
58
- <p>
59
- <input type="submit" value="Submit">
60
- </p>
61
- </form>
62
- <div id="footer">
63
- <hr>
64
- <p>
65
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
66
- </p>
67
- <p id="copy">
68
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
69
- Knabben. All rights reserved.
70
- </p>
71
- </div>
72
- </body>
73
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/uilanguages.html DELETED
@@ -1,123 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>User Interface Globalization &mdash; CKEditor Sample</title>
10
- <script src="../../ckeditor.js"></script>
11
- <script src="assets/uilanguages/languages.js"></script>
12
- <link rel="stylesheet" href="sample.css">
13
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
14
- </head>
15
- <body>
16
- <h1 class="samples">
17
- <a href="index.html">CKEditor Samples</a> &raquo; User Interface Languages
18
- </h1>
19
- <div class="warning deprecated">
20
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/uilanguages.html">brand new version in CKEditor Examples</a>.
21
- </div>
22
- <div class="description">
23
- <p>
24
- This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements
25
- with a CKEditor instance with an option to change the language of its user interface.
26
- </p>
27
- <p>
28
- It pulls the language list from CKEditor <code>_languages.js</code> file that contains the list of supported languages and creates
29
- a drop-down list that lets the user change the UI language.
30
- </p>
31
- <p>
32
- By default, CKEditor automatically localizes the editor to the language of the user.
33
- The UI language can be controlled with two configuration options:
34
- <code><a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-language">language</a></code> and
35
- <code><a class="samples" href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-defaultLanguage">
36
- defaultLanguage</a></code>. The <code>defaultLanguage</code> setting specifies the
37
- default CKEditor language to be used when a localization suitable for user's settings is not available.
38
- </p>
39
- <p>
40
- To specify the user interface language that will be used no matter what language is
41
- specified in user's browser or operating system, set the <code>language</code> property:
42
- </p>
43
- <pre class="samples">
44
- CKEDITOR.replace( '<em>textarea_id</em>', {
45
- // Load the German interface.
46
- <strong>language: 'de'</strong>
47
- });</pre>
48
- <p>
49
- Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
50
- the <code>&lt;textarea&gt;</code> element to be replaced.
51
- </p>
52
- </div>
53
- <form action="sample_posteddata.php" method="post">
54
- <p>
55
- Available languages (<span id="count"> </span> languages!):<br>
56
- <script>
57
-
58
- document.write( '<select disabled="disabled" id="languages" onchange="createEditor( this.value );">' );
59
-
60
- // Get the language list from the _languages.js file.
61
- for ( var i = 0 ; i < window.CKEDITOR_LANGS.length ; i++ ) {
62
- document.write(
63
- '<option value="' + window.CKEDITOR_LANGS[i].code + '">' +
64
- window.CKEDITOR_LANGS[i].name +
65
- '</option>' );
66
- }
67
-
68
- document.write( '</select>' );
69
-
70
- </script>
71
- <br>
72
- <span style="color: #888888">
73
- (You may see strange characters if your system does not support the selected language)
74
- </span>
75
- </p>
76
- <p>
77
- <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
78
- <script>
79
-
80
- // Set the number of languages.
81
- document.getElementById( 'count' ).innerHTML = window.CKEDITOR_LANGS.length;
82
-
83
- var editor;
84
-
85
- function createEditor( languageCode ) {
86
- if ( editor )
87
- editor.destroy();
88
-
89
- // Replace the <textarea id="editor"> with an CKEditor
90
- // instance, using default configurations.
91
- editor = CKEDITOR.replace( 'editor1', {
92
- language: languageCode,
93
-
94
- on: {
95
- instanceReady: function() {
96
- // Wait for the editor to be ready to set
97
- // the language combo.
98
- var languages = document.getElementById( 'languages' );
99
- languages.value = this.langCode;
100
- languages.disabled = false;
101
- }
102
- }
103
- });
104
- }
105
-
106
- // At page startup, load the default language:
107
- createEditor( '' );
108
-
109
- </script>
110
- </p>
111
- </form>
112
- <div id="footer">
113
- <hr>
114
- <p>
115
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
116
- </p>
117
- <p id="copy">
118
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
119
- Knabben. All rights reserved.
120
- </p>
121
- </div>
122
- </body>
123
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/wysiwygarea/fullpage.html DELETED
@@ -1,81 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>Full Page Editing &mdash; CKEditor Sample</title>
10
- <script src="../../../ckeditor.js"></script>
11
- <script src="../../../samples/old/sample.js"></script>
12
- <link rel="stylesheet" href="../../../samples/old/sample.css">
13
- <meta name="ckeditor-sample-required-plugins" content="sourcearea">
14
- <meta name="ckeditor-sample-name" content="Full page support">
15
- <meta name="ckeditor-sample-group" content="Plugins">
16
- <meta name="ckeditor-sample-description" content="CKEditor inserted with a JavaScript call and used to edit the whole page from &lt;html&gt; to &lt;/html&gt;.">
17
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
18
- </head>
19
- <body>
20
- <h1 class="samples">
21
- <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Full Page Editing
22
- </h1>
23
- <div class="warning deprecated">
24
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/fullpage.html">brand new version in CKEditor Examples</a>.
25
- </div>
26
- <div class="description">
27
- <p>
28
- This sample shows how to configure CKEditor to edit entire HTML pages, from the
29
- <code>&lt;html&gt;</code> tag to the <code>&lt;/html&gt;</code> tag.
30
- </p>
31
- <p>
32
- The CKEditor instance below is inserted with a JavaScript call using the following code:
33
- </p>
34
- <pre class="samples">
35
- CKEDITOR.replace( '<em>textarea_id</em>', {
36
- <strong>fullPage: true</strong>,
37
- <strong>allowedContent: true</strong>
38
- });
39
- </pre>
40
- <p>
41
- Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
42
- the <code>&lt;textarea&gt;</code> element to be replaced.
43
- </p>
44
- <p>
45
- The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering.
46
- Setting this option is not obligatory, but in full page mode there is a strong chance that one may want be able to freely enter any HTML content in source mode without any limitations.
47
- </p>
48
- </div>
49
- <form action="../../../samples/sample_posteddata.php" method="post">
50
- <label for="editor1">
51
- CKEditor output the entire page including content outside of
52
- <code>&lt;body&gt;</code> element, so content like meta and title can be changed:
53
- </label>
54
- <textarea cols="80" id="editor1" name="editor1" rows="10">
55
- &lt;h1&gt;&lt;img align=&quot;right&quot; alt=&quot;Saturn V carrying Apollo 11&quot; src=&quot;../../../samples/old/assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
56
- </textarea>
57
- <script>
58
-
59
- CKEDITOR.replace( 'editor1', {
60
- fullPage: true,
61
- allowedContent: true,
62
- extraPlugins: 'wysiwygarea'
63
- });
64
-
65
- </script>
66
- <p>
67
- <input type="submit" value="Submit">
68
- </p>
69
- </form>
70
- <div id="footer">
71
- <hr>
72
- <p>
73
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
74
- </p>
75
- <p id="copy">
76
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
77
- Knabben. All rights reserved.
78
- </p>
79
- </div>
80
- </body>
81
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/old/xhtmlstyle.html DELETED
@@ -1,235 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <html lang="en">
7
- <head>
8
- <meta charset="utf-8">
9
- <title>XHTML Compliant Output &mdash; CKEditor Sample</title>
10
- <meta name="ckeditor-sample-required-plugins" content="sourcearea">
11
- <script src="../../ckeditor.js"></script>
12
- <script src="sample.js"></script>
13
- <link href="sample.css" rel="stylesheet">
14
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
15
- </head>
16
- <body>
17
- <h1 class="samples">
18
- <a href="index.html">CKEditor Samples</a> &raquo; Producing XHTML Compliant Output
19
- </h1>
20
- <div class="warning deprecated">
21
- This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/basicstyles.html">brand new version in CKEditor Examples</a>.
22
- </div>
23
- <div class="description">
24
- <p>
25
- This sample shows how to configure CKEditor to output valid
26
- <a class="samples" href="http://www.w3.org/TR/xhtml11/">XHTML 1.1</a> code.
27
- Deprecated elements (<code>&lt;font&gt;</code>, <code>&lt;u&gt;</code>) or attributes
28
- (<code>size</code>, <code>face</code>) will be replaced with XHTML compliant code.
29
- </p>
30
- <p>
31
- To add a CKEditor instance outputting valid XHTML code, load the editor using a standard
32
- JavaScript call and define CKEditor features to use the XHTML compliant elements and styles.
33
- </p>
34
- <p>
35
- A snippet of the configuration code can be seen below; check the source of this page for
36
- full definition:
37
- </p>
38
- <pre class="samples">
39
- CKEDITOR.replace( '<em>textarea_id</em>', {
40
- contentsCss: 'assets/outputxhtml.css',
41
-
42
- coreStyles_bold: {
43
- element: 'span',
44
- attributes: { 'class': 'Bold' }
45
- },
46
- coreStyles_italic: {
47
- element: 'span',
48
- attributes: { 'class': 'Italic' }
49
- },
50
-
51
- ...
52
- });</pre>
53
- </div>
54
- <form action="sample_posteddata.php" method="post">
55
- <p>
56
- <label for="editor1">
57
- Editor 1:
58
- </label>
59
- <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;span class="Bold"&gt;sample text&lt;/span&gt;. You are using &lt;a href="https://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
60
- <script>
61
-
62
- CKEDITOR.replace( 'editor1', {
63
- /*
64
- * Style sheet for the contents
65
- */
66
- contentsCss: 'assets/outputxhtml/outputxhtml.css',
67
-
68
- /*
69
- * Special allowed content rules for spans used by
70
- * font face, size, and color buttons.
71
- *
72
- * Note: all rules have been written separately so
73
- * it was possible to specify required classes.
74
- */
75
- extraAllowedContent: 'span(!FontColor1);span(!FontColor2);span(!FontColor3);' +
76
- 'span(!FontColor1BG);span(!FontColor2BG);span(!FontColor3BG);' +
77
- 'span(!FontComic);span(!FontCourier);span(!FontTimes);' +
78
- 'span(!FontSmaller);span(!FontLarger);span(!FontSmall);span(!FontBig);span(!FontDouble)',
79
-
80
- /*
81
- * Core styles.
82
- */
83
- coreStyles_bold: {
84
- element: 'span',
85
- attributes: { 'class': 'Bold' }
86
- },
87
- coreStyles_italic: {
88
- element: 'span',
89
- attributes: { 'class': 'Italic' }
90
- },
91
- coreStyles_underline: {
92
- element: 'span',
93
- attributes: { 'class': 'Underline' }
94
- },
95
- coreStyles_strike: {
96
- element: 'span',
97
- attributes: { 'class': 'StrikeThrough' },
98
- overrides: 'strike'
99
- },
100
- coreStyles_subscript: {
101
- element: 'span',
102
- attributes: { 'class': 'Subscript' },
103
- overrides: 'sub'
104
- },
105
- coreStyles_superscript: {
106
- element: 'span',
107
- attributes: { 'class': 'Superscript' },
108
- overrides: 'sup'
109
- },
110
-
111
- /*
112
- * Font face.
113
- */
114
-
115
- // List of fonts available in the toolbar combo. Each font definition is
116
- // separated by a semi-colon (;). We are using class names here, so each font
117
- // is defined by {Combo Label}/{Class Name}.
118
- font_names: 'Comic Sans MS/FontComic;Courier New/FontCourier;Times New Roman/FontTimes',
119
-
120
- // Define the way font elements will be applied to the document. The "span"
121
- // element will be used. When a font is selected, the font name defined in the
122
- // above list is passed to this definition with the name "Font", being it
123
- // injected in the "class" attribute.
124
- // We must also instruct the editor to replace span elements that are used to
125
- // set the font (Overrides).
126
- font_style: {
127
- element: 'span',
128
- attributes: { 'class': '#(family)' },
129
- overrides: [
130
- {
131
- element: 'span',
132
- attributes: {
133
- 'class': /^Font(?:Comic|Courier|Times)$/
134
- }
135
- }
136
- ]
137
- },
138
-
139
- /*
140
- * Font sizes.
141
- */
142
- fontSize_sizes: 'Smaller/FontSmaller;Larger/FontLarger;8pt/FontSmall;14pt/FontBig;Double Size/FontDouble',
143
- fontSize_style: {
144
- element: 'span',
145
- attributes: { 'class': '#(size)' },
146
- overrides: [
147
- {
148
- element: 'span',
149
- attributes: {
150
- 'class': /^Font(?:Smaller|Larger|Small|Big|Double)$/
151
- }
152
- }
153
- ]
154
- } ,
155
-
156
- /*
157
- * Font colors.
158
- */
159
- colorButton_enableMore: false,
160
-
161
- colorButton_colors: 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00',
162
- colorButton_foreStyle: {
163
- element: 'span',
164
- attributes: { 'class': '#(color)' },
165
- overrides: [
166
- {
167
- element: 'span',
168
- attributes: {
169
- 'class': /^FontColor(?:1|2|3)$/
170
- }
171
- }
172
- ]
173
- },
174
-
175
- colorButton_backStyle: {
176
- element: 'span',
177
- attributes: { 'class': '#(color)BG' },
178
- overrides: [
179
- {
180
- element: 'span',
181
- attributes: {
182
- 'class': /^FontColor(?:1|2|3)BG$/
183
- }
184
- }
185
- ]
186
- },
187
-
188
- /*
189
- * Indentation.
190
- */
191
- indentClasses: [ 'Indent1', 'Indent2', 'Indent3' ],
192
-
193
- /*
194
- * Paragraph justification.
195
- */
196
- justifyClasses: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ],
197
-
198
- /*
199
- * Styles combo.
200
- */
201
- stylesSet: [
202
- { name: 'Strong Emphasis', element: 'strong' },
203
- { name: 'Emphasis', element: 'em' },
204
-
205
- { name: 'Computer Code', element: 'code' },
206
- { name: 'Keyboard Phrase', element: 'kbd' },
207
- { name: 'Sample Text', element: 'samp' },
208
- { name: 'Variable', element: 'var' },
209
-
210
- { name: 'Deleted Text', element: 'del' },
211
- { name: 'Inserted Text', element: 'ins' },
212
-
213
- { name: 'Cited Work', element: 'cite' },
214
- { name: 'Inline Quotation', element: 'q' }
215
- ]
216
- });
217
-
218
- </script>
219
- </p>
220
- <p>
221
- <input type="submit" value="Submit">
222
- </p>
223
- </form>
224
- <div id="footer">
225
- <hr>
226
- <p>
227
- CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
228
- </p>
229
- <p id="copy">
230
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
231
- Knabben. All rights reserved.
232
- </p>
233
- </div>
234
- </body>
235
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/css/fontello.css DELETED
@@ -1,55 +0,0 @@
1
- @font-face {
2
- font-family: 'fontello';
3
- src: url('../font/fontello.eot?89024372');
4
- src: url('../font/fontello.eot?89024372#iefix') format('embedded-opentype'),
5
- url('../font/fontello.woff?89024372') format('woff'),
6
- url('../font/fontello.ttf?89024372') format('truetype'),
7
- url('../font/fontello.svg?89024372#fontello') format('svg');
8
- font-weight: normal;
9
- font-style: normal;
10
- }
11
- /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
12
- /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
13
- /*
14
- @media screen and (-webkit-min-device-pixel-ratio:0) {
15
- @font-face {
16
- font-family: 'fontello';
17
- src: url('../font/fontello.svg?89024372#fontello') format('svg');
18
- }
19
- }
20
- */
21
-
22
- [class^="icon-"]:before, [class*=" icon-"]:before {
23
- font-family: "fontello";
24
- font-style: normal;
25
- font-weight: normal;
26
- speak: none;
27
-
28
- display: inline-block;
29
- text-decoration: inherit;
30
- width: 1em;
31
- margin-right: .2em;
32
- text-align: center;
33
- /* opacity: .8; */
34
-
35
- /* For safety - reset parent styles, that can break glyph codes*/
36
- font-variant: normal;
37
- text-transform: none;
38
-
39
- /* fix buttons height, for twitter bootstrap */
40
- line-height: 1em;
41
-
42
- /* Animation center compensation - margins should be symmetric */
43
- /* remove if not needed */
44
- margin-left: .2em;
45
-
46
- /* you can be more comfortable with increased icons size */
47
- /* font-size: 120%; */
48
-
49
- /* Uncomment for 3D effect */
50
- /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
51
- }
52
-
53
- .icon-trash:before { content: '\e802'; } /* '' */
54
- .icon-down-big:before { content: '\e800'; } /* '' */
55
- .icon-up-big:before { content: '\e801'; } /* '' */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt DELETED
@@ -1,10 +0,0 @@
1
- Font license info
2
-
3
-
4
- ## Font Awesome
5
-
6
- Copyright (C) 2012 by Dave Gandy
7
-
8
- Author: Dave Gandy
9
- License: SIL ()
10
- Homepage: http://fortawesome.github.com/Font-Awesome/
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/config.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "name": "",
3
- "css_prefix_text": "icon-",
4
- "css_use_suffix": false,
5
- "hinting": true,
6
- "units_per_em": 1000,
7
- "ascent": 850,
8
- "glyphs": [
9
- {
10
- "uid": "f48ae54adfb27d8ada53d0fd9e34ee10",
11
- "css": "trash-empty",
12
- "code": 59392,
13
- "src": "fontawesome"
14
- },
15
- {
16
- "uid": "1c4068ed75209e21af36017df8871802",
17
- "css": "down-big",
18
- "code": 59393,
19
- "src": "fontawesome"
20
- },
21
- {
22
- "uid": "95376bf082bfec6ce06ea1cda7bd7ead",
23
- "css": "up-big",
24
- "code": 59394,
25
- "src": "fontawesome"
26
- }
27
- ]
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.eot DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.svg DELETED
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
5
- <defs>
6
- <font id="fontello" horiz-adv-x="1000" >
7
- <font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
- <missing-glyph horiz-adv-x="1000" />
9
- <glyph glyph-name="trash" unicode="&#xe802;" d="m286 439v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m143 0v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m142 0v-321q0-8-5-13t-12-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q7 0 12-5t5-13z m72-404v529h-500v-529q0-12 4-22t8-15t6-5h464q2 0 6 5t8 15t4 22z m-375 601h250l-27 65q-4 5-9 6h-177q-6-1-10-6z m518-18v-36q0-8-5-13t-13-5h-54v-529q0-46-26-80t-63-34h-464q-37 0-63 33t-27 79v531h-53q-8 0-13 5t-5 13v36q0 8 5 13t13 5h172l39 93q9 21 31 35t44 15h178q22 0 44-15t30-35l39-93h173q8 0 13-5t5-13z" horiz-adv-x="785.7" />
10
- <glyph glyph-name="down-big" unicode="&#xe800;" d="m899 386q0-30-21-50l-363-364q-22-21-51-21q-29 0-50 21l-363 364q-21 20-21 50q0 29 21 51l41 41q22 21 51 21q29 0 50-21l164-164v393q0 29 21 50t51 22h71q29 0 50-22t21-50v-393l164 164q21 21 51 21q29 0 50-21l42-42q21-21 21-50z" horiz-adv-x="928.6" />
11
- <glyph glyph-name="up-big" unicode="&#xe801;" d="m899 308q0-28-21-50l-42-42q-21-21-50-21q-30 0-51 21l-164 164v-393q0-29-20-47t-51-19h-71q-30 0-51 19t-21 47v393l-164-164q-20-21-50-21t-50 21l-42 42q-21 21-21 50q0 30 21 51l363 363q20 21 50 21q30 0 51-21l363-363q21-22 21-51z" horiz-adv-x="928.6" />
12
- </font>
13
- </defs>
14
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.ttf DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/font/fontello.woff DELETED
Binary file
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/index.html DELETED
@@ -1,447 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
- -->
6
- <!--[if IE 8]><html class="ie8"><![endif]-->
7
- <!--[if gt IE 8]><html><![endif]-->
8
- <!--[if !IE]><!--><html lang="en"><!--<![endif]-->
9
- <head>
10
- <meta charset="utf-8">
11
- <title>Toolbar Configurator</title>
12
- <script src="../../ckeditor.js"></script>
13
- <script>
14
- if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
15
- CKEDITOR.tools.enableHtml5Elements( document );
16
- </script>
17
- <link rel="stylesheet" href="lib/codemirror/codemirror.css">
18
- <link rel="stylesheet" href="lib/codemirror/show-hint.css">
19
- <link rel="stylesheet" href="lib/codemirror/neo.css">
20
- <link rel="stylesheet" href="css/fontello.css">
21
- <link rel="stylesheet" href="../css/samples.css">
22
- <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
23
- </head>
24
- <body id="toolbar">
25
-
26
- <nav class="navigation-a">
27
- <div class="grid-container">
28
- <ul class="navigation-a-left grid-width-70">
29
- <li><a href="https://ckeditor.com/ckeditor-4/">Project Homepage</a></li>
30
- <li><a href="https://github.com/ckeditor/ckeditor4/issues">I found a bug</a></li>
31
- <li><a href="https://github.com/ckeditor/ckeditor4" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li>
32
- </ul>
33
- <ul class="navigation-a-right grid-width-30">
34
- <li><a href="https://ckeditor.com/blog/">CKEditor Blog</a></li>
35
- </ul>
36
- </div>
37
- </nav>
38
-
39
- <header class="header-a">
40
- <div class="grid-container">
41
- <h1 class="header-a-logo grid-width-30">
42
- <a href="../index.html"><img src="../img/logo.svg" onerror="this.src='../img/logo.png'; this.onerror=null;" alt="CKEditor Logo"></a>
43
- </h1>
44
- <nav class="navigation-b grid-width-70">
45
- <ul>
46
- <li><a href="../index.html" class="button-a">Start</a></li>
47
- <li><a href="index.html" class="button-a button-a-background">Toolbar configurator</a></li>
48
- </ul>
49
- </nav>
50
- </div>
51
- </header>
52
-
53
- <main>
54
- <div class="adjoined-top">
55
- <div class="grid-container">
56
- <div class="content grid-width-100">
57
- <div class="grid-container-nested">
58
- <h1 class="grid-width-60">
59
- Toolbar Configurator
60
- <a href="#help-content" type="button" title="Configurator help" id="help" class="button-a button-a-background button-a-no-text icon-pos-left icon-question-mark">Help</a>
61
- </h1>
62
-
63
- <div class="grid-width-40 grid-switch-magic">
64
- <div class="switch">
65
- <span class="balloon-a balloon-a-se">Select configurator type</span>
66
- <input type="radio" name="radio" data-num="1" id="radio-basic" />
67
- <input type="radio" name="radio" data-num="2" id="radio-advanced" />
68
- <label data-for="1" for="radio-basic">Basic</label>
69
- <span class="switch-inner">
70
- <span class="handler"></span>
71
- </span>
72
- <label data-for="2" for="radio-advanced">Advanced</label>
73
- </div>
74
- </div>
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
- <div class="adjoined-bottom">
80
- <div class="grid-container">
81
- <div class="grid-width-100">
82
- <div class="editors-container">
83
- <div id="editor-basic"></div>
84
- <div id="editor-advanced"></div>
85
- </div>
86
- </div>
87
- </div>
88
- </div>
89
-
90
- <div class="grid-container configurator">
91
- <div class="content grid-width-100">
92
- <div class="configurator">
93
- <div>
94
- <div id="toolbarModifierWrapper"></div>
95
- </div>
96
- </div>
97
- </div>
98
- </div>
99
-
100
- <div id="help-content">
101
- <div class="grid-container">
102
- <div class="grid-width-100">
103
- <h2>What Am I Doing Here?</h2>
104
-
105
- <div class="grid-container grid-container-nested">
106
- <div class="basic">
107
- <div class="grid-width-50">
108
- <p>Arrange <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbarGroups">toolbar groups</a>, toggle <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-removeButtons">button visibility</a> according to your needs and get your toolbar configuration.</p>
109
- <p>You can replace the content of the <a href="../../config.js"><code>config.js</code></a> file with the generated configuration. If you already set some configuration options you will need to merge both configurations.</p>
110
- </div>
111
- <div class="grid-width-50">
112
- <p>Read more about different ways of <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_configuration.html">setting configuration</a> and do not forget about <strong>clearing browser cache</strong>.</p>
113
- <p>Arranging toolbar groups is the recommended way of configuring the toolbar, but if you need more freedom you can use the <a href="#advanced">advanced configurator</a>.</p>
114
- </div>
115
- </div>
116
- <div class="advanced" style="display: none;">
117
- <div class="grid-width-50">
118
- <p>With this code editor you can edit your <a href="https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbar">toolbar configuration</a> live.</p>
119
- <p>You can replace the content of the <a href="../../config.js"><code>config.js</code></a> file with the generated configuration. If you already set some configuration options you will need to merge both configurations.</p>
120
- </div>
121
- <div class="grid-width-50">
122
- <p>Read more about different ways of <a href="https://ckeditor.com/docs/ckeditor4/latest/guide/dev_configuration.html">setting configuration</a> and do not forget about <strong>clearing browser cache</strong>.</p>
123
- </div>
124
- </div>
125
- </div>
126
-
127
- <p class="grid-container grid-container-nested">
128
- <button type="button" class="help-content-close grid-width-100 button-a button-a-background">Got it. Let's play!</button>
129
- </p>
130
- </div>
131
- </div>
132
- </div>
133
- </main>
134
-
135
- <footer class="footer-a grid-container">
136
- <p class="grid-width-100">
137
- CKEditor &ndash; The text editor for the Internet &ndash; <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
138
- </p>
139
- <p class="grid-width-100" id="copy">
140
- Copyright &copy; 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> &ndash; Frederico Knabben. All rights reserved.
141
- </p>
142
- </footer>
143
-
144
- <script src="lib/codemirror/codemirror.js"></script>
145
- <script src="lib/codemirror/javascript.js"></script>
146
- <script src="lib/codemirror/show-hint.js"></script>
147
-
148
- <script src="js/fulltoolbareditor.js"></script>
149
- <script src="js/abstracttoolbarmodifier.js"></script>
150
- <script src="js/toolbarmodifier.js"></script>
151
- <script src="js/toolbartextmodifier.js"></script>
152
- <script src="../js/sf.js"></script>
153
-
154
- <script>
155
- ( function() {
156
- 'use strict';
157
-
158
- var mode = ( window.location.hash.substr( 1 ) === 'advanced' ) ? 'advanced' : 'basic',
159
- configuratorSection = CKEDITOR.document.findOne( 'main > .grid-container.configurator' ),
160
- basicInstruction = CKEDITOR.document.findOne( '#help-content .basic' ),
161
- advancedInstruction = CKEDITOR.document.findOne( '#help-content .advanced' ),
162
-
163
- // Configurator mode switcher.
164
- modeSwitchBasic = CKEDITOR.document.getById( 'radio-basic' ),
165
- modeSwitchAdvanced = CKEDITOR.document.getById( 'radio-advanced' );
166
-
167
- // Initial setup
168
- function updateSwitcher() {
169
- if ( mode === 'advanced' ) {
170
- modeSwitchAdvanced.$.checked = true;
171
- } else {
172
- modeSwitchBasic.$.checked = true;
173
- }
174
- }
175
-
176
- updateSwitcher();
177
-
178
- CKEDITOR.document.getWindow().on( 'hashchange', function( e ) {
179
- var hash = window.location.hash.substr( 1 );
180
- if ( !( hash === 'advanced' || hash === 'basic' ) ) {
181
- return;
182
- }
183
- mode = hash;
184
- onToolbarsDone( mode );
185
- } );
186
-
187
- CKEDITOR.document.getWindow().on( 'resize', function() {
188
- updateToolbar( ( mode === 'basic' ? toolbarModifier : toolbarTextModifier )[ 'editorInstance' ] );
189
- } );
190
-
191
- function onRefresh( modifier ) {
192
- modifier = modifier || this;
193
-
194
- if ( mode === 'basic' && modifier instanceof ToolbarConfigurator.ToolbarTextModifier ) {
195
- return;
196
- }
197
-
198
- // CodeMirror container becomes visible, so we need to refresh and to avoid rendering problems.
199
- if ( mode === 'advanced' && modifier instanceof ToolbarConfigurator.ToolbarTextModifier ) {
200
- modifier.codeContainer.refresh();
201
- }
202
-
203
- updateToolbar( modifier.editorInstance );
204
- }
205
-
206
- function updateToolbar( editor ) {
207
- var editorContainer = editor.container;
208
-
209
- // Not always editor is loaded.
210
- if ( !editorContainer ) {
211
- return;
212
- }
213
-
214
- var displayStyle = editorContainer.getStyle( 'display' );
215
-
216
- editorContainer.setStyle( 'display', 'block' );
217
-
218
- var newHeight = editorContainer.getSize( 'height' );
219
-
220
- var newMarginTop = parseInt( editorContainer.getComputedStyle( 'margin-top' ), 10 );
221
- newMarginTop = ( isNaN( newMarginTop ) ? 0 : Number( newMarginTop ) );
222
-
223
- var newMarginBottom = parseInt( editorContainer.getComputedStyle( 'margin-bottom' ), 10 );
224
- newMarginBottom = ( isNaN( newMarginBottom ) ? 0 : Number( newMarginBottom ) );
225
-
226
- var result = newHeight + newMarginTop + newMarginBottom;
227
-
228
- editorContainer.setStyle( 'display', displayStyle );
229
-
230
- editor.container.getAscendant( 'div' ).setStyle( 'height', result + 'px' );
231
- }
232
-
233
- var toolbarModifier = new ToolbarConfigurator.ToolbarModifier( 'editor-basic' );
234
-
235
- var done = 0;
236
- toolbarModifier.init( onToolbarInit );
237
- toolbarModifier.onRefresh = onRefresh;
238
-
239
- CKEDITOR.document.getById( 'toolbarModifierWrapper' ).append( toolbarModifier.mainContainer );
240
-
241
- var toolbarTextModifier = new ToolbarConfigurator.ToolbarTextModifier( 'editor-advanced' );
242
- toolbarTextModifier.init( onToolbarInit );
243
- toolbarTextModifier.onRefresh = onRefresh;
244
-
245
- function onToolbarInit() {
246
- if ( ++done === 2 ) {
247
- onToolbarsDone();
248
-
249
- positionSticky.watch( CKEDITOR.document.findOne( '.toolbar' ), function() {
250
- return mode === 'advanced';
251
- } );
252
- }
253
- }
254
-
255
- function onToolbarsDone() {
256
- if ( mode === 'basic' ) {
257
- toggleModeBasic( false );
258
- } else {
259
- toggleModeAdvanced( false );
260
- }
261
-
262
- updateSwitcher();
263
-
264
- setTimeout( function() {
265
- CKEDITOR.document.findOne( '.editors-container' ).addClass( 'active' );
266
- CKEDITOR.document.findOne( '#toolbarModifierWrapper' ).addClass( 'active' );
267
- }, 200 );
268
- }
269
-
270
- CKEDITOR.document.getById( 'toolbarModifierWrapper' ).append( toolbarTextModifier.mainContainer );
271
-
272
- function toogleModeSwitch( onElement, offElement, onModifier, offModifier ) {
273
- onElement.addClass( 'fancy-button-active' );
274
- offElement.removeClass( 'fancy-button-active' );
275
-
276
- onModifier.showUI();
277
- offModifier.hideUI();
278
- }
279
-
280
- function toggleModeBasic( callOnRefresh ) {
281
- callOnRefresh = ( callOnRefresh !== false );
282
- mode = 'basic';
283
- window.location.hash = '#basic';
284
- toogleModeSwitch( modeSwitchBasic, modeSwitchAdvanced, toolbarModifier, toolbarTextModifier );
285
-
286
- configuratorSection.removeClass( 'freed-width' );
287
- basicInstruction.show();
288
- advancedInstruction.hide();
289
-
290
- callOnRefresh && onRefresh( toolbarModifier );
291
- }
292
-
293
- function toggleModeAdvanced( callOnRefresh ) {
294
- callOnRefresh = ( callOnRefresh !== false );
295
- mode = 'advanced';
296
- window.location.hash = '#advanced';
297
- toogleModeSwitch( modeSwitchAdvanced, modeSwitchBasic, toolbarTextModifier, toolbarModifier );
298
-
299
- configuratorSection.addClass( 'freed-width' );
300
- advancedInstruction.show();
301
- basicInstruction.hide();
302
-
303
- callOnRefresh && onRefresh( toolbarTextModifier );
304
- }
305
-
306
- modeSwitchBasic.on( 'click', toggleModeBasic );
307
- modeSwitchAdvanced.on( 'click', toggleModeAdvanced );
308
-
309
- //
310
- // Position:sticky for the toolbar.
311
- //
312
-
313
- // Will make elements behave like they were styled with position:sticky.
314
- var positionSticky = {
315
- // Store object: {
316
- // element: CKEDITOR.dom.element, // Element which will float.
317
- // placeholder: CKEDITOR.dom.element, // Placeholder which is place to prevent page bounce.
318
- // isFixed: boolean // Whether element float now.
319
- // }
320
- watched: [],
321
-
322
- active: [],
323
-
324
- staticContainer: null,
325
-
326
- init: function() {
327
- var element = CKEDITOR.dom.element.createFromHtml(
328
- '<div class="staticContainer">' +
329
- '<div class="grid-container" >' +
330
- '<div class="grid-width-100">' +
331
- '<div class="inner"></div>' +
332
- '</div>' +
333
- '</div>' +
334
- '</div>' );
335
-
336
- this.staticContainer = element.findOne( '.inner' );
337
-
338
- CKEDITOR.document.getBody().append( element );
339
- },
340
-
341
- watch: function( element, preventFunc ) {
342
- this.watched.push( {
343
- element: element,
344
- placeholder: new CKEDITOR.dom.element( 'div' ),
345
- isFixed: false,
346
- preventFunc: preventFunc
347
- } );
348
- },
349
-
350
- checkAll: function() {
351
- for ( var i = 0; i < this.watched.length; i++ ) {
352
- this.check( this.watched[ i ] );
353
- }
354
- },
355
-
356
- check: function( element ) {
357
- var isFixed = element.isFixed;
358
- var shouldBeFixed = this.shouldBeFixed( element );
359
-
360
- // Nothing to be done.
361
- if ( isFixed === shouldBeFixed ) {
362
- return;
363
- }
364
-
365
- var placeholder = element.placeholder;
366
-
367
- if ( isFixed ) {
368
- // Unfixing.
369
-
370
- element.element.insertBefore( placeholder );
371
- placeholder.remove();
372
-
373
- element.element.removeStyle( 'margin' );
374
-
375
- this.active.splice( CKEDITOR.tools.indexOf( this.active, element ), 1 );
376
-
377
- } else {
378
- // Fixing.
379
- placeholder.setStyle( 'width', element.element.getSize( 'width' ) + 'px' );
380
- placeholder.setStyle( 'height', element.element.getSize( 'height' ) + 'px' );
381
- placeholder.setStyle( 'margin-bottom', element.element.getComputedStyle( 'margin-bottom' ) );
382
- placeholder.setStyle( 'display', element.element.getComputedStyle( 'display' ) );
383
- placeholder.insertAfter( element.element );
384
-
385
- this.staticContainer.append( element.element );
386
-
387
- this.active.push( element );
388
- }
389
-
390
- element.isFixed = !element.isFixed;
391
- },
392
-
393
- shouldBeFixed: function( element ) {
394
- if ( element.preventFunc && element.preventFunc() ) {
395
- return false;
396
- }
397
-
398
- // If element is already fixed we are checking it's placeholder.
399
- var related = ( element.isFixed ? element.placeholder : element.element ),
400
- clientRect = related.$.getBoundingClientRect(),
401
- staticHeight = this.staticContainer.getSize('height' ),
402
- elemHeight = element.element.getSize( 'height' );
403
-
404
- if ( element.isFixed ) {
405
- return ( clientRect.top + elemHeight < staticHeight );
406
- } else {
407
- return ( clientRect.top < staticHeight );
408
- }
409
- }
410
- };
411
-
412
- positionSticky.init();
413
-
414
- CKEDITOR.document.getWindow().on( 'scroll',
415
- CKEDITOR.tools.eventsBuffer( 100, positionSticky.checkAll, positionSticky ).input
416
- );
417
-
418
- // Make the toolbar sticky.
419
- positionSticky.watch( CKEDITOR.document.findOne( '.editors-container' ) );
420
-
421
- // Help button and help-content.
422
- ( function() {
423
- var helpButton = CKEDITOR.document.getById( 'help' ),
424
- helpContent = CKEDITOR.document.getById( 'help-content' );
425
-
426
- // Don't show help button on IE8 because it's unsupported by Pico Modal.
427
- if ( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) {
428
- helpButton.hide();
429
- } else {
430
- // Display help modal when the button is clicked.
431
- helpButton.on( 'click', function( evt ) {
432
- SF.modal( {
433
- // Clone modal content from DOM.
434
- content: helpContent.getHtml(),
435
-
436
- afterCreate: function( modal ) {
437
- // Enable modal content button to close the modal.
438
- new CKEDITOR.dom.element( modal.modalElem() ).findOne( '.help-content-close' ).once( 'click', modal.close );
439
- }
440
- } ).show();
441
- } );
442
- }
443
- } )();
444
- } )();
445
- </script>
446
- </body>
447
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js DELETED
@@ -1,13 +0,0 @@
1
- "function"!=typeof Object.create&&function(){var a=function(){};Object.create=function(b){if(1<arguments.length)throw Error("Second argument not supported");if(null===b)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof b)throw TypeError("Argument must be an object");a.prototype=b;return new a}}();
2
- CKEDITOR.plugins.add("toolbarconfiguratorarea",{afterInit:function(a){a.addMode("wysiwyg",function(b){var c=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_wysiwyg_div cke_reset" hidefocus\x3d"true"\x3e\x3c/div\x3e');a.ui.space("contents").append(c);c=a.editable(c);c.detach=CKEDITOR.tools.override(c.detach,function(b){return function(){b.apply(this,arguments);this.remove()}});a.setData(a.getData(1),b);a.fire("contentDom")});a.dataProcessor.toHtml=function(b){return b};a.dataProcessor.toDataFormat=
3
- function(b){return b}}});Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),e=c.length;return function(d){if("object"!==typeof d&&("function"!==typeof d||null===d))throw new TypeError("Object.keys called on non-object");var g=[],f;for(f in d)a.call(d,f)&&g.push(f);if(b)for(f=0;f<e;f++)a.call(d,c[f])&&g.push(c[f]);return g}}());
4
- (function(){function a(b,c){this.cfg=c||{};this.hidden=!1;this.editorId=b;this.fullToolbarEditor=new ToolbarConfigurator.FullToolbarEditor;this.actualConfig=this.originalConfig=this.mainContainer=null;this.isEditableVisible=this.waitForReady=!1;this.toolbarContainer=null;this.toolbarButtons=[]}ToolbarConfigurator.AbstractToolbarModifier=a;a.prototype.setConfig=function(b){this._onInit(void 0,b,!0)};a.prototype.init=function(b){var c=this;this.mainContainer=new CKEDITOR.dom.element("div");if(null!==
5
- this.fullToolbarEditor.editorInstance)throw"Only one instance of ToolbarModifier is allowed";this.editorInstance||this._createEditor(!1);this.editorInstance.once("loaded",function(){c.fullToolbarEditor.init(function(){c._onInit(b);if("function"==typeof c.onRefresh)c.onRefresh()},c.editorInstance.config)});return this.mainContainer};a.prototype._onInit=function(b,c){this.originalConfig=this.editorInstance.config;this.actualConfig=c?JSON.parse(c):JSON.parse(JSON.stringify(this.originalConfig));if(!this.actualConfig.toolbarGroups&&
6
- !this.actualConfig.toolbar){for(var a=this.actualConfig,d=this.editorInstance.toolbar,g=[],f=d.length,k=0;k<f;k++){var h=d[k];"string"==typeof h?g.push(h):g.push({name:h.name,groups:h.groups?h.groups.slice():[]})}a.toolbarGroups=g}"function"===typeof b&&b(this.mainContainer)};a.prototype._createModifier=function(){this.mainContainer.addClass("unselectable");this.modifyContainer&&this.modifyContainer.remove();this.modifyContainer=new CKEDITOR.dom.element("div");this.modifyContainer.addClass("toolbarModifier");
7
- this.mainContainer.append(this.modifyContainer);return this.mainContainer};a.prototype.getEditableArea=function(){return this.editorInstance.container.findOne("#"+this.editorInstance.id+"_contents")};a.prototype._hideEditable=function(){var b=this.getEditableArea();this.isEditableVisible=!1;this.lastEditableAreaHeight=b.getStyle("height");b.setStyle("height","0")};a.prototype._showEditable=function(){this.isEditableVisible=!0;this.getEditableArea().setStyle("height",this.lastEditableAreaHeight||"auto")};
8
- a.prototype._toggleEditable=function(){this.isEditableVisible?this._hideEditable():this._showEditable()};a.prototype._refreshEditor=function(){function b(){c.editorInstance.destroy();c._createEditor(!0,c.getActualConfig());c.waitForReady=!1}var c=this,a=this.editorInstance.status;this.waitForReady||("unloaded"==a||"loaded"==a?(this.waitForReady=!0,this.editorInstance.once("instanceReady",function(){b()},this)):b())};a.prototype._createEditor=function(b,c){function e(){}var d=this;this.editorInstance=
9
- CKEDITOR.replace(this.editorId);this.editorInstance.on("configLoaded",function(){var b=d.editorInstance.config;c&&CKEDITOR.tools.extend(b,c,!0);a.extendPluginsConfig(b)});this.editorInstance.on("uiSpace",function(b){"top"!=b.data.space&&b.stop()},null,null,-999);this.editorInstance.once("loaded",function(){var c=d.editorInstance.ui.instances,a;for(a in c)c[a]&&(c[a].click=e,c[a].onClick=e);d.isEditableVisible||d._hideEditable();d.currentActive&&d.currentActive.name&&d._highlightGroup(d.currentActive.name);
10
- d.hidden?d.hideUI():d.showUI();if(b&&"function"===typeof d.onRefresh)d.onRefresh()})};a.prototype.getActualConfig=function(){return JSON.parse(JSON.stringify(this.actualConfig))};a.prototype._createToolbar=function(){if(this.toolbarButtons.length){this.toolbarContainer=new CKEDITOR.dom.element("div");this.toolbarContainer.addClass("toolbar");for(var b=this.toolbarButtons.length,c=0;c<b;c+=1)this._createToolbarBtn(this.toolbarButtons[c])}};a.prototype._createToolbarBtn=function(b){var c=ToolbarConfigurator.FullToolbarEditor.createButton("string"===
11
- typeof b.text?b.text:b.text.inactive,b.cssClass);this.toolbarContainer.append(c);c.data("group",b.group);c.addClass(b.position);c.on("click",function(){b.clickCallback.call(this,c,b)},this);return c};a.prototype._fixGroups=function(b){b=b.toolbarGroups||[];for(var c=b.length,a=0;a<c;a+=1){var d=b[a];"/"==d?(d=b[a]={},d.type="separator",d.name="separator"+CKEDITOR.tools.getNextNumber()):(d.groups=d.groups||[],-1==CKEDITOR.tools.indexOf(d.groups,d.name)&&(this.editorInstance.ui.addToolbarGroup(d.name,
12
- d.groups[d.groups.length-1],d.name),d.groups.push(d.name)),this._fixSubgroups(d))}};a.prototype._fixSubgroups=function(b){b=b.groups;for(var c=b.length,a=0;a<c;a+=1){var d=b[a];b[a]={name:d,totalBtns:ToolbarConfigurator.ToolbarModifier.getTotalSubGroupButtonsNumber(d,this.fullToolbarEditor)}}};a.stringifyJSONintoOneLine=function(b,a){a=a||{};var e=JSON.stringify(b,null,""),e=e.replace(/\n/g,"");a.addSpaces&&(e=e.replace(/(\{|:|,|\[|\])/g,function(a){return a+" "}),e=e.replace(/(\])/g,function(a){return" "+
13
- a}));a.noQuotesOnKey&&(e=e.replace(/"(\w*)":/g,function(a,b){return b+":"}));a.singleQuotes&&(e=e.replace(/\"/g,"'"));return e};a.prototype.hideUI=function(){this.hidden=!0;this.mainContainer.hide();this.editorInstance.container&&this.editorInstance.container.hide()};a.prototype.showUI=function(){this.hidden=!1;this.mainContainer.show();this.editorInstance.container&&this.editorInstance.container.show()};a.extendPluginsConfig=function(a){var c=a.extraPlugins;a.extraPlugins=(c?c+",":"")+"toolbarconfiguratorarea"}})();
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js DELETED
@@ -1,9 +0,0 @@
1
- window.ToolbarConfigurator={};
2
- (function(){function e(){this.instanceid="fte"+CKEDITOR.tools.getNextId();this.textarea=new CKEDITOR.dom.element("textarea");this.textarea.setAttributes({id:this.instanceid,name:this.instanceid,contentEditable:!0});this.editorInstance=this.buttons=null}ToolbarConfigurator.FullToolbarEditor=e;e.prototype.init=function(b){var a=this;document.body.appendChild(this.textarea.$);CKEDITOR.replace(this.instanceid);this.editorInstance=CKEDITOR.instances[this.instanceid];this.editorInstance.once("configLoaded",function(d){var c=
3
- d.editor.config;delete c.removeButtons;delete c.toolbarGroups;delete c.toolbar;ToolbarConfigurator.AbstractToolbarModifier.extendPluginsConfig(c);d.editor.once("loaded",function(){a.buttons=e.toolbarToButtons(a.editorInstance.toolbar);a.buttonsByGroup=e.groupButtons(a.buttons);a.buttonNamesByGroup=a.groupButtonNamesByGroup(a.buttons);d.editor.container.hide();"function"===typeof b&&b(a.buttons)})})};e.prototype.groupButtonNamesByGroup=function(b){var a=this;b=e.groupButtons(b);for(var d in b)b[d]=
4
- e.map(b[d],function(b){return a.getCamelCasedButtonName(b.name)});return b};e.prototype.getGroupByName=function(b){for(var a=this.editorInstance.config.toolbarGroups||this.getFullToolbarGroupsConfig(),d=a.length,c=0;c<d;c+=1)if(a[c].name===b)return a[c];return null};e.prototype.getCamelCasedButtonName=function(b){var a=this.editorInstance.ui.items,d;for(d in a)if(a[d].name==b)return d;return null};e.prototype.getFullToolbarGroupsConfig=function(b){b=!0===b?!0:!1;for(var a=[],d=this.editorInstance.toolbar,
5
- c=d.length,f=0;f<c;f+=1){var e=d[f],g={};"string"!=typeof e.name?b&&a.push("/"):(g.name=e.name,e.groups&&(g.groups=Array.prototype.slice.call(e.groups)),a.push(g))}return a};e.filter=function(b,a){for(var d=b&&b.length?b.length:0,c=[],f=0;f<d;f+=1)a(b[f])&&c.push(b[f]);return c};e.map=function(b,a){var d;if(CKEDITOR.tools.isArray(b)){d=[];for(var c=b.length,f=0;f<c;f+=1)d.push(a(b[f]))}else for(c in d={},b)d[c]=a(b[c]);return d};e.groupButtons=function(b){for(var a={},d=b.length,c=0;c<d;c+=1){var f=
6
- b[c],e=f.toolbar.split(",")[0];a[e]=a[e]||[];a[e].push(f)}return a};e.toolbarToButtons=function(b){for(var a=[],d=b.length,c=0;c<d;c+=1)"object"==typeof b[c]&&(a=a.concat(e.groupToButtons(b[c])));return a};e.createToolbarButton=function(b){var a=new CKEDITOR.dom.element("a"),d=e.createIcon(b.name,b.icon,b.command);a.setStyle("float","none");a.addClass("cke_"+("rtl"==CKEDITOR.lang.dir?"rtl":"ltr"));if(b instanceof CKEDITOR.ui.button)a.addClass("cke_button"),a.addClass("cke_toolgroup"),a.append(d);
7
- else if(CKEDITOR.ui.richCombo&&b instanceof CKEDITOR.ui.richCombo){var d=new CKEDITOR.dom.element("span"),c=new CKEDITOR.dom.element("span"),f=new CKEDITOR.dom.element("span");a.addClass("cke_combo_button");d.addClass("cke_combo_text");d.addClass("cke_combo_inlinelabel");d.setText(b.label);c.addClass("cke_combo_open");f.addClass("cke_combo_arrow");c.append(f);a.append(d);a.append(c)}return a};e.createIcon=function(b,a,d){var c=CKEDITOR.skin.getIconStyle(b,"rtl"==CKEDITOR.lang.dir),c=(c=c||CKEDITOR.skin.getIconStyle(a,
8
- "rtl"==CKEDITOR.lang.dir))||CKEDITOR.skin.getIconStyle(d,"rtl"==CKEDITOR.lang.dir);a=new CKEDITOR.dom.element("span");a.addClass("cke_button_icon");a.addClass("cke_button__"+b+"_icon");a.setAttribute("style",c);a.setStyle("float","none");return a};e.createButton=function(b,a){var d=new CKEDITOR.dom.element("button");d.addClass("button-a");d.setAttribute("type","button");if("string"==typeof a){a=a.split(" ");for(var c=a.length;c--;)d.addClass(a[c])}d.setHtml(b);return d};e.groupToButtons=function(b){for(var a=
9
- [],d=(b=b.items)?b.length:0,c=0;c<d;c+=1){var f=b[c];if(f instanceof CKEDITOR.ui.button||CKEDITOR.ui.richCombo&&f instanceof CKEDITOR.ui.richCombo)f.$=e.createToolbarButton(f),a.push(f)}return a}})();
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js DELETED
@@ -1,33 +0,0 @@
1
- (function(){function d(a,b){l.call(this,a,b);this.actualConfig=this.originalConfig=this.removedButtons=null;this.emptyVisible=!1;this.state="edit";this.toolbarButtons=[{text:{active:"Hide empty toolbar groups",inactive:"Show empty toolbar groups"},group:"edit",position:"left",cssClass:"button-a-soft",clickCallback:function(a,b){a[a.hasClass("button-a-background")?"removeClass":"addClass"]("button-a-background");this._toggleVisibilityEmptyElements();this.emptyVisible?a.setText(b.text.active):a.setText(b.text.inactive)}},
2
- {text:"Add row separator",group:"edit",position:"left",cssClass:"button-a-soft",clickCallback:function(){this._addSeparator()}},{text:"Select config",group:"config",position:"left",cssClass:"button-a-soft",clickCallback:function(){this.configContainer.findOne("textarea").$.select()}},{text:"Back to configurator",group:"config",position:"right",cssClass:"button-a-background",clickCallback:function(){if("paste"===this.state){var a=this.configContainer.findOne("textarea").getValue();(a=d.evaluateToolbarGroupsConfig(a))?
3
- this.setConfig(a):alert("Your pasted config is wrong.")}this.state="edit";this._showConfigurationTool();this.showToolbarBtnsByGroupName(this.state)}},{text:'Get toolbar \x3cspan class\x3d"highlight"\x3econfig\x3c/span\x3e',group:"edit",position:"right",cssClass:"button-a-background icon-pos-left icon-download",clickCallback:function(){this.state="config";this._showConfig();this.showToolbarBtnsByGroupName(this.state)}}];this.cachedActiveElement=null}var l=ToolbarConfigurator.AbstractToolbarModifier;
4
- ToolbarConfigurator.ToolbarModifier=d;d.prototype=Object.create(ToolbarConfigurator.AbstractToolbarModifier.prototype);d.prototype.getActualConfig=function(){var a=l.prototype.getActualConfig.call(this);if(a.toolbarGroups)for(var b=a.toolbarGroups.length,c=0;c<b;c+=1)a.toolbarGroups[c]=d.parseGroupToConfigValue(a.toolbarGroups[c]);return a};d.prototype._onInit=function(a,b,c){c=!0===c;l.prototype._onInit.call(this,void 0,b);this.removedButtons=[];c?this.removedButtons=this.actualConfig.removeButtons?
5
- this.actualConfig.removeButtons.split(","):[]:"removeButtons"in this.originalConfig?this.removedButtons=this.originalConfig.removeButtons?this.originalConfig.removeButtons.split(","):[]:(this.originalConfig.removeButtons="",this.removedButtons=[]);this.actualConfig.toolbarGroups||(this.actualConfig.toolbarGroups=this.fullToolbarEditor.getFullToolbarGroupsConfig());this._fixGroups(this.actualConfig);this._calculateTotalBtns();this._createModifier();this._refreshMoveBtnsAvalibility();this._refreshBtnTabIndexes();
6
- "function"===typeof a&&a(this.mainContainer)};d.prototype._showConfigurationTool=function(){this.configContainer.addClass("hidden");this.modifyContainer.removeClass("hidden")};d.prototype._showConfig=function(){var a=this.getActualConfig(),b,c;if(a.toolbarGroups){b=a.toolbarGroups;for(var e=this.cfg.trimEmptyGroups,f=[],g=b.length,m=0;m<g;m++){var h=b[m];if("/"===h)f.push("'/'");else{if(e)for(var k=h.groups.length;k--;)0===d.getTotalSubGroupButtonsNumber(h.groups[k],this.fullToolbarEditor)&&h.groups.splice(k,
7
- 1);e&&0===h.groups.length||f.push(l.stringifyJSONintoOneLine(h,{addSpaces:!0,noQuotesOnKey:!0,singleQuotes:!0}))}}b="\n\t\t"+f.join(",\n\t\t")}a.removeButtons&&(c=a.removeButtons);a=['\x3ctextarea class\x3d"configCode" readonly\x3eCKEDITOR.editorConfig \x3d function( config ) {\n',b?"\tconfig.toolbarGroups \x3d ["+b+"\n\t];":"",c?"\n\n":"",c?"\tconfig.removeButtons \x3d '"+c+"';":"","\n};\x3c/textarea\x3e"].join("");this.modifyContainer.addClass("hidden");this.configContainer.removeClass("hidden");
8
- this.configContainer.setHtml(a)};d.prototype._toggleVisibilityEmptyElements=function(){this.modifyContainer.hasClass("empty-visible")?(this.modifyContainer.removeClass("empty-visible"),this.emptyVisible=!1):(this.modifyContainer.addClass("empty-visible"),this.emptyVisible=!0);this._refreshMoveBtnsAvalibility()};d.prototype._createModifier=function(){function a(){b._highlightGroup(this.data("name"))}var b=this;l.prototype._createModifier.call(this);this.modifyContainer.setHtml(this._toolbarConfigToListString());
9
- var c=this.modifyContainer.find('li[data-type\x3d"group"]');this.modifyContainer.on("mouseleave",function(){this._dehighlightActiveToolGroup()},this);for(var e=c.count(),f=0;f<e;f+=1)c.getItem(f).on("mouseenter",a);CKEDITOR.document.on("keypress",function(a){a=a.data.$.keyCode;a=32===a||13===a;var c=new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);c.getAscendant(function(a){return a.$===b.mainContainer.$})&&a&&"button"===c.data("type")&&c.findOne("input").$.click()});this.modifyContainer.on("click",
10
- function(a){var c=a.data.$,e=new CKEDITOR.dom.element(c.target||c.srcElement);if(a=d.getGroupOrSeparatorLiAncestor(e)){b.cachedActiveElement=document.activeElement;if(e.$ instanceof HTMLInputElement)b._handleCheckboxClicked(e);else if(e.$ instanceof HTMLButtonElement&&(c.preventDefault?c.preventDefault():c.returnValue=!1,(c=b._handleAnchorClicked(e.$))&&"remove"==c.action))return;c=a.data("type");a=a.data("name");b._setActiveElement(c,a);b.cachedActiveElement&&b.cachedActiveElement.focus()}});this.toolbarContainer||
11
- (this._createToolbar(),this.toolbarContainer.insertBefore(this.mainContainer.getChildren().getItem(0)));this.showToolbarBtnsByGroupName("edit");this.configContainer||(this.configContainer=new CKEDITOR.dom.element("div"),this.configContainer.addClass("configContainer"),this.configContainer.addClass("hidden"),this.mainContainer.append(this.configContainer));return this.mainContainer};d.prototype.showToolbarBtnsByGroupName=function(a){if(this.toolbarContainer)for(var b=this.toolbarContainer.find("button"),
12
- c=b.count(),e=0;e<c;e+=1){var d=b.getItem(e);d.data("group")==a?d.removeClass("hidden"):d.addClass("hidden")}};d.parseGroupToConfigValue=function(a){if("separator"==a.type)return"/";var b=a.groups,c=b.length;delete a.totalBtns;for(var e=0;e<c;e+=1)b[e]=b[e].name;return a};d.getGroupOrSeparatorLiAncestor=function(a){return a.$ instanceof HTMLLIElement&&"group"==a.data("type")?a:d.getFirstAncestor(a,function(a){a=a.data("type");return"group"==a||"separator"==a})};d.prototype._setActiveElement=function(a,
13
- b){this.currentActive&&this.currentActive.elem.removeClass("active");if(null===a)this._dehighlightActiveToolGroup(),this.currentActive=null;else{var c=this.mainContainer.findOne('ul[data-type\x3dtable-body] li[data-type\x3d"'+a+'"][data-name\x3d"'+b+'"]');c.addClass("active");this.currentActive={type:a,name:b,elem:c};"group"==a&&this._highlightGroup(b);"separator"==a&&this._dehighlightActiveToolGroup()}};d.prototype.getActiveToolGroup=function(){return this.editorInstance.container?this.editorInstance.container.findOne(".cke_toolgroup.active, .cke_toolbar.active"):
14
- null};d.prototype._dehighlightActiveToolGroup=function(){var a=this.getActiveToolGroup();a&&a.removeClass("active");this.editorInstance.container&&this.editorInstance.container.removeClass("some-toolbar-active")};d.prototype._highlightGroup=function(a){this.editorInstance.container&&(a=this.getFirstEnabledButtonInGroup(a),a=this.editorInstance.container.findOne(".cke_button__"+a+", .cke_combo__"+a),this._dehighlightActiveToolGroup(),this.editorInstance.container&&this.editorInstance.container.addClass("some-toolbar-active"),
15
- a&&(a=d.getFirstAncestor(a,function(a){return a.hasClass("cke_toolbar")}))&&a.addClass("active"))};d.prototype.getFirstEnabledButtonInGroup=function(a){var b=this.actualConfig.toolbarGroups;a=this.getGroupIndex(a);b=b[a];if(-1===a)return null;a=b.groups?b.groups.length:0;for(var c=0;c<a;c+=1){var e=this.getFirstEnabledButtonInSubgroup(b.groups[c].name);if(e)return e}return null};d.prototype.getFirstEnabledButtonInSubgroup=function(a){for(var b=(a=this.fullToolbarEditor.buttonsByGroup[a])?a.length:
16
- 0,c=0;c<b;c+=1){var e=a[c].name;if(!this.isButtonRemoved(e))return e}return null};d.prototype._handleCheckboxClicked=function(a){var b=a.getAscendant("li").data("name");a.$.checked?this._removeButtonFromRemoved(b):this._addButtonToRemoved(b)};d.prototype._handleAnchorClicked=function(a){a=new CKEDITOR.dom.element(a);var b=a.getAscendant("li"),c=b.getAscendant("ul"),e=b.data("type"),d=b.data("name"),g=a.data("direction"),m="up"===g?b.getPrevious():b.getNext(),h;if(a.hasClass("disabled"))return null;
17
- if(a.hasClass("remove"))return b.remove(),this._removeSeparator(b.data("name")),this._setActiveElement(null),{action:"remove"};if(!a.hasClass("move")||!m)return{action:null};if("group"===e||"separator"===e)h=this._moveGroup(g,d);"subgroup"===e&&(h=b.getAscendant("li").data("name"),h=this._moveSubgroup(g,h,d));"up"===g&&b.insertBefore(c.getChild(h));"down"===g&&b.insertAfter(c.getChild(h));for(var k;b="up"===g?b.getPrevious():b.getNext();)if(this.emptyVisible||!b.hasClass("empty")){k=b;break}k||(k=
18
- '[data-direction\x3d"'+("up"===g?"down":"up")+'"]',this.cachedActiveElement=a.getParent().findOne(k));this._refreshMoveBtnsAvalibility();this._refreshBtnTabIndexes();return{action:"move"}};d.prototype._refreshMoveBtnsAvalibility=function(){function a(a){var c=a.count();for(d=0;d<c;d+=1)b._disableElementsInList(a.getItem(d))}for(var b=this,c=this.mainContainer.find("ul[data-type\x3dtable-body] li \x3e p \x3e span \x3e button.move.disabled"),e=c.count(),d=0;d<e;d+=1)c.getItem(d).removeClass("disabled");
19
- a(this.mainContainer.find("ul[data-type\x3dtable-body]"));a(this.mainContainer.find("ul[data-type\x3dtable-body] \x3e li \x3e ul"))};d.prototype._refreshBtnTabIndexes=function(){for(var a=this.mainContainer.find('[data-tab\x3d"true"]'),b=a.count(),c=0;c<b;c++){var e=a.getItem(c),d=e.hasClass("disabled");e.setAttribute("tabindex",d?-1:c)}};d.prototype._disableElementsInList=function(a){function b(a){return!a.hasClass("empty")}if(a.getChildren().count()){var c;this.emptyVisible?(c=a.getFirst(),a=a.getLast()):
20
- (c=a.getFirst(b),a=a.getLast(b));if(c)var e=c.findOne('p button[data-direction\x3d"up"]');if(a)var d=a.findOne('p button[data-direction\x3d"down"]');e&&(e.addClass("disabled"),e.setAttribute("tabindex","-1"));d&&(d.addClass("disabled"),d.setAttribute("tabindex","-1"))}};d.prototype.getGroupIndex=function(a){for(var b=this.actualConfig.toolbarGroups,c=b.length,d=0;d<c;d+=1)if(b[d].name===a)return d;return-1};d.prototype._addSeparator=function(){var a=this._determineSeparatorToAddIndex(),b=d.createSeparatorLiteral(),
21
- c=CKEDITOR.dom.element.createFromHtml(d.getToolbarSeparatorString(b));this.actualConfig.toolbarGroups.splice(a,0,b);c.insertBefore(this.modifyContainer.findOne("ul[data-type\x3dtable-body]").getChild(a));this._setActiveElement("separator",b.name);this._refreshMoveBtnsAvalibility();this._refreshBtnTabIndexes();this._refreshEditor()};d.prototype._removeSeparator=function(a){var b=CKEDITOR.tools.indexOf(this.actualConfig.toolbarGroups,function(b){return"separator"==b.type&&b.name==a});this.actualConfig.toolbarGroups.splice(b,
22
- 1);this._refreshMoveBtnsAvalibility();this._refreshBtnTabIndexes();this._refreshEditor()};d.prototype._determineSeparatorToAddIndex=function(){return this.currentActive?("group"==this.currentActive.elem.data("type")||"separator"==this.currentActive.elem.data("type")?this.currentActive.elem:this.currentActive.elem.getAscendant("li")).getIndex():0};d.prototype._moveElement=function(a,b,c){function e(a){return a.totalBtns||"separator"==a.type}c=this.emptyVisible?"down"==c?b+1:b-1:d.getFirstElementIndexWith(a,
23
- b,c,e);return d.moveTo(c-b,a,b)};d.prototype._moveGroup=function(a,b){var c=this.getGroupIndex(b),c=this._moveElement(this.actualConfig.toolbarGroups,c,a);this._refreshMoveBtnsAvalibility();this._refreshBtnTabIndexes();this._refreshEditor();return c};d.prototype._moveSubgroup=function(a,b,c){b=this.getGroupIndex(b);b=this.actualConfig.toolbarGroups[b];var d=CKEDITOR.tools.indexOf(b.groups,function(a){return a.name==c});a=this._moveElement(b.groups,d,a);this._refreshEditor();return a};d.prototype._calculateTotalBtns=
24
- function(){for(var a=this.actualConfig.toolbarGroups,b=a.length;b--;){var c=a[b],e=d.getTotalGroupButtonsNumber(c,this.fullToolbarEditor);"separator"!=c.type&&(c.totalBtns=e)}};d.prototype._addButtonToRemoved=function(a){if(-1!=CKEDITOR.tools.indexOf(this.removedButtons,a))throw"Button already added to removed";this.removedButtons.push(a);this.actualConfig.removeButtons=this.removedButtons.join(",");this._refreshEditor()};d.prototype._removeButtonFromRemoved=function(a){a=CKEDITOR.tools.indexOf(this.removedButtons,
25
- a);if(-1===a)throw"Trying to remove button from removed, but not found";this.removedButtons.splice(a,1);this.actualConfig.removeButtons=this.removedButtons.join(",");this._refreshEditor()};d.parseGroupToConfigValue=function(a){if("separator"==a.type)return"/";var b=a.groups,c=b.length;delete a.totalBtns;for(var d=0;d<c;d+=1)b[d]=b[d].name;return a};d.getGroupOrSeparatorLiAncestor=function(a){return a.$ instanceof HTMLLIElement&&"group"==a.data("type")?a:d.getFirstAncestor(a,function(a){a=a.data("type");
26
- return"group"==a||"separator"==a})};d.createSeparatorLiteral=function(){return{type:"separator",name:"separator"+CKEDITOR.tools.getNextNumber()}};d.prototype._toolbarConfigToListString=function(){for(var a=this.actualConfig.toolbarGroups||[],b='\x3cul data-type\x3d"table-body"\x3e',c=a.length,e=0;e<c;e+=1)var f=a[e],b="separator"===f.type?b+d.getToolbarSeparatorString(f):b+this._getToolbarGroupString(f);b+="\x3c/ul\x3e";return d.getToolbarHeaderString()+b};d.prototype._getToolbarGroupString=function(a){var b=
27
- a.groups,c;c=""+['\x3cli data-type\x3d"group" data-name\x3d"',a.name,'" ',a.totalBtns?"":'class\x3d"empty"',"\x3e"].join("");c+=d.getToolbarElementPreString(a)+"\x3cul\x3e";a=b.length;for(var e=0;e<a;e+=1){var f=b[e];c+=this._getToolbarSubgroupString(f,this.fullToolbarEditor.buttonsByGroup[f.name])}return c+"\x3c/ul\x3e\x3c/li\x3e"};d.getToolbarSeparatorString=function(a){return['\x3cli data-type\x3d"',a.type,'" data-name\x3d"',a.name,'"\x3e',d.getToolbarElementPreString("row separator"),"\x3c/li\x3e"].join("")};
28
- d.getToolbarHeaderString=function(){return'\x3cul data-type\x3d"table-header"\x3e\x3cli data-type\x3d"header"\x3e\x3cp\x3eToolbars\x3c/p\x3e\x3cul\x3e\x3cli\x3e\x3cp\x3eToolbar groups\x3c/p\x3e\x3cp\x3eToolbar group items\x3c/p\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3c/ul\x3e'};d.getFirstAncestor=function(a,b){for(var c=a.getParents(),d=c.length;d--;)if(b(c[d]))return c[d];return null};d.getFirstElementIndexWith=function(a,b,c,d){for(;"up"===c?b--:++b<a.length;)if(d(a[b]))return b;return-1};d.moveTo=
29
- function(a,b,c){var d;-1!==c&&(d=b.splice(c,1)[0]);a=c+a;b.splice(a,0,d);return a};d.getTotalSubGroupButtonsNumber=function(a,b){var c=b.buttonsByGroup["string"==typeof a?a:a.name];return c?c.length:0};d.getTotalGroupButtonsNumber=function(a,b){for(var c=0,e=a.groups,f=e?e.length:0,g=0;g<f;g+=1)c+=d.getTotalSubGroupButtonsNumber(e[g],b);return c};d.prototype._getToolbarSubgroupString=function(a,b){var c;c=""+['\x3cli data-type\x3d"subgroup" data-name\x3d"',a.name,'" ',a.totalBtns?"":'class\x3d"empty" ',
30
- "\x3e"].join("");c+=d.getToolbarElementPreString(a.name);c+="\x3cul\x3e";for(var e=b?b.length:0,f=0;f<e;f+=1)c+=this.getButtonString(b[f]);return c+="\x3c/ul\x3e\x3c/li\x3e"};d.prototype._getConfigButtonName=function(a){var b=this.fullToolbarEditor.editorInstance.ui.items,c;for(c in b)if(b[c].name==a)return c;return null};d.prototype.isButtonRemoved=function(a){return-1!=CKEDITOR.tools.indexOf(this.removedButtons,this._getConfigButtonName(a))};d.prototype.getButtonString=function(a){var b=this.isButtonRemoved(a.name)?
31
- "":'checked\x3d"checked"';return['\x3cli data-tab\x3d"true" data-type\x3d"button" data-name\x3d"',this._getConfigButtonName(a.name),'"\x3e\x3clabel title\x3d"',a.label,'" \x3e\x3cinput tabindex\x3d"-1"type\x3d"checkbox"',b,"/\x3e",a.$.getOuterHtml(),"\x3c/label\x3e\x3c/li\x3e"].join("")};d.getToolbarElementPreString=function(a){a=a.name?a.name:a;return['\x3cp\x3e\x3cspan\x3e\x3cbutton title\x3d"Move element upward" data-tab\x3d"true" data-direction\x3d"up" class\x3d"move icon-up-big"\x3e\x3c/button\x3e\x3cbutton title\x3d"Move element downward" data-tab\x3d"true" data-direction\x3d"down" class\x3d"move icon-down-big"\x3e\x3c/button\x3e',
32
- "row separator"==a?'\x3cbutton title\x3d"Remove element" data-tab\x3d"true" class\x3d"remove icon-trash"\x3e\x3c/button\x3e':"",a,"\x3c/span\x3e\x3c/p\x3e"].join("")};d.evaluateToolbarGroupsConfig=function(a){return a=function(a){var c={},d;try{d=eval("("+a+")")}catch(f){try{d=eval(a)}catch(g){return null}}return c.toolbarGroups&&"number"===typeof c.toolbarGroups.length?JSON.stringify(c):d&&"number"===typeof d.length?JSON.stringify({toolbarGroups:d}):d&&d.toolbarGroups?JSON.stringify(d):null}(a)};
33
- return d})();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js DELETED
@@ -1,14 +0,0 @@
1
- (function(){function e(a){l.call(this,a);this.hintContainer=this.codeContainer=null}var l=ToolbarConfigurator.AbstractToolbarModifier,g=ToolbarConfigurator.FullToolbarEditor;ToolbarConfigurator.ToolbarTextModifier=e;e.prototype=Object.create(l.prototype);e.prototype._onInit=function(a,d){l.prototype._onInit.call(this,void 0,d);this._createModifier(d?this.actualConfig:void 0);"function"===typeof a&&a(this.mainContainer)};e.prototype._createModifier=function(a){function d(a){var b=c(a);if(null!==b.charsBetween){var d=
2
- k.getUnusedButtonsArray(k.actualConfig.toolbar,!0,b.charsBetween),e=a.getCursor(),b=CodeMirror.Pos(e.line,e.ch-b.charsBetween.length),h=a.getTokenAt(e);"{"===a.getTokenAt({line:e.line,ch:h.start}).string&&(d=["name"]);if(0!==d.length)return new f(b,e,d)}}function f(a,c,b){this.from=a;this.to=c;this.list=b;this._handlers=[]}function c(a,c){var b={};b.cur=a.getCursor();b.tok=a.getTokenAt(b.cur);b["char"]=c||b.tok.string.charAt(b.tok.string.length-1);var d=a.getRange(CodeMirror.Pos(b.cur.line,0),b.cur).split("").reverse().join(""),
3
- d=d.replace(/(['|"]\w*['|"])/g,"");b.charsBetween=d.match(/(^\w*)(['|"])/);b.charsBetween&&(b.endChar=b.charsBetween[2],b.charsBetween=b.charsBetween[1].split("").reverse().join(""));return b}function b(a){setTimeout(function(){a.state.completionActive||CodeMirror.showHint(a,d,{hintsClass:"toolbar-modifier",completeSingle:!1})},100);return CodeMirror.Pass}var k=this;this._createToolbar();this.toolbarContainer&&this.mainContainer.append(this.toolbarContainer);l.prototype._createModifier.call(this);
4
- this._setupActualConfig(a);a=this.actualConfig.toolbar;a=CKEDITOR.tools.isArray(a)?"\tconfig.toolbar \x3d "+("[\n\t\t"+g.map(a,function(a){return l.stringifyJSONintoOneLine(a,{addSpaces:!0,noQuotesOnKey:!0,singleQuotes:!0})}).join(",\n\t\t")+"\n\t]")+";":"config.toolbar \x3d [];";a=["CKEDITOR.editorConfig \x3d function( config ) {\n",a,"\n};"].join("");var e=new CKEDITOR.dom.element("div");e.addClass("codemirror-wrapper");this.modifyContainer.append(e);this.codeContainer=CodeMirror(e.$,{mode:{name:"javascript",
5
- json:!0},lineNumbers:!1,lineWrapping:!0,viewportMargin:Infinity,value:a,smartIndent:!1,indentWithTabs:!0,indentUnit:4,tabSize:4,theme:"neo",extraKeys:{Left:b,Right:b,"'''":b,"'\"'":b,Backspace:b,Delete:b,"Shift-Tab":"indentLess"}});this.codeContainer.on("endCompletion",function(a,b){var d=c(a);void 0!==b&&a.replaceSelection(d.endChar)});this.codeContainer.on("change",function(){var a=k.codeContainer.getValue(),a=k._evaluateValue(a);null!==a?(k.actualConfig.toolbar=a.toolbar?a.toolbar:k.actualConfig.toolbar,
6
- k._fillHintByUnusedElements(),k._refreshEditor(),k.mainContainer.removeClass("invalid")):k.mainContainer.addClass("invalid")});this.hintContainer=new CKEDITOR.dom.element("div");this.hintContainer.addClass("toolbarModifier-hints");this._fillHintByUnusedElements();this.hintContainer.insertBefore(e)};e.prototype._fillHintByUnusedElements=function(){var a=this.getUnusedButtonsArray(this.actualConfig.toolbar,!0),a=this.groupButtonNamesByGroup(a),d=g.map(a,function(a){var b=g.map(a.buttons,function(a){return"\x3ccode\x3e"+
7
- a+"\x3c/code\x3e "}).join("");return["\x3cdt\x3e\x3ccode\x3e",a.name,"\x3c/code\x3e\x3c/dt\x3e\x3cdd\x3e",b,"\x3c/dd\x3e"].join("")}).join(" "),f='\x3cdt class\x3d"list-header"\x3eToolbar group\x3c/dt\x3e\x3cdd class\x3d"list-header"\x3eUnused items\x3c/dd\x3e';a.length||(f="\x3cp\x3eAll items are in use.\x3c/p\x3e");this.codeContainer.refresh();this.hintContainer.setHtml("\x3ch3\x3eUnused toolbar items\x3c/h3\x3e\x3cdl\x3e"+f+d+"\x3c/dl\x3e")};e.prototype.getToolbarGroupByButtonName=function(a){var d=
8
- this.fullToolbarEditor.buttonNamesByGroup,f;for(f in d)for(var c=d[f],b=c.length;b--;)if(a===c[b])return f;return null};e.prototype.getUnusedButtonsArray=function(a,d,f){d=!0===d?!0:!1;var c=e.mapToolbarCfgToElementsList(a);a=Object.keys(this.fullToolbarEditor.editorInstance.ui.items);a=g.filter(a,function(a){var d="-"===a;a=void 0===f||0===a.toLowerCase().indexOf(f.toLowerCase());return!d&&a});a=g.filter(a,function(a){return-1==CKEDITOR.tools.indexOf(c,a)});d&&a.sort();return a};e.prototype.groupButtonNamesByGroup=
9
- function(a){var d=[],f=JSON.parse(JSON.stringify(this.fullToolbarEditor.buttonNamesByGroup)),c;for(c in f){var b=f[c],b=g.filter(b,function(b){return-1!==CKEDITOR.tools.indexOf(a,b)});b.length&&d.push({name:c,buttons:b})}return d};e.mapToolbarCfgToElementsList=function(a){function d(a){return"-"!==a}for(var f=[],c=a.length,b=0;b<c;b+=1)a[b]&&"string"!==typeof a[b]&&(f=f.concat(g.filter(a[b].items,d)));return f};e.prototype._setupActualConfig=function(a){a=a||this.editorInstance.config;CKEDITOR.tools.isArray(a.toolbar)||
10
- (a.toolbarGroups||(a.toolbarGroups=this.fullToolbarEditor.getFullToolbarGroupsConfig(!0)),this._fixGroups(a),a.toolbar=this._mapToolbarGroupsToToolbar(a.toolbarGroups,this.actualConfig.removeButtons),this.actualConfig.toolbar=a.toolbar,this.actualConfig.removeButtons="")};e.prototype._mapToolbarGroupsToToolbar=function(a,d){d=d||this.editorInstance.config.removedBtns;d="string"==typeof d?d.split(","):[];for(var f=a.length;f--;){var c=this._mapToolbarSubgroup(a[f],d);"separator"===a[f].type?a[f]="/":
11
- CKEDITOR.tools.isArray(c)&&0===c.length?a.splice(f,1):a[f]="string"==typeof c?c:{name:a[f].name,items:c}}return a};e.prototype._mapToolbarSubgroup=function(a,d){if("string"==typeof a)return a;for(var f=a.groups?a.groups.length:0,c=[],b=0;b<f;b+=1){var e=a.groups[b],e=this.fullToolbarEditor.buttonsByGroup["string"===typeof e?e:e.name]||[],e=this._mapButtonsToButtonsNames(e,d),g=e.length,c=c.concat(e);g&&c.push("-")}"-"==c[c.length-1]&&c.pop();return c};e.prototype._mapButtonsToButtonsNames=function(a,
12
- d){for(var f=a.length;f--;){var c=a[f],c="string"===typeof c?c:this.fullToolbarEditor.getCamelCasedButtonName(c.name);-1!==CKEDITOR.tools.indexOf(d,c)?a.splice(f,1):a[f]=c}return a};e.prototype._evaluateValue=function(a){var d;try{var f={};Function("var CKEDITOR \x3d {}; "+a+"; return CKEDITOR;")().editorConfig(f);d=f;for(var c=d.toolbar.length;c--;)d.toolbar[c]||d.toolbar.splice(c,1)}catch(b){d=null}return d};e.prototype.mapToolbarToToolbarGroups=function(a){function d(a,b){a=a.slice();for(var d=
13
- b.length;d--;){var c=a.indexOf(b[d]);-1!==c&&a.splice(c,1)}return a}for(var f={},c=[],b=[],c=a.length,e=0;e<c;e++)if("/"===a[e])b.push("/");else{var g=a[e].items,m={};m.name=a[e].name;m.groups=[];for(var l=g.length,p=0;p<l;p++){var n=g[p];if("-"!==n){var h=this.getToolbarGroupByButtonName(n);-1===m.groups.indexOf(h)&&m.groups.push(h);f[h]=f[h]||{};h=f[h].buttons=f[h].buttons||{};h[n]=h[n]||{used:0,origin:m.name};h[n].used++}}b.push(m)}c=function(a,b){var c=[],e;for(e in a)var f=a[e],g=b[e].slice(),
14
- c=c.concat(d(g,Object.keys(f.buttons)));return c}(f,this.fullToolbarEditor.buttonNamesByGroup);return{toolbarGroups:b,removeButtons:c.join(",")}};return e})();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- Copyright (C) 2014 by Marijn Haverbeke <marijnh@gmail.com> and others
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css DELETED
@@ -1,325 +0,0 @@
1
- /* BASICS */
2
-
3
- .CodeMirror {
4
- /* Set height, width, borders, and global font properties here */
5
- font-family: monospace;
6
- height: 300px;
7
- color: black;
8
- }
9
-
10
- /* PADDING */
11
-
12
- .CodeMirror-lines {
13
- padding: 4px 0; /* Vertical padding around content */
14
- }
15
- .CodeMirror pre {
16
- padding: 0 4px; /* Horizontal padding of content */
17
- }
18
-
19
- .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
20
- background-color: white; /* The little square between H and V scrollbars */
21
- }
22
-
23
- /* GUTTER */
24
-
25
- .CodeMirror-gutters {
26
- border-right: 1px solid #ddd;
27
- background-color: #f7f7f7;
28
- white-space: nowrap;
29
- }
30
- .CodeMirror-linenumbers {}
31
- .CodeMirror-linenumber {
32
- padding: 0 3px 0 5px;
33
- min-width: 20px;
34
- text-align: right;
35
- color: #999;
36
- white-space: nowrap;
37
- }
38
-
39
- .CodeMirror-guttermarker { color: black; }
40
- .CodeMirror-guttermarker-subtle { color: #999; }
41
-
42
- /* CURSOR */
43
-
44
- .CodeMirror div.CodeMirror-cursor {
45
- border-left: 1px solid black;
46
- }
47
- /* Shown when moving in bi-directional text */
48
- .CodeMirror div.CodeMirror-secondarycursor {
49
- border-left: 1px solid silver;
50
- }
51
- .CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
52
- width: auto;
53
- border: 0;
54
- background: #7e7;
55
- }
56
- .CodeMirror.cm-fat-cursor div.CodeMirror-cursors {
57
- z-index: 1;
58
- }
59
-
60
- .cm-animate-fat-cursor {
61
- width: auto;
62
- border: 0;
63
- -webkit-animation: blink 1.06s steps(1) infinite;
64
- -moz-animation: blink 1.06s steps(1) infinite;
65
- animation: blink 1.06s steps(1) infinite;
66
- }
67
- @-moz-keyframes blink {
68
- 0% { background: #7e7; }
69
- 50% { background: none; }
70
- 100% { background: #7e7; }
71
- }
72
- @-webkit-keyframes blink {
73
- 0% { background: #7e7; }
74
- 50% { background: none; }
75
- 100% { background: #7e7; }
76
- }
77
- @keyframes blink {
78
- 0% { background: #7e7; }
79
- 50% { background: none; }
80
- 100% { background: #7e7; }
81
- }
82
-
83
- /* Can style cursor different in overwrite (non-insert) mode */
84
- div.CodeMirror-overwrite div.CodeMirror-cursor {}
85
-
86
- .cm-tab { display: inline-block; text-decoration: inherit; }
87
-
88
- .CodeMirror-ruler {
89
- border-left: 1px solid #ccc;
90
- position: absolute;
91
- }
92
-
93
- /* DEFAULT THEME */
94
-
95
- .cm-s-default .cm-keyword {color: #708;}
96
- .cm-s-default .cm-atom {color: #219;}
97
- .cm-s-default .cm-number {color: #164;}
98
- .cm-s-default .cm-def {color: #00f;}
99
- .cm-s-default .cm-variable,
100
- .cm-s-default .cm-punctuation,
101
- .cm-s-default .cm-property,
102
- .cm-s-default .cm-operator {}
103
- .cm-s-default .cm-variable-2 {color: #05a;}
104
- .cm-s-default .cm-variable-3 {color: #085;}
105
- .cm-s-default .cm-comment {color: #a50;}
106
- .cm-s-default .cm-string {color: #a11;}
107
- .cm-s-default .cm-string-2 {color: #f50;}
108
- .cm-s-default .cm-meta {color: #555;}
109
- .cm-s-default .cm-qualifier {color: #555;}
110
- .cm-s-default .cm-builtin {color: #30a;}
111
- .cm-s-default .cm-bracket {color: #997;}
112
- .cm-s-default .cm-tag {color: #170;}
113
- .cm-s-default .cm-attribute {color: #00c;}
114
- .cm-s-default .cm-header {color: blue;}
115
- .cm-s-default .cm-quote {color: #090;}
116
- .cm-s-default .cm-hr {color: #999;}
117
- .cm-s-default .cm-link {color: #00c;}
118
-
119
- .cm-negative {color: #d44;}
120
- .cm-positive {color: #292;}
121
- .cm-header, .cm-strong {font-weight: bold;}
122
- .cm-em {font-style: italic;}
123
- .cm-link {text-decoration: underline;}
124
- .cm-strikethrough {text-decoration: line-through;}
125
-
126
- .cm-s-default .cm-error {color: #f00;}
127
- .cm-invalidchar {color: #f00;}
128
-
129
- .CodeMirror-composing { border-bottom: 2px solid; }
130
-
131
- /* Default styles for common addons */
132
-
133
- div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
134
- div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
135
- .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
136
- .CodeMirror-activeline-background {background: #e8f2ff;}
137
-
138
- /* STOP */
139
-
140
- /* The rest of this file contains styles related to the mechanics of
141
- the editor. You probably shouldn't touch them. */
142
-
143
- .CodeMirror {
144
- position: relative;
145
- overflow: hidden;
146
- background: white;
147
- }
148
-
149
- .CodeMirror-scroll {
150
- overflow: scroll !important; /* Things will break if this is overridden */
151
- /* 30px is the magic margin used to hide the element's real scrollbars */
152
- /* See overflow: hidden in .CodeMirror */
153
- margin-bottom: -30px; margin-right: -30px;
154
- padding-bottom: 30px;
155
- height: 100%;
156
- outline: none; /* Prevent dragging from highlighting the element */
157
- position: relative;
158
- }
159
- .CodeMirror-sizer {
160
- position: relative;
161
- border-right: 30px solid transparent;
162
- }
163
-
164
- /* The fake, visible scrollbars. Used to force redraw during scrolling
165
- before actuall scrolling happens, thus preventing shaking and
166
- flickering artifacts. */
167
- .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
168
- position: absolute;
169
- z-index: 6;
170
- display: none;
171
- }
172
- .CodeMirror-vscrollbar {
173
- right: 0; top: 0;
174
- overflow-x: hidden;
175
- overflow-y: scroll;
176
- }
177
- .CodeMirror-hscrollbar {
178
- bottom: 0; left: 0;
179
- overflow-y: hidden;
180
- overflow-x: scroll;
181
- }
182
- .CodeMirror-scrollbar-filler {
183
- right: 0; bottom: 0;
184
- }
185
- .CodeMirror-gutter-filler {
186
- left: 0; bottom: 0;
187
- }
188
-
189
- .CodeMirror-gutters {
190
- position: absolute; left: 0; top: 0;
191
- z-index: 3;
192
- }
193
- .CodeMirror-gutter {
194
- white-space: normal;
195
- height: 100%;
196
- display: inline-block;
197
- margin-bottom: -30px;
198
- /* Hack to make IE7 behave */
199
- *zoom:1;
200
- *display:inline;
201
- }
202
- .CodeMirror-gutter-wrapper {
203
- position: absolute;
204
- z-index: 4;
205
- height: 100%;
206
- }
207
- .CodeMirror-gutter-elt {
208
- position: absolute;
209
- cursor: default;
210
- z-index: 4;
211
- }
212
- .CodeMirror-gutter-wrapper {
213
- -webkit-user-select: none;
214
- -moz-user-select: none;
215
- user-select: none;
216
- }
217
-
218
- .CodeMirror-lines {
219
- cursor: text;
220
- min-height: 1px; /* prevents collapsing before first draw */
221
- }
222
- .CodeMirror pre {
223
- /* Reset some styles that the rest of the page might have set */
224
- -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
225
- border-width: 0;
226
- background: transparent;
227
- font-family: inherit;
228
- font-size: inherit;
229
- margin: 0;
230
- white-space: pre;
231
- word-wrap: normal;
232
- line-height: inherit;
233
- color: inherit;
234
- z-index: 2;
235
- position: relative;
236
- overflow: visible;
237
- -webkit-tap-highlight-color: transparent;
238
- }
239
- .CodeMirror-wrap pre {
240
- word-wrap: break-word;
241
- white-space: pre-wrap;
242
- word-break: normal;
243
- }
244
-
245
- .CodeMirror-linebackground {
246
- position: absolute;
247
- left: 0; right: 0; top: 0; bottom: 0;
248
- z-index: 0;
249
- }
250
-
251
- .CodeMirror-linewidget {
252
- position: relative;
253
- z-index: 2;
254
- overflow: auto;
255
- }
256
-
257
- .CodeMirror-widget {}
258
-
259
- .CodeMirror-code {
260
- outline: none;
261
- }
262
-
263
- /* Force content-box sizing for the elements where we expect it */
264
- .CodeMirror-scroll,
265
- .CodeMirror-sizer,
266
- .CodeMirror-gutter,
267
- .CodeMirror-gutters,
268
- .CodeMirror-linenumber {
269
- -moz-box-sizing: content-box;
270
- box-sizing: content-box;
271
- }
272
-
273
- .CodeMirror-measure {
274
- position: absolute;
275
- width: 100%;
276
- height: 0;
277
- overflow: hidden;
278
- visibility: hidden;
279
- }
280
- .CodeMirror-measure pre { position: static; }
281
-
282
- .CodeMirror div.CodeMirror-cursor {
283
- position: absolute;
284
- border-right: none;
285
- width: 0;
286
- }
287
-
288
- div.CodeMirror-cursors {
289
- visibility: hidden;
290
- position: relative;
291
- z-index: 3;
292
- }
293
- .CodeMirror-focused div.CodeMirror-cursors {
294
- visibility: visible;
295
- }
296
-
297
- .CodeMirror-selected { background: #d9d9d9; }
298
- .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
299
- .CodeMirror-crosshair { cursor: crosshair; }
300
- .CodeMirror ::selection { background: #d7d4f0; }
301
- .CodeMirror ::-moz-selection { background: #d7d4f0; }
302
-
303
- .cm-searching {
304
- background: #ffa;
305
- background: rgba(255, 255, 0, .4);
306
- }
307
-
308
- /* IE7 hack to prevent it from returning funny offsetTops on the spans */
309
- .CodeMirror span { *vertical-align: text-bottom; }
310
-
311
- /* Used to force a border model for a node */
312
- .cm-force-border { padding-right: .1px; }
313
-
314
- @media print {
315
- /* Hide the cursor when printing */
316
- .CodeMirror div.CodeMirror-cursors {
317
- visibility: hidden;
318
- }
319
- }
320
-
321
- /* See issue #2901 */
322
- .cm-tab-wrap-hack:after { content: ''; }
323
-
324
- /* Help users use markselection to safely style text background */
325
- span.CodeMirror-selectedtext { background: none; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js DELETED
@@ -1,288 +0,0 @@
1
- (function(q){if("object"==typeof exports&&"object"==typeof module)module.exports=q();else{if("function"==typeof define&&define.amd)return define([],q);this.CodeMirror=q()}})(function(){function q(a,b){if(!(this instanceof q))return new q(a,b);this.options=b=b?V(b):{};V(qf,b,!1);wc(b);var c=b.value;"string"==typeof c&&(c=new P(c,b.mode));this.doc=c;var d=new q.inputStyles[b.inputStyle](this),d=this.display=new rf(a,c,d);d.wrapper.CodeMirror=this;Ad(this);Bd(this);b.lineWrapping&&(this.display.wrapper.className+=
2
- " CodeMirror-wrap");b.autofocus&&!ab&&d.input.focus();Cd(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new bb,keySeq:null,specialChars:null};var e=this;B&&11>C&&setTimeout(function(){e.display.input.reset(!0)},20);sf(this);Dd||(tf(),Dd=!0);Ja(this);this.curOp.forceUpdate=!0;Ed(this,c);b.autofocus&&!ab||e.hasFocus()?setTimeout(cb(xc,this),20):db(this);for(var f in Ka)if(Ka.hasOwnProperty(f))Ka[f](this,
3
- b[f],Fd);Gd(this);b.finishInit&&b.finishInit(this);for(c=0;c<yc.length;++c)yc[c](this);La(this);J&&b.lineWrapping&&"optimizelegibility"==getComputedStyle(d.lineDiv).textRendering&&(d.lineDiv.style.textRendering="auto")}function rf(a,b,c){this.input=c;this.scrollbarFiller=t("div",null,"CodeMirror-scrollbar-filler");this.scrollbarFiller.setAttribute("cm-not-content","true");this.gutterFiller=t("div",null,"CodeMirror-gutter-filler");this.gutterFiller.setAttribute("cm-not-content","true");this.lineDiv=
4
- t("div",null,"CodeMirror-code");this.selectionDiv=t("div",null,null,"position: relative; z-index: 1");this.cursorDiv=t("div",null,"CodeMirror-cursors");this.measure=t("div",null,"CodeMirror-measure");this.lineMeasure=t("div",null,"CodeMirror-measure");this.lineSpace=t("div",[this.measure,this.lineMeasure,this.selectionDiv,this.cursorDiv,this.lineDiv],null,"position: relative; outline: none");this.mover=t("div",[t("div",[this.lineSpace],"CodeMirror-lines")],null,"position: relative");this.sizer=t("div",
5
- [this.mover],"CodeMirror-sizer");this.sizerWidth=null;this.heightForcer=t("div",null,null,"position: absolute; height: "+Hd+"px; width: 1px;");this.gutters=t("div",null,"CodeMirror-gutters");this.lineGutter=null;this.scroller=t("div",[this.sizer,this.heightForcer,this.gutters],"CodeMirror-scroll");this.scroller.setAttribute("tabIndex","-1");this.wrapper=t("div",[this.scrollbarFiller,this.gutterFiller,this.scroller],"CodeMirror");B&&8>C&&(this.gutters.style.zIndex=-1,this.scroller.style.paddingRight=
6
- 0);J||wa&&ab||(this.scroller.draggable=!0);a&&(a.appendChild?a.appendChild(this.wrapper):a(this.wrapper));this.reportedViewFrom=this.reportedViewTo=this.viewFrom=this.viewTo=b.first;this.view=[];this.externalMeasured=this.renderedView=null;this.lastWrapHeight=this.lastWrapWidth=this.viewOffset=0;this.updateLineNumbers=null;this.nativeBarWidth=this.barHeight=this.barWidth=0;this.scrollbarsClipped=!1;this.lineNumWidth=this.lineNumInnerWidth=this.lineNumChars=null;this.alignWidgets=!1;this.maxLine=this.cachedCharWidth=
7
- this.cachedTextHeight=this.cachedPaddingH=null;this.maxLineLength=0;this.maxLineChanged=!1;this.wheelDX=this.wheelDY=this.wheelStartX=this.wheelStartY=null;this.shift=!1;this.activeTouch=this.selForContextMenu=null;c.init(this)}function zc(a){a.doc.mode=q.getMode(a.options,a.doc.modeOption);eb(a)}function eb(a){a.doc.iter(function(a){a.stateAfter&&(a.stateAfter=null);a.styles&&(a.styles=null)});a.doc.frontier=a.doc.first;fb(a,100);a.state.modeGen++;a.curOp&&Q(a)}function Id(a){var b=xa(a.display),
8
- c=a.options.lineWrapping,d=c&&Math.max(5,a.display.scroller.clientWidth/gb(a.display)-3);return function(e){if(ya(a.doc,e))return 0;var f=0;if(e.widgets)for(var g=0;g<e.widgets.length;g++)e.widgets[g].height&&(f+=e.widgets[g].height);return c?f+(Math.ceil(e.text.length/d)||1)*b:f+b}}function Ac(a){var b=a.doc,c=Id(a);b.iter(function(a){var b=c(a);b!=a.height&&ca(a,b)})}function Bd(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g,
9
- " cm-s-");hb(a)}function ib(a){Ad(a);Q(a);setTimeout(function(){Bc(a)},20)}function Ad(a){var b=a.display.gutters,c=a.options.gutters;za(b);for(var d=0;d<c.length;++d){var e=c[d],f=b.appendChild(t("div",null,"CodeMirror-gutter "+e));"CodeMirror-linenumbers"==e&&(a.display.lineGutter=f,f.style.width=(a.display.lineNumWidth||1)+"px")}b.style.display=d?"":"none";Cc(a)}function Cc(a){a.display.sizer.style.marginLeft=a.display.gutters.offsetWidth+"px"}function Kb(a){if(0==a.height)return 0;for(var b=a.text.length,
10
- c,d=a;c=Aa(d,!0);)c=c.find(0,!0),d=c.from.line,b+=c.from.ch-c.to.ch;for(d=a;c=Aa(d,!1);)c=c.find(0,!0),b-=d.text.length-c.from.ch,d=c.to.line,b+=d.text.length-c.to.ch;return b}function Dc(a){var b=a.display;a=a.doc;b.maxLine=u(a,a.first);b.maxLineLength=Kb(b.maxLine);b.maxLineChanged=!0;a.iter(function(a){var d=Kb(a);d>b.maxLineLength&&(b.maxLineLength=d,b.maxLine=a)})}function wc(a){var b=D(a.gutters,"CodeMirror-linenumbers");-1==b&&a.lineNumbers?a.gutters=a.gutters.concat(["CodeMirror-linenumbers"]):
11
- -1<b&&!a.lineNumbers&&(a.gutters=a.gutters.slice(0),a.gutters.splice(b,1))}function jb(a){var b=a.display,c=b.gutters.offsetWidth,d=Math.round(a.doc.height+Ec(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?c:0,docHeight:d,scrollHeight:d+da(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:c}}function Fc(a,b,c){this.cm=
12
- c;var d=this.vert=t("div",[t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),e=this.horiz=t("div",[t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a(d);a(e);v(d,"scroll",function(){d.clientHeight&&b(d.scrollTop,"vertical")});v(e,"scroll",function(){e.clientWidth&&b(e.scrollLeft,"horizontal")});this.checkedOverlay=!1;B&&8>C&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function Gc(){}function Cd(a){a.display.scrollbars&&(a.display.scrollbars.clear(),
13
- a.display.scrollbars.addClass&&kb(a.display.wrapper,a.display.scrollbars.addClass));a.display.scrollbars=new q.scrollbarModel[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller);v(b,"mousedown",function(){a.state.focused&&setTimeout(function(){a.display.input.focus()},0)});b.setAttribute("cm-not-content","true")},function(b,c){"horizontal"==c?Ma(a,b):lb(a,b)},a);a.display.scrollbars.addClass&&mb(a.display.wrapper,a.display.scrollbars.addClass)}function Na(a,
14
- b){b||(b=jb(a));var c=a.display.barWidth,d=a.display.barHeight;Jd(a,b);for(var e=0;4>e&&c!=a.display.barWidth||d!=a.display.barHeight;e++)c!=a.display.barWidth&&a.options.lineWrapping&&Lb(a),Jd(a,jb(a)),c=a.display.barWidth,d=a.display.barHeight}function Jd(a,b){var c=a.display,d=c.scrollbars.update(b);c.sizer.style.paddingRight=(c.barWidth=d.right)+"px";c.sizer.style.paddingBottom=(c.barHeight=d.bottom)+"px";d.right&&d.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=
15
- d.bottom+"px",c.scrollbarFiller.style.width=d.right+"px"):c.scrollbarFiller.style.display="";d.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=d.bottom+"px",c.gutterFiller.style.width=b.gutterWidth+"px"):c.gutterFiller.style.display=""}function Hc(a,b,c){var d=c&&null!=c.top?Math.max(0,c.top):a.scroller.scrollTop,d=Math.floor(d-a.lineSpace.offsetTop),e=c&&null!=c.bottom?c.bottom:d+a.wrapper.clientHeight,d=Ba(b,d),
16
- e=Ba(b,e);if(c&&c.ensure){var f=c.ensure.from.line;c=c.ensure.to.line;f<d?(d=f,e=Ba(b,ea(u(b,f))+a.wrapper.clientHeight)):Math.min(c,b.lastLine())>=e&&(d=Ba(b,ea(u(b,c))-a.wrapper.clientHeight),e=c)}return{from:d,to:Math.max(e,d+1)}}function Bc(a){var b=a.display,c=b.view;if(b.alignWidgets||b.gutters.firstChild&&a.options.fixedGutter){for(var d=Ic(b)-b.scroller.scrollLeft+a.doc.scrollLeft,e=b.gutters.offsetWidth,f=d+"px",g=0;g<c.length;g++)if(!c[g].hidden){a.options.fixedGutter&&c[g].gutter&&(c[g].gutter.style.left=
17
- f);var h=c[g].alignable;if(h)for(var k=0;k<h.length;k++)h[k].style.left=f}a.options.fixedGutter&&(b.gutters.style.left=d+e+"px")}}function Gd(a){if(!a.options.lineNumbers)return!1;var b=a.doc,b=Jc(a.options,b.first+b.size-1),c=a.display;if(b.length!=c.lineNumChars){var d=c.measure.appendChild(t("div",[t("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),e=d.firstChild.offsetWidth,d=d.offsetWidth-e;c.lineGutter.style.width="";c.lineNumInnerWidth=Math.max(e,c.lineGutter.offsetWidth-d)+1;c.lineNumWidth=
18
- c.lineNumInnerWidth+d;c.lineNumChars=c.lineNumInnerWidth?b.length:-1;c.lineGutter.style.width=c.lineNumWidth+"px";Cc(a);return!0}return!1}function Jc(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Ic(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Mb(a,b,c){var d=a.display;this.viewport=b;this.visible=Hc(d,a.doc,b);this.editorIsHidden=!d.wrapper.offsetWidth;this.wrapperHeight=d.wrapper.clientHeight;this.wrapperWidth=d.wrapper.clientWidth;
19
- this.oldDisplayWidth=pa(a);this.force=c;this.dims=Kc(a);this.events=[]}function Lc(a,b){var c=a.display,d=a.doc;if(b.editorIsHidden)return qa(a),!1;if(!b.force&&b.visible.from>=c.viewFrom&&b.visible.to<=c.viewTo&&(null==c.updateLineNumbers||c.updateLineNumbers>=c.viewTo)&&c.renderedView==c.view&&0==Kd(a))return!1;Gd(a)&&(qa(a),b.dims=Kc(a));var e=d.first+d.size,f=Math.max(b.visible.from-a.options.viewportMargin,d.first),g=Math.min(e,b.visible.to+a.options.viewportMargin);c.viewFrom<f&&20>f-c.viewFrom&&
20
- (f=Math.max(d.first,c.viewFrom));c.viewTo>g&&20>c.viewTo-g&&(g=Math.min(e,c.viewTo));ra&&(f=Mc(a.doc,f),g=Ld(a.doc,g));d=f!=c.viewFrom||g!=c.viewTo||c.lastWrapHeight!=b.wrapperHeight||c.lastWrapWidth!=b.wrapperWidth;e=a.display;0==e.view.length||f>=e.viewTo||g<=e.viewFrom?(e.view=Nb(a,f,g),e.viewFrom=f):(e.viewFrom>f?e.view=Nb(a,f,e.viewFrom).concat(e.view):e.viewFrom<f&&(e.view=e.view.slice(Ca(a,f))),e.viewFrom=f,e.viewTo<g?e.view=e.view.concat(Nb(a,e.viewTo,g)):e.viewTo>g&&(e.view=e.view.slice(0,
21
- Ca(a,g))));e.viewTo=g;c.viewOffset=ea(u(a.doc,c.viewFrom));a.display.mover.style.top=c.viewOffset+"px";g=Kd(a);if(!d&&0==g&&!b.force&&c.renderedView==c.view&&(null==c.updateLineNumbers||c.updateLineNumbers>=c.viewTo))return!1;f=fa();4<g&&(c.lineDiv.style.display="none");uf(a,c.updateLineNumbers,b.dims);4<g&&(c.lineDiv.style.display="");c.renderedView=c.view;f&&fa()!=f&&f.offsetHeight&&f.focus();za(c.cursorDiv);za(c.selectionDiv);c.gutters.style.height=0;d&&(c.lastWrapHeight=b.wrapperHeight,c.lastWrapWidth=
22
- b.wrapperWidth,fb(a,400));c.updateLineNumbers=null;return!0}function Md(a,b){for(var c=b.viewport,d=!0;;d=!1){if(!d||!a.options.lineWrapping||b.oldDisplayWidth==pa(a))if(c&&null!=c.top&&(c={top:Math.min(a.doc.height+Ec(a.display)-Nc(a),c.top)}),b.visible=Hc(a.display,a.doc,c),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break;if(!Lc(a,b))break;Lb(a);d=jb(a);nb(a);Oc(a,d);Na(a,d)}b.signal(a,"update",a);if(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)b.signal(a,
23
- "viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo}function Pc(a,b){var c=new Mb(a,b);if(Lc(a,c)){Lb(a);Md(a,c);var d=jb(a);nb(a);Oc(a,d);Na(a,d);c.finish()}}function Oc(a,b){a.display.sizer.style.minHeight=b.docHeight+"px";var c=b.docHeight+a.display.barHeight;a.display.heightForcer.style.top=c+"px";a.display.gutters.style.height=Math.max(c+da(a),b.clientHeight)+"px"}function Lb(a){a=a.display;for(var b=
24
- a.lineDiv.offsetTop,c=0;c<a.view.length;c++){var d=a.view[c],e;if(!d.hidden){if(B&&8>C){var f=d.node.offsetTop+d.node.offsetHeight;e=f-b;b=f}else e=d.node.getBoundingClientRect(),e=e.bottom-e.top;f=d.line.height-e;2>e&&(e=xa(a));if(.001<f||-.001>f)if(ca(d.line,e),Nd(d.line),d.rest)for(e=0;e<d.rest.length;e++)Nd(d.rest[e])}}}function Nd(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b)a.widgets[b].height=a.widgets[b].node.offsetHeight}function Kc(a){for(var b=a.display,c={},d={},e=b.gutters.clientLeft,
25
- f=b.gutters.firstChild,g=0;f;f=f.nextSibling,++g)c[a.options.gutters[g]]=f.offsetLeft+f.clientLeft+e,d[a.options.gutters[g]]=f.clientWidth;return{fixedPos:Ic(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:c,gutterWidth:d,wrapperWidth:b.wrapper.clientWidth}}function uf(a,b,c){function d(b){var c=b.nextSibling;J&&W&&a.display.currentWheelTarget==b?b.style.display="none":b.parentNode.removeChild(b);return c}for(var e=a.display,f=a.options.lineNumbers,g=e.lineDiv,h=g.firstChild,k=e.view,e=e.viewFrom,
26
- l=0;l<k.length;l++){var m=k[l];if(!m.hidden)if(m.node&&m.node.parentNode==g){for(;h!=m.node;)h=d(h);h=f&&null!=b&&b<=e&&m.lineNumber;m.changes&&(-1<D(m.changes,"gutter")&&(h=!1),Od(a,m,e,c));h&&(za(m.lineNumber),m.lineNumber.appendChild(document.createTextNode(Jc(a.options,e))));h=m.node.nextSibling}else{var p=vf(a,m,e,c);g.insertBefore(p,h)}e+=m.size}for(;h;)h=d(h)}function Od(a,b,c,d){for(var e=0;e<b.changes.length;e++){var f=b.changes[e];if("text"==f){var f=b,g=f.text.className,h=Pd(a,f);f.text==
27
- f.node&&(f.node=h.pre);f.text.parentNode.replaceChild(h.pre,f.text);f.text=h.pre;h.bgClass!=f.bgClass||h.textClass!=f.textClass?(f.bgClass=h.bgClass,f.textClass=h.textClass,Qc(f)):g&&(f.text.className=g)}else if("gutter"==f)Qd(a,b,c,d);else if("class"==f)Qc(b);else if("widget"==f){f=a;g=b;h=d;g.alignable&&(g.alignable=null);for(var k=g.node.firstChild,l=void 0;k;k=l)l=k.nextSibling,"CodeMirror-linewidget"==k.className&&g.node.removeChild(k);Rd(f,g,h)}}b.changes=null}function Ob(a){a.node==a.text&&
28
- (a.node=t("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),B&&8>C&&(a.node.style.zIndex=2));return a.node}function Pd(a,b){var c=a.display.externalMeasured;return c&&c.line==b.line?(a.display.externalMeasured=null,b.measure=c.measure,c.built):Sd(a,b)}function Qc(a){var b=a.bgClass?a.bgClass+" "+(a.line.bgClass||""):a.line.bgClass;b&&(b+=" CodeMirror-linebackground");if(a.background)b?a.background.className=b:(a.background.parentNode.removeChild(a.background),
29
- a.background=null);else if(b){var c=Ob(a);a.background=c.insertBefore(t("div",null,b),c.firstChild)}a.line.wrapClass?Ob(a).className=a.line.wrapClass:a.node!=a.text&&(a.node.className="");a.text.className=(a.textClass?a.textClass+" "+(a.line.textClass||""):a.line.textClass)||""}function Qd(a,b,c,d){b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null);var e=b.line.gutterMarkers;if(a.options.lineNumbers||e){var f=Ob(b),g=b.gutter=t("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?
30
- d.fixedPos:-d.gutterTotalWidth)+"px; width: "+d.gutterTotalWidth+"px");a.display.input.setUneditable(g);f.insertBefore(g,b.text);b.line.gutterClass&&(g.className+=" "+b.line.gutterClass);!a.options.lineNumbers||e&&e["CodeMirror-linenumbers"]||(b.lineNumber=g.appendChild(t("div",Jc(a.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px")));if(e)for(b=0;b<a.options.gutters.length;++b)c=a.options.gutters[b],
31
- (f=e.hasOwnProperty(c)&&e[c])&&g.appendChild(t("div",[f],"CodeMirror-gutter-elt","left: "+d.gutterLeft[c]+"px; width: "+d.gutterWidth[c]+"px"))}}function vf(a,b,c,d){var e=Pd(a,b);b.text=b.node=e.pre;e.bgClass&&(b.bgClass=e.bgClass);e.textClass&&(b.textClass=e.textClass);Qc(b);Qd(a,b,c,d);Rd(a,b,d);return b.node}function Rd(a,b,c){Td(a,b.line,b,c,!0);if(b.rest)for(var d=0;d<b.rest.length;d++)Td(a,b.rest[d],b,c,!1)}function Td(a,b,c,d,e){if(b.widgets){var f=Ob(c),g=0;for(b=b.widgets;g<b.length;++g){var h=
32
- b[g],k=t("div",[h.node],"CodeMirror-linewidget");h.handleMouseEvents||k.setAttribute("cm-ignore-events","true");var l=h,m=k,p=d;if(l.noHScroll){(c.alignable||(c.alignable=[])).push(m);var n=p.wrapperWidth;m.style.left=p.fixedPos+"px";l.coverGutter||(n-=p.gutterTotalWidth,m.style.paddingLeft=p.gutterTotalWidth+"px");m.style.width=n+"px"}l.coverGutter&&(m.style.zIndex=5,m.style.position="relative",l.noHScroll||(m.style.marginLeft=-p.gutterTotalWidth+"px"));a.display.input.setUneditable(k);e&&h.above?
33
- f.insertBefore(k,c.gutter||c.text):f.appendChild(k);L(h,"redraw")}}}function Rc(a){return r(a.line,a.ch)}function Pb(a,b){return 0>y(a,b)?b:a}function Qb(a,b){return 0>y(a,b)?a:b}function Ud(a){a.state.focused||(a.display.input.focus(),xc(a))}function Rb(a){return a.options.readOnly||a.doc.cantEdit}function Sc(a,b,c,d,e){var f=a.doc;a.display.shift=!1;d||(d=f.sel);var g=sa(b),h=null;a.state.pasteIncoming&&1<d.ranges.length&&(X&&X.join("\n")==b?h=0==d.ranges.length%X.length&&ob(X,sa):g.length==d.ranges.length&&
34
- (h=ob(g,function(a){return[a]})));for(var k=d.ranges.length-1;0<=k;k--){var l=d.ranges[k],m=l.from(),p=l.to();l.empty()&&(c&&0<c?m=r(m.line,m.ch-c):a.state.overwrite&&!a.state.pasteIncoming&&(p=r(p.line,Math.min(u(f,p.line).text.length,p.ch+A(g).length))));var n=a.curOp.updateInput,m={from:m,to:p,text:h?h[k%h.length]:g,origin:e||(a.state.pasteIncoming?"paste":a.state.cutIncoming?"cut":"+input")};Oa(a.doc,m);L(a,"inputRead",a,m);if(b&&!a.state.pasteIncoming&&a.options.electricChars&&a.options.smartIndent&&
35
- 100>l.head.ch&&(!k||d.ranges[k-1].head.line!=l.head.line)){l=a.getModeAt(l.head);m=ta(m);p=!1;if(l.electricChars)for(var E=0;E<l.electricChars.length;E++){if(-1<b.indexOf(l.electricChars.charAt(E))){p=pb(a,m.line,"smart");break}}else l.electricInput&&l.electricInput.test(u(f,m.line).text.slice(0,m.ch))&&(p=pb(a,m.line,"smart"));p&&L(a,"electricInput",a,m.line)}}Pa(a);a.curOp.updateInput=n;a.curOp.typing=!0;a.state.pasteIncoming=a.state.cutIncoming=!1}function Vd(a){for(var b=[],c=[],d=0;d<a.doc.sel.ranges.length;d++){var e=
36
- a.doc.sel.ranges[d].head.line,e={anchor:r(e,0),head:r(e+1,0)};c.push(e);b.push(a.getRange(e.anchor,e.head))}return{text:b,ranges:c}}function Wd(a){a.setAttribute("autocorrect","off");a.setAttribute("autocapitalize","off");a.setAttribute("spellcheck","false")}function Tc(a){this.cm=a;this.prevInput="";this.pollingFast=!1;this.polling=new bb;this.hasSelection=this.inaccurateSelection=!1;this.composing=null}function Xd(){var a=t("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none"),
37
- b=t("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");J?a.style.width="1000px":a.setAttribute("wrap","off");Qa&&(a.style.border="1px solid black");Wd(a);return b}function Uc(a){this.cm=a;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new bb;this.gracePeriod=!1}function Yd(a,b){var c=Vc(a,b.line);if(!c||c.hidden)return null;var d=u(a.doc,b.line),c=Zd(c,d,b.line);(d=Y(d))&&Sb(d,b.ch);d=$d(c.map,b.ch,"left");d.offset=
38
- "right"==d.collapse?d.end:d.start;return d}function Ra(a,b){b&&(a.bad=!0);return a}function Tb(a,b,c){var d;if(b==a.display.lineDiv){d=a.display.lineDiv.childNodes[c];if(!d)return Ra(a.clipPos(r(a.display.viewTo-1)),!0);b=null;c=0}else for(d=b;;d=d.parentNode){if(!d||d==a.display.lineDiv)return null;if(d.parentNode&&d.parentNode==a.display.lineDiv)break}for(var e=0;e<a.display.view.length;e++){var f=a.display.view[e];if(f.node==d)return wf(f,b,c)}}function wf(a,b,c){function d(b,c,d){for(var e=-1;e<
39
- (l?l.length:0);e++)for(var f=0>e?k.map:l[e],g=0;g<f.length;g+=3){var h=f[g+2];if(h==b||h==c){c=F(0>e?a.line:a.rest[e]);e=f[g]+d;if(0>d||h!=b)e=f[g+(d?1:0)];return r(c,e)}}}var e=a.text.firstChild,f=!1;if(!b||!Wc(e,b))return Ra(r(F(a.line),0),!0);if(b==e&&(f=!0,b=e.childNodes[c],c=0,!b))return c=a.rest?A(a.rest):a.line,Ra(r(F(c),c.text.length),f);var g=3==b.nodeType?b:null,h=b;g||1!=b.childNodes.length||3!=b.firstChild.nodeType||(g=b.firstChild,c&&(c=g.nodeValue.length));for(;h.parentNode!=e;)h=h.parentNode;
40
- var k=a.measure,l=k.maps;if(b=d(g,h,c))return Ra(b,f);e=h.nextSibling;for(g=g?g.nodeValue.length-c:0;e;e=e.nextSibling){if(b=d(e,e.firstChild,0))return Ra(r(b.line,b.ch-g),f);g+=e.textContent.length}h=h.previousSibling;for(g=c;h;h=h.previousSibling){if(b=d(h,h.firstChild,-1))return Ra(r(b.line,b.ch+g),f);g+=e.textContent.length}}function xf(a,b,c,d,e){function f(a){return function(b){return b.id==a}}function g(b){if(1==b.nodeType){var c=b.getAttribute("cm-text");if(null!=c)""==c&&(c=b.textContent.replace(/\u200b/g,
41
- "")),h+=c;else{var c=b.getAttribute("cm-marker"),p;if(c)b=a.findMarks(r(d,0),r(e+1,0),f(+c)),b.length&&(p=b[0].find())&&(h+=Da(a.doc,p.from,p.to).join("\n"));else if("false"!=b.getAttribute("contenteditable")){for(p=0;p<b.childNodes.length;p++)g(b.childNodes[p]);/^(pre|div|p)$/i.test(b.nodeName)&&(k=!0)}}}else 3==b.nodeType&&(b=b.nodeValue)&&(k&&(h+="\n",k=!1),h+=b)}for(var h="",k=!1;;){g(b);if(b==c)break;b=b.nextSibling}return h}function la(a,b){this.ranges=a;this.primIndex=b}function z(a,b){this.anchor=
42
- a;this.head=b}function Z(a,b){var c=a[b];a.sort(function(a,b){return y(a.from(),b.from())});b=D(a,c);for(c=1;c<a.length;c++){var d=a[c],e=a[c-1];if(0<=y(e.to(),d.from())){var f=Qb(e.from(),d.from()),g=Pb(e.to(),d.to()),d=e.empty()?d.from()==d.head:e.from()==e.head;c<=b&&--b;a.splice(--c,2,new z(d?g:f,d?f:g))}}return new la(a,b)}function ga(a,b){return new la([new z(a,b||a)],0)}function w(a,b){if(b.line<a.first)return r(a.first,0);var c=a.first+a.size-1;if(b.line>c)return r(c,u(a,c).text.length);var c=
43
- u(a,b.line).text.length,d=b.ch,c=null==d||d>c?r(b.line,c):0>d?r(b.line,0):b;return c}function qb(a,b){return b>=a.first&&b<a.first+a.size}function rb(a,b,c,d){return a.cm&&a.cm.display.shift||a.extend?(a=b.anchor,d&&(b=0>y(c,a),b!=0>y(d,a)?(a=c,c=d):b!=0>y(c,d)&&(c=d)),new z(a,c)):new z(d||c,c)}function Ub(a,b,c,d){H(a,new la([rb(a,a.sel.primary(),b,c)],0),d)}function ae(a,b,c){for(var d=[],e=0;e<a.sel.ranges.length;e++)d[e]=rb(a,a.sel.ranges[e],b[e],null);b=Z(d,a.sel.primIndex);H(a,b,c)}function Xc(a,
44
- b,c,d){var e=a.sel.ranges.slice(0);e[b]=c;H(a,Z(e,a.sel.primIndex),d)}function yf(a,b){var c={ranges:b.ranges,update:function(b){this.ranges=[];for(var c=0;c<b.length;c++)this.ranges[c]=new z(w(a,b[c].anchor),w(a,b[c].head))}};K(a,"beforeSelectionChange",a,c);a.cm&&K(a.cm,"beforeSelectionChange",a.cm,c);return c.ranges!=b.ranges?Z(c.ranges,c.ranges.length-1):b}function be(a,b,c){var d=a.history.done,e=A(d);e&&e.ranges?(d[d.length-1]=b,Vb(a,b,c)):H(a,b,c)}function H(a,b,c){Vb(a,b,c);b=a.sel;var d=
45
- a.cm?a.cm.curOp.id:NaN,e=a.history,f=c&&c.origin,g;if(!(g=d==e.lastSelOp)&&(g=f&&e.lastSelOrigin==f)&&!(g=e.lastModTime==e.lastSelTime&&e.lastOrigin==f)){g=A(e.done);var h=f.charAt(0);g="*"==h||"+"==h&&g.ranges.length==b.ranges.length&&g.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}g?e.done[e.done.length-1]=b:Wb(b,e.done);e.lastSelTime=+new Date;e.lastSelOrigin=f;e.lastSelOp=d;c&&!1!==c.clearRedo&&ce(e.undone)}function Vb(a,
46
- b,c){if(S(a,"beforeSelectionChange")||a.cm&&S(a.cm,"beforeSelectionChange"))b=yf(a,b);var d=c&&c.bias||(0>y(b.primary().head,a.sel.primary().head)?-1:1);de(a,ee(a,b,d,!0));c&&!1===c.scroll||!a.cm||Pa(a.cm)}function de(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=a.cm.curOp.selectionChanged=!0,fe(a.cm)),L(a,"cursorActivity",a))}function ge(a){de(a,ee(a,a.sel,null,!1),ha)}function ee(a,b,c,d){for(var e,f=0;f<b.ranges.length;f++){var g=b.ranges[f],h=Xb(a,g.anchor,c,d),k=Xb(a,g.head,c,
47
- d);if(e||h!=g.anchor||k!=g.head)e||(e=b.ranges.slice(0,f)),e[f]=new z(h,k)}return e?Z(e,b.primIndex):b}function Xb(a,b,c,d){var e=!1,f=b,g=c||1;a.cantEdit=!1;a:for(;;){var h=u(a,f.line);if(h.markedSpans)for(var k=0;k<h.markedSpans.length;++k){var l=h.markedSpans[k],m=l.marker;if((null==l.from||(m.inclusiveLeft?l.from<=f.ch:l.from<f.ch))&&(null==l.to||(m.inclusiveRight?l.to>=f.ch:l.to>f.ch))){if(d&&(K(m,"beforeCursorEnter"),m.explicitlyCleared))if(h.markedSpans){--k;continue}else break;if(m.atomic){k=
48
- m.find(0>g?-1:1);if(0==y(k,f)&&(k.ch+=g,0>k.ch?k=k.line>a.first?w(a,r(k.line-1)):null:k.ch>h.text.length&&(k=k.line<a.first+a.size-1?r(k.line+1,0):null),!k)){if(e){if(!d)return Xb(a,b,c,!0);a.cantEdit=!0;return r(a.first,0)}e=!0;k=b;g=-g}f=k;continue a}}}return f}}function nb(a){a.display.input.showSelection(a.display.input.prepareSelection())}function he(a,b){for(var c=a.doc,d={},e=d.cursors=document.createDocumentFragment(),f=d.selection=document.createDocumentFragment(),g=0;g<c.sel.ranges.length;g++)if(!1!==
49
- b||g!=c.sel.primIndex){var h=c.sel.ranges[g],k=h.empty();if(k||a.options.showCursorWhenSelecting){var l=a,m=e,p=ma(l,h.head,"div",null,null,!l.options.singleCursorHeightPerLine),n=m.appendChild(t("div"," ","CodeMirror-cursor"));n.style.left=p.left+"px";n.style.top=p.top+"px";n.style.height=Math.max(0,p.bottom-p.top)*l.options.cursorHeight+"px";p.other&&(l=m.appendChild(t("div"," ","CodeMirror-cursor CodeMirror-secondarycursor")),l.style.display="",l.style.left=p.other.left+"px",l.style.top=p.other.top+
50
- "px",l.style.height=.85*(p.other.bottom-p.other.top)+"px")}k||zf(a,h,f)}return d}function zf(a,b,c){function d(a,b,c,d){0>b&&(b=0);b=Math.round(b);d=Math.round(d);h.appendChild(t("div",null,"CodeMirror-selected","position: absolute; left: "+a+"px; top: "+b+"px; width: "+(null==c?m-a:c)+"px; height: "+(d-b)+"px"))}function e(b,c,e){var f=u(g,b),h=f.text.length,k,p;Af(Y(f),c||0,null==e?h:e,function(g,q,t){var u=Yb(a,r(b,g),"div",f,"left"),v,w;g==q?(v=u,t=w=u.left):(v=Yb(a,r(b,q-1),"div",f,"right"),
51
- "rtl"==t&&(t=u,u=v,v=t),t=u.left,w=v.right);null==c&&0==g&&(t=l);3<v.top-u.top&&(d(t,u.top,null,u.bottom),t=l,u.bottom<v.top&&d(t,u.bottom,null,v.top));null==e&&q==h&&(w=m);if(!k||u.top<k.top||u.top==k.top&&u.left<k.left)k=u;if(!p||v.bottom>p.bottom||v.bottom==p.bottom&&v.right>p.right)p=v;t<l+1&&(t=l);d(t,v.top,w-t,v.bottom)});return{start:k,end:p}}var f=a.display,g=a.doc,h=document.createDocumentFragment(),k=ie(a.display),l=k.left,m=Math.max(f.sizerWidth,pa(a)-f.sizer.offsetLeft)-k.right,f=b.from();
52
- b=b.to();if(f.line==b.line)e(f.line,f.ch,b.ch);else{var p=u(g,f.line),k=u(g,b.line),k=ia(p)==ia(k),f=e(f.line,f.ch,k?p.text.length+1:null).end;b=e(b.line,k?0:null,b.ch).start;k&&(f.top<b.top-2?(d(f.right,f.top,null,f.bottom),d(l,b.top,b.left,b.bottom)):d(f.right,f.top,b.left-f.right,f.bottom));f.bottom<b.top&&d(l,f.bottom,null,b.top)}c.appendChild(h)}function Yc(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var c=!0;b.cursorDiv.style.visibility="";0<a.options.cursorBlinkRate?b.blinker=
53
- setInterval(function(){b.cursorDiv.style.visibility=(c=!c)?"":"hidden"},a.options.cursorBlinkRate):0>a.options.cursorBlinkRate&&(b.cursorDiv.style.visibility="hidden")}}function fb(a,b){a.doc.mode.startState&&a.doc.frontier<a.display.viewTo&&a.state.highlight.set(b,cb(Bf,a))}function Bf(a){var b=a.doc;b.frontier<b.first&&(b.frontier=b.first);if(!(b.frontier>=a.display.viewTo)){var c=+new Date+a.options.workTime,d=Sa(b.mode,sb(a,b.frontier)),e=[];b.iter(b.frontier,Math.min(b.first+b.size,a.display.viewTo+
54
- 500),function(f){if(b.frontier>=a.display.viewFrom){var g=f.styles,h=je(a,f,d,!0);f.styles=h.styles;var k=f.styleClasses;(h=h.classes)?f.styleClasses=h:k&&(f.styleClasses=null);k=!g||g.length!=f.styles.length||k!=h&&(!k||!h||k.bgClass!=h.bgClass||k.textClass!=h.textClass);for(h=0;!k&&h<g.length;++h)k=g[h]!=f.styles[h];k&&e.push(b.frontier);f.stateAfter=Sa(b.mode,d)}else Zc(a,f.text,d),f.stateAfter=0==b.frontier%5?Sa(b.mode,d):null;++b.frontier;if(+new Date>c)return fb(a,a.options.workDelay),!0});
55
- e.length&&T(a,function(){for(var b=0;b<e.length;b++)na(a,e[b],"text")})}}function Cf(a,b,c){for(var d,e,f=a.doc,g=c?-1:b-(a.doc.mode.innerMode?1E3:100);b>g;--b){if(b<=f.first)return f.first;var h=u(f,b-1);if(h.stateAfter&&(!c||b<=f.frontier))return b;h=aa(h.text,null,a.options.tabSize);if(null==e||d>h)e=b-1,d=h}return e}function sb(a,b,c){var d=a.doc,e=a.display;if(!d.mode.startState)return!0;var f=Cf(a,b,c),g=f>d.first&&u(d,f-1).stateAfter,g=g?Sa(d.mode,g):Df(d.mode);d.iter(f,b,function(c){Zc(a,
56
- c.text,g);c.stateAfter=f==b-1||0==f%5||f>=e.viewFrom&&f<e.viewTo?Sa(d.mode,g):null;++f});c&&(d.frontier=f);return g}function Ec(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function ie(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=U(a.measure,t("pre","x")),b=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,b={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};isNaN(b.left)||isNaN(b.right)||(a.cachedPaddingH=b);return b}function da(a){return Hd-a.display.nativeBarWidth}
57
- function pa(a){return a.display.scroller.clientWidth-da(a)-a.display.barWidth}function Nc(a){return a.display.scroller.clientHeight-da(a)-a.display.barHeight}function Zd(a,b,c){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var d=0;d<a.rest.length;d++)if(a.rest[d]==b)return{map:a.measure.maps[d],cache:a.measure.caches[d]};for(d=0;d<a.rest.length;d++)if(F(a.rest[d])>c)return{map:a.measure.maps[d],cache:a.measure.caches[d],before:!0}}function Vc(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Ca(a,
58
- b)];var c=a.display.externalMeasured;if(c&&b>=c.lineN&&b<c.lineN+c.size)return c}function Zb(a,b){var c=F(b),d=Vc(a,c);d&&!d.text?d=null:d&&d.changes&&Od(a,d,c,Kc(a));if(!d){var e;e=ia(b);d=F(e);e=a.display.externalMeasured=new ke(a.doc,e,d);e.lineN=d;d=e.built=Sd(a,e);e.text=d.pre;U(a.display.lineMeasure,d.pre);d=e}c=Zd(d,b,c);return{line:b,view:d,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function $c(a,b,c,d,e){b.before&&(c=-1);var f=c+(d||"");if(b.cache.hasOwnProperty(f))a=
59
- b.cache[f];else{b.rect||(b.rect=b.view.text.getBoundingClientRect());if(!b.hasHeights){var g=b.view,h=b.rect,k=a.options.lineWrapping,l=k&&pa(a);if(!g.measure.heights||k&&g.measure.width!=l){var m=g.measure.heights=[];if(k)for(g.measure.width=l,g=g.text.firstChild.getClientRects(),k=0;k<g.length-1;k++){var l=g[k],p=g[k+1];2<Math.abs(l.bottom-p.bottom)&&m.push((l.bottom+p.top)/2-h.top)}m.push(h.bottom-h.top)}b.hasHeights=!0}g=d;k=$d(b.map,c,g);d=k.node;h=k.start;l=k.end;c=k.collapse;var n;if(3==d.nodeType){for(m=
60
- 0;4>m;m++){for(;h&&tb(b.line.text.charAt(k.coverStart+h));)--h;for(;k.coverStart+l<k.coverEnd&&tb(b.line.text.charAt(k.coverStart+l));)++l;if(B&&9>C&&0==h&&l==k.coverEnd-k.coverStart)n=d.parentNode.getBoundingClientRect();else if(B&&a.options.lineWrapping){var E=Ea(d,h,l).getClientRects();n=E.length?E["right"==g?E.length-1:0]:ad}else n=Ea(d,h,l).getBoundingClientRect()||ad;if(n.left||n.right||0==h)break;l=h;--h;c="right"}B&&11>C&&((E=!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI)||
61
- (null!=bd?E=bd:(m=U(a.display.measure,t("span","x")),E=m.getBoundingClientRect(),m=Ea(m,0,1).getBoundingClientRect(),E=bd=1<Math.abs(E.left-m.left)),E=!E),E||(E=screen.logicalXDPI/screen.deviceXDPI,m=screen.logicalYDPI/screen.deviceYDPI,n={left:n.left*E,right:n.right*E,top:n.top*m,bottom:n.bottom*m}))}else 0<h&&(c=g="right"),n=a.options.lineWrapping&&1<(E=d.getClientRects()).length?E["right"==g?E.length-1:0]:d.getBoundingClientRect();!(B&&9>C)||h||n&&(n.left||n.right)||(n=(n=d.parentNode.getClientRects()[0])?
62
- {left:n.left,right:n.left+gb(a.display),top:n.top,bottom:n.bottom}:ad);E=n.top-b.rect.top;d=n.bottom-b.rect.top;h=(E+d)/2;g=b.view.measure.heights;for(m=0;m<g.length-1&&!(h<g[m]);m++);c={left:("right"==c?n.right:n.left)-b.rect.left,right:("left"==c?n.left:n.right)-b.rect.left,top:m?g[m-1]:0,bottom:g[m]};n.left||n.right||(c.bogus=!0);a.options.singleCursorHeightPerLine||(c.rtop=E,c.rbottom=d);a=c;a.bogus||(b.cache[f]=a)}return{left:a.left,right:a.right,top:e?a.rtop:a.top,bottom:e?a.rbottom:a.bottom}}
63
- function $d(a,b,c){for(var d,e,f,g,h=0;h<a.length;h+=3){var k=a[h],l=a[h+1];if(b<k)e=0,f=1,g="left";else if(b<l)e=b-k,f=e+1;else if(h==a.length-3||b==l&&a[h+3]>b)f=l-k,e=f-1,b>=l&&(g="right");if(null!=e){d=a[h+2];k==l&&c==(d.insertLeft?"left":"right")&&(g=c);if("left"==c&&0==e)for(;h&&a[h-2]==a[h-3]&&a[h-1].insertLeft;)d=a[(h-=3)+2],g="left";if("right"==c&&e==l-k)for(;h<a.length-3&&a[h+3]==a[h+4]&&!a[h+5].insertLeft;)d=a[(h+=3)+2],g="right";break}}return{node:d,start:e,end:f,collapse:g,coverStart:k,
64
- coverEnd:l}}function le(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function me(a){a.display.externalMeasure=null;za(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)le(a.display.view[b])}function hb(a){me(a);a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null;a.options.lineWrapping||(a.display.maxLineChanged=!0);a.display.lineNumChars=null}function cd(a,b,c,d){if(b.widgets)for(var e=
65
- 0;e<b.widgets.length;++e)if(b.widgets[e].above){var f=ub(b.widgets[e]);c.top+=f;c.bottom+=f}if("line"==d)return c;d||(d="local");b=ea(b);b="local"==d?b+a.display.lineSpace.offsetTop:b-a.display.viewOffset;if("page"==d||"window"==d)a=a.display.lineSpace.getBoundingClientRect(),b+=a.top+("window"==d?0:window.pageYOffset||(document.documentElement||document.body).scrollTop),d=a.left+("window"==d?0:window.pageXOffset||(document.documentElement||document.body).scrollLeft),c.left+=d,c.right+=d;c.top+=b;
66
- c.bottom+=b;return c}function ne(a,b,c){if("div"==c)return b;var d=b.left;b=b.top;"page"==c?(d-=window.pageXOffset||(document.documentElement||document.body).scrollLeft,b-=window.pageYOffset||(document.documentElement||document.body).scrollTop):"local"!=c&&c||(c=a.display.sizer.getBoundingClientRect(),d+=c.left,b+=c.top);a=a.display.lineSpace.getBoundingClientRect();return{left:d-a.left,top:b-a.top}}function Yb(a,b,c,d,e){d||(d=u(a.doc,b.line));var f=d;b=b.ch;d=$c(a,Zb(a,d),b,e);return cd(a,f,d,c)}
67
- function ma(a,b,c,d,e,f){function g(b,g){var h=$c(a,e,b,g?"right":"left",f);g?h.left=h.right:h.right=h.left;return cd(a,d,h,c)}function h(a,b){var c=k[b],d=c.level%2;a==dd(c)&&b&&c.level<k[b-1].level?(c=k[--b],a=ed(c)-(c.level%2?0:1),d=!0):a==ed(c)&&b<k.length-1&&c.level<k[b+1].level&&(c=k[++b],a=dd(c)-c.level%2,d=!1);return d&&a==c.to&&a>c.from?g(a-1):g(a,d)}d=d||u(a.doc,b.line);e||(e=Zb(a,d));var k=Y(d);b=b.ch;if(!k)return g(b);var l=Sb(k,b),l=h(b,l);null!=vb&&(l.other=h(b,vb));return l}function oe(a,
68
- b){var c=0;b=w(a.doc,b);a.options.lineWrapping||(c=gb(a.display)*b.ch);var d=u(a.doc,b.line),e=ea(d)+a.display.lineSpace.offsetTop;return{left:c,right:c,top:e,bottom:e+d.height}}function $b(a,b,c,d){a=r(a,b);a.xRel=d;c&&(a.outside=!0);return a}function fd(a,b,c){var d=a.doc;c+=a.display.viewOffset;if(0>c)return $b(d.first,0,!0,-1);var e=Ba(d,c),f=d.first+d.size-1;if(e>f)return $b(d.first+d.size-1,u(d,f).text.length,!0,1);0>b&&(b=0);for(d=u(d,e);;)if(e=Ef(a,d,e,b,c),f=(d=Aa(d,!1))&&d.find(0,!0),d&&
69
- (e.ch>f.from.ch||e.ch==f.from.ch&&0<e.xRel))e=F(d=f.to.line);else return e}function Ef(a,b,c,d,e){function f(d){d=ma(a,r(c,d),"line",b,l);h=!0;if(g>d.bottom)return d.left-k;if(g<d.top)return d.left+k;h=!1;return d.left}var g=e-ea(b),h=!1,k=2*a.display.wrapper.clientWidth,l=Zb(a,b),m=Y(b),p=b.text.length;e=ac(b);var n=bc(b),E=f(e),q=h,t=f(n),u=h;if(d>t)return $b(c,n,u,1);for(;;){if(m?n==e||n==gd(b,e,1):1>=n-e){m=d<E||d-E<=t-d?e:n;for(d-=m==e?E:t;tb(b.text.charAt(m));)++m;return $b(c,m,m==e?q:u,-1>
70
- d?-1:1<d?1:0)}var v=Math.ceil(p/2),w=e+v;if(m)for(var w=e,x=0;x<v;++x)w=gd(b,w,1);x=f(w);if(x>d){n=w;t=x;if(u=h)t+=1E3;p=v}else e=w,E=x,q=h,p-=v}}function xa(a){if(null!=a.cachedTextHeight)return a.cachedTextHeight;if(null==Fa){Fa=t("pre");for(var b=0;49>b;++b)Fa.appendChild(document.createTextNode("x")),Fa.appendChild(t("br"));Fa.appendChild(document.createTextNode("x"))}U(a.measure,Fa);b=Fa.offsetHeight/50;3<b&&(a.cachedTextHeight=b);za(a.measure);return b||1}function gb(a){if(null!=a.cachedCharWidth)return a.cachedCharWidth;
71
- var b=t("span","xxxxxxxxxx"),c=t("pre",[b]);U(a.measure,c);b=b.getBoundingClientRect();b=(b.right-b.left)/10;2<b&&(a.cachedCharWidth=b);return b||10}function Ja(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ff};Ta?Ta.ops.push(a.curOp):a.curOp.ownsGroup=Ta={ops:[a.curOp],delayedCallbacks:[]}}
72
- function La(a){if(a=a.curOp.ownsGroup)try{var b=a.delayedCallbacks,c=0;do{for(;c<b.length;c++)b[c]();for(var d=0;d<a.ops.length;d++){var e=a.ops[d];if(e.cursorActivityHandlers)for(;e.cursorActivityCalled<e.cursorActivityHandlers.length;)e.cursorActivityHandlers[e.cursorActivityCalled++](e.cm)}}while(c<b.length)}finally{Ta=null;for(b=0;b<a.ops.length;b++)a.ops[b].cm.curOp=null;a=a.ops;for(b=0;b<a.length;b++){var e=a[b],c=e.cm,f=d=c.display;!f.scrollbarsClipped&&f.scroller.offsetWidth&&(f.nativeBarWidth=
73
- f.scroller.offsetWidth-f.scroller.clientWidth,f.heightForcer.style.height=da(c)+"px",f.sizer.style.marginBottom=-f.nativeBarWidth+"px",f.sizer.style.borderRightWidth=da(c)+"px",f.scrollbarsClipped=!0);e.updateMaxLine&&Dc(c);e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<d.viewFrom||e.scrollToPos.to.line>=d.viewTo)||d.maxLineChanged&&c.options.lineWrapping;e.update=e.mustUpdate&&new Mb(c,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}for(b=
74
- 0;b<a.length;b++)e=a[b],e.updatedDisplay=e.mustUpdate&&Lc(e.cm,e.update);for(b=0;b<a.length;b++)if(e=a[b],c=e.cm,d=c.display,e.updatedDisplay&&Lb(c),e.barMeasure=jb(c),d.maxLineChanged&&!c.options.lineWrapping&&(f=void 0,f=d.maxLine.text.length,f=$c(c,Zb(c,d.maxLine),f,void 0),e.adjustWidthTo=f.left+3,c.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(d.scroller.clientWidth,d.sizer.offsetLeft+e.adjustWidthTo+da(c)+c.display.barWidth),e.maxScrollLeft=Math.max(0,d.sizer.offsetLeft+
75
- e.adjustWidthTo-pa(c))),e.updatedDisplay||e.selectionChanged)e.preparedSelection=d.input.prepareSelection();for(b=0;b<a.length;b++)e=a[b],c=e.cm,null!=e.adjustWidthTo&&(c.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<c.doc.scrollLeft&&Ma(c,Math.min(c.display.scroller.scrollLeft,e.maxScrollLeft),!0),c.display.maxLineChanged=!1),e.preparedSelection&&c.display.input.showSelection(e.preparedSelection),e.updatedDisplay&&Oc(c,e.barMeasure),(e.updatedDisplay||e.startHeight!=c.doc.height)&&
76
- Na(c,e.barMeasure),e.selectionChanged&&Yc(c),c.state.focused&&e.updateInput&&c.display.input.reset(e.typing),e.focus&&e.focus==fa()&&Ud(e.cm);for(b=0;b<a.length;b++){e=a[b];c=e.cm;d=c.display;f=c.doc;e.updatedDisplay&&Md(c,e.update);null==d.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(d.wheelStartX=d.wheelStartY=null);null==e.scrollTop||d.scroller.scrollTop==e.scrollTop&&!e.forceScroll||(f.scrollTop=Math.max(0,Math.min(d.scroller.scrollHeight-d.scroller.clientHeight,e.scrollTop)),
77
- d.scrollbars.setScrollTop(f.scrollTop),d.scroller.scrollTop=f.scrollTop);null==e.scrollLeft||d.scroller.scrollLeft==e.scrollLeft&&!e.forceScroll||(f.scrollLeft=Math.max(0,Math.min(d.scroller.scrollWidth-pa(c),e.scrollLeft)),d.scrollbars.setScrollLeft(f.scrollLeft),d.scroller.scrollLeft=f.scrollLeft,Bc(c));if(e.scrollToPos){var g=void 0,h=w(f,e.scrollToPos.from),g=w(f,e.scrollToPos.to),k=e.scrollToPos.margin;null==k&&(k=0);for(var l=0;5>l;l++){var m=!1,p=ma(c,h),n=g&&g!=h?ma(c,g):p,n=cc(c,Math.min(p.left,
78
- n.left),Math.min(p.top,n.top)-k,Math.max(p.left,n.left),Math.max(p.bottom,n.bottom)+k),q=c.doc.scrollTop,r=c.doc.scrollLeft;null!=n.scrollTop&&(lb(c,n.scrollTop),1<Math.abs(c.doc.scrollTop-q)&&(m=!0));null!=n.scrollLeft&&(Ma(c,n.scrollLeft),1<Math.abs(c.doc.scrollLeft-r)&&(m=!0));if(!m)break}g=p;e.scrollToPos.isCursor&&c.state.focused&&(ja(c,"scrollCursorIntoView")||(k=c.display,l=k.sizer.getBoundingClientRect(),h=null,0>g.top+l.top?h=!0:g.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&
79
- (h=!1),null==h||Gf||(g=t("div","​",null,"position: absolute; top: "+(g.top-k.viewOffset-c.display.lineSpace.offsetTop)+"px; height: "+(g.bottom-g.top+da(c)+k.barHeight)+"px; left: "+g.left+"px; width: 2px;"),c.display.lineSpace.appendChild(g),g.scrollIntoView(h),c.display.lineSpace.removeChild(g))))}h=e.maybeHiddenMarkers;g=e.maybeUnhiddenMarkers;if(h)for(k=0;k<h.length;++k)h[k].lines.length||K(h[k],"hide");if(g)for(k=0;k<g.length;++k)g[k].lines.length&&K(g[k],"unhide");d.wrapper.offsetHeight&&(f.scrollTop=
80
- c.display.scroller.scrollTop);e.changeObjs&&K(c,"changes",c,e.changeObjs);e.update&&e.update.finish()}}}function T(a,b){if(a.curOp)return b();Ja(a);try{return b()}finally{La(a)}}function G(a,b){return function(){if(a.curOp)return b.apply(a,arguments);Ja(a);try{return b.apply(a,arguments)}finally{La(a)}}}function M(a){return function(){if(this.curOp)return a.apply(this,arguments);Ja(this);try{return a.apply(this,arguments)}finally{La(this)}}}function N(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,
81
- arguments);Ja(b);try{return a.apply(this,arguments)}finally{La(b)}}}function ke(a,b,c){for(var d=this.line=b,e;d=Aa(d,!1);)d=d.find(1,!0).line,(e||(e=[])).push(d);this.size=(this.rest=e)?F(A(this.rest))-c+1:1;this.node=this.text=null;this.hidden=ya(a,b)}function Nb(a,b,c){var d=[],e;for(e=b;e<c;)b=new ke(a.doc,u(a.doc,e),e),e+=b.size,d.push(b);return d}function Q(a,b,c,d){null==b&&(b=a.doc.first);null==c&&(c=a.doc.first+a.doc.size);d||(d=0);var e=a.display;d&&c<e.viewTo&&(null==e.updateLineNumbers||
82
- e.updateLineNumbers>b)&&(e.updateLineNumbers=b);a.curOp.viewChanged=!0;if(b>=e.viewTo)ra&&Mc(a.doc,b)<e.viewTo&&qa(a);else if(c<=e.viewFrom)ra&&Ld(a.doc,c+d)>e.viewFrom?qa(a):(e.viewFrom+=d,e.viewTo+=d);else if(b<=e.viewFrom&&c>=e.viewTo)qa(a);else if(b<=e.viewFrom){var f=dc(a,c,c+d,1);f?(e.view=e.view.slice(f.index),e.viewFrom=f.lineN,e.viewTo+=d):qa(a)}else if(c>=e.viewTo)(f=dc(a,b,b,-1))?(e.view=e.view.slice(0,f.index),e.viewTo=f.lineN):qa(a);else{var f=dc(a,b,b,-1),g=dc(a,c,c+d,1);f&&g?(e.view=
83
- e.view.slice(0,f.index).concat(Nb(a,f.lineN,g.lineN)).concat(e.view.slice(g.index)),e.viewTo+=d):qa(a)}if(a=e.externalMeasured)c<a.lineN?a.lineN+=d:b<a.lineN+a.size&&(e.externalMeasured=null)}function na(a,b,c){a.curOp.viewChanged=!0;var d=a.display,e=a.display.externalMeasured;e&&b>=e.lineN&&b<e.lineN+e.size&&(d.externalMeasured=null);b<d.viewFrom||b>=d.viewTo||(a=d.view[Ca(a,b)],null!=a.node&&(a=a.changes||(a.changes=[]),-1==D(a,c)&&a.push(c)))}function qa(a){a.display.viewFrom=a.display.viewTo=
84
- a.doc.first;a.display.view=[];a.display.viewOffset=0}function Ca(a,b){if(b>=a.display.viewTo)return null;b-=a.display.viewFrom;if(0>b)return null;for(var c=a.display.view,d=0;d<c.length;d++)if(b-=c[d].size,0>b)return d}function dc(a,b,c,d){var e=Ca(a,b),f=a.display.view;if(!ra||c==a.doc.first+a.doc.size)return{index:e,lineN:c};for(var g=0,h=a.display.viewFrom;g<e;g++)h+=f[g].size;if(h!=b){if(0<d){if(e==f.length-1)return null;b=h+f[e].size-b;e++}else b=h-b;c+=b}for(;Mc(a.doc,c)!=c;){if(e==(0>d?0:f.length-
85
- 1))return null;c+=d*f[e-(0>d?1:0)].size;e+=d}return{index:e,lineN:c}}function Kd(a){a=a.display.view;for(var b=0,c=0;c<a.length;c++){var d=a[c];d.hidden||d.node&&!d.changes||++b}return b}function sf(a){function b(){d.activeTouch&&(e=setTimeout(function(){d.activeTouch=null},1E3),f=d.activeTouch,f.end=+new Date)}function c(a,b){if(null==b.left)return!0;var c=b.left-a.left,d=b.top-a.top;return 400<c*c+d*d}var d=a.display;v(d.scroller,"mousedown",G(a,pe));B&&11>C?v(d.scroller,"dblclick",G(a,function(b){if(!ja(a,
86
- b)){var c=Ua(a,b);!c||hd(a,b,"gutterClick",!0,L)||oa(a.display,b)||(O(b),b=a.findWordAt(c),Ub(a.doc,b.anchor,b.head))}})):v(d.scroller,"dblclick",function(b){ja(a,b)||O(b)});id||v(d.scroller,"contextmenu",function(b){qe(a,b)});var e,f={end:0};v(d.scroller,"touchstart",function(a){var b;1!=a.touches.length?b=!1:(b=a.touches[0],b=1>=b.radiusX&&1>=b.radiusY);b||(clearTimeout(e),b=+new Date,d.activeTouch={start:b,moved:!1,prev:300>=b-f.end?f:null},1==a.touches.length&&(d.activeTouch.left=a.touches[0].pageX,
87
- d.activeTouch.top=a.touches[0].pageY))});v(d.scroller,"touchmove",function(){d.activeTouch&&(d.activeTouch.moved=!0)});v(d.scroller,"touchend",function(e){var f=d.activeTouch;if(f&&!oa(d,e)&&null!=f.left&&!f.moved&&300>new Date-f.start){var g=a.coordsChar(d.activeTouch,"page"),f=!f.prev||c(f,f.prev)?new z(g,g):!f.prev.prev||c(f,f.prev.prev)?a.findWordAt(g):new z(r(g.line,0),w(a.doc,r(g.line+1,0)));a.setSelection(f.anchor,f.head);a.focus();O(e)}b()});v(d.scroller,"touchcancel",b);v(d.scroller,"scroll",
88
- function(){d.scroller.clientHeight&&(lb(a,d.scroller.scrollTop),Ma(a,d.scroller.scrollLeft,!0),K(a,"scroll",a))});v(d.scroller,"mousewheel",function(b){re(a,b)});v(d.scroller,"DOMMouseScroll",function(b){re(a,b)});v(d.wrapper,"scroll",function(){d.wrapper.scrollTop=d.wrapper.scrollLeft=0});d.dragFunctions={simple:function(b){ja(a,b)||jd(b)},start:function(b){if(B&&(!a.state.draggingText||100>+new Date-se))jd(b);else if(!ja(a,b)&&!oa(a.display,b)&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.setDragImage&&
89
- !te)){var c=t("img",null,null,"position: fixed; left: 0; top: 0;");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d";ba&&(c.width=c.height=1,a.display.wrapper.appendChild(c),c._top=c.offsetTop);b.dataTransfer.setDragImage(c,0,0);ba&&c.parentNode.removeChild(c)}},drop:G(a,Hf)};var g=d.input.getField();v(g,"keyup",function(b){ue.call(a,b)});v(g,"keydown",G(a,ve));v(g,"keypress",G(a,we));v(g,"focus",cb(xc,a));v(g,"blur",cb(db,a))}function If(a){var b=a.display;
90
- if(b.lastWrapHeight!=b.wrapper.clientHeight||b.lastWrapWidth!=b.wrapper.clientWidth)b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}function oa(a,b){for(var c=b.target||b.srcElement;c!=a.wrapper;c=c.parentNode)if(!c||1==c.nodeType&&"true"==c.getAttribute("cm-ignore-events")||c.parentNode==a.sizer&&c!=a.mover)return!0}function Ua(a,b,c,d){var e=a.display;if(!c&&"true"==(b.target||b.srcElement).getAttribute("cm-not-content"))return null;var f,g;c=e.lineSpace.getBoundingClientRect();
91
- try{f=b.clientX-c.left,g=b.clientY-c.top}catch(h){return null}b=fd(a,f,g);var k;d&&1==b.xRel&&(k=u(a.doc,b.line).text).length==b.ch&&(d=aa(k,k.length,a.options.tabSize)-k.length,b=r(b.line,Math.max(0,Math.round((f-ie(a.display).left)/gb(a.display))-d)));return b}function pe(a){var b=this.display;if(!(b.activeTouch&&b.input.supportsTouch()||ja(this,a)))if(b.shift=a.shiftKey,oa(b,a))J||(b.scroller.draggable=!1,setTimeout(function(){b.scroller.draggable=!0},100));else if(!hd(this,a,"gutterClick",!0,
92
- L)){var c=Ua(this,a);window.focus();switch(xe(a)){case 1:c?Jf(this,a,c):(a.target||a.srcElement)==b.scroller&&O(a);break;case 2:J&&(this.state.lastMiddleDown=+new Date);c&&Ub(this.doc,c);setTimeout(function(){b.input.focus()},20);O(a);break;case 3:id?qe(this,a):Kf(this)}}}function Jf(a,b,c){B?setTimeout(cb(Ud,a),0):a.curOp.focus=fa();var d=+new Date,e;ec&&ec.time>d-400&&0==y(ec.pos,c)?e="triple":fc&&fc.time>d-400&&0==y(fc.pos,c)?(e="double",ec={time:d,pos:c}):(e="single",fc={time:d,pos:c});var d=
93
- a.doc.sel,f=W?b.metaKey:b.ctrlKey,g;a.options.dragDrop&&Lf&&!Rb(a)&&"single"==e&&-1<(g=d.contains(c))&&!d.ranges[g].empty()?Mf(a,b,c,f):Nf(a,b,c,e,f)}function Mf(a,b,c,d){var e=a.display,f=+new Date,g=G(a,function(h){J&&(e.scroller.draggable=!1);a.state.draggingText=!1;ka(document,"mouseup",g);ka(e.scroller,"drop",g);10>Math.abs(b.clientX-h.clientX)+Math.abs(b.clientY-h.clientY)&&(O(h),!d&&+new Date-200<f&&Ub(a.doc,c),J||B&&9==C?setTimeout(function(){document.body.focus();e.input.focus()},20):e.input.focus())});
94
- J&&(e.scroller.draggable=!0);a.state.draggingText=g;e.scroller.dragDrop&&e.scroller.dragDrop();v(document,"mouseup",g);v(e.scroller,"drop",g)}function Nf(a,b,c,d,e){function f(b){if(0!=y(x,b))if(x=b,"rect"==d){for(var e=[],f=a.options.tabSize,g=aa(u(l,c.line).text,c.ch,f),h=aa(u(l,b.line).text,b.ch,f),k=Math.min(g,h),g=Math.max(g,h),h=Math.min(c.line,b.line),q=Math.min(a.lastLine(),Math.max(c.line,b.line));h<=q;h++){var E=u(l,h).text,t=ye(E,k,f);k==g?e.push(new z(r(h,t),r(h,t))):E.length>t&&e.push(new z(r(h,
95
- t),r(h,ye(E,g,f))))}e.length||e.push(new z(c,c));H(l,Z(n.ranges.slice(0,p).concat(e),p),{origin:"*mouse",scroll:!1});a.scrollIntoView(b)}else e=m,f=e.anchor,k=b,"single"!=d&&(b="double"==d?a.findWordAt(b):new z(r(b.line,0),w(l,r(b.line+1,0))),0<y(b.anchor,f)?(k=b.head,f=Qb(e.from(),b.anchor)):(k=b.anchor,f=Pb(e.to(),b.head))),e=n.ranges.slice(0),e[p]=new z(w(l,f),k),H(l,Z(e,p),kd)}function g(b){var c=++A,e=Ua(a,b,!0,"rect"==d);if(e)if(0!=y(e,x)){a.curOp.focus=fa();f(e);var h=Hc(k,l);(e.line>=h.to||
96
- e.line<h.from)&&setTimeout(G(a,function(){A==c&&g(b)}),150)}else{var m=b.clientY<B.top?-20:b.clientY>B.bottom?20:0;m&&setTimeout(G(a,function(){A==c&&(k.scroller.scrollTop+=m,g(b))}),50)}}function h(a){A=Infinity;O(a);k.input.focus();ka(document,"mousemove",F);ka(document,"mouseup",C);l.history.lastSelOrigin=null}var k=a.display,l=a.doc;O(b);var m,p,n=l.sel,q=n.ranges;e&&!b.shiftKey?(p=l.sel.contains(c),m=-1<p?q[p]:new z(c,c)):(m=l.sel.primary(),p=l.sel.primIndex);if(b.altKey)d="rect",e||(m=new z(c,
97
- c)),c=Ua(a,b,!0,!0),p=-1;else if("double"==d){var t=a.findWordAt(c);m=a.display.shift||l.extend?rb(l,m,t.anchor,t.head):t}else"triple"==d?(t=new z(r(c.line,0),w(l,r(c.line+1,0))),m=a.display.shift||l.extend?rb(l,m,t.anchor,t.head):t):m=rb(l,m,c);e?-1==p?(p=q.length,H(l,Z(q.concat([m]),p),{scroll:!1,origin:"*mouse"})):1<q.length&&q[p].empty()&&"single"==d&&!b.shiftKey?(H(l,Z(q.slice(0,p).concat(q.slice(p+1)),0)),n=l.sel):Xc(l,p,m,kd):(p=0,H(l,new la([m],0),kd),n=l.sel);var x=c,B=k.wrapper.getBoundingClientRect(),
98
- A=0,F=G(a,function(a){xe(a)?g(a):h(a)}),C=G(a,h);v(document,"mousemove",F);v(document,"mouseup",C)}function hd(a,b,c,d,e){try{var f=b.clientX,g=b.clientY}catch(h){return!1}if(f>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;d&&O(b);d=a.display;var k=d.lineDiv.getBoundingClientRect();if(g>k.bottom||!S(a,c))return ld(b);g-=k.top-d.viewOffset;for(k=0;k<a.options.gutters.length;++k){var l=d.gutters.childNodes[k];if(l&&l.getBoundingClientRect().right>=f)return f=Ba(a.doc,g),e(a,
99
- c,a,f,a.options.gutters[k],b),ld(b)}}function Hf(a){var b=this;if(!ja(b,a)&&!oa(b.display,a)){O(a);B&&(se=+new Date);var c=Ua(b,a,!0),d=a.dataTransfer.files;if(c&&!Rb(b))if(d&&d.length&&window.FileReader&&window.File){var e=d.length,f=Array(e),g=0;a=function(a,d){var h=new FileReader;h.onload=G(b,function(){f[d]=h.result;if(++g==e){c=w(b.doc,c);var a={from:c,to:c,text:sa(f.join("\n")),origin:"paste"};Oa(b.doc,a);be(b.doc,ga(c,ta(a)))}});h.readAsText(a)};for(var h=0;h<e;++h)a(d[h],h)}else if(b.state.draggingText&&
100
- -1<b.doc.sel.contains(c))b.state.draggingText(a),setTimeout(function(){b.display.input.focus()},20);else try{if(f=a.dataTransfer.getData("Text")){if(b.state.draggingText&&(W?!a.altKey:!a.ctrlKey))var k=b.listSelections();Vb(b.doc,ga(c,c));if(k)for(h=0;h<k.length;++h)wb(b.doc,"",k[h].anchor,k[h].head,"drag");b.replaceSelection(f,"around","paste");b.display.input.focus()}}catch(l){}}}function lb(a,b){2>Math.abs(a.doc.scrollTop-b)||(a.doc.scrollTop=b,wa||Pc(a,{top:b}),a.display.scroller.scrollTop!=b&&
101
- (a.display.scroller.scrollTop=b),a.display.scrollbars.setScrollTop(b),wa&&Pc(a),fb(a,100))}function Ma(a,b,c){(c?b==a.doc.scrollLeft:2>Math.abs(a.doc.scrollLeft-b))||(b=Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth),a.doc.scrollLeft=b,Bc(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function re(a,b){var c=ze(b),d=c.x,c=c.y,e=a.display,f=e.scroller;if(d&&f.scrollWidth>f.clientWidth||c&&f.scrollHeight>f.clientHeight){if(c&&
102
- W&&J){var g=b.target,h=e.view;a:for(;g!=f;g=g.parentNode)for(var k=0;k<h.length;k++)if(h[k].node==g){a.display.currentWheelTarget=g;break a}}!d||wa||ba||null==R?(c&&null!=R&&(g=c*R,h=a.doc.scrollTop,k=h+e.wrapper.clientHeight,0>g?h=Math.max(0,h+g-50):k=Math.min(a.doc.height,k+g+50),Pc(a,{top:h,bottom:k})),20>gc&&(null==e.wheelStartX?(e.wheelStartX=f.scrollLeft,e.wheelStartY=f.scrollTop,e.wheelDX=d,e.wheelDY=c,setTimeout(function(){if(null!=e.wheelStartX){var a=f.scrollLeft-e.wheelStartX,b=f.scrollTop-
103
- e.wheelStartY,a=b&&e.wheelDY&&b/e.wheelDY||a&&e.wheelDX&&a/e.wheelDX;e.wheelStartX=e.wheelStartY=null;a&&(R=(R*gc+a)/(gc+1),++gc)}},200)):(e.wheelDX+=d,e.wheelDY+=c))):(c&&lb(a,Math.max(0,Math.min(f.scrollTop+c*R,f.scrollHeight-f.clientHeight))),Ma(a,Math.max(0,Math.min(f.scrollLeft+d*R,f.scrollWidth-f.clientWidth))),O(b),e.wheelStartX=null)}}function hc(a,b,c){if("string"==typeof b&&(b=ic[b],!b))return!1;a.display.input.ensurePolled();var d=a.display.shift,e=!1;try{Rb(a)&&(a.state.suppressEdits=
104
- !0),c&&(a.display.shift=!1),e=b(a)!=Ae}finally{a.display.shift=d,a.state.suppressEdits=!1}return e}function Of(a,b,c){for(var d=0;d<a.state.keyMaps.length;d++){var e=xb(b,a.state.keyMaps[d],c,a);if(e)return e}return a.options.extraKeys&&xb(b,a.options.extraKeys,c,a)||xb(b,a.options.keyMap,c,a)}function jc(a,b,c,d){var e=a.state.keySeq;if(e){if(Pf(b))return"handled";Qf.set(50,function(){a.state.keySeq==e&&(a.state.keySeq=null,a.display.input.reset())});b=e+" "+b}d=Of(a,b,d);"multi"==d&&(a.state.keySeq=
105
- b);"handled"==d&&L(a,"keyHandled",a,b,c);if("handled"==d||"multi"==d)O(c),Yc(a);return e&&!d&&/\'$/.test(b)?(O(c),!0):!!d}function Be(a,b){var c=Rf(b,!0);return c?b.shiftKey&&!a.state.keySeq?jc(a,"Shift-"+c,b,function(b){return hc(a,b,!0)})||jc(a,c,b,function(b){if("string"==typeof b?/^go[A-Z]/.test(b):b.motion)return hc(a,b)}):jc(a,c,b,function(b){return hc(a,b)}):!1}function Sf(a,b,c){return jc(a,"'"+c+"'",b,function(b){return hc(a,b,!0)})}function ve(a){this.curOp.focus=fa();if(!ja(this,a)){B&&
106
- 11>C&&27==a.keyCode&&(a.returnValue=!1);var b=a.keyCode;this.display.shift=16==b||a.shiftKey;var c=Be(this,a);ba&&(md=c?b:null,!c&&88==b&&!Ce&&(W?a.metaKey:a.ctrlKey)&&this.replaceSelection("",null,"cut"));18!=b||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||Tf(this)}}function Tf(a){function b(a){18!=a.keyCode&&a.altKey||(kb(c,"CodeMirror-crosshair"),ka(document,"keyup",b),ka(document,"mouseover",b))}var c=a.display.lineDiv;mb(c,"CodeMirror-crosshair");v(document,"keyup",b);v(document,
107
- "mouseover",b)}function ue(a){16==a.keyCode&&(this.doc.sel.shift=!1);ja(this,a)}function we(a){if(!(oa(this.display,a)||ja(this,a)||a.ctrlKey&&!a.altKey||W&&a.metaKey)){var b=a.keyCode,c=a.charCode;if(ba&&b==md)md=null,O(a);else if(!ba||a.which&&!(10>a.which)||!Be(this,a))if(b=String.fromCharCode(null==c?b:c),!Sf(this,a,b))this.display.input.onKeyPress(a)}}function Kf(a){a.state.delayingBlurEvent=!0;setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,db(a))},100)}function xc(a){a.state.delayingBlurEvent&&
108
- (a.state.delayingBlurEvent=!1);"nocursor"!=a.options.readOnly&&(a.state.focused||(K(a,"focus",a),a.state.focused=!0,mb(a.display.wrapper,"CodeMirror-focused"),a.curOp||a.display.selForContextMenu==a.doc.sel||(a.display.input.reset(),J&&setTimeout(function(){a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Yc(a))}function db(a){a.state.delayingBlurEvent||(a.state.focused&&(K(a,"blur",a),a.state.focused=!1,kb(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),
109
- setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function qe(a,b){var c;(c=oa(a.display,b))||(c=S(a,"gutterContextMenu")?hd(a,b,"gutterContextMenu",!1,K):!1);if(!c)a.display.input.onContextMenu(b)}function De(a,b){if(0>y(a,b.from))return a;if(0>=y(a,b.to))return ta(b);var c=a.line+b.text.length-(b.to.line-b.from.line)-1,d=a.ch;a.line==b.to.line&&(d+=ta(b).ch-b.to.ch);return r(c,d)}function nd(a,b){for(var c=[],d=0;d<a.sel.ranges.length;d++){var e=a.sel.ranges[d];c.push(new z(De(e.anchor,
110
- b),De(e.head,b)))}return Z(c,a.sel.primIndex)}function Ee(a,b,c){return a.line==b.line?r(c.line,a.ch-b.ch+c.ch):r(c.line+(a.line-b.line),a.ch)}function Fe(a,b,c){b={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){this.canceled=!0}};c&&(b.update=function(b,c,f,g){b&&(this.from=w(a,b));c&&(this.to=w(a,c));f&&(this.text=f);void 0!==g&&(this.origin=g)});K(a,"beforeChange",a,b);a.cm&&K(a.cm,"beforeChange",a.cm,b);return b.canceled?null:{from:b.from,to:b.to,text:b.text,origin:b.origin}}
111
- function Oa(a,b,c){if(a.cm){if(!a.cm.curOp)return G(a.cm,Oa)(a,b,c);if(a.cm.state.suppressEdits)return}if(S(a,"beforeChange")||a.cm&&S(a.cm,"beforeChange"))if(b=Fe(a,b,!0),!b)return;if(c=Ge&&!c&&Uf(a,b.from,b.to))for(var d=c.length-1;0<=d;--d)He(a,{from:c[d].from,to:c[d].to,text:d?[""]:b.text});else He(a,b)}function He(a,b){if(1!=b.text.length||""!=b.text[0]||0!=y(b.from,b.to)){var c=nd(a,b);Ie(a,b,c,a.cm?a.cm.curOp.id:NaN);yb(a,b,c,od(a,b));var d=[];Ga(a,function(a,c){c||-1!=D(d,a.history)||(Je(a.history,
112
- b),d.push(a.history));yb(a,b,null,od(a,b))})}}function kc(a,b,c){if(!a.cm||!a.cm.state.suppressEdits){for(var d=a.history,e,f=a.sel,g="undo"==b?d.done:d.undone,h="undo"==b?d.undone:d.done,k=0;k<g.length&&(e=g[k],c?!e.ranges||e.equals(a.sel):e.ranges);k++);if(k!=g.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(e=g.pop(),e.ranges){Wb(e,h);if(c&&!e.equals(a.sel)){H(a,e,{clearRedo:!1});return}f=e}else break;c=[];Wb(f,h);h.push({changes:c,generation:d.generation});d.generation=e.generation||++d.maxGeneration;
113
- d=S(a,"beforeChange")||a.cm&&S(a.cm,"beforeChange");for(k=e.changes.length-1;0<=k;--k){var l=e.changes[k];l.origin=b;if(d&&!Fe(a,l,!1)){g.length=0;break}c.push(pd(a,l));f=k?nd(a,l):A(g);yb(a,l,f,Ke(a,l));!k&&a.cm&&a.cm.scrollIntoView({from:l.from,to:ta(l)});var m=[];Ga(a,function(a,b){b||-1!=D(m,a.history)||(Je(a.history,l),m.push(a.history));yb(a,l,null,Ke(a,l))})}}}}function Le(a,b){if(0!=b&&(a.first+=b,a.sel=new la(ob(a.sel.ranges,function(a){return new z(r(a.anchor.line+b,a.anchor.ch),r(a.head.line+
114
- b,a.head.ch))}),a.sel.primIndex),a.cm)){Q(a.cm,a.first,a.first-b,b);for(var c=a.cm.display,d=c.viewFrom;d<c.viewTo;d++)na(a.cm,d,"gutter")}}function yb(a,b,c,d){if(a.cm&&!a.cm.curOp)return G(a.cm,yb)(a,b,c,d);if(b.to.line<a.first)Le(a,b.text.length-1-(b.to.line-b.from.line));else if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var e=b.text.length-1-(a.first-b.from.line);Le(a,e);b={from:r(a.first,0),to:r(b.to.line+e,b.to.ch),text:[A(b.text)],origin:b.origin}}e=a.lastLine();b.to.line>e&&(b=
115
- {from:b.from,to:r(e,u(a,e).text.length),text:[b.text[0]],origin:b.origin});b.removed=Da(a,b.from,b.to);c||(c=nd(a,b));a.cm?Vf(a.cm,b,d):qd(a,b,d);Vb(a,c,ha)}}function Vf(a,b,c){var d=a.doc,e=a.display,f=b.from,g=b.to,h=!1,k=f.line;a.options.lineWrapping||(k=F(ia(u(d,f.line))),d.iter(k,g.line+1,function(a){if(a==e.maxLine)return h=!0}));-1<d.sel.contains(b.from,b.to)&&fe(a);qd(d,b,c,Id(a));a.options.lineWrapping||(d.iter(k,f.line+b.text.length,function(a){var b=Kb(a);b>e.maxLineLength&&(e.maxLine=
116
- a,e.maxLineLength=b,e.maxLineChanged=!0,h=!1)}),h&&(a.curOp.updateMaxLine=!0));d.frontier=Math.min(d.frontier,f.line);fb(a,400);c=b.text.length-(g.line-f.line)-1;b.full?Q(a):f.line!=g.line||1!=b.text.length||Me(a.doc,b)?Q(a,f.line,g.line+1,c):na(a,f.line,"text");c=S(a,"changes");if((d=S(a,"change"))||c)b={from:f,to:g,text:b.text,removed:b.removed,origin:b.origin},d&&L(a,"change",a,b),c&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(b);a.display.selForContextMenu=null}function wb(a,b,c,d,e){d||
117
- (d=c);if(0>y(d,c)){var f=d;d=c;c=f}"string"==typeof b&&(b=sa(b));Oa(a,{from:c,to:d,text:b,origin:e})}function cc(a,b,c,d,e){var f=a.display,g=xa(a.display);0>c&&(c=0);var h=a.curOp&&null!=a.curOp.scrollTop?a.curOp.scrollTop:f.scroller.scrollTop,k=Nc(a),l={};e-c>k&&(e=c+k);var m=a.doc.height+Ec(f),p=c<g,g=e>m-g;c<h?l.scrollTop=p?0:c:e>h+k&&(c=Math.min(c,(g?m:e)-k),c!=h&&(l.scrollTop=c));h=a.curOp&&null!=a.curOp.scrollLeft?a.curOp.scrollLeft:f.scroller.scrollLeft;a=pa(a)-(a.options.fixedGutter?f.gutters.offsetWidth:
118
- 0);(f=d-b>a)&&(d=b+a);10>b?l.scrollLeft=0:b<h?l.scrollLeft=Math.max(0,b-(f?0:10)):d>a+h-3&&(l.scrollLeft=d+(f?0:10)-a);return l}function lc(a,b,c){null==b&&null==c||mc(a);null!=b&&(a.curOp.scrollLeft=(null==a.curOp.scrollLeft?a.doc.scrollLeft:a.curOp.scrollLeft)+b);null!=c&&(a.curOp.scrollTop=(null==a.curOp.scrollTop?a.doc.scrollTop:a.curOp.scrollTop)+c)}function Pa(a){mc(a);var b=a.getCursor(),c=b,d=b;a.options.lineWrapping||(c=b.ch?r(b.line,b.ch-1):b,d=r(b.line,b.ch+1));a.curOp.scrollToPos={from:c,
119
- to:d,margin:a.options.cursorScrollMargin,isCursor:!0}}function mc(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var c=oe(a,b.from),d=oe(a,b.to),b=cc(a,Math.min(c.left,d.left),Math.min(c.top,d.top)-b.margin,Math.max(c.right,d.right),Math.max(c.bottom,d.bottom)+b.margin);a.scrollTo(b.scrollLeft,b.scrollTop)}}function pb(a,b,c,d){var e=a.doc,f;null==c&&(c="add");"smart"==c&&(e.mode.indent?f=sb(a,b):c="prev");var g=a.options.tabSize,h=u(e,b),k=aa(h.text,null,g);h.stateAfter&&(h.stateAfter=
120
- null);var l=h.text.match(/^\s*/)[0],m;if(!d&&!/\S/.test(h.text))m=0,c="not";else if("smart"==c&&(m=e.mode.indent(f,h.text.slice(l.length),h.text),m==Ae||150<m)){if(!d)return;c="prev"}"prev"==c?m=b>e.first?aa(u(e,b-1).text,null,g):0:"add"==c?m=k+a.options.indentUnit:"subtract"==c?m=k-a.options.indentUnit:"number"==typeof c&&(m=k+c);m=Math.max(0,m);c="";d=0;if(a.options.indentWithTabs)for(a=Math.floor(m/g);a;--a)d+=g,c+="\t";d<m&&(c+=Ne(m-d));if(c!=l)return wb(e,c,r(b,0),r(b,l.length),"+input"),h.stateAfter=
121
- null,!0;for(a=0;a<e.sel.ranges.length;a++)if(g=e.sel.ranges[a],g.head.line==b&&g.head.ch<l.length){d=r(b,l.length);Xc(e,a,new z(d,d));break}}function nc(a,b,c,d){var e=b,f=b;"number"==typeof b?f=u(a,Math.max(a.first,Math.min(b,a.first+a.size-1))):e=F(b);if(null==e)return null;d(f,e)&&a.cm&&na(a.cm,e,c);return f}function Va(a,b){for(var c=a.doc.sel.ranges,d=[],e=0;e<c.length;e++){for(var f=b(c[e]);d.length&&0>=y(f.from,A(d).to);){var g=d.pop();if(0>y(g.from,f.from)){f.from=g.from;break}}d.push(f)}T(a,
122
- function(){for(var b=d.length-1;0<=b;b--)wb(a.doc,"",d[b].from,d[b].to,"+delete");Pa(a)})}function rd(a,b,c,d,e){function f(b){var d=(e?gd:Oe)(l,h,c,!0);if(null==d){if(b=!b)b=g+c,b<a.first||b>=a.first+a.size?b=m=!1:(g=b,b=l=u(a,b));if(b)h=e?(0>c?bc:ac)(l):0>c?l.text.length:0;else return m=!1}else h=d;return!0}var g=b.line,h=b.ch,k=c,l=u(a,g),m=!0;if("char"==d)f();else if("column"==d)f(!0);else if("word"==d||"group"==d){var p=null;d="group"==d;b=a.cm&&a.cm.getHelper(b,"wordChars");for(var n=!0;!(0>
123
- c)||f(!n);n=!1){var q=l.text.charAt(h)||"\n",q=oc(q,b)?"w":d&&"\n"==q?"n":!d||/\s/.test(q)?null:"p";!d||n||q||(q="s");if(p&&p!=q){0>c&&(c=1,f());break}q&&(p=q);if(0<c&&!f(!n))break}}k=Xb(a,r(g,h),k,!0);m||(k.hitSide=!0);return k}function Pe(a,b,c,d){var e=a.doc,f=b.left,g;"page"==d?(g=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=b.top+c*(g-(0>c?1.5:.5)*xa(a.display))):"line"==d&&(g=0<c?b.bottom+3:b.top-3);for(;;){b=fd(a,f,g);if(!b.outside)break;
124
- if(0>c?0>=g:g>=e.height){b.hitSide=!0;break}g+=5*c}return b}function x(a,b,c,d){q.defaults[a]=b;c&&(Ka[a]=d?function(a,b,d){d!=Fd&&c(a,b,d)}:c)}function Wf(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var c,d,e,f,g=0;g<b.length-1;g++){var h=b[g];if(/^(cmd|meta|m)$/i.test(h))f=!0;else if(/^a(lt)?$/i.test(h))c=!0;else if(/^(c|ctrl|control)$/i.test(h))d=!0;else if(/^s(hift)$/i.test(h))e=!0;else throw Error("Unrecognized modifier name: "+h);}c&&(a="Alt-"+a);d&&(a="Ctrl-"+a);f&&(a="Cmd-"+a);e&&(a="Shift-"+
125
- a);return a}function pc(a){return"string"==typeof a?ua[a]:a}function Wa(a,b,c,d,e){if(d&&d.shared)return Xf(a,b,c,d,e);if(a.cm&&!a.cm.curOp)return G(a.cm,Wa)(a,b,c,d,e);var f=new Ha(a,e);e=y(b,c);d&&V(d,f,!1);if(0<e||0==e&&!1!==f.clearWhenEmpty)return f;f.replacedWith&&(f.collapsed=!0,f.widgetNode=t("span",[f.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||f.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(f.widgetNode.insertLeft=!0));if(f.collapsed){if(Qe(a,b.line,b,c,f)||
126
- b.line!=c.line&&Qe(a,c.line,b,c,f))throw Error("Inserting collapsed marker partially overlapping an existing one");ra=!0}f.addToHistory&&Ie(a,{from:b,to:c,origin:"markText"},a.sel,NaN);var g=b.line,h=a.cm,k;a.iter(g,c.line+1,function(a){h&&f.collapsed&&!h.options.lineWrapping&&ia(a)==h.display.maxLine&&(k=!0);f.collapsed&&g!=b.line&&ca(a,0);var d=new qc(f,g==b.line?b.ch:null,g==c.line?c.ch:null);a.markedSpans=a.markedSpans?a.markedSpans.concat([d]):[d];d.marker.attachLine(a);++g});f.collapsed&&a.iter(b.line,
127
- c.line+1,function(b){ya(a,b)&&ca(b,0)});f.clearOnEnter&&v(f,"beforeCursorEnter",function(){f.clear()});f.readOnly&&(Ge=!0,(a.history.done.length||a.history.undone.length)&&a.clearHistory());f.collapsed&&(f.id=++sd,f.atomic=!0);if(h){k&&(h.curOp.updateMaxLine=!0);if(f.collapsed)Q(h,b.line,c.line+1);else if(f.className||f.title||f.startStyle||f.endStyle||f.css)for(d=b.line;d<=c.line;d++)na(h,d,"text");f.atomic&&ge(h.doc);L(h,"markerAdded",h,f)}return f}function Xf(a,b,c,d,e){d=V(d);d.shared=!1;var f=
128
- [Wa(a,b,c,d,e)],g=f[0],h=d.widgetNode;Ga(a,function(a){h&&(d.widgetNode=h.cloneNode(!0));f.push(Wa(a,w(a,b),w(a,c),d,e));for(var l=0;l<a.linked.length;++l)if(a.linked[l].isParent)return;g=A(f)});return new rc(f,g)}function Re(a){return a.findMarks(r(a.first,0),a.clipPos(r(a.lastLine())),function(a){return a.parent})}function Yf(a){for(var b=0;b<a.length;b++){var c=a[b],d=[c.primary.doc];Ga(c.primary.doc,function(a){d.push(a)});for(var e=0;e<c.markers.length;e++){var f=c.markers[e];-1==D(d,f.doc)&&
129
- (f.parent=null,c.markers.splice(e--,1))}}}function qc(a,b,c){this.marker=a;this.from=b;this.to=c}function zb(a,b){if(a)for(var c=0;c<a.length;++c){var d=a[c];if(d.marker==b)return d}}function od(a,b){if(b.full)return null;var c=qb(a,b.from.line)&&u(a,b.from.line).markedSpans,d=qb(a,b.to.line)&&u(a,b.to.line).markedSpans;if(!c&&!d)return null;var e=b.from.ch,f=b.to.ch,g=0==y(b.from,b.to);if(c)for(var h=0,k;h<c.length;++h){var l=c[h],m=l.marker;if(null==l.from||(m.inclusiveLeft?l.from<=e:l.from<e)||
130
- !(l.from!=e||"bookmark"!=m.type||g&&l.marker.insertLeft)){var p=null==l.to||(m.inclusiveRight?l.to>=e:l.to>e);(k||(k=[])).push(new qc(m,l.from,p?null:l.to))}}c=k;if(d)for(var h=0,n;h<d.length;++h)if(k=d[h],l=k.marker,null==k.to||(l.inclusiveRight?k.to>=f:k.to>f)||k.from==f&&"bookmark"==l.type&&(!g||k.marker.insertLeft))m=null==k.from||(l.inclusiveLeft?k.from<=f:k.from<f),(n||(n=[])).push(new qc(l,m?null:k.from-f,null==k.to?null:k.to-f));d=n;g=1==b.text.length;n=A(b.text).length+(g?e:0);if(c)for(f=
131
- 0;f<c.length;++f)if(h=c[f],null==h.to)(k=zb(d,h.marker),k)?g&&(h.to=null==k.to?null:k.to+n):h.to=e;if(d)for(f=0;f<d.length;++f)h=d[f],null!=h.to&&(h.to+=n),null==h.from?(k=zb(c,h.marker),k||(h.from=n,g&&(c||(c=[])).push(h))):(h.from+=n,g&&(c||(c=[])).push(h));c&&(c=Se(c));d&&d!=c&&(d=Se(d));e=[c];if(!g){var g=b.text.length-2,q;if(0<g&&c)for(f=0;f<c.length;++f)null==c[f].to&&(q||(q=[])).push(new qc(c[f].marker,null,null));for(f=0;f<g;++f)e.push(q);e.push(d)}return e}function Se(a){for(var b=0;b<a.length;++b){var c=
132
- a[b];null!=c.from&&c.from==c.to&&!1!==c.marker.clearWhenEmpty&&a.splice(b--,1)}return a.length?a:null}function Ke(a,b){var c;if(c=b["spans_"+a.id]){for(var d=0,e=[];d<b.text.length;++d)e.push(Zf(c[d]));c=e}else c=null;d=od(a,b);if(!c)return d;if(!d)return c;for(e=0;e<c.length;++e){var f=c[e],g=d[e];if(f&&g){var h=0;a:for(;h<g.length;++h){for(var k=g[h],l=0;l<f.length;++l)if(f[l].marker==k.marker)continue a;f.push(k)}}else g&&(c[e]=g)}return c}function Uf(a,b,c){var d=null;a.iter(b.line,c.line+1,function(a){if(a.markedSpans)for(var b=
133
- 0;b<a.markedSpans.length;++b){var c=a.markedSpans[b].marker;!c.readOnly||d&&-1!=D(d,c)||(d||(d=[])).push(c)}});if(!d)return null;a=[{from:b,to:c}];for(b=0;b<d.length;++b){c=d[b];for(var e=c.find(0),f=0;f<a.length;++f){var g=a[f];if(!(0>y(g.to,e.from)||0<y(g.from,e.to))){var h=[f,1],k=y(g.from,e.from),l=y(g.to,e.to);(0>k||!c.inclusiveLeft&&!k)&&h.push({from:g.from,to:e.from});(0<l||!c.inclusiveRight&&!l)&&h.push({from:e.to,to:g.to});a.splice.apply(a,h);f+=h.length-1}}}return a}function Te(a){var b=
134
- a.markedSpans;if(b){for(var c=0;c<b.length;++c)b[c].marker.detachLine(a);a.markedSpans=null}}function Ue(a,b){if(b){for(var c=0;c<b.length;++c)b[c].marker.attachLine(a);a.markedSpans=b}}function Ve(a,b){var c=a.lines.length-b.lines.length;if(0!=c)return c;var c=a.find(),d=b.find(),e=y(c.from,d.from)||(a.inclusiveLeft?-1:0)-(b.inclusiveLeft?-1:0);return e?-e:(c=y(c.to,d.to)||(a.inclusiveRight?1:0)-(b.inclusiveRight?1:0))?c:b.id-a.id}function Aa(a,b){var c=ra&&a.markedSpans,d;if(c)for(var e,f=0;f<c.length;++f)e=
135
- c[f],e.marker.collapsed&&null==(b?e.from:e.to)&&(!d||0>Ve(d,e.marker))&&(d=e.marker);return d}function Qe(a,b,c,d,e){a=u(a,b);if(a=ra&&a.markedSpans)for(b=0;b<a.length;++b){var f=a[b];if(f.marker.collapsed){var g=f.marker.find(0),h=y(g.from,c)||(f.marker.inclusiveLeft?-1:0)-(e.inclusiveLeft?-1:0),k=y(g.to,d)||(f.marker.inclusiveRight?1:0)-(e.inclusiveRight?1:0);if(!(0<=h&&0>=k||0>=h&&0<=k)&&(0>=h&&(0<y(g.to,c)||f.marker.inclusiveRight&&e.inclusiveLeft)||0<=h&&(0>y(g.from,d)||f.marker.inclusiveLeft&&
136
- e.inclusiveRight)))return!0}}}function ia(a){for(var b;b=Aa(a,!0);)a=b.find(-1,!0).line;return a}function Mc(a,b){var c=u(a,b),d=ia(c);return c==d?b:F(d)}function Ld(a,b){if(b>a.lastLine())return b;var c=u(a,b),d;if(!ya(a,c))return b;for(;d=Aa(c,!1);)c=d.find(1,!0).line;return F(c)+1}function ya(a,b){var c=ra&&b.markedSpans;if(c)for(var d,e=0;e<c.length;++e)if(d=c[e],d.marker.collapsed&&(null==d.from||!d.marker.widgetNode&&0==d.from&&d.marker.inclusiveLeft&&td(a,b,d)))return!0}function td(a,b,c){if(null==
137
- c.to)return b=c.marker.find(1,!0),td(a,b.line,zb(b.line.markedSpans,c.marker));if(c.marker.inclusiveRight&&c.to==b.text.length)return!0;for(var d,e=0;e<b.markedSpans.length;++e)if(d=b.markedSpans[e],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(null==d.to||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&td(a,b,d))return!0}function ub(a){if(null!=a.height)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Wc(document.body,a.node)){var c="position: relative;";a.coverGutter&&
138
- (c+="margin-left: -"+b.display.gutters.offsetWidth+"px;");a.noHScroll&&(c+="width: "+b.display.wrapper.clientWidth+"px;");U(b.display.measure,t("div",[a.node],null,c))}return a.height=a.node.offsetHeight}function $f(a,b,c,d){var e=new sc(a,c,d),f=a.cm;f&&e.noHScroll&&(f.display.alignWidgets=!0);nc(a,b,"widget",function(b){var c=b.widgets||(b.widgets=[]);null==e.insertAt?c.push(e):c.splice(Math.min(c.length-1,Math.max(0,e.insertAt)),0,e);e.line=b;f&&!ya(a,b)&&(c=ea(b)<a.scrollTop,ca(b,b.height+ub(e)),
139
- c&&lc(f,null,e.height),f.curOp.forceUpdate=!0);return!0});return e}function We(a,b){if(a)for(;;){var c=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;a=a.slice(0,c.index)+a.slice(c.index+c[0].length);var d=c[1]?"bgClass":"textClass";null==b[d]?b[d]=c[2]:(new RegExp("(?:^|s)"+c[2]+"(?:$|s)")).test(b[d])||(b[d]+=" "+c[2])}return a}function Xe(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var c=q.innerMode(a,b);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function ud(a,
140
- b,c,d){for(var e=0;10>e;e++){d&&(d[0]=q.innerMode(a,c).mode);var f=a.token(b,c);if(b.pos>b.start)return f}throw Error("Mode "+a.name+" failed to advance stream.");}function Ye(a,b,c,d){function e(a){return{start:m.start,end:m.pos,string:m.current(),type:h||null,state:a?Sa(f.mode,l):l}}var f=a.doc,g=f.mode,h;b=w(f,b);var k=u(f,b.line),l=sb(a,b.line,c),m=new tc(k.text,a.options.tabSize),p;for(d&&(p=[]);(d||m.pos<b.ch)&&!m.eol();)m.start=m.pos,h=ud(g,m,l),d&&p.push(e(!0));return d?p:e()}function Ze(a,
141
- b,c,d,e,f,g){var h=c.flattenSpans;null==h&&(h=a.options.flattenSpans);var k=0,l=null,m=new tc(b,a.options.tabSize),p,n=a.options.addModeClass&&[null];for(""==b&&We(Xe(c,d),f);!m.eol();){m.pos>a.options.maxHighlightLength?(h=!1,g&&Zc(a,b,d,m.pos),m.pos=b.length,p=null):p=We(ud(c,m,d,n),f);if(n){var q=n[0].name;q&&(p="m-"+(p?q+" "+p:q))}if(!h||l!=p){for(;k<m.start;)k=Math.min(m.start,k+5E4),e(k,l);l=p}m.start=m.pos}for(;k<m.pos;)a=Math.min(m.pos,k+5E4),e(a,l),k=a}function je(a,b,c,d){var e=[a.state.modeGen],
142
- f={};Ze(a,b.text,a.doc.mode,c,function(a,b){e.push(a,b)},f,d);for(c=0;c<a.state.overlays.length;++c){var g=a.state.overlays[c],h=1,k=0;Ze(a,b.text,g.mode,!0,function(a,b){for(var c=h;k<a;){var d=e[h];d>a&&e.splice(h,1,a,e[h+1],d);h+=2;k=Math.min(a,d)}if(b)if(g.opaque)e.splice(c,h-c,a,"cm-overlay "+b),h=c+2;else for(;c<h;c+=2)d=e[c+1],e[c+1]=(d?d+" ":"")+"cm-overlay "+b},f)}return{styles:e,classes:f.bgClass||f.textClass?f:null}}function $e(a,b,c){if(!b.styles||b.styles[0]!=a.state.modeGen){var d=je(a,
143
- b,b.stateAfter=sb(a,F(b)));b.styles=d.styles;d.classes?b.styleClasses=d.classes:b.styleClasses&&(b.styleClasses=null);c===a.doc.frontier&&a.doc.frontier++}return b.styles}function Zc(a,b,c,d){var e=a.doc.mode,f=new tc(b,a.options.tabSize);f.start=f.pos=d||0;for(""==b&&Xe(e,c);!f.eol()&&f.pos<=a.options.maxHighlightLength;)ud(e,f,c),f.start=f.pos}function af(a,b){if(!a||/^\s*$/.test(a))return null;var c=b.addModeClass?ag:bg;return c[a]||(c[a]=a.replace(/\S+/g,"cm-$\x26"))}function Sd(a,b){var c=t("span",
144
- null,null,J?"padding-right: .1px":null),c={pre:t("pre",[c]),content:c,col:0,pos:0,cm:a,splitSpaces:(B||J)&&a.getOption("lineWrapping")};b.measure={};for(var d=0;d<=(b.rest?b.rest.length:0);d++){var e=d?b.rest[d-1]:b.line,f;c.pos=0;c.addToken=cg;var g;if(null!=vd)g=vd;else{g=U(a.display.measure,document.createTextNode("AخA"));var h=Ea(g,0,1).getBoundingClientRect();g=h&&h.left!=h.right?vd=3>Ea(g,1,2).getBoundingClientRect().right-h.right:!1}g&&(f=Y(e))&&(c.addToken=dg(c.addToken,f));c.map=[];h=b!=
145
- a.display.externalMeasured&&F(e);a:{g=c;var h=$e(a,e,h),k=e.markedSpans,l=e.text,m=0;if(k)for(var p=l.length,n=0,q=1,r="",u=void 0,v=void 0,w=0,x=void 0,y=void 0,A=void 0,C=void 0,z=void 0;;){if(w==n){for(var x=y=A=C=v="",z=null,w=Infinity,G=[],H=0;H<k.length;++H){var I=k[H],D=I.marker;"bookmark"==D.type&&I.from==n&&D.widgetNode?G.push(D):I.from<=n&&(null==I.to||I.to>n||D.collapsed&&I.to==n&&I.from==n)?(null!=I.to&&I.to!=n&&w>I.to&&(w=I.to,y=""),D.className&&(x+=" "+D.className),D.css&&(v=D.css),
146
- D.startStyle&&I.from==n&&(A+=" "+D.startStyle),D.endStyle&&I.to==w&&(y+=" "+D.endStyle),D.title&&!C&&(C=D.title),D.collapsed&&(!z||0>Ve(z.marker,D))&&(z=I)):I.from>n&&w>I.from&&(w=I.from)}if(z&&(z.from||0)==n){bf(g,(null==z.to?p+1:z.to)-n,z.marker,null==z.from);if(null==z.to)break a;z.to==n&&(z=!1)}if(!z&&G.length)for(H=0;H<G.length;++H)bf(g,0,G[H])}if(n>=p)break;for(G=Math.min(p,w);;){if(r){H=n+r.length;z||(I=H>G?r.slice(0,G-n):r,g.addToken(g,I,u?u+x:x,A,n+I.length==w?y:"",C,v));if(H>=G){r=r.slice(G-
147
- n);n=G;break}n=H;A=""}r=l.slice(m,m=h[q++]);u=af(h[q++],g.cm.options)}}else for(var q=1;q<h.length;q+=2)g.addToken(g,l.slice(m,m=h[q]),af(h[q+1],g.cm.options))}e.styleClasses&&(e.styleClasses.bgClass&&(c.bgClass=wd(e.styleClasses.bgClass,c.bgClass||"")),e.styleClasses.textClass&&(c.textClass=wd(e.styleClasses.textClass,c.textClass||"")));0==c.map.length&&c.map.push(0,0,c.content.appendChild(eg(a.display.measure)));0==d?(b.measure.map=c.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(c.map),
148
- (b.measure.caches||(b.measure.caches=[])).push({}))}J&&/\bcm-tab\b/.test(c.content.lastChild.className)&&(c.content.className="cm-tab-wrap-hack");K(a,"renderLine",a,b.line,c.pre);c.pre.className&&(c.textClass=wd(c.pre.className,c.textClass||""));return c}function cg(a,b,c,d,e,f,g){if(b){var h=a.splitSpaces?b.replace(/ {3,}/g,fg):b,k=a.cm.state.specialChars,l=!1;if(k.test(b))for(var m=document.createDocumentFragment(),p=0;;){k.lastIndex=p;var n=k.exec(b),q=n?n.index-p:b.length-p;if(q){var r=document.createTextNode(h.slice(p,
149
- p+q));B&&9>C?m.appendChild(t("span",[r])):m.appendChild(r);a.map.push(a.pos,a.pos+q,r);a.col+=q;a.pos+=q}if(!n)break;p+=q+1;"\t"==n[0]?(r=a.cm.options.tabSize,n=r-a.col%r,r=m.appendChild(t("span",Ne(n),"cm-tab")),r.setAttribute("role","presentation"),r.setAttribute("cm-text","\t"),a.col+=n):(r=a.cm.options.specialCharPlaceholder(n[0]),r.setAttribute("cm-text",n[0]),B&&9>C?m.appendChild(t("span",[r])):m.appendChild(r),a.col+=1);a.map.push(a.pos,a.pos+1,r);a.pos++}else{a.col+=b.length;var m=document.createTextNode(h);
150
- a.map.push(a.pos,a.pos+b.length,m);B&&9>C&&(l=!0);a.pos+=b.length}if(c||d||e||l||g)return b=c||"",d&&(b+=d),e&&(b+=e),d=t("span",[m],b,g),f&&(d.title=f),a.content.appendChild(d);a.content.appendChild(m)}}function fg(a){for(var b=" ",c=0;c<a.length-2;++c)b+=c%2?" ":" ";return b+" "}function dg(a,b){return function(c,d,e,f,g,h,k){e=e?e+" cm-force-border":"cm-force-border";for(var l=c.pos,m=l+d.length;;){for(var p=0;p<b.length;p++){var n=b[p];if(n.to>l&&n.from<=l)break}if(n.to>=m)return a(c,d,e,f,g,
151
- h,k);a(c,d.slice(0,n.to-l),e,f,null,h,k);f=null;d=d.slice(n.to-l);l=n.to}}}function bf(a,b,c,d){var e=!d&&c.widgetNode;e&&a.map.push(a.pos,a.pos+b,e);!d&&a.cm.display.input.needsContentAttribute&&(e||(e=a.content.appendChild(document.createElement("span"))),e.setAttribute("cm-marker",c.id));e&&(a.cm.display.input.setUneditable(e),a.content.appendChild(e));a.pos+=b}function Me(a,b){return 0==b.from.ch&&0==b.to.ch&&""==A(b.text)&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function qd(a,b,c,d){function e(a,
152
- c,e){a.text=c;a.stateAfter&&(a.stateAfter=null);a.styles&&(a.styles=null);null!=a.order&&(a.order=null);Te(a);Ue(a,e);c=d?d(a):1;c!=a.height&&ca(a,c);L(a,"change",a,b)}function f(a,b){for(var e=a,f=[];e<b;++e)f.push(new Ab(k[e],c?c[e]:null,d));return f}var g=b.from,h=b.to,k=b.text,l=u(a,g.line),m=u(a,h.line),p=A(k),n=c?c[k.length-1]:null,q=h.line-g.line;if(b.full)a.insert(0,f(0,k.length)),a.remove(k.length,a.size-k.length);else if(Me(a,b)){var r=f(0,k.length-1);e(m,m.text,n);q&&a.remove(g.line,q);
153
- r.length&&a.insert(g.line,r)}else l==m?1==k.length?e(l,l.text.slice(0,g.ch)+p+l.text.slice(h.ch),n):(r=f(1,k.length-1),r.push(new Ab(p+l.text.slice(h.ch),n,d)),e(l,l.text.slice(0,g.ch)+k[0],c?c[0]:null),a.insert(g.line+1,r)):1==k.length?(e(l,l.text.slice(0,g.ch)+k[0]+m.text.slice(h.ch),c?c[0]:null),a.remove(g.line+1,q)):(e(l,l.text.slice(0,g.ch)+k[0],c?c[0]:null),e(m,p+m.text.slice(h.ch),n),r=f(1,k.length-1),1<q&&a.remove(g.line+1,q-1),a.insert(g.line+1,r));L(a,"change",a,b)}function Bb(a){this.lines=
154
- a;this.parent=null;for(var b=0,c=0;b<a.length;++b)a[b].parent=this,c+=a[b].height;this.height=c}function Cb(a){this.children=a;for(var b=0,c=0,d=0;d<a.length;++d){var e=a[d],b=b+e.chunkSize(),c=c+e.height;e.parent=this}this.size=b;this.height=c;this.parent=null}function Ga(a,b,c){function d(a,f,g){if(a.linked)for(var h=0;h<a.linked.length;++h){var k=a.linked[h];if(k.doc!=f){var l=g&&k.sharedHist;if(!c||l)b(k.doc,l),d(k.doc,a,l)}}}d(a,null,!0)}function Ed(a,b){if(b.cm)throw Error("This document is already in use.");
155
- a.doc=b;b.cm=a;Ac(a);zc(a);a.options.lineWrapping||Dc(a);a.options.mode=b.modeOption;Q(a)}function u(a,b){b-=a.first;if(0>b||b>=a.size)throw Error("There is no line "+(b+a.first)+" in the document.");for(var c=a;!c.lines;)for(var d=0;;++d){var e=c.children[d],f=e.chunkSize();if(b<f){c=e;break}b-=f}return c.lines[b]}function Da(a,b,c){var d=[],e=b.line;a.iter(b.line,c.line+1,function(a){a=a.text;e==c.line&&(a=a.slice(0,c.ch));e==b.line&&(a=a.slice(b.ch));d.push(a);++e});return d}function xd(a,b,c){var d=
156
- [];a.iter(b,c,function(a){d.push(a.text)});return d}function ca(a,b){var c=b-a.height;if(c)for(var d=a;d;d=d.parent)d.height+=c}function F(a){if(null==a.parent)return null;var b=a.parent;a=D(b.lines,a);for(var c=b.parent;c;b=c,c=c.parent)for(var d=0;c.children[d]!=b;++d)a+=c.children[d].chunkSize();return a+b.first}function Ba(a,b){var c=a.first;a:do{for(var d=0;d<a.children.length;++d){var e=a.children[d],f=e.height;if(b<f){a=e;continue a}b-=f;c+=e.chunkSize()}return c}while(!a.lines);for(d=0;d<
157
- a.lines.length;++d){e=a.lines[d].height;if(b<e)break;b-=e}return c+d}function ea(a){a=ia(a);for(var b=0,c=a.parent,d=0;d<c.lines.length;++d){var e=c.lines[d];if(e==a)break;else b+=e.height}for(a=c.parent;a;c=a,a=c.parent)for(d=0;d<a.children.length&&(e=a.children[d],e!=c);++d)b+=e.height;return b}function Y(a){var b=a.order;null==b&&(b=a.order=gg(a.text));return b}function uc(a){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOrigin=this.lastSelOrigin=
158
- this.lastOp=this.lastSelOp=null;this.generation=this.maxGeneration=a||1}function pd(a,b){var c={from:Rc(b.from),to:ta(b),text:Da(a,b.from,b.to)};cf(a,c,b.from.line,b.to.line+1);Ga(a,function(a){cf(a,c,b.from.line,b.to.line+1)},!0);return c}function ce(a){for(;a.length;)if(A(a).ranges)a.pop();else break}function Ie(a,b,c,d){var e=a.history;e.undone.length=0;var f=+new Date,g,h;if(h=e.lastOp==d||e.lastOrigin==b.origin&&b.origin&&("+"==b.origin.charAt(0)&&a.cm&&e.lastModTime>f-a.cm.options.historyEventDelay||
159
- "*"==b.origin.charAt(0)))e.lastOp==d?(ce(e.done),g=A(e.done)):e.done.length&&!A(e.done).ranges?g=A(e.done):1<e.done.length&&!e.done[e.done.length-2].ranges?(e.done.pop(),g=A(e.done)):g=void 0,h=g;if(h){var k=A(g.changes);0==y(b.from,b.to)&&0==y(b.from,k.to)?k.to=ta(b):g.changes.push(pd(a,b))}else for((g=A(e.done))&&g.ranges||Wb(a.sel,e.done),g={changes:[pd(a,b)],generation:e.generation},e.done.push(g);e.done.length>e.undoDepth;)e.done.shift(),e.done[0].ranges||e.done.shift();e.done.push(c);e.generation=
160
- ++e.maxGeneration;e.lastModTime=e.lastSelTime=f;e.lastOp=e.lastSelOp=d;e.lastOrigin=e.lastSelOrigin=b.origin;k||K(a,"historyAdded")}function Wb(a,b){var c=A(b);c&&c.ranges&&c.equals(a)||b.push(a)}function cf(a,b,c,d){var e=b["spans_"+a.id],f=0;a.iter(Math.max(a.first,c),Math.min(a.first+a.size,d),function(c){c.markedSpans&&((e||(e=b["spans_"+a.id]={}))[f]=c.markedSpans);++f})}function Zf(a){if(!a)return null;for(var b=0,c;b<a.length;++b)a[b].marker.explicitlyCleared?c||(c=a.slice(0,b)):c&&c.push(a[b]);
161
- return c?c.length?c:null:a}function Xa(a,b,c){for(var d=0,e=[];d<a.length;++d){var f=a[d];if(f.ranges)e.push(c?la.prototype.deepCopy.call(f):f);else{var f=f.changes,g=[];e.push({changes:g});for(var h=0;h<f.length;++h){var k=f[h],l;g.push({from:k.from,to:k.to,text:k.text});if(b)for(var m in k)(l=m.match(/^spans_(\d+)$/))&&-1<D(b,Number(l[1]))&&(A(g)[m]=k[m],delete k[m])}}}return e}function df(a,b,c,d){c<a.line?a.line+=d:b<a.line&&(a.line=b,a.ch=0)}function ef(a,b,c,d){for(var e=0;e<a.length;++e){var f=
162
- a[e],g=!0;if(f.ranges){f.copied||(f=a[e]=f.deepCopy(),f.copied=!0);for(var h=0;h<f.ranges.length;h++)df(f.ranges[h].anchor,b,c,d),df(f.ranges[h].head,b,c,d)}else{for(h=0;h<f.changes.length;++h){var k=f.changes[h];if(c<k.from.line)k.from=r(k.from.line+d,k.from.ch),k.to=r(k.to.line+d,k.to.ch);else if(b<=k.to.line){g=!1;break}}g||(a.splice(0,e+1),e=0)}}}function Je(a,b){var c=b.from.line,d=b.to.line,e=b.text.length-(d-c)-1;ef(a.done,c,d,e);ef(a.undone,c,d,e)}function ld(a){return null!=a.defaultPrevented?
163
- a.defaultPrevented:0==a.returnValue}function xe(a){var b=a.which;null==b&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2));W&&a.ctrlKey&&1==b&&(b=3);return b}function L(a,b){function c(a){return function(){a.apply(null,e)}}var d=a._handlers&&a._handlers[b];if(d){var e=Array.prototype.slice.call(arguments,2),f;Ta?f=Ta.delayedCallbacks:Db?f=Db:(f=Db=[],setTimeout(hg,0));for(var g=0;g<d.length;++g)f.push(c(d[g]))}}function hg(){var a=Db;Db=null;for(var b=0;b<a.length;++b)a[b]()}function ja(a,b,c){"string"==
164
- typeof b&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}});K(a,c||b.type,a,b);return ld(b)||b.codemirrorIgnore}function fe(a){var b=a._handlers&&a._handlers.cursorActivity;if(b){a=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]);for(var c=0;c<b.length;++c)-1==D(a,b[c])&&a.push(b[c])}}function S(a,b){var c=a._handlers&&a._handlers[b];return c&&0<c.length}function Ya(a){a.prototype.on=function(a,c){v(this,a,c)};a.prototype.off=function(a,c){ka(this,a,c)}}function bb(){this.id=
165
- null}function ye(a,b,c){for(var d=0,e=0;;){var f=a.indexOf("\t",d);-1==f&&(f=a.length);var g=f-d;if(f==a.length||e+g>=b)return d+Math.min(g,b-e);e+=f-d;e+=c-e%c;d=f+1;if(e>=b)return d}}function Ne(a){for(;vc.length<=a;)vc.push(A(vc)+" ");return vc[a]}function A(a){return a[a.length-1]}function D(a,b){for(var c=0;c<a.length;++c)if(a[c]==b)return c;return-1}function ob(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d);return c}function Eb(){}function ff(a,b){var c;Object.create?c=Object.create(a):
166
- (Eb.prototype=a,c=new Eb);b&&V(b,c);return c}function V(a,b,c){b||(b={});for(var d in a)!a.hasOwnProperty(d)||!1===c&&b.hasOwnProperty(d)||(b[d]=a[d]);return b}function cb(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function oc(a,b){return b?-1<b.source.indexOf("\\w")&&gf(a)?!0:b.test(a):gf(a)}function hf(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}function tb(a){return 768<=a.charCodeAt(0)&&ig.test(a)}function t(a,b,c,d){a=document.createElement(a);
167
- c&&(a.className=c);d&&(a.style.cssText=d);if("string"==typeof b)a.appendChild(document.createTextNode(b));else if(b)for(c=0;c<b.length;++c)a.appendChild(b[c]);return a}function za(a){for(var b=a.childNodes.length;0<b;--b)a.removeChild(a.firstChild);return a}function U(a,b){return za(a).appendChild(b)}function fa(){return document.activeElement}function Fb(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}function wd(a,b){for(var c=a.split(" "),d=0;d<c.length;d++)c[d]&&!Fb(c[d]).test(b)&&(b+=" "+c[d]);
168
- return b}function jf(a){if(document.body.getElementsByClassName)for(var b=document.body.getElementsByClassName("CodeMirror"),c=0;c<b.length;c++){var d=b[c].CodeMirror;d&&a(d)}}function tf(){var a;v(window,"resize",function(){null==a&&(a=setTimeout(function(){a=null;jf(If)},100))});v(window,"blur",function(){jf(db)})}function eg(a){if(null==yd){var b=t("span","​");U(a,t("span",[b,document.createTextNode("x")]));0!=a.firstChild.offsetHeight&&(yd=1>=b.offsetWidth&&2<b.offsetHeight&&!(B&&8>C))}a=yd?t("span",
169
- "​"):t("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");a.setAttribute("cm-text","");return a}function Af(a,b,c,d){if(!a)return d(b,c,"ltr");for(var e=!1,f=0;f<a.length;++f){var g=a[f];if(g.from<c&&g.to>b||b==c&&g.to==b)d(Math.max(g.from,b),Math.min(g.to,c),1==g.level?"rtl":"ltr"),e=!0}e||d(b,c,"ltr")}function dd(a){return a.level%2?a.to:a.from}function ed(a){return a.level%2?a.from:a.to}function ac(a){return(a=Y(a))?dd(a[0]):0}function bc(a){var b=Y(a);return b?ed(A(b)):a.text.length}
170
- function kf(a,b){var c=u(a.doc,b),d=ia(c);d!=c&&(b=F(d));d=(c=Y(d))?c[0].level%2?bc(d):ac(d):0;return r(b,d)}function lf(a,b){var c=kf(a,b.line),d=u(a.doc,c.line),e=Y(d);return e&&0!=e[0].level?c:(d=Math.max(0,d.text.search(/\S/)),r(c.line,b.line==c.line&&b.ch<=d&&b.ch?0:d))}function Sb(a,b){vb=null;for(var c=0,d;c<a.length;++c){var e=a[c];if(e.from<b&&e.to>b)return c;if(e.from==b||e.to==b)if(null==d)d=c;else{var f;f=e.level;var g=a[d].level,h=a[0].level;f=f==h?!0:g==h?!1:f<g;if(f)return e.from!=
171
- e.to&&(vb=d),c;e.from!=e.to&&(vb=c);break}}return d}function zd(a,b,c,d){if(!d)return b+c;do b+=c;while(0<b&&tb(a.text.charAt(b)));return b}function gd(a,b,c,d){var e=Y(a);if(!e)return Oe(a,b,c,d);var f=Sb(e,b),g=e[f];for(b=zd(a,b,g.level%2?-c:c,d);;){if(b>g.from&&b<g.to)return b;if(b==g.from||b==g.to){if(Sb(e,b)==f)return b;g=e[f+c];return 0<c==g.level%2?g.to:g.from}g=e[f+=c];if(!g)return null;b=0<c==g.level%2?zd(a,g.to,-1,d):zd(a,g.from,1,d)}}function Oe(a,b,c,d){b+=c;if(d)for(;0<b&&tb(a.text.charAt(b));)b+=
172
- c;return 0>b||b>a.text.length?null:b}var wa=/gecko\/\d/i.test(navigator.userAgent),mf=/MSIE \d/.test(navigator.userAgent),nf=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),B=mf||nf,C=B&&(mf?document.documentMode||6:nf[1]),J=/WebKit\//.test(navigator.userAgent),jg=J&&/Qt\/\d+\.\d+/.test(navigator.userAgent),kg=/Chrome\//.test(navigator.userAgent),ba=/Opera\//.test(navigator.userAgent),te=/Apple Computer/.test(navigator.vendor),lg=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),
173
- Gf=/PhantomJS/.test(navigator.userAgent),Qa=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),ab=Qa||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),W=Qa||/Mac/.test(navigator.platform),mg=/win/i.test(navigator.platform),Ia=ba&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);Ia&&(Ia=Number(Ia[1]));Ia&&15<=Ia&&(ba=!1,J=!0);var of=W&&(jg||ba&&(null==Ia||12.11>Ia)),id=wa||B&&9<=C,Ge=!1,ra=!1;Fc.prototype=V({update:function(a){var b=
174
- a.scrollWidth>a.clientWidth+1,c=a.scrollHeight>a.clientHeight+1,d=a.nativeBarWidth;c?(this.vert.style.display="block",this.vert.style.bottom=b?d+"px":"0",this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+(a.viewHeight-(b?d:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0");b?(this.horiz.style.display="block",this.horiz.style.right=c?d+"px":"0",this.horiz.style.left=a.barLeft+"px",this.horiz.firstChild.style.width=a.scrollWidth-a.clientWidth+(a.viewWidth-
175
- a.barLeft-(c?d:0))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0");!this.checkedOverlay&&0<a.clientHeight&&(0==d&&this.overlayHack(),this.checkedOverlay=!0);return{right:c?d:0,bottom:b?d:0}},setScrollLeft:function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a)},setScrollTop:function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a)},overlayHack:function(){this.horiz.style.minHeight=this.vert.style.minWidth=W&&!lg?"12px":"18px";var a=this,b=function(b){(b.target||
176
- b.srcElement)!=a.vert&&(b.target||b.srcElement)!=a.horiz&&G(a.cm,pe)(b)};v(this.vert,"mousedown",b);v(this.horiz,"mousedown",b)},clear:function(){var a=this.horiz.parentNode;a.removeChild(this.horiz);a.removeChild(this.vert)}},Fc.prototype);Gc.prototype=V({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},Gc.prototype);q.scrollbarModel={"native":Fc,"null":Gc};Mb.prototype.signal=function(a,b){S(a,b)&&this.events.push(arguments)};Mb.prototype.finish=
177
- function(){for(var a=0;a<this.events.length;a++)K.apply(null,this.events[a])};var r=q.Pos=function(a,b){if(!(this instanceof r))return new r(a,b);this.line=a;this.ch=b},y=q.cmpPos=function(a,b){return a.line-b.line||a.ch-b.ch},X=null;Tc.prototype=V({init:function(a){function b(a){if(d.somethingSelected())X=d.getSelections(),c.inaccurateSelection&&(c.prevInput="",c.inaccurateSelection=!1,f.value=X.join("\n"),Za(f));else if(d.options.lineWiseCopyCut){var b=Vd(d);X=b.text;"cut"==a.type?d.setSelections(b.ranges,
178
- null,ha):(c.prevInput="",f.value=b.text.join("\n"),Za(f))}else return;"cut"==a.type&&(d.state.cutIncoming=!0)}var c=this,d=this.cm,e=this.wrapper=Xd(),f=this.textarea=e.firstChild;a.wrapper.insertBefore(e,a.wrapper.firstChild);Qa&&(f.style.width="0px");v(f,"input",function(){B&&9<=C&&c.hasSelection&&(c.hasSelection=null);c.poll()});v(f,"paste",function(){if(J&&!d.state.fakedLastChar&&!(200>new Date-d.state.lastMiddleDown)){var a=f.selectionStart,b=f.selectionEnd;f.value+="$";f.selectionEnd=b;f.selectionStart=
179
- a;d.state.fakedLastChar=!0}d.state.pasteIncoming=!0;c.fastPoll()});v(f,"cut",b);v(f,"copy",b);v(a.scroller,"paste",function(b){oa(a,b)||(d.state.pasteIncoming=!0,c.focus())});v(a.lineSpace,"selectstart",function(b){oa(a,b)||O(b)});v(f,"compositionstart",function(){var a=d.getCursor("from");c.composing={start:a,range:d.markText(a,d.getCursor("to"),{className:"CodeMirror-composing"})}});v(f,"compositionend",function(){c.composing&&(c.poll(),c.composing.range.clear(),c.composing=null)})},prepareSelection:function(){var a=
180
- this.cm,b=a.display,c=a.doc,d=he(a);if(a.options.moveInputWithCursor){var a=ma(a,c.sel.primary().head,"div"),c=b.wrapper.getBoundingClientRect(),e=b.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,a.top+e.top-c.top));d.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,a.left+e.left-c.left))}return d},showSelection:function(a){var b=this.cm.display;U(b.cursorDiv,a.cursors);U(b.selectionDiv,a.selection);null!=a.teTop&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=
181
- a.teLeft+"px")},reset:function(a){if(!this.contextMenuPending){var b,c,d=this.cm,e=d.doc;d.somethingSelected()?(this.prevInput="",b=e.sel.primary(),c=(b=Ce&&(100<b.to().line-b.from().line||1E3<(c=d.getSelection()).length))?"-":c||d.getSelection(),this.textarea.value=c,d.state.focused&&Za(this.textarea),B&&9<=C&&(this.hasSelection=c)):a||(this.prevInput=this.textarea.value="",B&&9<=C&&(this.hasSelection=null));this.inaccurateSelection=b}},getField:function(){return this.textarea},supportsTouch:function(){return!1},
182
- focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!ab||fa()!=this.textarea))try{this.textarea.focus()}catch(a){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var a=this;a.pollingFast||a.polling.set(this.cm.options.pollInterval,function(){a.poll();a.cm.state.focused&&a.slowPoll()})},fastPoll:function(){function a(){c.poll()||b?(c.pollingFast=!1,c.slowPoll()):(b=
183
- !0,c.polling.set(60,a))}var b=!1,c=this;c.pollingFast=!0;c.polling.set(20,a)},poll:function(){var a=this.cm,b=this.textarea,c=this.prevInput;if(!a.state.focused||ng(b)&&!c||Rb(a)||a.options.disableInput||a.state.keySeq)return!1;a.state.pasteIncoming&&a.state.fakedLastChar&&(b.value=b.value.substring(0,b.value.length-1),a.state.fakedLastChar=!1);var d=b.value;if(d==c&&!a.somethingSelected())return!1;if(B&&9<=C&&this.hasSelection===d||W&&/[\uf700-\uf7ff]/.test(d))return a.display.input.reset(),!1;if(a.doc.sel==
184
- a.display.selForContextMenu){var e=d.charCodeAt(0);8203!=e||c||(c="​");if(8666==e)return this.reset(),this.cm.execCommand("undo")}for(var f=0,e=Math.min(c.length,d.length);f<e&&c.charCodeAt(f)==d.charCodeAt(f);)++f;var g=this;T(a,function(){Sc(a,d.slice(f),c.length-f,null,g.composing?"*compose":null);1E3<d.length||-1<d.indexOf("\n")?b.value=g.prevInput="":g.prevInput=d;g.composing&&(g.composing.range.clear(),g.composing.range=a.markText(g.composing.start,a.getCursor("to"),{className:"CodeMirror-composing"}))});
185
- return!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){B&&9<=C&&(this.hasSelection=null);this.fastPoll()},onContextMenu:function(a){function b(){if(null!=g.selectionStart){var a=e.somethingSelected(),b="​"+(a?g.value:"");g.value="⇚";g.value=b;d.prevInput=a?"":"​";g.selectionStart=1;g.selectionEnd=b.length;f.selForContextMenu=e.doc.sel}}function c(){d.contextMenuPending=!1;d.wrapper.style.position="relative";g.style.cssText=l;B&&9>C&&f.scrollbars.setScrollTop(f.scroller.scrollTop=
186
- k);if(null!=g.selectionStart){(!B||B&&9>C)&&b();var a=0,c=function(){f.selForContextMenu==e.doc.sel&&0==g.selectionStart&&0<g.selectionEnd&&"​"==d.prevInput?G(e,ic.selectAll)(e):10>a++?f.detectingSelectAll=setTimeout(c,500):f.input.reset()};f.detectingSelectAll=setTimeout(c,200)}}var d=this,e=d.cm,f=e.display,g=d.textarea,h=Ua(e,a),k=f.scroller.scrollTop;if(h&&!ba){e.options.resetSelectionOnContextMenu&&-1==e.doc.sel.contains(h)&&G(e,H)(e.doc,ga(h),ha);var l=g.style.cssText;d.wrapper.style.position=
187
- "absolute";g.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(a.clientY-5)+"px; left: "+(a.clientX-5)+"px; z-index: 1000; background: "+(B?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity\x3d5);";if(J)var m=window.scrollY;f.input.focus();J&&window.scrollTo(null,m);f.input.reset();e.somethingSelected()||(g.value=d.prevInput=" ");d.contextMenuPending=!0;f.selForContextMenu=e.doc.sel;clearTimeout(f.detectingSelectAll);
188
- B&&9<=C&&b();if(id){jd(a);var p=function(){ka(window,"mouseup",p);setTimeout(c,20)};v(window,"mouseup",p)}else setTimeout(c,50)}},setUneditable:Eb,needsContentAttribute:!1},Tc.prototype);Uc.prototype=V({init:function(a){function b(a){if(d.somethingSelected())X=d.getSelections(),"cut"==a.type&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var b=Vd(d);X=b.text;"cut"==a.type&&d.operation(function(){d.setSelections(b.ranges,0,ha);d.replaceSelection("",null,"cut")})}else return;
189
- if(a.clipboardData&&!Qa)a.preventDefault(),a.clipboardData.clearData(),a.clipboardData.setData("text/plain",X.join("\n"));else{var c=Xd();a=c.firstChild;d.display.lineSpace.insertBefore(c,d.display.lineSpace.firstChild);a.value=X.join("\n");var h=document.activeElement;Za(a);setTimeout(function(){d.display.lineSpace.removeChild(c);h.focus()},50)}}var c=this,d=c.cm;a=c.div=a.lineDiv;a.contentEditable="true";Wd(a);v(a,"paste",function(a){var b=a.clipboardData&&a.clipboardData.getData("text/plain");
190
- b&&(a.preventDefault(),d.replaceSelection(b,null,"paste"))});v(a,"compositionstart",function(a){a=a.data;c.composing={sel:d.doc.sel,data:a,startData:a};if(a){var b=d.doc.sel.primary(),g=d.getLine(b.head.line).indexOf(a,Math.max(0,b.head.ch-a.length));-1<g&&g<=b.head.ch&&(c.composing.sel=ga(r(b.head.line,g),r(b.head.line,g+a.length)))}});v(a,"compositionupdate",function(a){c.composing.data=a.data});v(a,"compositionend",function(a){var b=c.composing;b&&(a.data==b.startData||/\u200b/.test(a.data)||(b.data=
191
- a.data),setTimeout(function(){b.handled||c.applyComposition(b);c.composing==b&&(c.composing=null)},50))});v(a,"touchstart",function(){c.forceCompositionEnd()});v(a,"input",function(){c.composing||c.pollContent()||T(c.cm,function(){Q(d)})});v(a,"copy",b);v(a,"cut",b)},prepareSelection:function(){var a=he(this.cm,!1);a.focus=this.cm.state.focused;return a},showSelection:function(a){a&&this.cm.display.view.length&&(a.focus&&this.showPrimarySelection(),this.showMultipleSelections(a))},showPrimarySelection:function(){var a=
192
- window.getSelection(),b=this.cm.doc.sel.primary(),c=Tb(this.cm,a.anchorNode,a.anchorOffset),d=Tb(this.cm,a.focusNode,a.focusOffset);if(!c||c.bad||!d||d.bad||0!=y(Qb(c,d),b.from())||0!=y(Pb(c,d),b.to()))if(c=Yd(this.cm,b.from()),d=Yd(this.cm,b.to()),c||d){var e=this.cm.display.view,b=a.rangeCount&&a.getRangeAt(0);c?d||(d=e[e.length-1].measure,d=d.maps?d.maps[d.maps.length-1]:d.map,d={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}):c={node:e[0].measure.map[2],offset:0};try{var f=Ea(c.node,c.offset,
193
- d.offset,d.node)}catch(g){}f&&(a.removeAllRanges(),a.addRange(f),b&&null==a.anchorNode?a.addRange(b):wa&&this.startGracePeriod());this.rememberSelection()}},startGracePeriod:function(){var a=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){a.gracePeriod=!1;a.selectionChanged()&&a.cm.operation(function(){a.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(a){U(this.cm.display.cursorDiv,a.cursors);U(this.cm.display.selectionDiv,a.selection)},rememberSelection:function(){var a=
194
- window.getSelection();this.lastAnchorNode=a.anchorNode;this.lastAnchorOffset=a.anchorOffset;this.lastFocusNode=a.focusNode;this.lastFocusOffset=a.focusOffset},selectionInEditor:function(){var a=window.getSelection();if(!a.rangeCount)return!1;a=a.getRangeAt(0).commonAncestorContainer;return Wc(this.div,a)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function a(){b.cm.state.focused&&
195
- (b.pollSelection(),b.polling.set(b.cm.options.pollInterval,a))}var b=this;this.selectionInEditor()?this.pollSelection():T(this.cm,function(){b.cm.curOp.selectionChanged=!0});this.polling.set(this.cm.options.pollInterval,a)},selectionChanged:function(){var a=window.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var a=
196
- window.getSelection(),b=this.cm;this.rememberSelection();var c=Tb(b,a.anchorNode,a.anchorOffset),d=Tb(b,a.focusNode,a.focusOffset);c&&d&&T(b,function(){H(b.doc,ga(c,d),ha);if(c.bad||d.bad)b.curOp.selectionChanged=!0})}},pollContent:function(){var a=this.cm,b=a.display,c=a.doc.sel.primary(),d=c.from(),c=c.to();if(d.line<b.viewFrom||c.line>b.viewTo-1)return!1;var e;d.line==b.viewFrom||0==(e=Ca(a,d.line))?(d=F(b.view[0].line),e=b.view[0].node):(d=F(b.view[e].line),e=b.view[e-1].node.nextSibling);var f=
197
- Ca(a,c.line);f==b.view.length-1?(c=b.viewTo-1,b=b.view[f].node):(c=F(b.view[f+1].line)-1,b=b.view[f+1].node.previousSibling);b=sa(xf(a,e,b,d,c));for(e=Da(a.doc,r(d,0),r(c,u(a.doc,c).text.length));1<b.length&&1<e.length;)if(A(b)==A(e))b.pop(),e.pop(),c--;else if(b[0]==e[0])b.shift(),e.shift(),d++;else break;for(var g=0,f=0,h=b[0],k=e[0],l=Math.min(h.length,k.length);g<l&&h.charCodeAt(g)==k.charCodeAt(g);)++g;h=A(b);k=A(e);for(l=Math.min(h.length-(1==b.length?g:0),k.length-(1==e.length?g:0));f<l&&h.charCodeAt(h.length-
198
- f-1)==k.charCodeAt(k.length-f-1);)++f;b[b.length-1]=h.slice(0,h.length-f);b[0]=b[0].slice(g);d=r(d,g);c=r(c,e.length?A(e).length-f:0);if(1<b.length||b[0]||y(d,c))return wb(a.doc,b,d,c,"+input"),!0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(a){a.data&&
199
- a.data!=a.startData&&G(this.cm,Sc)(this.cm,a.data,0,a.sel)},setUneditable:function(a){a.setAttribute("contenteditable","false")},onKeyPress:function(a){a.preventDefault();G(this.cm,Sc)(this.cm,String.fromCharCode(null==a.charCode?a.keyCode:a.charCode),0)},onContextMenu:Eb,resetPosition:Eb,needsContentAttribute:!0},Uc.prototype);q.inputStyles={textarea:Tc,contenteditable:Uc};la.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(a){if(a==this)return!0;if(a.primIndex!=
200
- this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var c=this.ranges[b],d=a.ranges[b];if(0!=y(c.anchor,d.anchor)||0!=y(c.head,d.head))return!1}return!0},deepCopy:function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new z(Rc(this.ranges[b].anchor),Rc(this.ranges[b].head));return new la(a,this.primIndex)},somethingSelected:function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},contains:function(a,b){b||(b=a);
201
- for(var c=0;c<this.ranges.length;c++){var d=this.ranges[c];if(0<=y(b,d.from())&&0>=y(a,d.to()))return c}return-1}};z.prototype={from:function(){return Qb(this.anchor,this.head)},to:function(){return Pb(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var ad={left:0,right:0,top:0,bottom:0},Fa,Ta=null,Ff=0,fc,ec,se=0,gc=0,R=null;B?R=-.53:wa?R=15:kg?R=-.7:te&&(R=-1/3);var ze=function(a){var b=a.wheelDeltaX,c=a.wheelDeltaY;null==b&&a.detail&&
202
- a.axis==a.HORIZONTAL_AXIS&&(b=a.detail);null==c&&a.detail&&a.axis==a.VERTICAL_AXIS?c=a.detail:null==c&&(c=a.wheelDelta);return{x:b,y:c}};q.wheelEventPixels=function(a){a=ze(a);a.x*=R;a.y*=R;return a};var Qf=new bb,md=null,ta=q.changeEnd=function(a){return a.text?r(a.from.line+a.text.length-1,A(a.text).length+(1==a.text.length?a.from.ch:0)):a.to};q.prototype={constructor:q,focus:function(){window.focus();this.display.input.focus()},setOption:function(a,b){var c=this.options,d=c[a];if(c[a]!=b||"mode"==
203
- a)c[a]=b,Ka.hasOwnProperty(a)&&G(this,Ka[a])(this,b,d)},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,b){this.state.keyMaps[b?"push":"unshift"](pc(a))},removeKeyMap:function(a){for(var b=this.state.keyMaps,c=0;c<b.length;++c)if(b[c]==a||b[c].name==a)return b.splice(c,1),!0},addOverlay:M(function(a,b){var c=a.token?a:q.getMode(this.options,a);if(c.startState)throw Error("Overlays may not be stateful.");this.state.overlays.push({mode:c,modeSpec:a,
204
- opaque:b&&b.opaque});this.state.modeGen++;Q(this)}),removeOverlay:M(function(a){for(var b=this.state.overlays,c=0;c<b.length;++c){var d=b[c].modeSpec;if(d==a||"string"==typeof a&&d.name==a){b.splice(c,1);this.state.modeGen++;Q(this);break}}}),indentLine:M(function(a,b,c){"string"!=typeof b&&"number"!=typeof b&&(b=null==b?this.options.smartIndent?"smart":"prev":b?"add":"subtract");qb(this.doc,a)&&pb(this,a,b,c)}),indentSelection:M(function(a){for(var b=this.doc.sel.ranges,c=-1,d=0;d<b.length;d++){var e=
205
- b[d];if(e.empty())e.head.line>c&&(pb(this,e.head.line,a,!0),c=e.head.line,d==this.doc.sel.primIndex&&Pa(this));else{for(var f=e.from(),e=e.to(),g=Math.max(c,f.line),c=Math.min(this.lastLine(),e.line-(e.ch?0:1))+1,e=g;e<c;++e)pb(this,e,a);e=this.doc.sel.ranges;0==f.ch&&b.length==e.length&&0<e[d].from().ch&&Xc(this.doc,d,new z(f,e[d].to()),ha)}}}),getTokenAt:function(a,b){return Ye(this,a,b)},getLineTokens:function(a,b){return Ye(this,r(a),b,!0)},getTokenTypeAt:function(a){a=w(this.doc,a);var b=$e(this,
206
- u(this.doc,a.line)),c=0,d=(b.length-1)/2;a=a.ch;if(0==a)b=b[2];else for(;;){var e=c+d>>1;if((e?b[2*e-1]:0)>=a)d=e;else if(b[2*e+1]<a)c=e+1;else{b=b[2*e+2];break}}c=b?b.indexOf("cm-overlay "):-1;return 0>c?b:0==c?null:b.slice(0,c-1)},getModeAt:function(a){var b=this.doc.mode;return b.innerMode?q.innerMode(b,this.getTokenAt(a).state).mode:b},getHelper:function(a,b){return this.getHelpers(a,b)[0]},getHelpers:function(a,b){var c=[];if(!$a.hasOwnProperty(b))return c;var d=$a[b],e=this.getModeAt(a);if("string"==
207
- typeof e[b])d[e[b]]&&c.push(d[e[b]]);else if(e[b])for(var f=0;f<e[b].length;f++){var g=d[e[b][f]];g&&c.push(g)}else e.helperType&&d[e.helperType]?c.push(d[e.helperType]):d[e.name]&&c.push(d[e.name]);for(f=0;f<d._global.length;f++)g=d._global[f],g.pred(e,this)&&-1==D(c,g.val)&&c.push(g.val);return c},getStateAfter:function(a,b){var c=this.doc;a=Math.max(c.first,Math.min(null==a?c.first+c.size-1:a,c.first+c.size-1));return sb(this,a+1,b)},cursorCoords:function(a,b){var c;c=this.doc.sel.primary();c=
208
- null==a?c.head:"object"==typeof a?w(this.doc,a):a?c.from():c.to();return ma(this,c,b||"page")},charCoords:function(a,b){return Yb(this,w(this.doc,a),b||"page")},coordsChar:function(a,b){a=ne(this,a,b||"page");return fd(this,a.left,a.top)},lineAtHeight:function(a,b){a=ne(this,{top:a,left:0},b||"page").top;return Ba(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,b){var c=!1,d;"number"==typeof a?(d=this.doc.first+this.doc.size-1,a<this.doc.first?a=this.doc.first:a>d&&(a=d,c=!0),d=u(this.doc,
209
- a)):d=a;return cd(this,d,{top:0,left:0},b||"page").top+(c?this.doc.height-ea(d):0)},defaultTextHeight:function(){return xa(this.display)},defaultCharWidth:function(){return gb(this.display)},setGutterMarker:M(function(a,b,c){return nc(this.doc,a,"gutter",function(a){var e=a.gutterMarkers||(a.gutterMarkers={});e[b]=c;!c&&hf(e)&&(a.gutterMarkers=null);return!0})}),clearGutter:M(function(a){var b=this,c=b.doc,d=c.first;c.iter(function(c){c.gutterMarkers&&c.gutterMarkers[a]&&(c.gutterMarkers[a]=null,
210
- na(b,d,"gutter"),hf(c.gutterMarkers)&&(c.gutterMarkers=null));++d})}),lineInfo:function(a){if("number"==typeof a){if(!qb(this.doc,a))return null;var b=a;a=u(this.doc,a);if(!a)return null}else if(b=F(a),null==b)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,b,c,d,e){var f=this.display;a=
211
- ma(this,w(this.doc,a));var g=a.bottom,h=a.left;b.style.position="absolute";b.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(b);f.sizer.appendChild(b);if("over"==d)g=a.top;else if("above"==d||"near"==d){var k=Math.max(f.wrapper.clientHeight,this.doc.height),l=Math.max(f.sizer.clientWidth,f.lineSpace.clientWidth);("above"==d||a.bottom+b.offsetHeight>k)&&a.top>b.offsetHeight?g=a.top-b.offsetHeight:a.bottom+b.offsetHeight<=k&&(g=a.bottom);h+b.offsetWidth>l&&(h=l-b.offsetWidth)}b.style.top=
212
- g+"px";b.style.left=b.style.right="";"right"==e?(h=f.sizer.clientWidth-b.offsetWidth,b.style.right="0px"):("left"==e?h=0:"middle"==e&&(h=(f.sizer.clientWidth-b.offsetWidth)/2),b.style.left=h+"px");c&&(a=cc(this,h,g,h+b.offsetWidth,g+b.offsetHeight),null!=a.scrollTop&&lb(this,a.scrollTop),null!=a.scrollLeft&&Ma(this,a.scrollLeft))},triggerOnKeyDown:M(ve),triggerOnKeyPress:M(we),triggerOnKeyUp:ue,execCommand:function(a){if(ic.hasOwnProperty(a))return ic[a](this)},findPosH:function(a,b,c,d){var e=1;
213
- 0>b&&(e=-1,b=-b);var f=0;for(a=w(this.doc,a);f<b&&(a=rd(this.doc,a,e,c,d),!a.hitSide);++f);return a},moveH:M(function(a,b){var c=this;c.extendSelectionsBy(function(d){return c.display.shift||c.doc.extend||d.empty()?rd(c.doc,d.head,a,b,c.options.rtlMoveVisually):0>a?d.from():d.to()},Gb)}),deleteH:M(function(a,b){var c=this.doc;this.doc.sel.somethingSelected()?c.replaceSelection("",null,"+delete"):Va(this,function(d){var e=rd(c,d.head,a,b,!1);return 0>a?{from:e,to:d.head}:{from:d.head,to:e}})}),findPosV:function(a,
214
- b,c,d){var e=1;0>b&&(e=-1,b=-b);var f=0;for(a=w(this.doc,a);f<b&&(a=ma(this,a,"div"),null==d?d=a.left:a.left=d,a=Pe(this,a,e,c),!a.hitSide);++f);return a},moveV:M(function(a,b){var c=this,d=this.doc,e=[],f=!c.display.shift&&!d.extend&&d.sel.somethingSelected();d.extendSelectionsBy(function(g){if(f)return 0>a?g.from():g.to();var k=ma(c,g.head,"div");null!=g.goalColumn&&(k.left=g.goalColumn);e.push(k.left);var l=Pe(c,k,a,b);"page"==b&&g==d.sel.primary()&&lc(c,null,Yb(c,l,"div").top-k.top);return l},
215
- Gb);if(e.length)for(var g=0;g<d.sel.ranges.length;g++)d.sel.ranges[g].goalColumn=e[g]}),findWordAt:function(a){var b=u(this.doc,a.line).text,c=a.ch,d=a.ch;if(b){var e=this.getHelper(a,"wordChars");(0>a.xRel||d==b.length)&&c?--c:++d;for(var f=b.charAt(c),f=oc(f,e)?function(a){return oc(a,e)}:/\s/.test(f)?function(a){return/\s/.test(a)}:function(a){return!/\s/.test(a)&&!oc(a)};0<c&&f(b.charAt(c-1));)--c;for(;d<b.length&&f(b.charAt(d));)++d}return new z(r(a.line,c),r(a.line,d))},toggleOverwrite:function(a){if(null==
216
- a||a!=this.state.overwrite)(this.state.overwrite=!this.state.overwrite)?mb(this.display.cursorDiv,"CodeMirror-overwrite"):kb(this.display.cursorDiv,"CodeMirror-overwrite"),K(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==fa()},scrollTo:M(function(a,b){null==a&&null==b||mc(this);null!=a&&(this.curOp.scrollLeft=a);null!=b&&(this.curOp.scrollTop=b)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,
217
- height:a.scrollHeight-da(this)-this.display.barHeight,width:a.scrollWidth-da(this)-this.display.barWidth,clientHeight:Nc(this),clientWidth:pa(this)}},scrollIntoView:M(function(a,b){null==a?(a={from:this.doc.sel.primary().head,to:null},null==b&&(b=this.options.cursorScrollMargin)):"number"==typeof a?a={from:r(a,0),to:null}:null==a.from&&(a={from:a,to:null});a.to||(a.to=a.from);a.margin=b||0;if(null!=a.from.line)mc(this),this.curOp.scrollToPos=a;else{var c=cc(this,Math.min(a.from.left,a.to.left),Math.min(a.from.top,
218
- a.to.top)-a.margin,Math.max(a.from.right,a.to.right),Math.max(a.from.bottom,a.to.bottom)+a.margin);this.scrollTo(c.scrollLeft,c.scrollTop)}}),setSize:M(function(a,b){function c(a){return"number"==typeof a||/^\d+$/.test(String(a))?a+"px":a}var d=this;null!=a&&(d.display.wrapper.style.width=c(a));null!=b&&(d.display.wrapper.style.height=c(b));d.options.lineWrapping&&me(this);var e=d.display.viewFrom;d.doc.iter(e,d.display.viewTo,function(a){if(a.widgets)for(var b=0;b<a.widgets.length;b++)if(a.widgets[b].noHScroll){na(d,
219
- e,"widget");break}++e});d.curOp.forceUpdate=!0;K(d,"refresh",this)}),operation:function(a){return T(this,a)},refresh:M(function(){var a=this.display.cachedTextHeight;Q(this);this.curOp.forceUpdate=!0;hb(this);this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop);Cc(this);(null==a||.5<Math.abs(a-xa(this.display)))&&Ac(this);K(this,"refresh",this)}),swapDoc:M(function(a){var b=this.doc;b.cm=null;Ed(this,a);hb(this);this.display.input.reset();this.scrollTo(a.scrollLeft,a.scrollTop);this.curOp.forceScroll=
220
- !0;L(this,"swapDoc",this,b);return b}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};Ya(q);var qf=q.defaults={},Ka=q.optionHandlers={},Fd=q.Init={toString:function(){return"CodeMirror.Init"}};x("value","",function(a,b){a.setValue(b)},!0);x("mode",null,function(a,b){a.doc.modeOption=b;zc(a)},!0);x("indentUnit",
221
- 2,zc,!0);x("indentWithTabs",!1);x("smartIndent",!0);x("tabSize",4,function(a){eb(a);hb(a);Q(a)},!0);x("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(a,b,c){a.state.specialChars=new RegExp(b.source+(b.test("\t")?"":"|\t"),"g");c!=q.Init&&a.refresh()});x("specialCharPlaceholder",function(a){var b=t("span","•","cm-invalidchar");b.title="\\u"+a.charCodeAt(0).toString(16);b.setAttribute("aria-label",b.title);return b},function(a){a.refresh()},!0);x("electricChars",!0);
222
- x("inputStyle",ab?"contenteditable":"textarea",function(){throw Error("inputStyle can not (yet) be changed in a running editor");},!0);x("rtlMoveVisually",!mg);x("wholeLineUpdateBefore",!0);x("theme","default",function(a){Bd(a);ib(a)},!0);x("keyMap","default",function(a,b,c){b=pc(b);(c=c!=q.Init&&pc(c))&&c.detach&&c.detach(a,b);b.attach&&b.attach(a,c||null)});x("extraKeys",null);x("lineWrapping",!1,function(a){a.options.lineWrapping?(mb(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth=
223
- "",a.display.sizerWidth=null):(kb(a.display.wrapper,"CodeMirror-wrap"),Dc(a));Ac(a);Q(a);hb(a);setTimeout(function(){Na(a)},100)},!0);x("gutters",[],function(a){wc(a.options);ib(a)},!0);x("fixedGutter",!0,function(a,b){a.display.gutters.style.left=b?Ic(a.display)+"px":"0";a.refresh()},!0);x("coverGutterNextToScrollbar",!1,function(a){Na(a)},!0);x("scrollbarStyle","native",function(a){Cd(a);Na(a);a.display.scrollbars.setScrollTop(a.doc.scrollTop);a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},
224
- !0);x("lineNumbers",!1,function(a){wc(a.options);ib(a)},!0);x("firstLineNumber",1,ib,!0);x("lineNumberFormatter",function(a){return a},ib,!0);x("showCursorWhenSelecting",!1,nb,!0);x("resetSelectionOnContextMenu",!0);x("lineWiseCopyCut",!0);x("readOnly",!1,function(a,b){"nocursor"==b?(db(a),a.display.input.blur(),a.display.disabled=!0):(a.display.disabled=!1,b||a.display.input.reset())});x("disableInput",!1,function(a,b){b||a.display.input.reset()},!0);x("dragDrop",!0,function(a,b,c){!b!=!(c&&c!=q.Init)&&
225
- (c=a.display.dragFunctions,b=b?v:ka,b(a.display.scroller,"dragstart",c.start),b(a.display.scroller,"dragenter",c.simple),b(a.display.scroller,"dragover",c.simple),b(a.display.scroller,"drop",c.drop))});x("cursorBlinkRate",530);x("cursorScrollMargin",0);x("cursorHeight",1,nb,!0);x("singleCursorHeightPerLine",!0,nb,!0);x("workTime",100);x("workDelay",100);x("flattenSpans",!0,eb,!0);x("addModeClass",!1,eb,!0);x("pollInterval",100);x("undoDepth",200,function(a,b){a.doc.history.undoDepth=b});x("historyEventDelay",
226
- 1250);x("viewportMargin",10,function(a){a.refresh()},!0);x("maxHighlightLength",1E4,eb,!0);x("moveInputWithCursor",!0,function(a,b){b||a.display.input.resetPosition()});x("tabindex",null,function(a,b){a.display.input.getField().tabIndex=b||""});x("autofocus",null);var pf=q.modes={},Hb=q.mimeModes={};q.defineMode=function(a,b){q.defaults.mode||"null"==a||(q.defaults.mode=a);2<arguments.length&&(b.dependencies=Array.prototype.slice.call(arguments,2));pf[a]=b};q.defineMIME=function(a,b){Hb[a]=b};q.resolveMode=
227
- function(a){if("string"==typeof a&&Hb.hasOwnProperty(a))a=Hb[a];else if(a&&"string"==typeof a.name&&Hb.hasOwnProperty(a.name)){var b=Hb[a.name];"string"==typeof b&&(b={name:b});a=ff(b,a);a.name=b.name}else if("string"==typeof a&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return q.resolveMode("application/xml");return"string"==typeof a?{name:a}:a||{name:"null"}};q.getMode=function(a,b){b=q.resolveMode(b);var c=pf[b.name];if(!c)return q.getMode(a,"text/plain");c=c(a,b);if(Ib.hasOwnProperty(b.name)){var d=Ib[b.name],
228
- e;for(e in d)d.hasOwnProperty(e)&&(c.hasOwnProperty(e)&&(c["_"+e]=c[e]),c[e]=d[e])}c.name=b.name;b.helperType&&(c.helperType=b.helperType);if(b.modeProps)for(e in b.modeProps)c[e]=b.modeProps[e];return c};q.defineMode("null",function(){return{token:function(a){a.skipToEnd()}}});q.defineMIME("text/plain","null");var Ib=q.modeExtensions={};q.extendMode=function(a,b){var c=Ib.hasOwnProperty(a)?Ib[a]:Ib[a]={};V(b,c)};q.defineExtension=function(a,b){q.prototype[a]=b};q.defineDocExtension=function(a,b){P.prototype[a]=
229
- b};q.defineOption=x;var yc=[];q.defineInitHook=function(a){yc.push(a)};var $a=q.helpers={};q.registerHelper=function(a,b,c){$a.hasOwnProperty(a)||($a[a]=q[a]={_global:[]});$a[a][b]=c};q.registerGlobalHelper=function(a,b,c,d){q.registerHelper(a,b,d);$a[a]._global.push({pred:c,val:d})};var Sa=q.copyState=function(a,b){if(!0===b)return b;if(a.copyState)return a.copyState(b);var c={},d;for(d in b){var e=b[d];e instanceof Array&&(e=e.concat([]));c[d]=e}return c},Df=q.startState=function(a,b,c){return a.startState?
230
- a.startState(b,c):!0};q.innerMode=function(a,b){for(;a.innerMode;){var c=a.innerMode(b);if(!c||c.mode==a)break;b=c.state;a=c.mode}return c||{mode:a,state:b}};var ic=q.commands={selectAll:function(a){a.setSelection(r(a.firstLine(),0),r(a.lastLine()),ha)},singleSelection:function(a){a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ha)},killLine:function(a){Va(a,function(b){if(b.empty()){var c=u(a.doc,b.head.line).text.length;return b.head.ch==c&&b.head.line<a.lastLine()?{from:b.head,to:r(b.head.line+
231
- 1,0)}:{from:b.head,to:r(b.head.line,c)}}return{from:b.from(),to:b.to()}})},deleteLine:function(a){Va(a,function(b){return{from:r(b.from().line,0),to:w(a.doc,r(b.to().line+1,0))}})},delLineLeft:function(a){Va(a,function(a){return{from:r(a.from().line,0),to:a.from()}})},delWrappedLineLeft:function(a){Va(a,function(b){var c=a.charCoords(b.head,"div").top+5;return{from:a.coordsChar({left:0,top:c},"div"),to:b.from()}})},delWrappedLineRight:function(a){Va(a,function(b){var c=a.charCoords(b.head,"div").top+
232
- 5,c=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:c},"div");return{from:b.from(),to:c}})},undo:function(a){a.undo()},redo:function(a){a.redo()},undoSelection:function(a){a.undoSelection()},redoSelection:function(a){a.redoSelection()},goDocStart:function(a){a.extendSelection(r(a.firstLine(),0))},goDocEnd:function(a){a.extendSelection(r(a.lastLine()))},goLineStart:function(a){a.extendSelectionsBy(function(b){return kf(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){a.extendSelectionsBy(function(b){return lf(a,
233
- b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){a.extendSelectionsBy(function(b){b=b.head.line;for(var c,d=u(a.doc,b);c=Aa(d,!1);)d=c.find(1,!0).line,b=null;c=(c=Y(d))?c[0].level%2?ac(d):bc(d):d.text.length;return r(null==b?F(d):b,c)},{origin:"+move",bias:-1})},goLineRight:function(a){a.extendSelectionsBy(function(b){b=a.charCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div")},Gb)},goLineLeft:function(a){a.extendSelectionsBy(function(b){b=
234
- a.charCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:b},"div")},Gb)},goLineLeftSmart:function(a){a.extendSelectionsBy(function(b){var c=a.charCoords(b.head,"div").top+5,c=a.coordsChar({left:0,top:c},"div");return c.ch<a.getLine(c.line).search(/\S/)?lf(a,b.head):c},Gb)},goLineUp:function(a){a.moveV(-1,"line")},goLineDown:function(a){a.moveV(1,"line")},goPageUp:function(a){a.moveV(-1,"page")},goPageDown:function(a){a.moveV(1,"page")},goCharLeft:function(a){a.moveH(-1,"char")},goCharRight:function(a){a.moveH(1,
235
- "char")},goColumnLeft:function(a){a.moveH(-1,"column")},goColumnRight:function(a){a.moveH(1,"column")},goWordLeft:function(a){a.moveH(-1,"word")},goGroupRight:function(a){a.moveH(1,"group")},goGroupLeft:function(a){a.moveH(-1,"group")},goWordRight:function(a){a.moveH(1,"word")},delCharBefore:function(a){a.deleteH(-1,"char")},delCharAfter:function(a){a.deleteH(1,"char")},delWordBefore:function(a){a.deleteH(-1,"word")},delWordAfter:function(a){a.deleteH(1,"word")},delGroupBefore:function(a){a.deleteH(-1,
236
- "group")},delGroupAfter:function(a){a.deleteH(1,"group")},indentAuto:function(a){a.indentSelection("smart")},indentMore:function(a){a.indentSelection("add")},indentLess:function(a){a.indentSelection("subtract")},insertTab:function(a){a.replaceSelection("\t")},insertSoftTab:function(a){for(var b=[],c=a.listSelections(),d=a.options.tabSize,e=0;e<c.length;e++){var f=c[e].from(),f=aa(a.getLine(f.line),f.ch,d);b.push(Array(d-f%d+1).join(" "))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?
237
- a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){T(a,function(){for(var b=a.listSelections(),c=[],d=0;d<b.length;d++){var e=b[d].head,f=u(a.doc,e.line).text;if(f)if(e.ch==f.length&&(e=new r(e.line,e.ch-1)),0<e.ch)e=new r(e.line,e.ch+1),a.replaceRange(f.charAt(e.ch-1)+f.charAt(e.ch-2),r(e.line,e.ch-2),e,"+transpose");else if(e.line>a.doc.first){var g=u(a.doc,e.line-1).text;g&&a.replaceRange(f.charAt(0)+"\n"+g.charAt(g.length-1),r(e.line-1,g.length-1),r(e.line,1),"+transpose")}c.push(new z(e,
238
- e))}a.setSelections(c)})},newlineAndIndent:function(a){T(a,function(){for(var b=a.listSelections().length,c=0;c<b;c++){var d=a.listSelections()[c];a.replaceRange("\n",d.anchor,d.head,"+input");a.indentLine(d.from().line+1,null,!0);Pa(a)}})},toggleOverwrite:function(a){a.toggleOverwrite()}},ua=q.keyMap={};ua.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore",
239
- "Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};ua.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter",
240
- "Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};ua.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp",
241
- "Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"};ua.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter",
242
- "Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};ua["default"]=W?ua.macDefault:ua.pcDefault;q.normalizeKeyMap=function(a){var b={},c;for(c in a)if(a.hasOwnProperty(c)){var d=
243
- a[c];if(!/^(name|fallthrough|(de|at)tach)$/.test(c)){if("..."!=d)for(var e=ob(c.split(" "),Wf),f=0;f<e.length;f++){var g,h;f==e.length-1?(h=c,g=d):(h=e.slice(0,f+1).join(" "),g="...");var k=b[h];if(!k)b[h]=g;else if(k!=g)throw Error("Inconsistent bindings for "+h);}delete a[c]}}for(var l in b)a[l]=b[l];return a};var xb=q.lookupKey=function(a,b,c,d){b=pc(b);var e=b.call?b.call(a,d):b[a];if(!1===e)return"nothing";if("..."===e)return"multi";if(null!=e&&c(e))return"handled";if(b.fallthrough){if("[object Array]"!=
244
- Object.prototype.toString.call(b.fallthrough))return xb(a,b.fallthrough,c,d);for(e=0;e<b.fallthrough.length;e++){var f=xb(a,b.fallthrough[e],c,d);if(f)return f}}},Pf=q.isModifierKey=function(a){a="string"==typeof a?a:va[a.keyCode];return"Ctrl"==a||"Alt"==a||"Shift"==a||"Mod"==a},Rf=q.keyName=function(a,b){if(ba&&34==a.keyCode&&a["char"])return!1;var c=va[a.keyCode],d=c;if(null==d||a.altGraphKey)return!1;a.altKey&&"Alt"!=c&&(d="Alt-"+d);(of?a.metaKey:a.ctrlKey)&&"Ctrl"!=c&&(d="Ctrl-"+d);(of?a.ctrlKey:
245
- a.metaKey)&&"Cmd"!=c&&(d="Cmd-"+d);!b&&a.shiftKey&&"Shift"!=c&&(d="Shift-"+d);return d};q.fromTextArea=function(a,b){function c(){a.value=k.getValue()}b=b?V(b):{};b.value=a.value;!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex);!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder);if(null==b.autofocus){var d=fa();b.autofocus=d==a||null!=a.getAttribute("autofocus")&&d==document.body}if(a.form&&(v(a.form,"submit",c),!b.leaveSubmitMethodAlone)){var e=a.form,f=e.submit;try{var g=e.submit=function(){c();
246
- e.submit=f;e.submit();e.submit=g}}catch(h){}}b.finishInit=function(b){b.save=c;b.getTextArea=function(){return a};b.toTextArea=function(){b.toTextArea=isNaN;c();a.parentNode.removeChild(b.getWrapperElement());a.style.display="";a.form&&(ka(a.form,"submit",c),"function"==typeof a.form.submit&&(a.form.submit=f))}};a.style.display="none";var k=q(function(b){a.parentNode.insertBefore(b,a.nextSibling)},b);return k};var tc=q.StringStream=function(a,b){this.pos=this.start=0;this.string=a;this.tabSize=b||
247
- 8;this.lineStart=this.lastColumnPos=this.lastColumnValue=0};tc.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(a){var b=this.string.charAt(this.pos);if("string"==typeof a?b==a:b&&(a.test?a.test(b):a(b)))return++this.pos,b},eatWhile:function(a){for(var b=this.pos;this.eat(a););return this.pos>
248
- b},eatSpace:function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},skipToEnd:function(){this.pos=this.string.length},skipTo:function(a){a=this.string.indexOf(a,this.pos);if(-1<a)return this.pos=a,!0},backUp:function(a){this.pos-=a},column:function(){this.lastColumnPos<this.start&&(this.lastColumnValue=aa(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start);return this.lastColumnValue-(this.lineStart?
249
- aa(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return aa(this.string,null,this.tabSize)-(this.lineStart?aa(this.string,this.lineStart,this.tabSize):0)},match:function(a,b,c){if("string"==typeof a){var d=function(a){return c?a.toLowerCase():a},e=this.string.substr(this.pos,a.length);if(d(e)==d(a))return!1!==b&&(this.pos+=a.length),!0}else{if((a=this.string.slice(this.pos).match(a))&&0<a.index)return null;a&&!1!==b&&(this.pos+=a[0].length);return a}},current:function(){return this.string.slice(this.start,
250
- this.pos)},hideFirstChars:function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}}};var sd=0,Ha=q.TextMarker=function(a,b){this.lines=[];this.type=b;this.doc=a;this.id=++sd};Ya(Ha);Ha.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;b&&Ja(a);if(S(this,"clear")){var c=this.find();c&&L(this,"clear",c.from,c.to)}for(var d=c=null,e=0;e<this.lines.length;++e){var f=this.lines[e],g=zb(f.markedSpans,this);a&&!this.collapsed?na(a,F(f),"text"):a&&(null!=
251
- g.to&&(d=F(f)),null!=g.from&&(c=F(f)));for(var h=f,k=f.markedSpans,l=g,m=void 0,p=0;p<k.length;++p)k[p]!=l&&(m||(m=[])).push(k[p]);h.markedSpans=m;null==g.from&&this.collapsed&&!ya(this.doc,f)&&a&&ca(f,xa(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(e=0;e<this.lines.length;++e)f=ia(this.lines[e]),g=Kb(f),g>a.display.maxLineLength&&(a.display.maxLine=f,a.display.maxLineLength=g,a.display.maxLineChanged=!0);null!=c&&a&&this.collapsed&&Q(a,c,d+1);this.lines.length=0;this.explicitlyCleared=
252
- !0;this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ge(a.doc));a&&L(a,"markerCleared",a,this);b&&La(a);this.parent&&this.parent.clear()}};Ha.prototype.find=function(a,b){null==a&&"bookmark"==this.type&&(a=1);for(var c,d,e=0;e<this.lines.length;++e){var f=this.lines[e],g=zb(f.markedSpans,this);if(null!=g.from&&(c=r(b?f:F(f),g.from),-1==a))return c;if(null!=g.to&&(d=r(b?f:F(f),g.to),1==a))return d}return c&&{from:c,to:d}};Ha.prototype.changed=function(){var a=this.find(-1,!0),b=this,c=this.doc.cm;
253
- a&&c&&T(c,function(){var d=a.line,e=F(a.line);if(e=Vc(c,e))le(e),c.curOp.selectionChanged=c.curOp.forceUpdate=!0;c.curOp.updateMaxLine=!0;ya(b.doc,d)||null==b.height||(e=b.height,b.height=null,(e=ub(b)-e)&&ca(d,d.height+e))})};Ha.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;b.maybeHiddenMarkers&&-1!=D(b.maybeHiddenMarkers,this)||(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)};Ha.prototype.detachLine=function(a){this.lines.splice(D(this.lines,
254
- a),1);!this.lines.length&&this.doc.cm&&(a=this.doc.cm.curOp,(a.maybeHiddenMarkers||(a.maybeHiddenMarkers=[])).push(this))};var sd=0,rc=q.SharedTextMarker=function(a,b){this.markers=a;this.primary=b;for(var c=0;c<a.length;++c)a[c].parent=this};Ya(rc);rc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();L(this,"clear")}};rc.prototype.find=function(a,b){return this.primary.find(a,b)};var sc=q.LineWidget=function(a,
255
- b,c){if(c)for(var d in c)c.hasOwnProperty(d)&&(this[d]=c[d]);this.doc=a;this.node=b};Ya(sc);sc.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,c=this.line,d=F(c);if(null!=d&&b){for(var e=0;e<b.length;++e)b[e]==this&&b.splice(e--,1);b.length||(c.widgets=null);var f=ub(this);ca(c,Math.max(0,c.height-f));a&&T(a,function(){var b=-f;ea(c)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&lc(a,null,b);na(a,d,"widget")})}};sc.prototype.changed=function(){var a=this.height,b=this.doc.cm,c=this.line;
256
- this.height=null;var d=ub(this)-a;d&&(ca(c,c.height+d),b&&T(b,function(){b.curOp.forceUpdate=!0;ea(c)<(b.curOp&&b.curOp.scrollTop||b.doc.scrollTop)&&lc(b,null,d)}))};var Ab=q.Line=function(a,b,c){this.text=a;Ue(this,b);this.height=c?c(this):1};Ya(Ab);Ab.prototype.lineNo=function(){return F(this)};var bg={},ag={};Bb.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var c=a,d=a+b;c<d;++c){var e=this.lines[c];this.height-=e.height;var f=e;f.parent=null;Te(f);L(e,
257
- "delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,c){this.height+=c;this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(a=0;a<b.length;++a)b[a].parent=this},iterN:function(a,b,c){for(b=a+b;a<b;++a)if(c(this.lines[a]))return!0}};Cb.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var c=0;c<this.children.length;++c){var d=this.children[c],e=d.chunkSize();if(a<e){var f=Math.min(b,
258
- e-a),g=d.height;d.removeInner(a,f);this.height-=g-d.height;e==f&&(this.children.splice(c--,1),d.parent=null);if(0==(b-=f))break;a=0}else a-=e}25>this.size-b&&(1<this.children.length||!(this.children[0]instanceof Bb))&&(c=[],this.collapse(c),this.children=[new Bb(c)],this.children[0].parent=this)},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,c){this.size+=b.length;this.height+=c;for(var d=0;d<this.children.length;++d){var e=this.children[d],
259
- f=e.chunkSize();if(a<=f){e.insertInner(a,b,c);if(e.lines&&50<e.lines.length){for(;50<e.lines.length;)a=e.lines.splice(e.lines.length-25,25),a=new Bb(a),e.height-=a.height,this.children.splice(d+1,0,a),a.parent=this;this.maybeSpill()}break}a-=f}},maybeSpill:function(){if(!(10>=this.children.length)){var a=this;do{var b=a.children.splice(a.children.length-5,5),b=new Cb(b);if(a.parent){a.size-=b.size;a.height-=b.height;var c=D(a.parent.children,a);a.parent.children.splice(c+1,0,b)}else c=new Cb(a.children),
260
- c.parent=a,a.children=[c,b],a=c;b.parent=a.parent}while(10<a.children.length);a.parent.maybeSpill()}},iterN:function(a,b,c){for(var d=0;d<this.children.length;++d){var e=this.children[d],f=e.chunkSize();if(a<f){f=Math.min(b,f-a);if(e.iterN(a,f,c))return!0;if(0==(b-=f))break;a=0}else a-=f}}};var og=0,P=q.Doc=function(a,b,c){if(!(this instanceof P))return new P(a,b,c);null==c&&(c=0);Cb.call(this,[new Bb([new Ab("",null)])]);this.first=c;this.scrollTop=this.scrollLeft=0;this.cantEdit=!1;this.cleanGeneration=
261
- 1;this.frontier=c;c=r(c,0);this.sel=ga(c);this.history=new uc(null);this.id=++og;this.modeOption=b;"string"==typeof a&&(a=sa(a));qd(this,{from:c,to:c,text:a});H(this,ga(c),ha)};P.prototype=ff(Cb.prototype,{constructor:P,iter:function(a,b,c){c?this.iterN(a-this.first,b-a,c):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var c=0,d=0;d<b.length;++d)c+=b[d].height;this.insertInner(a-this.first,b,c)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=
262
- xd(this,this.first,this.first+this.size);return!1===a?b:b.join(a||"\n")},setValue:N(function(a){var b=r(this.first,0),c=this.first+this.size-1;Oa(this,{from:b,to:r(c,u(this,c).text.length),text:sa(a),origin:"setValue",full:!0},!0);H(this,ga(b))}),replaceRange:function(a,b,c,d){b=w(this,b);c=c?w(this,c):b;wb(this,a,b,c,d)},getRange:function(a,b,c){a=Da(this,w(this,a),w(this,b));return!1===c?a:a.join(c||"\n")},getLine:function(a){return(a=this.getLineHandle(a))&&a.text},getLineHandle:function(a){if(qb(this,
263
- a))return u(this,a)},getLineNumber:function(a){return F(a)},getLineHandleVisualStart:function(a){"number"==typeof a&&(a=u(this,a));return ia(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return w(this,a)},getCursor:function(a){var b=this.sel.primary();return null==a||"head"==a?b.head:"anchor"==a?b.anchor:"end"==a||"to"==a||!1===a?b.to():b.from()},listSelections:function(){return this.sel.ranges},
264
- somethingSelected:function(){return this.sel.somethingSelected()},setCursor:N(function(a,b,c){a=w(this,"number"==typeof a?r(a,b||0):a);H(this,ga(a,null),c)}),setSelection:N(function(a,b,c){var d=w(this,a);a=w(this,b||a);H(this,ga(d,a),c)}),extendSelection:N(function(a,b,c){Ub(this,w(this,a),b&&w(this,b),c)}),extendSelections:N(function(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=w(this,a[d]);ae(this,c)}),extendSelectionsBy:N(function(a,b){ae(this,ob(this.sel.ranges,a),b)}),setSelections:N(function(a,
265
- b,c){if(a.length){for(var d=0,e=[];d<a.length;d++)e[d]=new z(w(this,a[d].anchor),w(this,a[d].head));null==b&&(b=Math.min(a.length-1,this.sel.primIndex));H(this,Z(e,b),c)}}),addSelection:N(function(a,b,c){var d=this.sel.ranges.slice(0);d.push(new z(w(this,a),w(this,b||a)));H(this,Z(d,d.length-1),c)}),getSelection:function(a){for(var b=this.sel.ranges,c,d=0;d<b.length;d++){var e=Da(this,b[d].from(),b[d].to());c=c?c.concat(e):e}return!1===a?c:c.join(a||"\n")},getSelections:function(a){for(var b=[],c=
266
- this.sel.ranges,d=0;d<c.length;d++){var e=Da(this,c[d].from(),c[d].to());!1!==a&&(e=e.join(a||"\n"));b[d]=e}return b},replaceSelection:function(a,b,c){for(var d=[],e=0;e<this.sel.ranges.length;e++)d[e]=a;this.replaceSelections(d,b,c||"+input")},replaceSelections:N(function(a,b,c){for(var d=[],e=this.sel,f=0;f<e.ranges.length;f++){var g=e.ranges[f];d[f]={from:g.from(),to:g.to(),text:sa(a[f]),origin:c}}if(f=b&&"end"!=b){f=[];c=a=r(this.first,0);for(e=0;e<d.length;e++){var h=d[e],g=Ee(h.from,a,c),k=
267
- Ee(ta(h),a,c);a=h.to;c=k;"around"==b?(h=this.sel.ranges[e],h=0>y(h.head,h.anchor),f[e]=new z(h?k:g,h?g:k)):f[e]=new z(g,g)}f=new la(f,this.sel.primIndex)}b=f;for(f=d.length-1;0<=f;f--)Oa(this,d[f]);b?be(this,b):this.cm&&Pa(this.cm)}),undo:N(function(){kc(this,"undo")}),redo:N(function(){kc(this,"redo")}),undoSelection:N(function(){kc(this,"undo",!0)}),redoSelection:N(function(){kc(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=
268
- this.history,b=0,c=0,d=0;d<a.done.length;d++)a.done[d].ranges||++b;for(d=0;d<a.undone.length;d++)a.undone[d].ranges||++c;return{undo:b,redo:c}},clearHistory:function(){this.history=new uc(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null);return this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},
269
- getHistory:function(){return{done:Xa(this.history.done),undone:Xa(this.history.undone)}},setHistory:function(a){var b=this.history=new uc(this.history.maxGeneration);b.done=Xa(a.done.slice(0),null,!0);b.undone=Xa(a.undone.slice(0),null,!0)},addLineClass:N(function(a,b,c){return nc(this,a,"gutter"==b?"gutter":"class",function(a){var e="text"==b?"textClass":"background"==b?"bgClass":"gutter"==b?"gutterClass":"wrapClass";if(a[e]){if(Fb(c).test(a[e]))return!1;a[e]+=" "+c}else a[e]=c;return!0})}),removeLineClass:N(function(a,
270
- b,c){return nc(this,a,"gutter"==b?"gutter":"class",function(a){var e="text"==b?"textClass":"background"==b?"bgClass":"gutter"==b?"gutterClass":"wrapClass",f=a[e];if(f)if(null==c)a[e]=null;else{var g=f.match(Fb(c));if(!g)return!1;var h=g.index+g[0].length;a[e]=f.slice(0,g.index)+(g.index&&h!=f.length?" ":"")+f.slice(h)||null}else return!1;return!0})}),addLineWidget:N(function(a,b,c){return $f(this,a,b,c)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,c){return Wa(this,w(this,a),w(this,
271
- b),c,"range")},setBookmark:function(a,b){var c={replacedWith:b&&(null==b.nodeType?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};a=w(this,a);return Wa(this,a,a,c,"bookmark")},findMarksAt:function(a){a=w(this,a);var b=[],c=u(this,a.line).markedSpans;if(c)for(var d=0;d<c.length;++d){var e=c[d];(null==e.from||e.from<=a.ch)&&(null==e.to||e.to>=a.ch)&&b.push(e.marker.parent||e.marker)}return b},findMarks:function(a,b,c){a=w(this,a);
272
- b=w(this,b);var d=[],e=a.line;this.iter(a.line,b.line+1,function(f){if(f=f.markedSpans)for(var g=0;g<f.length;g++){var h=f[g];e==a.line&&a.ch>h.to||null==h.from&&e!=a.line||e==b.line&&h.from>b.ch||c&&!c(h.marker)||d.push(h.marker.parent||h.marker)}++e});return d},getAllMarks:function(){var a=[];this.iter(function(b){if(b=b.markedSpans)for(var c=0;c<b.length;++c)null!=b[c].from&&a.push(b[c].marker)});return a},posFromIndex:function(a){var b,c=this.first;this.iter(function(d){d=d.text.length+1;if(d>
273
- a)return b=a,!0;a-=d;++c});return w(this,r(c,b))},indexFromPos:function(a){a=w(this,a);var b=a.ch;if(a.line<this.first||0>a.ch)return 0;this.iter(this.first,a.line,function(a){b+=a.text.length+1});return b},copy:function(a){var b=new P(xd(this,this.first,this.first+this.size),this.modeOption,this.first);b.scrollTop=this.scrollTop;b.scrollLeft=this.scrollLeft;b.sel=this.sel;b.extend=!1;a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory()));return b},linkedDoc:function(a){a||
274
- (a={});var b=this.first,c=this.first+this.size;null!=a.from&&a.from>b&&(b=a.from);null!=a.to&&a.to<c&&(c=a.to);b=new P(xd(this,b,c),a.mode||this.modeOption,b);a.sharedHist&&(b.history=this.history);(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist});b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}];a=Re(this);for(c=0;c<a.length;c++){var d=a[c],e=d.find(),f=b.clipPos(e.from),e=b.clipPos(e.to);y(f,e)&&(f=Wa(b,f,e,d.primary,d.primary.type),d.markers.push(f),f.parent=d)}return b},
275
- unlinkDoc:function(a){a instanceof q&&(a=a.doc);if(this.linked)for(var b=0;b<this.linked.length;++b)if(this.linked[b].doc==a){this.linked.splice(b,1);a.unlinkDoc(this);Yf(Re(this));break}if(a.history==this.history){var c=[a.id];Ga(a,function(a){c.push(a.id)},!0);a.history=new uc(null);a.history.done=Xa(this.history.done,c);a.history.undone=Xa(this.history.undone,c)}},iterLinkedDocs:function(a){Ga(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});P.prototype.eachLine=
276
- P.prototype.iter;var pg=["iter","insert","remove","copy","getEditor"],Jb;for(Jb in P.prototype)P.prototype.hasOwnProperty(Jb)&&0>D(pg,Jb)&&(q.prototype[Jb]=function(a){return function(){return a.apply(this.doc,arguments)}}(P.prototype[Jb]));Ya(P);var O=q.e_preventDefault=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1},qg=q.e_stopPropagation=function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},jd=q.e_stop=function(a){O(a);qg(a)},v=q.on=function(a,b,c){a.addEventListener?
277
- a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):(a=a._handlers||(a._handlers={}),(a[b]||(a[b]=[])).push(c))},ka=q.off=function(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,!1);else if(a.detachEvent)a.detachEvent("on"+b,c);else if(a=a._handlers&&a._handlers[b])for(b=0;b<a.length;++b)if(a[b]==c){a.splice(b,1);break}},K=q.signal=function(a,b){var c=a._handlers&&a._handlers[b];if(c)for(var d=Array.prototype.slice.call(arguments,2),e=0;e<c.length;++e)c[e].apply(null,d)},Db=
278
- null,Hd=30,Ae=q.Pass={toString:function(){return"CodeMirror.Pass"}},ha={scroll:!1},kd={origin:"*mouse"},Gb={origin:"+move"};bb.prototype.set=function(a,b){clearTimeout(this.id);this.id=setTimeout(b,a)};var aa=q.countColumn=function(a,b,c,d,e){null==b&&(b=a.search(/[^\s\u00a0]/),-1==b&&(b=a.length));d=d||0;for(e=e||0;;){var f=a.indexOf("\t",d);if(0>f||f>=b)return e+(b-d);e+=f-d;e+=c-e%c;d=f+1}},vc=[""],Za=function(a){a.select()};Qa?Za=function(a){a.selectionStart=0;a.selectionEnd=a.value.length}:B&&
279
- (Za=function(a){try{a.select()}catch(b){}});var rg=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,gf=q.isWordChar=function(a){return/\w/.test(a)||"€"<a&&(a.toUpperCase()!=a.toLowerCase()||rg.test(a))},ig=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,
280
- Ea;Ea=document.createRange?function(a,b,c,d){var e=document.createRange();e.setEnd(d||a,c);e.setStart(a,b);return e}:function(a,b,c){var d=document.body.createTextRange();try{d.moveToElementText(a.parentNode)}catch(e){return d}d.collapse(!0);d.moveEnd("character",c);d.moveStart("character",b);return d};var Wc=q.contains=function(a,b){3==b.nodeType&&(b=b.parentNode);if(a.contains)return a.contains(b);do if(11==b.nodeType&&(b=b.host),b==a)return!0;while(b=b.parentNode)};B&&11>C&&(fa=function(){try{return document.activeElement}catch(a){return document.body}});
281
- var kb=q.rmClass=function(a,b){var c=a.className,d=Fb(b).exec(c);if(d){var e=c.slice(d.index+d[0].length);a.className=c.slice(0,d.index)+(e?d[1]+e:"")}},mb=q.addClass=function(a,b){var c=a.className;Fb(b).test(c)||(a.className+=(c?" ":"")+b)},Dd=!1,Lf=function(){if(B&&9>C)return!1;var a=t("div");return"draggable"in a||"dragDrop"in a}(),yd,vd,sa=q.splitLines=3!="\n\nb".split(/\n/).length?function(a){for(var b=0,c=[],d=a.length;b<=d;){var e=a.indexOf("\n",b);-1==e&&(e=a.length);var f=a.slice(b,"\r"==
282
- a.charAt(e-1)?e-1:e),g=f.indexOf("\r");-1!=g?(c.push(f.slice(0,g)),b+=g+1):(c.push(f),b=e+1)}return c}:function(a){return a.split(/\r\n?|\n/)},ng=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){try{var b=a.ownerDocument.selection.createRange()}catch(c){}return b&&b.parentElement()==a?0!=b.compareEndPoints("StartToEnd",b):!1},Ce=function(){var a=t("div");if("oncopy"in a)return!0;a.setAttribute("oncopy","return;");return"function"==typeof a.oncopy}(),
283
- bd=null,va={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"\x3d",91:"Mod",92:"Mod",93:"Mod",107:"\x3d",109:"-",127:"Delete",173:"-",186:";",187:"\x3d",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",
284
- 63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};q.keyNames=va;(function(){for(var a=0;10>a;a++)va[a+48]=va[a+96]=String(a);for(a=65;90>=a;a++)va[a]=String.fromCharCode(a);for(a=1;12>=a;a++)va[a+111]=va[a+63235]="F"+a})();var vb,gg=function(){function a(a){return 247>=a?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(a):
285
- 1424<=a&&1524>=a?"R":1536<=a&&1773>=a?"rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm".charAt(a-1536):1774<=a&&2220>=a?"r":8192<=a&&8203>=a?"w":8204==a?"b":"L"}function b(a,b,c){this.level=a;this.from=b;this.to=c}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,e=/[LRr]/,f=/[Lb1n]/,g=/[1n]/;return function(h){if(!c.test(h))return!1;
286
- for(var k=h.length,l=[],m=0,p;m<k;++m)l.push(a(h.charCodeAt(m)));for(var m=0,n="L";m<k;++m)p=l[m],"m"==p?l[m]=n:n=p;m=0;for(n="L";m<k;++m)p=l[m],"1"==p&&"r"==n?l[m]="n":e.test(p)&&(n=p,"r"==p&&(l[m]="R"));m=1;for(n=l[0];m<k-1;++m)p=l[m],"+"==p&&"1"==n&&"1"==l[m+1]?l[m]="1":","!=p||n!=l[m+1]||"1"!=n&&"n"!=n||(l[m]=n),n=p;for(m=0;m<k;++m)if(p=l[m],","==p)l[m]="N";else if("%"==p){for(n=m+1;n<k&&"%"==l[n];++n);var q=m&&"!"==l[m-1]||n<k&&"1"==l[n]?"1":"N";for(p=m;p<n;++p)l[p]=q;m=n-1}m=0;for(n="L";m<k;++m)p=
287
- l[m],"L"==n&&"1"==p?l[m]="L":e.test(p)&&(n=p);for(m=0;m<k;++m)if(d.test(l[m])){for(n=m+1;n<k&&d.test(l[n]);++n);p="L"==(n<k?l[n]:"L");q="L"==(m?l[m-1]:"L")||p?"L":"R";for(p=m;p<n;++p)l[p]=q;m=n-1}for(var n=[],r,m=0;m<k;)if(f.test(l[m])){p=m;for(++m;m<k&&f.test(l[m]);++m);n.push(new b(0,p,m))}else{var t=m,q=n.length;for(++m;m<k&&"L"!=l[m];++m);for(p=t;p<m;)if(g.test(l[p])){t<p&&n.splice(q,0,new b(1,t,p));t=p;for(++p;p<m&&g.test(l[p]);++p);n.splice(q,0,new b(2,t,p));t=p}else++p;t<m&&n.splice(q,0,new b(1,
288
- t,m))}1==n[0].level&&(r=h.match(/^\s+/))&&(n[0].from=r[0].length,n.unshift(new b(0,0,r[0].length)));1==A(n).level&&(r=h.match(/\s+$/))&&(A(n).to-=r[0].length,n.push(new b(0,k-r[0].length,k)));2==n[0].level&&n.unshift(new b(1,n[0].to,n[0].to));n[0].level!=A(n).level&&n.push(new b(n[0].level,k,k));return n}}();q.version="5.2.0";return q});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js DELETED
@@ -1,25 +0,0 @@
1
- (function(p){"object"==typeof exports&&"object"==typeof module?p(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],p):p(CodeMirror)})(function(p){p.defineMode("javascript",function(oa,t){function q(a,c,e){E=a;I=e;return c}function w(a,c){var e=a.next();if('"'==e||"'"==e)return c.tokenize=pa(e),c.tokenize(a,c);if("."==e&&a.match(/^\d+(?:[eE][+\-]?\d+)?/))return q("number","number");if("."==e&&a.match(".."))return q("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(e))return q(e);
2
- if("\x3d"==e&&a.eat("\x3e"))return q("\x3d\x3e","operator");if("0"==e&&a.eat(/x/i))return a.eatWhile(/[\da-f]/i),q("number","number");if(/\d/.test(e))return a.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),q("number","number");if("/"==e){if(a.eat("*"))return c.tokenize=J,J(a,c);if(a.eat("/"))return a.skipToEnd(),q("comment","comment");if("operator"==c.lastType||"keyword c"==c.lastType||"sof"==c.lastType||/^[\[{}\(,;:]$/.test(c.lastType)){a:for(var e=!1,d,b=!1;null!=(d=a.next());){if(!e){if("/"==d&&!b)break a;
3
- "["==d?b=!0:b&&"]"==d&&(b=!1)}e=!e&&"\\"==d}a.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return q("regexp","string-2")}a.eatWhile(K);return q("operator","operator",a.current())}if("`"==e)return c.tokenize=Q,Q(a,c);if("#"==e)return a.skipToEnd(),q("error","error");if(K.test(e))return a.eatWhile(K),q("operator","operator",a.current());if(R.test(e))return a.eatWhile(R),e=a.current(),(d=ba.propertyIsEnumerable(e)&&ba[e])&&"."!=c.lastType?q(d.type,d.style,e):q("variable","variable",e)}function pa(a){return function(c,
4
- e){var d=!1,b;if(L&&"@"==c.peek()&&c.match(qa))return e.tokenize=w,q("jsonld-keyword","meta");for(;null!=(b=c.next())&&(b!=a||d);)d=!d&&"\\"==b;d||(e.tokenize=w);return q("string","string")}}function J(a,c){for(var e=!1,d;d=a.next();){if("/"==d&&e){c.tokenize=w;break}e="*"==d}return q("comment","comment")}function Q(a,c){for(var e=!1,d;null!=(d=a.next());){if(!e&&("`"==d||"$"==d&&a.eat("{"))){c.tokenize=w;break}e=!e&&"\\"==d}return q("quasi","string-2",a.current())}function S(a,c){c.fatArrowAt&&(c.fatArrowAt=
5
- null);var e=a.string.indexOf("\x3d\x3e",a.start);if(!(0>e)){for(var d=0,b=!1,e=e-1;0<=e;--e){var f=a.string.charAt(e),g="([{}])".indexOf(f);if(0<=g&&3>g){if(!d){++e;break}if(0==--d)break}else if(3<=g&&6>g)++d;else if(R.test(f))b=!0;else{if(/["'\/]/.test(f))return;if(b&&!d){++e;break}}}b&&!d&&(c.fatArrowAt=e)}}function ca(a,c,b,d,f,h){this.indented=a;this.column=c;this.type=b;this.prev=f;this.info=h;null!=d&&(this.align=d)}function g(){for(var a=arguments.length-1;0<=a;a--)f.cc.push(arguments[a])}
6
- function b(){g.apply(null,arguments);return!0}function x(a){function c(c){for(;c;c=c.next)if(c.name==a)return!0;return!1}var b=f.state;b.context?(f.marked="def",c(b.localVars)||(b.localVars={name:a,next:b.localVars})):!c(b.globalVars)&&t.globalVars&&(b.globalVars={name:a,next:b.globalVars})}function y(){f.state.context={prev:f.state.context,vars:f.state.localVars};f.state.localVars=ra}function z(){f.state.localVars=f.state.context.vars;f.state.context=f.state.context.prev}function l(a,c){var b=function(){var b=
7
- f.state,e=b.indented;if("stat"==b.lexical.type)e=b.lexical.indented;else for(var h=b.lexical;h&&")"==h.type&&h.align;h=h.prev)e=h.indented;b.lexical=new ca(e,f.stream.column(),a,null,b.lexical,c)};b.lex=!0;return b}function k(){var a=f.state;a.lexical.prev&&(")"==a.lexical.type&&(a.indented=a.lexical.indented),a.lexical=a.lexical.prev)}function m(a){function c(e){return e==a?b():";"==a?g():b(c)}return c}function r(a,c){return"var"==a?b(l("vardef",c.length),T,m(";"),k):"keyword a"==a?b(l("form"),n,
8
- r,k):"keyword b"==a?b(l("form"),r,k):"{"==a?b(l("}"),U,k):";"==a?b():"if"==a?("else"==f.state.lexical.info&&f.state.cc[f.state.cc.length-1]==k&&f.state.cc.pop()(),b(l("form"),n,r,k,da)):"function"==a?b(v):"for"==a?b(l("form"),ea,r,k):"variable"==a?b(l("stat"),sa):"switch"==a?b(l("form"),n,l("}","switch"),m("{"),U,k,k):"case"==a?b(n,m(":")):"default"==a?b(m(":")):"catch"==a?b(l("form"),y,m("("),V,m(")"),r,k,z):"module"==a?b(l("form"),y,ta,z,k):"class"==a?b(l("form"),ua,k):"export"==a?b(l("form"),va,
9
- k):"import"==a?b(l("form"),wa,k):g(l("stat"),n,m(";"),k)}function n(a){return fa(a,!1)}function u(a){return fa(a,!0)}function fa(a,c){if(f.state.fatArrowAt==f.stream.start){var e=c?ga:ha;if("("==a)return b(y,l(")"),F(A,")"),k,m("\x3d\x3e"),e,z);if("variable"==a)return g(y,A,m("\x3d\x3e"),e,z)}e=c?W:M;return xa.hasOwnProperty(a)?b(e):"function"==a?b(v,e):"keyword c"==a?b(c?ia:X):"("==a?b(l(")"),X,N,m(")"),k,e):"operator"==a||"spread"==a?b(c?u:n):"["==a?b(l("]"),ya,k,e):"{"==a?G(za,"}",null,e):"quasi"==
10
- a?g(O,e):b()}function X(a){return a.match(/[;\}\)\],]/)?g():g(n)}function ia(a){return a.match(/[;\}\)\],]/)?g():g(u)}function M(a,c){return","==a?b(n):W(a,c,!1)}function W(a,c,e){var d=0==e?M:W,f=0==e?n:u;if("\x3d\x3e"==a)return b(y,e?ga:ha,z);if("operator"==a)return/\+\+|--/.test(c)?b(d):"?"==c?b(n,m(":"),f):b(f);if("quasi"==a)return g(O,d);if(";"!=a){if("("==a)return G(u,")","call",d);if("."==a)return b(Aa,d);if("["==a)return b(l("]"),X,m("]"),k,d)}}function O(a,c){return"quasi"!=a?g():"${"!=c.slice(c.length-
11
- 2)?b(O):b(n,Ba)}function Ba(a){if("}"==a)return f.marked="string-2",f.state.tokenize=Q,b(O)}function ha(a){S(f.stream,f.state);return g("{"==a?r:n)}function ga(a){S(f.stream,f.state);return g("{"==a?r:u)}function sa(a){return":"==a?b(k,r):g(M,m(";"),k)}function Aa(a){if("variable"==a)return f.marked="property",b()}function za(a,c){if("variable"==a||"keyword"==f.style)return f.marked="property","get"==c||"set"==c?b(Ca):b(H);if("number"==a||"string"==a)return f.marked=L?"property":f.style+" property",
12
- b(H);if("jsonld-keyword"==a)return b(H);if("["==a)return b(n,m("]"),H)}function Ca(a){if("variable"!=a)return g(H);f.marked="property";return b(v)}function H(a){if(":"==a)return b(u);if("("==a)return g(v)}function F(a,c){function e(d){return","==d?(d=f.state.lexical,"call"==d.info&&(d.pos=(d.pos||0)+1),b(a,e)):d==c?b():b(m(c))}return function(d){return d==c?b():g(a,e)}}function G(a,c,e){for(var d=3;d<arguments.length;d++)f.cc.push(arguments[d]);return b(l(c,e),F(a,c),k)}function U(a){return"}"==a?
13
- b():g(r,U)}function ja(a){if(ka&&":"==a)return b(Da)}function Da(a){if("variable"==a)return f.marked="variable-3",b()}function T(){return g(A,ja,Y,Ea)}function A(a,c){if("variable"==a)return x(c),b();if("["==a)return G(A,"]");if("{"==a)return G(Fa,"}")}function Fa(a,c){if("variable"==a&&!f.stream.match(/^\s*:/,!1))return x(c),b(Y);"variable"==a&&(f.marked="property");return b(m(":"),A,Y)}function Y(a,c){if("\x3d"==c)return b(u)}function Ea(a){if(","==a)return b(T)}function da(a,c){if("keyword b"==
14
- a&&"else"==c)return b(l("form","else"),r,k)}function ea(a){if("("==a)return b(l(")"),Ga,m(")"),k)}function Ga(a){return"var"==a?b(T,m(";"),P):";"==a?b(P):"variable"==a?b(Ha):g(n,m(";"),P)}function Ha(a,c){return"in"==c||"of"==c?(f.marked="keyword",b(n)):b(M,P)}function P(a,c){return";"==a?b(la):"in"==c||"of"==c?(f.marked="keyword",b(n)):g(n,m(";"),la)}function la(a){")"!=a&&b(n)}function v(a,c){if("*"==c)return f.marked="keyword",b(v);if("variable"==a)return x(c),b(v);if("("==a)return b(y,l(")"),
15
- F(V,")"),k,r,z)}function V(a){return"spread"==a?b(V):g(A,ja)}function ua(a,c){if("variable"==a)return x(c),b(ma)}function ma(a,c){if("extends"==c)return b(n,ma);if("{"==a)return b(l("}"),B,k)}function B(a,c){if("variable"==a||"keyword"==f.style){if("static"==c)return f.marked="keyword",b(B);f.marked="property";return"get"==c||"set"==c?b(Ia,v,B):b(v,B)}if("*"==c)return f.marked="keyword",b(B);if(";"==a)return b(B);if("}"==a)return b()}function Ia(a){if("variable"!=a)return g();f.marked="property";
16
- return b()}function ta(a,c){if("string"==a)return b(r);if("variable"==a)return x(c),b(Z)}function va(a,c){return"*"==c?(f.marked="keyword",b(Z,m(";"))):"default"==c?(f.marked="keyword",b(n,m(";"))):g(r)}function wa(a){return"string"==a?b():g(aa,Z)}function aa(a,c){if("{"==a)return G(aa,"}");"variable"==a&&x(c);"*"==c&&(f.marked="keyword");return b(Ja)}function Ja(a,c){if("as"==c)return f.marked="keyword",b(aa)}function Z(a,c){if("from"==c)return f.marked="keyword",b(n)}function ya(a){return"]"==a?
17
- b():g(u,Ka)}function Ka(a){return"for"==a?g(N,m("]")):","==a?b(F(ia,"]")):g(F(u,"]"))}function N(a){if("for"==a)return b(ea,N);if("if"==a)return b(n,N)}var C=oa.indentUnit,na=t.statementIndent,L=t.jsonld,D=t.json||L,ka=t.typescript,R=t.wordCharacters||/[\w$\xa1-\uffff]/,ba=function(){function a(a){return{type:a,style:"keyword"}}var c=a("keyword a"),b=a("keyword b"),d=a("keyword c"),f=a("operator"),h={type:"atom",style:"atom"},c={"if":a("if"),"while":c,"with":c,"else":b,"do":b,"try":b,"finally":b,
18
- "return":d,"break":d,"continue":d,"new":d,"delete":d,"throw":d,"debugger":d,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":f,"typeof":f,"instanceof":f,"true":h,"false":h,"null":h,undefined:h,NaN:h,Infinity:h,"this":a("this"),module:a("module"),"class":a("class"),"super":a("atom"),yield:d,"export":a("export"),"import":a("import"),"extends":d};if(ka){var b={type:"variable",style:"variable-3"},
19
- b={"interface":a("interface"),"extends":a("extends"),constructor:a("constructor"),"public":a("public"),"private":a("private"),"protected":a("protected"),"static":a("static"),string:b,number:b,bool:b,any:b},g;for(g in b)c[g]=b[g]}return c}(),K=/[+\-*&%=<>!?|~^]/,qa=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,E,I,xa={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},f={state:null,column:null,marked:null,cc:null},ra={name:"this",
20
- next:{name:"arguments"}};k.lex=!0;return{startState:function(a){a={tokenize:w,lastType:"sof",cc:[],lexical:new ca((a||0)-C,0,"block",!1),localVars:t.localVars,context:t.localVars&&{vars:t.localVars},indented:0};t.globalVars&&"object"==typeof t.globalVars&&(a.globalVars=t.globalVars);return a},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation(),S(a,b));if(b.tokenize!=J&&a.eatSpace())return null;var e=b.tokenize(a,b);if("comment"==E)return e;
21
- b.lastType="operator"!=E||"++"!=I&&"--"!=I?E:"incdec";a:{var d=E,g=I,h=b.cc;f.state=b;f.stream=a;f.marked=null;f.cc=h;f.style=e;b.lexical.hasOwnProperty("align")||(b.lexical.align=!0);for(;;)if((h.length?h.pop():D?n:r)(d,g)){for(;h.length&&h[h.length-1].lex;)h.pop()();if(f.marked){e=f.marked;break a}if(d="variable"==d)b:{for(d=b.localVars;d;d=d.next)if(d.name==g){d=!0;break b}for(h=b.context;h;h=h.prev)for(d=h.vars;d;d=d.next)if(d.name==g){d=!0;break b}d=void 0}if(d){e="variable-2";break a}break a}}return e},
22
- indent:function(a,b){if(a.tokenize==J)return p.Pass;if(a.tokenize!=w)return 0;var e=b&&b.charAt(0),d=a.lexical;if(!/^\s*else\b/.test(b))for(var f=a.cc.length-1;0<=f;--f){var g=a.cc[f];if(g==k)d=d.prev;else if(g!=da)break}"stat"==d.type&&"}"==e&&(d=d.prev);na&&")"==d.type&&"stat"==d.prev.type&&(d=d.prev);f=d.type;g=e==f;return"vardef"==f?d.indented+("operator"==a.lastType||","==a.lastType?d.info+1:0):"form"==f&&"{"==e?d.indented:"form"==f?d.indented+C:"stat"==f?(e=d.indented,d="operator"==a.lastType||
23
- ","==a.lastType||K.test(b.charAt(0))||/[,.]/.test(b.charAt(0)),e+(d?na||C:0)):"switch"!=d.info||g||0==t.doubleIndentSwitch?d.align?d.column+(g?0:1):d.indented+(g?0:C):d.indented+(/^(?:case|default)\b/.test(b)?C:2*C)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:D?null:"/*",blockCommentEnd:D?null:"*/",lineComment:D?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:D?"json":"javascript",jsonldMode:L,jsonMode:D}});p.registerHelper("wordChars","javascript",/[\w$]/);
24
- p.defineMIME("text/javascript","javascript");p.defineMIME("text/ecmascript","javascript");p.defineMIME("application/javascript","javascript");p.defineMIME("application/x-javascript","javascript");p.defineMIME("application/ecmascript","javascript");p.defineMIME("application/json",{name:"javascript",json:!0});p.defineMIME("application/x-json",{name:"javascript",json:!0});p.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});p.defineMIME("text/typescript",{name:"javascript",typescript:!0});
25
- p.defineMIME("application/typescript",{name:"javascript",typescript:!0})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css DELETED
@@ -1,36 +0,0 @@
1
- /* neo theme for codemirror */
2
-
3
- /* Color scheme */
4
-
5
- .cm-s-neo.CodeMirror {
6
- background-color:#ffffff;
7
- color:#2e383c;
8
- line-height:1.4375;
9
- }
10
- .cm-s-neo .cm-comment {color:#75787b}
11
- .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3}
12
- .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a}
13
- .cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328}
14
- .cm-s-neo .cm-string {color:#b35e14}
15
- .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65}
16
-
17
-
18
- /* Editor styling */
19
-
20
- .cm-s-neo pre {
21
- padding:0;
22
- }
23
-
24
- .cm-s-neo .CodeMirror-gutters {
25
- border:none;
26
- border-right:10px solid transparent;
27
- background-color:transparent;
28
- }
29
-
30
- .cm-s-neo .CodeMirror-linenumber {
31
- padding:0;
32
- color:#e0e2e5;
33
- }
34
-
35
- .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; }
36
- .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css DELETED
@@ -1,38 +0,0 @@
1
- .CodeMirror-hints {
2
- position: absolute;
3
- z-index: 10;
4
- overflow: hidden;
5
- list-style: none;
6
-
7
- margin: 0;
8
- padding: 2px;
9
-
10
- -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
11
- -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
12
- box-shadow: 2px 3px 5px rgba(0,0,0,.2);
13
- border-radius: 3px;
14
- border: 1px solid silver;
15
-
16
- background: white;
17
- font-size: 90%;
18
- font-family: monospace;
19
-
20
- max-height: 20em;
21
- overflow-y: auto;
22
- }
23
-
24
- .CodeMirror-hint {
25
- margin: 0;
26
- padding: 0 4px;
27
- border-radius: 2px;
28
- max-width: 19em;
29
- overflow: hidden;
30
- white-space: pre;
31
- color: black;
32
- cursor: pointer;
33
- }
34
-
35
- li.CodeMirror-hint-active {
36
- background: #08f;
37
- color: white;
38
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/assets/js/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js DELETED
@@ -1,16 +0,0 @@
1
- (function(f){"object"==typeof exports&&"object"==typeof module?f(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],f):f(CodeMirror)})(function(f){function p(a,b){this.cm=a;this.options=this.buildOptions(b);this.widget=null;this.tick=this.debounce=0;this.startPos=this.cm.getCursor();this.startLen=this.cm.getLine(this.startPos.line).length;var c=this;a.on("cursorActivity",this.activityFunc=function(){c.cursorActivity()})}function w(a,b){function c(a,
2
- c){var d;d="string"!=typeof c?function(a){return c(a,b)}:e.hasOwnProperty(c)?e[c]:c;f[a]=d}var e={Up:function(){b.moveFocus(-1)},Down:function(){b.moveFocus(1)},PageUp:function(){b.moveFocus(-b.menuSize()+1,!0)},PageDown:function(){b.moveFocus(b.menuSize()-1,!0)},Home:function(){b.setFocus(0)},End:function(){b.setFocus(b.length-1)},Enter:b.pick,Tab:b.pick,Esc:b.close},d=a.options.customKeys,f=d?{}:e;if(d)for(var g in d)d.hasOwnProperty(g)&&c(g,d[g]);if(d=a.options.extraKeys)for(g in d)d.hasOwnProperty(g)&&
3
- c(g,d[g]);return f}function v(a,b){for(;b&&b!=a;){if("LI"===b.nodeName.toUpperCase()&&b.parentNode==a)return b;b=b.parentNode}}function n(a,b){this.completion=a;this.data=b;this.picked=!1;var c=this,e=a.cm,d=this.hints=document.createElement("ul");d.className="CodeMirror-hints";this.selectedHint=b.selectedHint||0;for(var m=b.list,g=0;g<m.length;++g){var l=d.appendChild(document.createElement("li")),h=m[g],k="CodeMirror-hint"+(g!=this.selectedHint?"":" CodeMirror-hint-active");null!=h.className&&(k=
4
- h.className+" "+k);l.className=k;h.render?h.render(l,b,h):l.appendChild(document.createTextNode(h.displayText||("string"==typeof h?h:h.text)));l.hintId=g}var g=e.cursorCoords(a.options.alignWithWord?b.from:null),r=g.left,t=g.bottom,n=!0;d.style.left=r+"px";d.style.top=t+"px";l=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth);k=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(a.options.container||document.body).appendChild(d);
5
- h=d.getBoundingClientRect();if(0<h.bottom-k){var u=h.bottom-h.top;0<g.top-(g.bottom-h.top)-u?(d.style.top=(t=g.top-u)+"px",n=!1):u>k&&(d.style.height=k-5+"px",d.style.top=(t=g.bottom-h.top)+"px",k=e.getCursor(),b.from.ch!=k.ch&&(g=e.cursorCoords(k),d.style.left=(r=g.left)+"px",h=d.getBoundingClientRect()))}k=h.right-l;0<k&&(h.right-h.left>l&&(d.style.width=l-5+"px",k-=h.right-h.left-l),d.style.left=(r=g.left-k)+"px");e.addKeyMap(this.keyMap=w(a,{moveFocus:function(a,b){c.changeActive(c.selectedHint+
6
- a,b)},setFocus:function(a){c.changeActive(a)},menuSize:function(){return c.screenAmount()},length:m.length,close:function(){a.close()},pick:function(){c.pick()},data:b}));if(a.options.closeOnUnfocus){var p;e.on("blur",this.onBlur=function(){p=setTimeout(function(){a.close()},100)});e.on("focus",this.onFocus=function(){clearTimeout(p)})}var q=e.getScrollInfo();e.on("scroll",this.onScroll=function(){var c=e.getScrollInfo(),b=e.getWrapperElement().getBoundingClientRect(),f=t+q.top-c.top,g=f-(window.pageYOffset||
7
- (document.documentElement||document.body).scrollTop);n||(g+=d.offsetHeight);if(g<=b.top||g>=b.bottom)return a.close();d.style.top=f+"px";d.style.left=r+q.left-c.left+"px"});f.on(d,"dblclick",function(a){(a=v(d,a.target||a.srcElement))&&null!=a.hintId&&(c.changeActive(a.hintId),c.pick())});f.on(d,"click",function(b){(b=v(d,b.target||b.srcElement))&&null!=b.hintId&&(c.changeActive(b.hintId),a.options.completeOnSingleClick&&c.pick())});f.on(d,"mousedown",function(){setTimeout(function(){e.focus()},20)});
8
- f.signal(b,"select",m[0],d.firstChild);return!0}f.showHint=function(a,b,c){if(!b)return a.showHint(c);c&&c.async&&(b.async=!0);b={hint:b};if(c)for(var e in c)b[e]=c[e];return a.showHint(b)};f.defineExtension("showHint",function(a){1<this.listSelections().length||this.somethingSelected()||(this.state.completionActive&&this.state.completionActive.close(),a=this.state.completionActive=new p(this,a),a.options.hint&&(f.signal(this,"startCompletion",this),a.update()))});var x=window.requestAnimationFrame||
9
- function(a){return setTimeout(a,1E3/60)},y=window.cancelAnimationFrame||clearTimeout;p.prototype={close:function(){this.active()&&(this.tick=this.cm.state.completionActive=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.widget.close(),f.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(a,b){var c=a.list[b];c.hint?c.hint(this.cm,a,c):this.cm.replaceRange("string"==typeof c?c:c.text,c.from||a.from,c.to||a.to,
10
- "complete");f.signal(a,"pick",c);this.close()},showHints:function(a){if(!a||!a.list.length||!this.active())return this.close();this.options.completeSingle&&1==a.list.length?this.pick(a,0):this.showWidget(a)},cursorActivity:function(){this.debounce&&(y(this.debounce),this.debounce=0);var a=this.cm.getCursor(),b=this.cm.getLine(a.line);if(a.line!=this.startPos.line||b.length-a.ch!=this.startLen-this.startPos.ch||a.ch<this.startPos.ch||this.cm.somethingSelected()||a.ch&&this.options.closeCharacters.test(b.charAt(a.ch-
11
- 1)))this.close();else{var c=this;this.debounce=x(function(){c.update()});this.widget&&this.widget.disable()}},update:function(){if(null!=this.tick)if(this.data&&f.signal(this.data,"update"),this.options.hint.async){var a=++this.tick,b=this;this.options.hint(this.cm,function(c){b.tick==a&&b.finishUpdate(c)},this.options)}else this.finishUpdate(this.options.hint(this.cm,this.options),a)},finishUpdate:function(a){this.data=a;var b=this.widget&&this.widget.picked;this.widget&&this.widget.close();a&&a.list.length&&
12
- (b&&1==a.list.length?this.pick(a,0):this.widget=new n(this,a))},showWidget:function(a){this.data=a;this.widget=new n(this,a);f.signal(a,"shown")},buildOptions:function(a){var b=this.cm.options.hintOptions,c={},e;for(e in q)c[e]=q[e];if(b)for(e in b)void 0!==b[e]&&(c[e]=b[e]);if(a)for(e in a)void 0!==a[e]&&(c[e]=a[e]);return c}};n.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null;this.hints.parentNode.removeChild(this.hints);this.completion.cm.removeKeyMap(this.keyMap);
13
- var a=this.completion.cm;this.completion.options.closeOnUnfocus&&(a.off("blur",this.onBlur),a.off("focus",this.onFocus));a.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var a=this;this.keyMap={Enter:function(){a.picked=!0}};this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(a,b){a>=this.data.list.length?a=b?this.data.list.length-1:0:0>a&&(a=b?0:this.data.list.length-1);
14
- if(this.selectedHint!=a){var c=this.hints.childNodes[this.selectedHint];c.className=c.className.replace(" CodeMirror-hint-active","");c=this.hints.childNodes[this.selectedHint=a];c.className+=" CodeMirror-hint-active";c.offsetTop<this.hints.scrollTop?this.hints.scrollTop=c.offsetTop-3:c.offsetTop+c.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=c.offsetTop+c.offsetHeight-this.hints.clientHeight+3);f.signal(this.data,"select",this.data.list[this.selectedHint],c)}},
15
- screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}};f.registerHelper("hint","auto",function(a,b){var c=a.getHelpers(a.getCursor(),"hint");if(c.length)for(var e=0;e<c.length;e++){var d=c[e](a,b);if(d&&d.list.length)return d}else if(c=a.getHelper(a.getCursor(),"hintWords")){if(c)return f.hint.fromList(a,{words:c})}else if(f.hint.anyword)return f.hint.anyword(a,b)});f.registerHelper("hint","fromList",function(a,b){for(var c=a.getCursor(),e=a.getTokenAt(c),
16
- d=[],m=0;m<b.words.length;m++){var g=b.words[m];g.slice(0,e.string.length)==e.string&&d.push(g)}if(d.length)return{list:d,from:f.Pos(c.line,e.start),to:f.Pos(c.line,e.end)}});f.commands.autocomplete=f.showHint;var q={hint:f.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!1,container:null,customKeys:null,extraKeys:null};f.defineOption("hintOptions",null)});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wordpress-creation-kit-api/wck-fep/wck-fep.php CHANGED
@@ -174,7 +174,7 @@ class WCK_FrontEnd_Posting extends Wordpress_Creation_Kit{
174
 
175
  /* the login form can't get the $_GET['loginerror'] from the url because it is loaded with ajax and we need to send it through post */
176
  if( isset( $_GET['loginerror'] ) )
177
- $loginerror = ', loginerror:\''. $_GET['loginerror'].'\'' ;
178
  else
179
  $loginerror = '';
180
 
@@ -962,9 +962,8 @@ function wck_fep_output_lilo_form(){
962
 
963
  $lilo_form .= '<div id="wck-fep-login-messages">';
964
  if ( isset( $_GET['loginerror'] ) || isset( $_POST['loginerror'] ) ){
965
- $loginerror = isset( $_GET['loginerror'] ) ? $_GET['loginerror'] : $_POST['loginerror'];
966
  $lilo_form .= '<span class="wck-fep-error">';
967
- $lilo_form .= wp_kses_post( urldecode( base64_decode( $loginerror ) ) );
968
  $lilo_form .= '</span>';
969
  }
970
 
174
 
175
  /* the login form can't get the $_GET['loginerror'] from the url because it is loaded with ajax and we need to send it through post */
176
  if( isset( $_GET['loginerror'] ) )
177
+ $loginerror = ', loginerror:\''. esc_js( $_GET['loginerror'] ).'\'' ;
178
  else
179
  $loginerror = '';
180
 
962
 
963
  $lilo_form .= '<div id="wck-fep-login-messages">';
964
  if ( isset( $_GET['loginerror'] ) || isset( $_POST['loginerror'] ) ){
 
965
  $lilo_form .= '<span class="wck-fep-error">';
966
+ $lilo_form .= wp_kses_post( urldecode( base64_decode( isset( $_GET['loginerror'] ) ? $_GET['loginerror'] : $_POST['loginerror'] ) ) );
967
  $lilo_form .= '</span>';
968
  }
969
 
wordpress-creation-kit-api/wordpress-creation-kit.php CHANGED
@@ -393,7 +393,7 @@ class Wordpress_Creation_Kit{
393
  $value = null;
394
  /* see if we have any posted values */
395
  if( !empty( $_GET['postedvalues'] ) ){
396
- $posted_values = json_decode( urldecode( base64_decode( $_GET['postedvalues'] ) ) , true);
397
  if( !empty( $posted_values[$meta][Wordpress_Creation_Kit::wck_generate_slug( $details['title'], $details )] ) )
398
  $value = $posted_values[$meta][Wordpress_Creation_Kit::wck_generate_slug( $details['title'], $details )];
399
  }
@@ -886,8 +886,8 @@ class Wordpress_Creation_Kit{
886
  $id = absint($_POST['id']);
887
  else
888
  $id = '';
889
- if( !empty( $_POST['values'] ) )
890
- $values = $_POST['values'];
891
  else
892
  $values = array();
893
 
@@ -986,8 +986,8 @@ class Wordpress_Creation_Kit{
986
  $element_id = absint( $_POST['element_id'] );
987
  else
988
  $element_id = 0;
989
- if( !empty( $_POST['values'] ) )
990
- $values = $_POST['values'];
991
 
992
 
993
  // Security checks
@@ -1346,6 +1346,9 @@ class Wordpress_Creation_Kit{
1346
  if( !empty( $_POST ) ){
1347
  /* for single metaboxes we save a hidden input that contains the meta_name attr as a key so we need to search for it */
1348
  foreach( $_POST as $request_key => $request_value ){
 
 
 
1349
  if( strpos( $request_key, '_wckmetaname_' ) !== false && strpos( $request_key, '#wck' ) !== false ){
1350
  /* found it so now retrieve the meta_name from the key formatted _wckmetaname_actuaname#wck */
1351
  $request_key = str_replace( '_wckmetaname_', '', $request_key );
@@ -1361,10 +1364,17 @@ class Wordpress_Creation_Kit{
1361
  $single_field_name = $this->args['meta_name'] .'_'. Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field );
1362
  if (isset($_POST[$single_field_name])) {
1363
  /* checkbox needs to be stored as string not array */
1364
- if( $meta_field['type'] == 'checkbox' )
1365
- $_POST[$single_field_name] = implode( ', ', $_POST[$single_field_name] );
 
 
 
 
1366
 
1367
- $meta_values[Wordpress_Creation_Kit::wck_generate_slug($meta_field['title'], $meta_field )] = $_POST[$single_field_name];
 
 
 
1368
  }
1369
  else
1370
  $meta_values[Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field )] = '';
@@ -1399,7 +1409,12 @@ class Wordpress_Creation_Kit{
1399
  foreach ($this->args['meta_array'] as $meta_field) {
1400
  /* check to see if we already have a meta name like this from the old structure to avoid conflicts */
1401
  $name = Wordpress_Creation_Kit::wck_generate_unique_meta_name_for_unserialized_field( $post_id, Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field ), $meta_name );
1402
- update_post_meta($post_id, $name, $_POST[$this->args['meta_name'] . '_' . Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field )]);
 
 
 
 
 
1403
  }
1404
  }
1405
  }
@@ -1409,7 +1424,14 @@ class Wordpress_Creation_Kit{
1409
  if ($this->args['unserialize_fields']) {
1410
  if (!empty($this->args['meta_array'])) {
1411
  foreach ($this->args['meta_array'] as $meta_field) {
1412
- update_post_meta($post_id, $meta_name . '_' . Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field ) . '_1', $_POST[$this->args['meta_name'] . '_' . Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field )]);
 
 
 
 
 
 
 
1413
  }
1414
  }
1415
  }
@@ -1458,7 +1480,7 @@ class Wordpress_Creation_Kit{
1458
  /* mark the fields */
1459
  if( isset( $_GET['wckerrorfields'] ) && !empty( $_GET['wckerrorfields'] ) ){
1460
  echo '<script type="text/javascript">';
1461
- $field_names = explode( ',', urldecode( base64_decode( $_GET['wckerrorfields'] ) ) );
1462
  foreach( $field_names as $field_name ){
1463
  echo "jQuery( '.field-label[for=\"". esc_js( $field_name ) ."\"]' ).addClass('error');";
1464
 
@@ -1693,6 +1715,15 @@ class Wordpress_Creation_Kit{
1693
 
1694
  return apply_filters( 'wck_reserved_variable_names', $reserved_vars );
1695
  }
 
 
 
 
 
 
 
 
 
1696
  }
1697
 
1698
 
393
  $value = null;
394
  /* see if we have any posted values */
395
  if( !empty( $_GET['postedvalues'] ) ){
396
+ $posted_values = json_decode( sanitize_text_field( urldecode( base64_decode( $_GET['postedvalues'] ) ) ) , true);
397
  if( !empty( $posted_values[$meta][Wordpress_Creation_Kit::wck_generate_slug( $details['title'], $details )] ) )
398
  $value = $posted_values[$meta][Wordpress_Creation_Kit::wck_generate_slug( $details['title'], $details )];
399
  }
886
  $id = absint($_POST['id']);
887
  else
888
  $id = '';
889
+ if( !empty( $_POST['values'] ) && is_array( $_POST['values'] ) )
890
+ $values = array_map( array( $this, 'wck_sanitize_value'), $_POST['values']);
891
  else
892
  $values = array();
893
 
986
  $element_id = absint( $_POST['element_id'] );
987
  else
988
  $element_id = 0;
989
+ if( !empty( $_POST['values'] ) && is_array( $_POST['values']) )
990
+ $values = array_map( array( $this, 'wck_sanitize_value' ), $_POST['values'] );
991
 
992
 
993
  // Security checks
1346
  if( !empty( $_POST ) ){
1347
  /* for single metaboxes we save a hidden input that contains the meta_name attr as a key so we need to search for it */
1348
  foreach( $_POST as $request_key => $request_value ){
1349
+ $request_key = sanitize_text_field($request_key);
1350
+ $request_value = $this->wck_sanitize_value($request_value);
1351
+
1352
  if( strpos( $request_key, '_wckmetaname_' ) !== false && strpos( $request_key, '#wck' ) !== false ){
1353
  /* found it so now retrieve the meta_name from the key formatted _wckmetaname_actuaname#wck */
1354
  $request_key = str_replace( '_wckmetaname_', '', $request_key );
1364
  $single_field_name = $this->args['meta_name'] .'_'. Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field );
1365
  if (isset($_POST[$single_field_name])) {
1366
  /* checkbox needs to be stored as string not array */
1367
+ if( $meta_field['type'] == 'checkbox' ) {
1368
+ if( is_array($_POST[$single_field_name]) )
1369
+ $_POST[$single_field_name] = implode(', ', array_map(array($this, 'wck_sanitize_value'), $_POST[$single_field_name]));
1370
+ else
1371
+ $_POST[$single_field_name] = $this->wck_sanitize_value( $_POST[$single_field_name] );
1372
+ }
1373
 
1374
+ if( is_array($_POST[$single_field_name]) )
1375
+ $meta_values[Wordpress_Creation_Kit::wck_generate_slug($meta_field['title'], $meta_field )] = array_map( array($this, 'wck_sanitize_value'), $_POST[$single_field_name] );
1376
+ else
1377
+ $meta_values[Wordpress_Creation_Kit::wck_generate_slug($meta_field['title'], $meta_field )] = $this->wck_sanitize_value( $_POST[$single_field_name] );
1378
  }
1379
  else
1380
  $meta_values[Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field )] = '';
1409
  foreach ($this->args['meta_array'] as $meta_field) {
1410
  /* check to see if we already have a meta name like this from the old structure to avoid conflicts */
1411
  $name = Wordpress_Creation_Kit::wck_generate_unique_meta_name_for_unserialized_field( $post_id, Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field ), $meta_name );
1412
+ $meta_val = $_POST[$this->args['meta_name'] . '_' . Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field )];
1413
+ if( is_array($meta_val) )
1414
+ $meta_val = array_map( array($this, 'wck_sanitize_value'), $meta_val );
1415
+ else
1416
+ $meta_val = $this->wck_sanitize_value( $meta_val );
1417
+ update_post_meta($post_id, $name, $meta_val );
1418
  }
1419
  }
1420
  }
1424
  if ($this->args['unserialize_fields']) {
1425
  if (!empty($this->args['meta_array'])) {
1426
  foreach ($this->args['meta_array'] as $meta_field) {
1427
+
1428
+ $meta_val = $_POST[$this->args['meta_name'] . '_' . Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field )];
1429
+ if( is_array($meta_val) )
1430
+ $meta_val = array_map( array($this, 'wck_sanitize_value'), $meta_val );
1431
+ else
1432
+ $meta_val = $this->wck_sanitize_value( $meta_val );
1433
+
1434
+ update_post_meta($post_id, $meta_name . '_' . Wordpress_Creation_Kit::wck_generate_slug( $meta_field['title'], $meta_field ) . '_1', $meta_val );
1435
  }
1436
  }
1437
  }
1480
  /* mark the fields */
1481
  if( isset( $_GET['wckerrorfields'] ) && !empty( $_GET['wckerrorfields'] ) ){
1482
  echo '<script type="text/javascript">';
1483
+ $field_names = explode( ',', sanitize_text_field( urldecode( base64_decode( $_GET['wckerrorfields'] ) ) ) );
1484
  foreach( $field_names as $field_name ){
1485
  echo "jQuery( '.field-label[for=\"". esc_js( $field_name ) ."\"]' ).addClass('error');";
1486
 
1715
 
1716
  return apply_filters( 'wck_reserved_variable_names', $reserved_vars );
1717
  }
1718
+
1719
+ /**
1720
+ * Function that strips the script tags from an input
1721
+ * @param $string
1722
+ * @return mixed
1723
+ */
1724
+ function wck_sanitize_value( $string ){
1725
+ return preg_replace( '/<script\b[^>]*>(.*?)<\/script>/is', '', $string );
1726
+ }
1727
  }
1728
 
1729