-
Notifications
You must be signed in to change notification settings - Fork 67
/
index.html
261 lines (259 loc) · 6.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Feature-rich editor</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="demo.css" />
<link rel="stylesheet" href="content.css" />
</head>
<body>
<div class="header-wrapper">
<h1>Feature-rich editor</h1>
</div>
<div class="editor-wrapper">
<div id="cke5-feature-rich-demo">
<h1>Discover the riches of our editor ✨</h1>
<p>
Read on to better understand the functionalities you can test with
this demo.
</p>
<h2>💡 Did you know that…</h2>
<ul>
<li>
CKEditor is
<strong>customizable</strong>. You can fine-tune the set of enabled
plugins, available toolbar buttons, and the behavior of features.
</li>
<li>
The editor supports
<strong>@mentions</strong>. Start typing
<code>@An</code>
to see available suggestions.
</li>
<li>
You can also insert dynamic placeholders within the content using <strong>merge fields</strong>! Start typing <code>{{</code> or use the
<img
src="https://ckeditor.com/assets/images/ckdemo/feature-rich/merge-field-insert.png"
srcset="
https://ckeditor.com/assets/images/ckdemo/feature-rich/merge-field-insert.png 2x
"
alt="Insert merge field"
width="20"
height="20"
/> button to insert them. Use the
<img
src="https://ckeditor.com/assets/images/ckdemo/feature-rich/merge-fields-preview.png"
srcset="
https://ckeditor.com/assets/images/ckdemo/feature-rich/merge-fields-preview.png 2x
"
alt="Preview merge field"
width="20"
height="20"
/> button to preview values. {{mergeFieldExample}}
</li>
<li>
You can
<strong>paste content</strong>
from Word or Google Docs, retaining the original document structure
and formatting.
</li>
<li>
Thanks to Import from Word
<img
src="https://ckeditor.com/assets/images/ckdemo/feature-rich/import_word.png"
srcset="
https://ckeditor.com/assets/images/ckdemo/feature-rich/import_word.png 2x
"
alt="Import from Word"
width="20"
height="20"
/>, you can
<strong>convert</strong>
a DOCX document into HTML and edit it in CKEditor 5.
</li>
<li>
You can
<strong>export your document</strong>
to PDF
<img
src="https://ckeditor.com/assets/images/ckdemo/feature-rich/export_pdf.png"
srcset="
https://ckeditor.com/assets/images/ckdemo/feature-rich/export_pdf.png 2x
"
alt="Export to PDF"
width="20"
height="20"
/>
or Word
<img
src="https://ckeditor.com/assets/images/ckdemo/feature-rich/export_word.png"
srcset="
https://ckeditor.com/assets/images/ckdemo/feature-rich/export_word.png 2x
"
alt="Export to Word"
width="20"
height="20"
/>
with a single click.
</li>
<li>
This demo showcases
<a
target="_blank"
rel="noopener noreferrer"
href="https://ckeditor.com/ckbox/"
>CKBox</a
>
<img
src="https://ckeditor.com/assets/images/ckdemo/feature-rich/browse-files.png"
srcset="
https://ckeditor.com/assets/images/ckdemo/feature-rich/browse-files.png 2x
"
alt="Browse files"
width="20"
height="20"
/>
to
<strong>manage images and other files</strong>. You can enable your
own upload adapter instead.
</li>
</ul>
<h2>🚀 Autoformatting in CKEditor 5</h2>
<p>
Some features of CKEditor 5 might be hard to spot at first glance.
Thanks to
<strong>autoformatting</strong>, you can use handy shortcuts in the
editor to format the text on the fly:
</p>
<figure class="table" style="width: 75%">
<table class="ck-table-resized">
<colgroup>
<col style="width: 23.03%" />
<col style="width: 20.77%" />
<col style="width: 56.2%" />
</colgroup>
<tbody>
<tr>
<td style="background-color: hsl(0, 0%, 90%)" rowspan="7">
<strong>Block formatting</strong>
</td>
<td>Bulleted list</td>
<td>
Start a line with
<code>*</code>
or
<code>-</code>
followed by a space.
</td>
</tr>
<tr>
<td>Numbered list</td>
<td>
Start a line with
<code>1.</code>
or
<code>1)</code>
followed by a space.
</td>
</tr>
<tr>
<td>To-do list</td>
<td>
Start a line with
<code>[ ]</code>
or
<code>[x]</code>
followed by a space to insert an unchecked or checked list
item.
</td>
</tr>
<tr>
<td>Headings</td>
<td>
Start a line with
<code>#</code>, <code>##</code>, or
<code>###</code>
followed by a space to create a heading 1, heading 2, or
heading 3.
</td>
</tr>
<tr>
<td>Block quote</td>
<td>
Start a line with
<code>></code>
followed by a space.
</td>
</tr>
<tr>
<td>Code block</td>
<td>
Start a line with
<code>```</code>.
</td>
</tr>
<tr>
<td>Horizontal line</td>
<td>
Start a line with
<code>---</code>.
</td>
</tr>
<tr>
<td style="background-color: hsl(0, 0%, 90%)" rowspan="4">
<strong>Inline formatting</strong>
</td>
<td>
<strong>Bold</strong>
</td>
<td>
Type
<code>**</code>
or
<code>__</code>
around your text.
</td>
</tr>
<tr>
<td>
<i>Italic</i>
</td>
<td>
Type
<code>*</code>
or
<code>_</code>
around your text.
</td>
</tr>
<tr>
<td>
<code>Code</code>
</td>
<td>
Type
<code>`</code>
around your text.
</td>
</tr>
<tr>
<td>
<s>Strikethrough</s>
</td>
<td>
Type
<code>~~</code>
around your text.
</td>
</tr>
</tbody>
</table>
</figure>
<p> </p>
</div>
</div>
<script src="https://cdn.ckbox.io/CKBox/2.0.0/ckbox.js"></script>
<script type="module" src="index.js"></script>
</body>
</html>