@alitons/ckeditor5 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +49 -0
- package/README.md +262 -0
- package/build/ckeditor.d.ts +70 -0
- package/build/ckeditor.js +17 -0
- package/build/ckeditor.js.map +1 -0
- package/build/plugins/autotexto.d.ts +7 -0
- package/build/plugins/modelo.d.ts +15 -0
- package/build/plugins/salvarcomo.d.ts +5 -0
- package/build/plugins/sei.d.ts +6 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/en.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/package.json +76 -0
- package/sample/index.html +34 -0
- package/sample/script.js +120 -0
- package/sample/styles.css +510 -0
- package/src/ckeditor.js +210 -0
- package/src/ckeditor.js.map +1 -0
- package/src/ckeditor.ts +255 -0
- package/src/plugins/autotexto.ts +159 -0
- package/src/plugins/modelo.ts +251 -0
- package/src/plugins/salvarcomo.ts +163 -0
- package/src/plugins/sei.ts +184 -0
- package/tsconfig.json +20 -0
- package/tsconfig.types.json +9 -0
- package/webpack.config.js +96 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* This file is licensed under the terms of the MIT License (see LICENSE.md).
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--ck-sample-base-spacing: 2em;
|
|
8
|
+
--ck-sample-color-white: #fff;
|
|
9
|
+
--ck-sample-color-green: #279863;
|
|
10
|
+
--ck-sample-color-blue: #1a9aef;
|
|
11
|
+
--ck-sample-container-width: 1285px;
|
|
12
|
+
--ck-sample-sidebar-width: 350px;
|
|
13
|
+
--ck-sample-editor-min-height: 400px;
|
|
14
|
+
--ck-sample-editor-z-index: 10;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* --------- EDITOR STYLES ---------------------------------------------------------------------------------------- */
|
|
18
|
+
|
|
19
|
+
.editor__editable,
|
|
20
|
+
/* Classic build. */
|
|
21
|
+
main .ck-editor[role='application'] .ck.ck-content,
|
|
22
|
+
/* Decoupled document build. */
|
|
23
|
+
.ck.editor__editable[role='textbox'],
|
|
24
|
+
.ck.ck-editor__editable[role='textbox'],
|
|
25
|
+
/* Inline & Balloon build. */
|
|
26
|
+
.ck.editor[role='textbox'] {
|
|
27
|
+
width: 100%;
|
|
28
|
+
background: #fff;
|
|
29
|
+
font-size: 1em;
|
|
30
|
+
line-height: 1.6em;
|
|
31
|
+
min-height: var(--ck-sample-editor-min-height);
|
|
32
|
+
padding: 1.5em 2em;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ck.ck-editor__editable {
|
|
36
|
+
background: #fff;
|
|
37
|
+
border: 1px solid hsl(0, 0%, 70%);
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Because of sidebar `position: relative`, Edge is overriding the outline of a focused editor. */
|
|
42
|
+
.ck.ck-editor__editable {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: var(--ck-sample-editor-z-index);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.editor-container {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
flex-wrap: nowrap;
|
|
51
|
+
position: relative;
|
|
52
|
+
width: 100%;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* --------- DECOUPLED (DOCUMENT) BUILD. ---------------------------------------------*/
|
|
57
|
+
[data-editor='DecoupledEditor'] .document-editor__toolbar {
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-editor='DecoupledEditor'] .collaboration-demo__editable,
|
|
62
|
+
[data-editor='DecoupledEditor'] .row-editor .editor {
|
|
63
|
+
/* A pixel is added for each of the border. */
|
|
64
|
+
width: calc(21cm + 2px);
|
|
65
|
+
min-height: calc(29.7cm + 2px);
|
|
66
|
+
/* To avoid having extra scrolls inside the editor container. */
|
|
67
|
+
height: fit-content;
|
|
68
|
+
padding: 2cm 1.2cm;
|
|
69
|
+
margin: 2.5rem;
|
|
70
|
+
border: 1px hsl( 0, 0%, 82.7% ) solid;
|
|
71
|
+
background-color: var(--ck-sample-color-white);
|
|
72
|
+
box-shadow: 0 0 5px hsla( 0, 0%, 0%, .1 );
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-editor='DecoupledEditor'] .row-editor {
|
|
77
|
+
display: flex;
|
|
78
|
+
position: relative;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
overflow-y: auto;
|
|
81
|
+
background-color: #f2f2f2;
|
|
82
|
+
border: 1px solid hsl(0, 0%, 77%);
|
|
83
|
+
/* Limit the max-height of the editor to avoid scrolling from bottom to top to see the toolbar. */
|
|
84
|
+
max-height: 700px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-editor='DecoupledEditor'] .sidebar {
|
|
88
|
+
background: transparent;
|
|
89
|
+
border: 0;
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* --------- COMMENTS & TRACK CHANGES FEATURE ---------------------------------------------------------------------- */
|
|
94
|
+
.sidebar {
|
|
95
|
+
padding: 0 15px;
|
|
96
|
+
position: relative;
|
|
97
|
+
min-width: var(--ck-sample-sidebar-width);
|
|
98
|
+
max-width: var(--ck-sample-sidebar-width);
|
|
99
|
+
font-size: 20px;
|
|
100
|
+
border: 1px solid hsl(0, 0%, 77%);
|
|
101
|
+
background: hsl(0, 0%, 98%);
|
|
102
|
+
border-left: 0;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
min-height: 100%;
|
|
105
|
+
flex-grow: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Do not inherit styles related to the editable editor content. See line 25.*/
|
|
109
|
+
.sidebar .ck-content[role='textbox'],
|
|
110
|
+
.ck.ck-annotation-wrapper .ck-content[role='textbox'] {
|
|
111
|
+
min-height: unset;
|
|
112
|
+
width: unset;
|
|
113
|
+
padding: 0;
|
|
114
|
+
background: transparent;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.sidebar.narrow {
|
|
118
|
+
min-width: 60px;
|
|
119
|
+
flex-grow: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.sidebar.hidden {
|
|
123
|
+
display: none !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#sidebar-display-toggle {
|
|
127
|
+
position: absolute;
|
|
128
|
+
z-index: 1;
|
|
129
|
+
width: 30px;
|
|
130
|
+
height: 30px;
|
|
131
|
+
text-align: center;
|
|
132
|
+
left: 15px;
|
|
133
|
+
top: 30px;
|
|
134
|
+
border: 0;
|
|
135
|
+
padding: 0;
|
|
136
|
+
color: hsl( 0, 0%, 50% );
|
|
137
|
+
transition: 250ms ease color;
|
|
138
|
+
background-color: transparent;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
#sidebar-display-toggle:hover {
|
|
142
|
+
color: hsl( 0, 0%, 30% );
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
#sidebar-display-toggle:focus,
|
|
147
|
+
#sidebar-display-toggle:active {
|
|
148
|
+
outline: none;
|
|
149
|
+
border: 1px solid #a9d29d;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#sidebar-display-toggle svg {
|
|
153
|
+
fill: currentColor;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* --------- COLLABORATION FEATURES (USERS) ------------------------------------------------------------------------ */
|
|
157
|
+
.row-presence {
|
|
158
|
+
width: 100%;
|
|
159
|
+
border: 1px solid hsl(0, 0%, 77%);
|
|
160
|
+
border-bottom: 0;
|
|
161
|
+
background: hsl(0, 0%, 98%);
|
|
162
|
+
padding: var(--ck-spacing-small);
|
|
163
|
+
|
|
164
|
+
/* Make `border-bottom` as `box-shadow` to not overlap with the editor border. */
|
|
165
|
+
box-shadow: 0 1px 0 0 hsl(0, 0%, 77%);
|
|
166
|
+
|
|
167
|
+
/* Make `z-index` bigger than `.editor` to properly display tooltips. */
|
|
168
|
+
z-index: 20;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ck.ck-presence-list {
|
|
172
|
+
flex: 1;
|
|
173
|
+
padding: 1.25rem .75rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.presence .ck.ck-presence-list__counter {
|
|
177
|
+
order: 2;
|
|
178
|
+
margin-left: var(--ck-spacing-large)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* --------- REAL TIME COLLABORATION FEATURES (SHARE TOPBAR CONTAINER) --------------------------------------------- */
|
|
182
|
+
.collaboration-demo__row {
|
|
183
|
+
display: flex;
|
|
184
|
+
position: relative;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
overflow-y: auto;
|
|
187
|
+
background-color: #f2f2f2;
|
|
188
|
+
border: 1px solid hsl(0, 0%, 77%);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
body[data-editor='InlineEditor'] .collaboration-demo__row {
|
|
192
|
+
border: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.collaboration-demo__container {
|
|
196
|
+
max-width: var(--ck-sample-container-width);
|
|
197
|
+
margin: 0 auto;
|
|
198
|
+
padding: 1.25rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.presence, .collaboration-demo__row {
|
|
202
|
+
transition: .2s opacity;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.collaboration-demo__topbar {
|
|
206
|
+
background: #fff;
|
|
207
|
+
border: 1px solid var(--ck-color-toolbar-border);
|
|
208
|
+
display: flex;
|
|
209
|
+
justify-content: space-between;
|
|
210
|
+
align-items: center;
|
|
211
|
+
border-bottom: 0;
|
|
212
|
+
border-radius: 4px 4px 0 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.collaboration-demo__topbar .btn {
|
|
216
|
+
margin-right: 1em;
|
|
217
|
+
outline-offset: 2px;
|
|
218
|
+
outline-width: 2px;
|
|
219
|
+
background-color: var( --ck-sample-color-blue );
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.collaboration-demo__topbar .btn:focus,
|
|
223
|
+
.collaboration-demo__topbar .btn:hover {
|
|
224
|
+
border-color: var( --ck-sample-color-blue );
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.collaboration-demo__share {
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
padding: 1.25rem .75rem
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.collaboration-demo__share-description p {
|
|
234
|
+
margin: 0;
|
|
235
|
+
font-weight: bold;
|
|
236
|
+
font-size: 0.9em;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.collaboration-demo__share input {
|
|
240
|
+
height: auto;
|
|
241
|
+
font-size: 0.9em;
|
|
242
|
+
min-width: 220px;
|
|
243
|
+
margin: 0 10px;
|
|
244
|
+
border-radius: 4px;
|
|
245
|
+
border: 1px solid var(--ck-color-toolbar-border)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.collaboration-demo__share button,
|
|
249
|
+
.collaboration-demo__share input {
|
|
250
|
+
height: 40px;
|
|
251
|
+
padding: 5px 10px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.collaboration-demo__share button {
|
|
255
|
+
position: relative;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.collaboration-demo__share button:focus {
|
|
259
|
+
outline: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.collaboration-demo__share button[data-tooltip]::before,
|
|
263
|
+
.collaboration-demo__share button[data-tooltip]::after {
|
|
264
|
+
position: absolute;
|
|
265
|
+
visibility: hidden;
|
|
266
|
+
opacity: 0;
|
|
267
|
+
pointer-events: none;
|
|
268
|
+
transition: all .15s cubic-bezier(.5,1,.25,1);
|
|
269
|
+
z-index: 1;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.collaboration-demo__share button[data-tooltip]::before {
|
|
273
|
+
content: attr(data-tooltip);
|
|
274
|
+
padding: 5px 15px;
|
|
275
|
+
border-radius: 3px;
|
|
276
|
+
background: #111;
|
|
277
|
+
color: #fff;
|
|
278
|
+
text-align: center;
|
|
279
|
+
font-size: 11px;
|
|
280
|
+
top: 100%;
|
|
281
|
+
left: 50%;
|
|
282
|
+
margin-top: 5px;
|
|
283
|
+
transform: translateX(-50%);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.collaboration-demo__share button[data-tooltip]::after {
|
|
287
|
+
content: '';
|
|
288
|
+
border: 5px solid transparent;
|
|
289
|
+
width: 0;
|
|
290
|
+
font-size: 0;
|
|
291
|
+
line-height: 0;
|
|
292
|
+
top: 100%;
|
|
293
|
+
left: 50%;
|
|
294
|
+
transform: translateX(-50%);
|
|
295
|
+
border-bottom: 5px solid #111;
|
|
296
|
+
border-top: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.collaboration-demo__share button[data-tooltip]:hover:before,
|
|
300
|
+
.collaboration-demo__share button[data-tooltip]:hover:after {
|
|
301
|
+
visibility: visible;
|
|
302
|
+
opacity: 1;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.collaboration-demo--ready {
|
|
306
|
+
overflow: visible;
|
|
307
|
+
height: auto;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.collaboration-demo--ready .presence,
|
|
311
|
+
.collaboration-demo--ready .collaboration-demo__row {
|
|
312
|
+
opacity: 1;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* --------- PAGINATION FEATURE ------------------------------------------------------------------------------------ */
|
|
316
|
+
|
|
317
|
+
/* Pagination view line must be stacked at least at the same level as the editor,
|
|
318
|
+
otherwise it will be hidden underneath. */
|
|
319
|
+
.ck.ck-pagination-view-line {
|
|
320
|
+
z-index: var(--ck-sample-editor-z-index);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* --------- REVISION HISTORY FEATURE ------------------------------------------------------------------------------ */
|
|
324
|
+
|
|
325
|
+
.revision-viewer-container {
|
|
326
|
+
display: none;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.revision-viewer-sidebar {
|
|
330
|
+
position: relative;
|
|
331
|
+
min-width: 310px;
|
|
332
|
+
overflow: hidden;
|
|
333
|
+
background: var(--ck-color-toolbar-background);
|
|
334
|
+
border: 1px solid var(--ck-color-toolbar-border);
|
|
335
|
+
margin-left: -1px;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* A case when Pagination and Revision History features are enabled in the editor. */
|
|
339
|
+
/* Move the square with page number from the Pagination plugin to the left side, so that it does not cover the RH sidebar. */
|
|
340
|
+
body[data-revision-history='true'] .ck.ck-pagination-view-line::after {
|
|
341
|
+
transform: translateX(-100%) !important;
|
|
342
|
+
left: -1px !important;
|
|
343
|
+
right: unset !important;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* --------- DOCUMENT OUTLINE FEATURE ------------------------------------------------------------------------------ */
|
|
347
|
+
|
|
348
|
+
.document-outline-container {
|
|
349
|
+
max-height: 80vh;
|
|
350
|
+
overflow-y: auto;
|
|
351
|
+
margin-bottom: 1em;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.document-outline-container .ck.ck-document-outline {
|
|
355
|
+
min-height: 100%;
|
|
356
|
+
border: 1px solid var(--ck-color-base-border);
|
|
357
|
+
background-color: hsl(0, 0%, 96%);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* --------- SAMPLE GENERIC STYLES (not related to CKEditor) ------------------------------------------------------- */
|
|
361
|
+
body, html {
|
|
362
|
+
padding: 0;
|
|
363
|
+
margin: 0;
|
|
364
|
+
|
|
365
|
+
font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
366
|
+
font-size: 16px;
|
|
367
|
+
line-height: 1.5;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
body {
|
|
371
|
+
height: 100%;
|
|
372
|
+
color: #2D3A4A;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
body * {
|
|
376
|
+
box-sizing: border-box;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
a {
|
|
380
|
+
color: #38A5EE;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
header .centered {
|
|
384
|
+
display: flex;
|
|
385
|
+
flex-flow: row nowrap;
|
|
386
|
+
justify-content: space-between;
|
|
387
|
+
align-items: center;
|
|
388
|
+
min-height: 8em;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
header h1 a {
|
|
392
|
+
font-size: 20px;
|
|
393
|
+
display: flex;
|
|
394
|
+
align-items: center;
|
|
395
|
+
color: #2D3A4A;
|
|
396
|
+
text-decoration: none;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
header h1 img {
|
|
400
|
+
display: block;
|
|
401
|
+
height: 64px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
header nav ul {
|
|
405
|
+
margin: 0;
|
|
406
|
+
padding: 0;
|
|
407
|
+
list-style-type: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
header nav ul li {
|
|
411
|
+
display: inline-block;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
header nav ul li + li {
|
|
415
|
+
margin-left: 1em;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
header nav ul li a {
|
|
419
|
+
font-weight: bold;
|
|
420
|
+
text-decoration: none;
|
|
421
|
+
color: #2D3A4A;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
header nav ul li a:hover {
|
|
425
|
+
text-decoration: underline;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
main .message {
|
|
429
|
+
padding: 0 0 var(--ck-sample-base-spacing);
|
|
430
|
+
background: var(--ck-sample-color-green);
|
|
431
|
+
color: var(--ck-sample-color-white);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
main .message::after {
|
|
435
|
+
content: "";
|
|
436
|
+
z-index: -1;
|
|
437
|
+
display: block;
|
|
438
|
+
height: 10em;
|
|
439
|
+
width: 100%;
|
|
440
|
+
background: var(--ck-sample-color-green);
|
|
441
|
+
position: absolute;
|
|
442
|
+
left: 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
main .message h2 {
|
|
446
|
+
position: relative;
|
|
447
|
+
padding-top: 1em;
|
|
448
|
+
font-size: 2em;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.centered {
|
|
452
|
+
/* Hide overlapping comments. */
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
max-width: var(--ck-sample-container-width);
|
|
455
|
+
margin: 0 auto;
|
|
456
|
+
padding: 0 var(--ck-sample-base-spacing);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.row {
|
|
460
|
+
display: flex;
|
|
461
|
+
position: relative;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.btn {
|
|
465
|
+
cursor: pointer;
|
|
466
|
+
padding: 8px 16px;
|
|
467
|
+
font-size: 1rem;
|
|
468
|
+
user-select: none;
|
|
469
|
+
border-radius: 4px;
|
|
470
|
+
transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,opacity .2s ease-in-out;
|
|
471
|
+
background-color: var(--ck-sample-color-button-blue);
|
|
472
|
+
border-color: var(--ck-sample-color-button-blue);
|
|
473
|
+
color: var(--ck-sample-color-white);
|
|
474
|
+
display: inline-block;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.btn--tiny {
|
|
478
|
+
padding: 6px 12px;
|
|
479
|
+
font-size: .8rem;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
footer {
|
|
483
|
+
margin: calc(2*var(--ck-sample-base-spacing)) var(--ck-sample-base-spacing);
|
|
484
|
+
font-size: .8em;
|
|
485
|
+
text-align: center;
|
|
486
|
+
color: rgba(0,0,0,.4);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* --------- RWD --------------------------------------------------------------------------------------------------- */
|
|
490
|
+
@media screen and ( max-width: 800px ) {
|
|
491
|
+
:root {
|
|
492
|
+
--ck-sample-base-spacing: 1em;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
header h1 {
|
|
496
|
+
width: 100%;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
header h1 img {
|
|
500
|
+
height: 40px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
header nav ul {
|
|
504
|
+
text-align: right;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
main .message h2 {
|
|
508
|
+
font-size: 1.5em;
|
|
509
|
+
}
|
|
510
|
+
}
|
package/src/ckeditor.js
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import { DecoupledEditor } from '@ckeditor/ckeditor5-editor-decoupled';
|
|
6
|
+
import { Alignment } from '@ckeditor/ckeditor5-alignment';
|
|
7
|
+
import { Autoformat } from '@ckeditor/ckeditor5-autoformat';
|
|
8
|
+
import { Autosave } from '@ckeditor/ckeditor5-autosave';
|
|
9
|
+
import { Bold, Code, Italic, Strikethrough, Subscript, Superscript, Underline } from '@ckeditor/ckeditor5-basic-styles';
|
|
10
|
+
import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
|
|
11
|
+
import { CloudServices } from '@ckeditor/ckeditor5-cloud-services';
|
|
12
|
+
import { CodeBlock } from '@ckeditor/ckeditor5-code-block';
|
|
13
|
+
import { Essentials } from '@ckeditor/ckeditor5-essentials';
|
|
14
|
+
import { FindAndReplace } from '@ckeditor/ckeditor5-find-and-replace';
|
|
15
|
+
import { FontBackgroundColor, FontColor, FontFamily, FontSize } from '@ckeditor/ckeditor5-font';
|
|
16
|
+
import { Heading, Title } from '@ckeditor/ckeditor5-heading';
|
|
17
|
+
import { Highlight } from '@ckeditor/ckeditor5-highlight';
|
|
18
|
+
import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line';
|
|
19
|
+
import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed';
|
|
20
|
+
import { DataFilter, DataSchema, GeneralHtmlSupport, HtmlComment } from '@ckeditor/ckeditor5-html-support';
|
|
21
|
+
import { AutoImage, Image, ImageCaption, ImageInsert, ImageResize, ImageStyle, ImageToolbar, ImageUpload } from '@ckeditor/ckeditor5-image';
|
|
22
|
+
import { Indent, IndentBlock } from '@ckeditor/ckeditor5-indent';
|
|
23
|
+
import { TextPartLanguage } from '@ckeditor/ckeditor5-language';
|
|
24
|
+
import { AutoLink, Link, LinkImage } from '@ckeditor/ckeditor5-link';
|
|
25
|
+
import { List, ListProperties, TodoList } from '@ckeditor/ckeditor5-list';
|
|
26
|
+
import { Markdown } from '@ckeditor/ckeditor5-markdown-gfm';
|
|
27
|
+
import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed';
|
|
28
|
+
import { Mention } from '@ckeditor/ckeditor5-mention';
|
|
29
|
+
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
|
|
30
|
+
import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
|
|
31
|
+
import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office';
|
|
32
|
+
import { RemoveFormat } from '@ckeditor/ckeditor5-remove-format';
|
|
33
|
+
import { StandardEditingMode } from '@ckeditor/ckeditor5-restricted-editing';
|
|
34
|
+
import { SelectAll } from '@ckeditor/ckeditor5-select-all';
|
|
35
|
+
import { ShowBlocks } from '@ckeditor/ckeditor5-show-blocks';
|
|
36
|
+
import { SourceEditing } from '@ckeditor/ckeditor5-source-editing';
|
|
37
|
+
import { SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText } from '@ckeditor/ckeditor5-special-characters';
|
|
38
|
+
import { Style } from '@ckeditor/ckeditor5-style';
|
|
39
|
+
import { Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar } from '@ckeditor/ckeditor5-table';
|
|
40
|
+
import { TextTransformation } from '@ckeditor/ckeditor5-typing';
|
|
41
|
+
import { EditorWatchdog } from '@ckeditor/ckeditor5-watchdog';
|
|
42
|
+
import { WordCount } from '@ckeditor/ckeditor5-word-count';
|
|
43
|
+
import { ButtonView } from '@ckeditor/ckeditor5-ui';
|
|
44
|
+
// You can read more about extending the build with additional plugins in the "Installing plugins" guide.
|
|
45
|
+
// See https://ckeditor.com/docs/ckeditor5/latest/installation/plugins/installing-plugins.html for details.
|
|
46
|
+
class Editor extends DecoupledEditor {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
Editor.builtinPlugins = [
|
|
50
|
+
Alignment,
|
|
51
|
+
AutoImage,
|
|
52
|
+
AutoLink,
|
|
53
|
+
Autoformat,
|
|
54
|
+
Autosave,
|
|
55
|
+
BlockQuote,
|
|
56
|
+
Bold,
|
|
57
|
+
CloudServices,
|
|
58
|
+
Code,
|
|
59
|
+
CodeBlock,
|
|
60
|
+
DataFilter,
|
|
61
|
+
DataSchema,
|
|
62
|
+
Essentials,
|
|
63
|
+
FindAndReplace,
|
|
64
|
+
FontBackgroundColor,
|
|
65
|
+
FontColor,
|
|
66
|
+
FontFamily,
|
|
67
|
+
FontSize,
|
|
68
|
+
GeneralHtmlSupport,
|
|
69
|
+
Heading,
|
|
70
|
+
Highlight,
|
|
71
|
+
HorizontalLine,
|
|
72
|
+
HtmlComment,
|
|
73
|
+
HtmlEmbed,
|
|
74
|
+
Image,
|
|
75
|
+
ImageCaption,
|
|
76
|
+
ImageInsert,
|
|
77
|
+
ImageResize,
|
|
78
|
+
ImageStyle,
|
|
79
|
+
ImageToolbar,
|
|
80
|
+
ImageUpload,
|
|
81
|
+
Indent,
|
|
82
|
+
IndentBlock,
|
|
83
|
+
Italic,
|
|
84
|
+
Link,
|
|
85
|
+
LinkImage,
|
|
86
|
+
List,
|
|
87
|
+
ListProperties,
|
|
88
|
+
Markdown,
|
|
89
|
+
MediaEmbed,
|
|
90
|
+
Mention,
|
|
91
|
+
PageBreak,
|
|
92
|
+
Paragraph,
|
|
93
|
+
PasteFromOffice,
|
|
94
|
+
RemoveFormat,
|
|
95
|
+
SelectAll,
|
|
96
|
+
ShowBlocks,
|
|
97
|
+
SourceEditing,
|
|
98
|
+
SpecialCharacters,
|
|
99
|
+
SpecialCharactersArrows,
|
|
100
|
+
SpecialCharactersCurrency,
|
|
101
|
+
SpecialCharactersEssentials,
|
|
102
|
+
SpecialCharactersLatin,
|
|
103
|
+
SpecialCharactersMathematical,
|
|
104
|
+
SpecialCharactersText,
|
|
105
|
+
StandardEditingMode,
|
|
106
|
+
Strikethrough,
|
|
107
|
+
Style,
|
|
108
|
+
Subscript,
|
|
109
|
+
Superscript,
|
|
110
|
+
Table,
|
|
111
|
+
TableCaption,
|
|
112
|
+
TableCellProperties,
|
|
113
|
+
TableColumnResize,
|
|
114
|
+
TableProperties,
|
|
115
|
+
TableToolbar,
|
|
116
|
+
TextPartLanguage,
|
|
117
|
+
TextTransformation,
|
|
118
|
+
Title,
|
|
119
|
+
TodoList,
|
|
120
|
+
Underline,
|
|
121
|
+
WordCount,
|
|
122
|
+
Timestamp
|
|
123
|
+
];
|
|
124
|
+
Editor.defaultConfig = {
|
|
125
|
+
extraAllowedContent: 'div[dir,id,lang,title](*){*}',
|
|
126
|
+
toolbar: {
|
|
127
|
+
items: [
|
|
128
|
+
'fontSize',
|
|
129
|
+
'fontFamily',
|
|
130
|
+
'heading',
|
|
131
|
+
'style',
|
|
132
|
+
'|',
|
|
133
|
+
'fontColor',
|
|
134
|
+
'fontBackgroundColor',
|
|
135
|
+
'|',
|
|
136
|
+
'bold',
|
|
137
|
+
'italic',
|
|
138
|
+
'underline',
|
|
139
|
+
'strikethrough',
|
|
140
|
+
'|',
|
|
141
|
+
'alignment',
|
|
142
|
+
'|',
|
|
143
|
+
'numberedList',
|
|
144
|
+
'bulletedList',
|
|
145
|
+
'|',
|
|
146
|
+
'outdent',
|
|
147
|
+
'indent',
|
|
148
|
+
'|',
|
|
149
|
+
'todoList',
|
|
150
|
+
'link',
|
|
151
|
+
'blockQuote',
|
|
152
|
+
'imageUpload',
|
|
153
|
+
'insertTable',
|
|
154
|
+
'mediaEmbed',
|
|
155
|
+
'|',
|
|
156
|
+
'undo',
|
|
157
|
+
'redo',
|
|
158
|
+
'-',
|
|
159
|
+
'specialCharacters',
|
|
160
|
+
'restrictedEditingException',
|
|
161
|
+
'codeBlock',
|
|
162
|
+
'code',
|
|
163
|
+
'findAndReplace',
|
|
164
|
+
'highlight',
|
|
165
|
+
'htmlEmbed',
|
|
166
|
+
'horizontalLine',
|
|
167
|
+
'imageInsert',
|
|
168
|
+
'pageBreak',
|
|
169
|
+
'removeFormat',
|
|
170
|
+
'selectAll',
|
|
171
|
+
'showBlocks',
|
|
172
|
+
'sourceEditing',
|
|
173
|
+
'subscript',
|
|
174
|
+
'superscript',
|
|
175
|
+
'textPartLanguage',
|
|
176
|
+
'timestamp'
|
|
177
|
+
],
|
|
178
|
+
shouldNotGroupWhenFull: true,
|
|
179
|
+
autoTextoOptions: {
|
|
180
|
+
options: [
|
|
181
|
+
{
|
|
182
|
+
value: 'Conteudo da opção 1',
|
|
183
|
+
label: 'Opção 1'
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
language: 'pt-br',
|
|
189
|
+
image: {
|
|
190
|
+
toolbar: [
|
|
191
|
+
'imageTextAlternative',
|
|
192
|
+
'toggleImageCaption',
|
|
193
|
+
'imageStyle:inline',
|
|
194
|
+
'imageStyle:block',
|
|
195
|
+
'imageStyle:side',
|
|
196
|
+
'linkImage'
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
table: {
|
|
200
|
+
contentToolbar: [
|
|
201
|
+
'tableColumn',
|
|
202
|
+
'tableRow',
|
|
203
|
+
'mergeTableCells',
|
|
204
|
+
'tableCellProperties',
|
|
205
|
+
'tableProperties'
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
export default { Editor, EditorWatchdog };
|
|
210
|
+
//# sourceMappingURL=ckeditor.js.map
|