magic-editor-x 1.6.0 → 2.0.0

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +268 -0
  2. package/LICENSE +1 -7
  3. package/README.md +324 -981
  4. package/dist/admin/ConfigurationPage-B1uCIE3J.js +767 -0
  5. package/dist/admin/ConfigurationPage-DvAifELO.mjs +767 -0
  6. package/dist/admin/CustomBlocksPage-6-OQwpXQ.mjs +1741 -0
  7. package/dist/admin/CustomBlocksPage-6eWCOreU.js +1743 -0
  8. package/dist/admin/EditorField-DocyD2Q3.js +5506 -0
  9. package/dist/admin/EditorField-ThSoOCPm.mjs +5471 -0
  10. package/dist/admin/api-B-RsxJCs.js +34 -0
  11. package/dist/admin/api-C4XsDZxd.mjs +35 -0
  12. package/dist/admin/de-B8XFFhHh.js +95 -0
  13. package/dist/admin/de-BMxADn2Z.mjs +231 -0
  14. package/dist/admin/de-DBR893G4.js +13 -0
  15. package/dist/admin/de-DcDPRzV4.js +155 -0
  16. package/dist/admin/de-Dx7vUW0Z.js +231 -0
  17. package/dist/admin/de-RAxzvrwm.mjs +95 -0
  18. package/dist/admin/de-fBFh09Wl.mjs +13 -0
  19. package/dist/admin/de-n5V6c5RT.mjs +155 -0
  20. package/dist/admin/en-BQ5Pxe2o.mjs +231 -0
  21. package/dist/admin/en-BqNm3nMQ.mjs +155 -0
  22. package/dist/admin/en-BzfyifEU.mjs +95 -0
  23. package/dist/admin/en-D-DGftl0.js +155 -0
  24. package/dist/admin/en-D9Nfccux.mjs +13 -0
  25. package/dist/admin/en-DcWUTE2J.js +95 -0
  26. package/dist/admin/en-gueRT44P.js +13 -0
  27. package/dist/admin/en-sNn4z9lA.js +231 -0
  28. package/dist/admin/es-B0Zy8DVg.mjs +13 -0
  29. package/dist/admin/es-B6NYq0VH.mjs +231 -0
  30. package/dist/admin/es-BOtVc9qv.js +95 -0
  31. package/dist/admin/es-C2OJVYkV.mjs +95 -0
  32. package/dist/admin/es-DRGs7meF.js +13 -0
  33. package/dist/admin/es-DVsXnS0N.js +231 -0
  34. package/dist/admin/es-Di0pyQCh.js +155 -0
  35. package/dist/admin/es-SzeTV4q8.mjs +155 -0
  36. package/dist/admin/fr-B8rdLAIL.js +13 -0
  37. package/dist/admin/fr-Bpo5Uq1f.mjs +95 -0
  38. package/dist/admin/fr-D6F--jIB.js +155 -0
  39. package/dist/admin/fr-DfxKaOc_.js +95 -0
  40. package/dist/admin/fr-DhgPYHIH.mjs +155 -0
  41. package/dist/admin/fr-DmG3_Cn-.mjs +231 -0
  42. package/dist/admin/fr-Fwxcj4SM.js +231 -0
  43. package/dist/admin/fr-oiUb2bb_.mjs +13 -0
  44. package/dist/admin/index-CwfaB5-e.js +155 -0
  45. package/dist/admin/index-D1Q5Rlt6.mjs +156 -0
  46. package/dist/admin/index.js +1 -1
  47. package/dist/admin/index.mjs +2 -2
  48. package/dist/admin/pt-B3Jce6uT.mjs +13 -0
  49. package/dist/admin/pt-BPo0ex21.js +155 -0
  50. package/dist/admin/pt-BbdwHlWF.mjs +231 -0
  51. package/dist/admin/pt-BiWuSBcH.js +13 -0
  52. package/dist/admin/pt-BvSl1btT.mjs +155 -0
  53. package/dist/admin/pt-C6nr71Yw.js +231 -0
  54. package/dist/admin/pt-DqCXuI4S.mjs +95 -0
  55. package/dist/admin/pt-LCvjwk0y.js +95 -0
  56. package/dist/admin/sanitize-9UVcXFfc.js +552 -0
  57. package/dist/admin/sanitize-D4kfZ_ly.mjs +551 -0
  58. package/dist/admin/useT-B5M49wGH.js +130 -0
  59. package/dist/admin/useT-CjX6fL2m.mjs +131 -0
  60. package/dist/server/index.js +4150 -64739
  61. package/dist/server/index.mjs +4150 -64748
  62. package/package.json +90 -66
  63. package/strapi-admin.js +3 -0
  64. package/strapi-server.js +3 -0
  65. package/COPYRIGHT_NOTICE.txt +0 -20
  66. package/dist/admin/App-BwMEZnS-.mjs +0 -2144
  67. package/dist/admin/App-HNr2tizR.js +0 -2147
  68. package/dist/admin/CustomBlocksPage-BjcA7MGz.js +0 -1519
  69. package/dist/admin/CustomBlocksPage-COPOZ2-_.mjs +0 -1517
  70. package/dist/admin/LicensePage-D0DMTF41.mjs +0 -392
  71. package/dist/admin/LicensePage-D0_9yPkw.js +0 -394
  72. package/dist/admin/LiveCollaborationPanel-CZAbgAVr.js +0 -223
  73. package/dist/admin/LiveCollaborationPanel-D8z72afw.mjs +0 -221
  74. package/dist/admin/Settings-DRenvRcG.js +0 -441
  75. package/dist/admin/Settings-DjyNURlS.mjs +0 -439
  76. package/dist/admin/de-C_0Mj-Zo.mjs +0 -296
  77. package/dist/admin/de-DVNVpAt9.js +0 -296
  78. package/dist/admin/en-B7AAf1ie.mjs +0 -296
  79. package/dist/admin/en-C2hv5GsA.js +0 -296
  80. package/dist/admin/es-BzJqcIST.js +0 -274
  81. package/dist/admin/es-zdP8sd-f.mjs +0 -274
  82. package/dist/admin/fr-CtAgOgH1.mjs +0 -274
  83. package/dist/admin/fr-D3GwqAAJ.js +0 -274
  84. package/dist/admin/getTranslation-2OiEgVGt.mjs +0 -49459
  85. package/dist/admin/getTranslation-DQ_WJ-7M.js +0 -49475
  86. package/dist/admin/index-Bn2tfJrC.js +0 -2186
  87. package/dist/admin/index-DAtClhqy.js +0 -6956
  88. package/dist/admin/index-FVEbTfqO.mjs +0 -2187
  89. package/dist/admin/index-gjWl-6E2.mjs +0 -6934
  90. package/dist/admin/magic-editor-x.css +0 -1103
  91. package/dist/admin/pt-BmUw6YMP.mjs +0 -274
  92. package/dist/admin/pt-CFo0nTbj.js +0 -274
  93. package/dist/admin/tools-CzHTZaY_.mjs +0 -2268
  94. package/dist/admin/tools-DALFhvPO.js +0 -2299
  95. package/pics/collab-magiceditorX.png +0 -0
  96. package/pics/editorX.png +0 -0
  97. package/pics/liveCollabwidget1.png +0 -0
@@ -1,1103 +0,0 @@
1
- /**
2
- * Magic Editor X - EditorJS Block Styles
3
- * Note: Layout styles are handled by styled-components
4
- */
5
-
6
- /* ============================================
7
- EDITORJS CORE
8
- ============================================ */
9
-
10
- .codex-editor {
11
- position: relative;
12
- }
13
-
14
- .ce-block__content {
15
- max-width: 100% !important;
16
- margin: 0 !important;
17
- width: 100% !important;
18
- }
19
-
20
- .ce-toolbar__content {
21
- max-width: 100% !important;
22
- margin: 0 !important;
23
- }
24
-
25
- .ce-toolbar__actions {
26
- width: 98%;
27
- }
28
-
29
- .ce-toolbar {
30
- z-index: 30 !important;
31
- margin-left: 10px;
32
- }
33
-
34
- /* Hide the dark popover header bar - but keep search functional */
35
- .ce-popover__custom-content {
36
- display: none !important;
37
- }
38
-
39
- /* CRITICAL: Allow inline toolbar (text selection) to overflow */
40
- .ce-inline-toolbar,
41
- .ce-inline-toolbar .ce-popover,
42
- .ce-inline-toolbar .ce-popover__container,
43
- .ce-inline-toolbar .ce-popover__items {
44
- overflow: visible !important;
45
- }
46
-
47
- /* Fix nested popover width - remove min-width constraint */
48
- .ce-popover--inline .ce-popover--nested .ce-popover__container,
49
- .ce-popover--inline.ce-popover--opened .ce-popover--nested .ce-popover__container,
50
- .ce-popover--inline .ce-popover--nested.ce-popover--opened .ce-popover__container,
51
- .ce-popover--inline .ce-popover--nested.ce-popover--nested-level-1 .ce-popover__container,
52
- div.ce-popover.ce-popover--inline div.ce-popover.ce-popover--nested div.ce-popover__container {
53
- min-width: 0 !important;
54
- min-width: unset !important;
55
- }
56
-
57
- /* Search input in toolbox - styling only, let EditorJS control visibility */
58
- .ce-popover__search {
59
- padding: 12px !important;
60
- margin: 0 !important;
61
- border-bottom: 1px solid #e2e8f0 !important;
62
- background: white !important;
63
- }
64
-
65
- /* Hide the search icon */
66
- .ce-popover__search-icon {
67
- display: none !important;
68
- }
69
-
70
- .ce-popover__search-input {
71
- width: 100% !important;
72
- padding: 10px 14px !important;
73
- border: 1px solid #e2e8f0 !important;
74
- border-radius: 10px !important;
75
- background: #f8fafc !important;
76
- font-size: 14px !important;
77
- color: #334155 !important;
78
- outline: none !important;
79
- transition: all 0.15s ease !important;
80
- box-sizing: border-box !important;
81
- }
82
-
83
- .ce-popover__search-input:focus {
84
- border-color: #7C3AED !important;
85
- background: white !important;
86
- box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
87
- }
88
-
89
- .ce-popover__search-input::placeholder {
90
- color: #94a3b8 !important;
91
- }
92
-
93
- /* Nothing found message - EditorJS controls visibility via inline styles */
94
- /* We only style it, don't override display */
95
- .ce-popover__nothing-found-message {
96
- padding: 16px !important;
97
- text-align: center !important;
98
- color: #64748b !important;
99
- font-size: 14px !important;
100
- /* Let EditorJS control visibility - it uses display:none when items exist */
101
- }
102
-
103
- /* Hide the dark tooltip on hover */
104
- .ce-toolbar__tooltip,
105
- .ct,
106
- .ct__content,
107
- [data-ct],
108
- .codex-tooltip,
109
- .ce-settings__button::before,
110
- .ce-toolbar__plus::before,
111
- .ce-toolbar__settings-btn::before {
112
- display: none !important;
113
- opacity: 0 !important;
114
- visibility: hidden !important;
115
- }
116
-
117
- /* Plus Button */
118
- .ce-toolbar__plus {
119
- width: 38px;
120
- height: 38px;
121
- color: #7C3AED;
122
- background: linear-gradient(135deg, #f8f5ff 0%, #ede9fe 100%);
123
- border-radius: 10px;
124
- transition: all 0.2s ease;
125
- border: 1px solid #e9e3f5;
126
- position: relative;
127
- left: 6px;
128
- z-index: 31;
129
- }
130
-
131
- .ce-toolbar__plus:hover {
132
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
133
- color: white;
134
- transform: rotate(90deg) scale(1.05);
135
- border-color: transparent;
136
- box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
137
- }
138
-
139
- .ce-toolbar__plus::after,
140
- .ce-toolbar__settings-btn::after,
141
- .ce-inline-tool::after,
142
- .ce-toolbox__button::after {
143
- display: none !important;
144
- opacity: 0 !important;
145
- visibility: hidden !important;
146
- content: none !important;
147
- }
148
-
149
- /* Settings Button */
150
- .ce-toolbar__settings-btn {
151
- width: 38px;
152
- height: 38px;
153
- color: #64748b;
154
- background: #f8fafc;
155
- border-radius: 10px;
156
- transition: all 0.2s ease;
157
- border: 1px solid #e2e8f0;
158
- }
159
-
160
- .ce-toolbar__settings-btn:hover {
161
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
162
- color: white;
163
- border-color: transparent;
164
- box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
165
- }
166
-
167
- /* ============================================
168
- BLOCK STYLES
169
- ============================================ */
170
-
171
- .ce-block {
172
- padding: 6px 8px;
173
- margin: 4px 0;
174
- border-radius: 10px;
175
- transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
176
- border: 1px solid transparent;
177
- position: relative;
178
- }
179
-
180
- .ce-block:hover {
181
- background: rgba(124, 58, 237, 0.06);
182
- border-color: rgba(124, 58, 237, 0.25);
183
- box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
184
- }
185
-
186
- .ce-block--focused {
187
- background: rgba(124, 58, 237, 0.08);
188
- border-color: rgba(124, 58, 237, 0.4);
189
- box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
190
- }
191
-
192
- .ce-block--selected .ce-block__content {
193
- background: rgba(124, 58, 237, 0.08);
194
- border-radius: 6px;
195
- padding: 4px 8px;
196
- margin: -4px -8px;
197
- }
198
-
199
- /* ============================================
200
- HEADER
201
- ============================================ */
202
-
203
- .ce-header {
204
- padding: 8px 0;
205
- margin: 0;
206
- line-height: 1.3;
207
- font-weight: 700;
208
- color: #0f172a;
209
- }
210
-
211
- h1.ce-header { font-size: 2.5em; letter-spacing: -0.03em; }
212
- h2.ce-header { font-size: 2em; letter-spacing: -0.02em; }
213
- h3.ce-header { font-size: 1.5em; letter-spacing: -0.01em; }
214
- h4.ce-header { font-size: 1.25em; }
215
-
216
- /* ============================================
217
- PARAGRAPH
218
- ============================================ */
219
-
220
- .ce-paragraph {
221
- line-height: 1.8;
222
- font-size: 16px;
223
- color: #334155;
224
- }
225
-
226
- .ce-paragraph[data-placeholder]:empty::before {
227
- color: #94a3b8;
228
- font-style: normal;
229
- }
230
-
231
- /* ============================================
232
- LIST
233
- ============================================ */
234
-
235
- .cdx-list,
236
- .cdx-nested-list {
237
- padding-left: 28px;
238
- }
239
-
240
- .cdx-list__item,
241
- .cdx-nested-list__item-content {
242
- padding: 6px 0;
243
- line-height: 1.7;
244
- }
245
-
246
- /* ============================================
247
- CHECKLIST
248
- ============================================ */
249
-
250
- .cdx-checklist__item {
251
- display: flex;
252
- align-items: flex-start;
253
- padding: 10px 12px;
254
- margin: 4px 0;
255
- background: #fafbfc;
256
- border-radius: 10px;
257
- border: 1px solid transparent;
258
- transition: all 0.15s ease;
259
- }
260
-
261
- .cdx-checklist__item:hover {
262
- background: #f5f3ff;
263
- border-color: #e9e3f5;
264
- }
265
-
266
- .cdx-checklist__item-checkbox {
267
- width: 22px;
268
- height: 22px;
269
- border: 2px solid #cbd5e1;
270
- border-radius: 6px;
271
- margin-right: 14px;
272
- flex-shrink: 0;
273
- transition: all 0.2s ease;
274
- cursor: pointer;
275
- position: relative;
276
- }
277
-
278
- .cdx-checklist__item-checkbox:hover {
279
- border-color: #7C3AED;
280
- box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
281
- }
282
-
283
- .cdx-checklist__item--checked .cdx-checklist__item-checkbox {
284
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
285
- border-color: #7C3AED;
286
- }
287
-
288
- .cdx-checklist__item--checked .cdx-checklist__item-checkbox::after {
289
- content: '✓';
290
- color: white;
291
- font-size: 13px;
292
- font-weight: bold;
293
- position: absolute;
294
- top: 50%;
295
- left: 50%;
296
- transform: translate(-50%, -50%);
297
- }
298
-
299
- .cdx-checklist__item--checked .cdx-checklist__item-text {
300
- text-decoration: line-through;
301
- color: #94a3b8;
302
- }
303
-
304
- /* ============================================
305
- QUOTE
306
- ============================================ */
307
-
308
- .cdx-quote {
309
- padding: 24px 28px;
310
- border-left: 4px solid #7C3AED;
311
- background: linear-gradient(135deg, #faf8ff 0%, #f5f3ff 100%);
312
- border-radius: 0 16px 16px 0;
313
- margin: 16px 0;
314
- position: relative;
315
- }
316
-
317
- .cdx-quote::before {
318
- content: '"';
319
- position: absolute;
320
- top: 12px;
321
- left: 20px;
322
- font-size: 56px;
323
- color: #ddd6fe;
324
- font-family: Georgia, serif;
325
- line-height: 1;
326
- }
327
-
328
- .cdx-quote__text {
329
- font-style: italic;
330
- font-size: 17px;
331
- line-height: 1.75;
332
- color: #334155;
333
- padding-left: 32px;
334
- min-height: auto;
335
- }
336
-
337
- .cdx-quote__caption {
338
- margin-top: 14px;
339
- font-size: 14px;
340
- color: #7C3AED;
341
- font-weight: 600;
342
- padding-left: 32px;
343
- }
344
-
345
- .cdx-quote__caption::before {
346
- content: '— ';
347
- }
348
-
349
- /* ============================================
350
- WARNING
351
- ============================================ */
352
-
353
- .cdx-warning {
354
- display: flex;
355
- align-items: flex-start;
356
- padding: 20px 24px;
357
- background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
358
- border: 1px solid #fcd34d;
359
- border-radius: 16px;
360
- margin: 16px 0;
361
- }
362
-
363
- .cdx-warning__icon {
364
- width: 28px;
365
- height: 28px;
366
- margin-right: 18px;
367
- color: #d97706;
368
- flex-shrink: 0;
369
- }
370
-
371
- .cdx-warning__title {
372
- font-weight: 700;
373
- margin-bottom: 6px;
374
- color: #92400e;
375
- font-size: 15px;
376
- }
377
-
378
- .cdx-warning__message {
379
- font-size: 15px;
380
- line-height: 1.65;
381
- color: #78350f;
382
- }
383
-
384
- /* ============================================
385
- CODE
386
- ============================================ */
387
-
388
- .ce-code__textarea {
389
- font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;
390
- font-size: 14px;
391
- background: linear-gradient(180deg, #1e1e2e 0%, #252536 100%);
392
- color: #e2e8f0;
393
- border-radius: 16px;
394
- padding: 24px;
395
- border: none;
396
- resize: vertical;
397
- min-height: 140px;
398
- line-height: 1.65;
399
- tab-size: 2;
400
- box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
401
- }
402
-
403
- .ce-code__textarea::placeholder {
404
- color: #64748b;
405
- }
406
-
407
- /* ============================================
408
- TABLE
409
- ============================================ */
410
-
411
- .tc-table {
412
- width: 100%;
413
- border-collapse: separate;
414
- border-spacing: 0;
415
- margin: 16px 0;
416
- border: 1px solid #e2e8f0;
417
- border-radius: 16px;
418
- overflow: hidden;
419
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
420
- }
421
-
422
- .tc-table__cell {
423
- border: 1px solid #e2e8f0;
424
- padding: 14px 18px;
425
- vertical-align: top;
426
- transition: background 0.15s ease;
427
- font-size: 14px;
428
- }
429
-
430
- .tc-table__cell:focus {
431
- background: rgba(124, 58, 237, 0.05);
432
- outline: none;
433
- }
434
-
435
- .tc-table__cell--head {
436
- background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
437
- font-weight: 600;
438
- color: #334155;
439
- }
440
-
441
- .tc-row:first-child .tc-table__cell:first-child { border-top-left-radius: 15px; }
442
- .tc-row:first-child .tc-table__cell:last-child { border-top-right-radius: 15px; }
443
- .tc-row:last-child .tc-table__cell:first-child { border-bottom-left-radius: 15px; }
444
- .tc-row:last-child .tc-table__cell:last-child { border-bottom-right-radius: 15px; }
445
-
446
- /* ============================================
447
- DELIMITER
448
- ============================================ */
449
-
450
- .ce-delimiter {
451
- text-align: center;
452
- padding: 40px 0;
453
- position: relative;
454
- }
455
-
456
- .ce-delimiter::before {
457
- content: '';
458
- position: absolute;
459
- left: 50%;
460
- top: 50%;
461
- transform: translate(-50%, -50%);
462
- width: 100px;
463
- height: 4px;
464
- background: linear-gradient(90deg, transparent, #7C3AED, transparent);
465
- border-radius: 2px;
466
- }
467
-
468
- /* ============================================
469
- IMAGE
470
- ============================================ */
471
-
472
- .image-tool {
473
- border-radius: 16px;
474
- overflow: hidden;
475
- margin: 20px 0;
476
- background: #f8fafc;
477
- border: 1px solid #e2e8f0;
478
- transition: all 0.2s ease;
479
- }
480
-
481
- .image-tool:hover {
482
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
483
- transform: translateY(-2px);
484
- }
485
-
486
- .image-tool__image {
487
- max-width: 100%;
488
- display: block;
489
- }
490
-
491
- .image-tool__image-picture {
492
- max-width: 100%;
493
- display: block;
494
- }
495
-
496
- .image-tool__caption {
497
- font-size: 13px;
498
- color: #64748b;
499
- padding: 14px 18px;
500
- text-align: center;
501
- background: #f8fafc;
502
- border-top: 1px solid #e2e8f0;
503
- }
504
-
505
- .image-tool--withBorder .image-tool__image {
506
- border: 2px solid #e2e8f0;
507
- border-radius: 12px;
508
- margin: 12px;
509
- }
510
-
511
- .image-tool--withBackground .image-tool__image {
512
- background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
513
- padding: 32px;
514
- }
515
-
516
- .image-tool--stretched .image-tool__image-picture {
517
- width: 100%;
518
- }
519
-
520
- /* ============================================
521
- LINK TOOL
522
- ============================================ */
523
-
524
- .link-tool {
525
- border: 1px solid #e2e8f0;
526
- border-radius: 16px;
527
- overflow: hidden;
528
- margin: 16px 0;
529
- transition: all 0.2s ease;
530
- }
531
-
532
- .link-tool:hover {
533
- border-color: #7C3AED;
534
- box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
535
- transform: translateY(-2px);
536
- }
537
-
538
- .link-tool__content {
539
- display: flex;
540
- padding: 18px;
541
- background: linear-gradient(135deg, #fafbff 0%, #f8f9ff 100%);
542
- }
543
-
544
- .link-tool__image {
545
- width: 110px;
546
- height: 110px;
547
- object-fit: cover;
548
- border-radius: 12px;
549
- margin-right: 20px;
550
- flex-shrink: 0;
551
- border: 1px solid #e2e8f0;
552
- }
553
-
554
- .link-tool__title {
555
- font-weight: 700;
556
- font-size: 16px;
557
- margin-bottom: 8px;
558
- color: #1e293b;
559
- line-height: 1.4;
560
- }
561
-
562
- .link-tool__description {
563
- font-size: 14px;
564
- color: #64748b;
565
- line-height: 1.55;
566
- margin-bottom: 10px;
567
- display: -webkit-box;
568
- line-clamp: 2;
569
- -webkit-line-clamp: 2;
570
- -webkit-box-orient: vertical;
571
- overflow: hidden;
572
- }
573
-
574
- .link-tool__anchor {
575
- font-size: 13px;
576
- color: #7C3AED;
577
- font-weight: 600;
578
- }
579
-
580
- /* ============================================
581
- EMBED
582
- ============================================ */
583
-
584
- .embed-tool {
585
- margin: 20px 0;
586
- border-radius: 16px;
587
- overflow: hidden;
588
- border: 1px solid #e2e8f0;
589
- }
590
-
591
- .embed-tool__caption {
592
- text-align: center;
593
- font-size: 13px;
594
- color: #64748b;
595
- padding: 14px;
596
- background: #f8fafc;
597
- }
598
-
599
- /* ============================================
600
- RAW HTML
601
- ============================================ */
602
-
603
- .ce-rawtool__textarea {
604
- font-family: 'JetBrains Mono', 'Fira Code', monospace;
605
- font-size: 14px;
606
- background: linear-gradient(180deg, #1e1e2e 0%, #252536 100%);
607
- color: #e2e8f0;
608
- border-radius: 16px;
609
- padding: 24px;
610
- border: none;
611
- resize: vertical;
612
- min-height: 140px;
613
- width: 100%;
614
- line-height: 1.65;
615
- box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
616
- }
617
-
618
- /* ============================================
619
- ATTACHES
620
- ============================================ */
621
-
622
- .cdx-attaches {
623
- background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
624
- border: 1px solid #e2e8f0;
625
- border-radius: 16px;
626
- padding: 18px 22px;
627
- margin: 16px 0;
628
- display: flex;
629
- align-items: center;
630
- gap: 18px;
631
- transition: all 0.2s ease;
632
- }
633
-
634
- .cdx-attaches:hover {
635
- border-color: #7C3AED;
636
- box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
637
- }
638
-
639
- .cdx-attaches__file-icon {
640
- width: 54px;
641
- height: 54px;
642
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
643
- border-radius: 12px;
644
- display: flex;
645
- align-items: center;
646
- justify-content: center;
647
- color: white;
648
- font-weight: bold;
649
- font-size: 12px;
650
- text-transform: uppercase;
651
- box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
652
- }
653
-
654
- .cdx-attaches__file-info { flex: 1; }
655
-
656
- .cdx-attaches__title {
657
- font-weight: 600;
658
- font-size: 15px;
659
- color: #1e293b;
660
- margin-bottom: 4px;
661
- }
662
-
663
- .cdx-attaches__size {
664
- font-size: 13px;
665
- color: #64748b;
666
- }
667
-
668
- /* ============================================
669
- INLINE TOOLS
670
- ============================================ */
671
-
672
- .ce-inline-toolbar {
673
- background: white;
674
- border: 1px solid #e2e8f0;
675
- border-radius: 12px;
676
- box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
677
- padding: 6px;
678
- z-index: 9999 !important;
679
- }
680
-
681
- .ce-inline-tool {
682
- width: 36px;
683
- height: 36px;
684
- color: #475569;
685
- border-radius: 8px;
686
- transition: all 0.15s ease;
687
- }
688
-
689
- .ce-inline-tool:hover {
690
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
691
- color: white;
692
- }
693
-
694
- .ce-inline-tool--active {
695
- color: #7C3AED;
696
- background: rgba(124, 58, 237, 0.1);
697
- }
698
-
699
- /* Marker */
700
- mark.cdx-marker {
701
- background: linear-gradient(120deg, #fef08a 0%, #fde047 100%);
702
- padding: 3px 6px;
703
- border-radius: 4px;
704
- }
705
-
706
- /* Inline Code */
707
- code.inline-code {
708
- background: #f1f5f9;
709
- padding: 4px 10px;
710
- border-radius: 6px;
711
- font-family: 'JetBrains Mono', monospace;
712
- font-size: 0.875em;
713
- color: #7C3AED;
714
- border: 1px solid #e2e8f0;
715
- }
716
-
717
- /* Underline */
718
- u {
719
- text-decoration-color: #7C3AED;
720
- text-decoration-thickness: 2px;
721
- text-underline-offset: 3px;
722
- }
723
-
724
- /* ============================================
725
- SETTINGS & TOOLBOX
726
- ============================================ */
727
-
728
- .ce-settings {
729
- background: white;
730
- border: 1px solid #e2e8f0;
731
- border-radius: 16px;
732
- box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
733
- padding: 10px;
734
- z-index: 9999 !important;
735
- }
736
-
737
- .ce-settings__button {
738
- width: 40px;
739
- height: 40px;
740
- color: #475569;
741
- border-radius: 10px;
742
- transition: all 0.15s ease;
743
- }
744
-
745
- .ce-settings__button:hover {
746
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
747
- color: white;
748
- }
749
-
750
- .ce-settings__button--active {
751
- background: rgba(124, 58, 237, 0.1);
752
- color: #7C3AED;
753
- }
754
-
755
- .ce-toolbox {
756
- background: white;
757
- border: 1px solid #e2e8f0;
758
- border-radius: 16px;
759
- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
760
- padding: 10px;
761
- z-index: 9999 !important;
762
- }
763
-
764
- .ce-toolbox__button {
765
- width: 100%;
766
- padding: 12px 16px;
767
- color: #475569;
768
- border-radius: 10px;
769
- transition: all 0.15s ease;
770
- display: flex;
771
- align-items: center;
772
- gap: 14px;
773
- }
774
-
775
- .ce-toolbox__button:hover {
776
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
777
- color: white;
778
- }
779
-
780
- /* ============================================
781
- CONVERSION TOOLBAR
782
- ============================================ */
783
-
784
- .ce-conversion-toolbar {
785
- background: white;
786
- border: 1px solid #e2e8f0;
787
- border-radius: 16px;
788
- box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
789
- padding: 10px;
790
- z-index: 9999 !important;
791
- }
792
-
793
- .ce-conversion-tool {
794
- padding: 12px 16px;
795
- color: #475569;
796
- border-radius: 10px;
797
- transition: all 0.15s ease;
798
- }
799
-
800
- .ce-conversion-tool:hover {
801
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
802
- color: white;
803
- }
804
-
805
- /* ============================================
806
- POPOVER (Toolbox Dropdown)
807
- ============================================ */
808
-
809
- .ce-popover {
810
- background: white;
811
- border: 1px solid #e2e8f0;
812
- border-radius: 16px;
813
- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
814
- z-index: 9999 !important;
815
- }
816
-
817
- /* Toolbox Popover - Responsive Scroll Behavior */
818
- .ce-popover:not(.ce-popover--inline) {
819
- max-height: 60vh;
820
- display: flex !important;
821
- flex-direction: column !important;
822
- overflow: hidden !important;
823
- }
824
-
825
- /* Popover items container - scrollable area */
826
- .ce-popover__items {
827
- padding: 8px;
828
- flex: 1 !important;
829
- overflow-y: auto !important;
830
- overflow-x: hidden !important;
831
- scrollbar-width: thin;
832
- scrollbar-color: #c4b5fd #f1f5f9;
833
- }
834
-
835
- /* Custom scrollbar for webkit browsers */
836
- .ce-popover__items::-webkit-scrollbar {
837
- width: 6px;
838
- }
839
-
840
- .ce-popover__items::-webkit-scrollbar-track {
841
- background: #f1f5f9;
842
- border-radius: 3px;
843
- }
844
-
845
- .ce-popover__items::-webkit-scrollbar-thumb {
846
- background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 100%);
847
- border-radius: 3px;
848
- }
849
-
850
- .ce-popover__items::-webkit-scrollbar-thumb:hover {
851
- background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 100%);
852
- }
853
-
854
- /* Larger screens - show more items */
855
- @media (min-height: 700px) {
856
- .ce-popover:not(.ce-popover--inline) {
857
- max-height: 70vh;
858
- }
859
- }
860
-
861
- @media (min-height: 900px) {
862
- .ce-popover:not(.ce-popover--inline) {
863
- max-height: 80vh;
864
- }
865
- }
866
-
867
- /* Very tall screens - show everything */
868
- @media (min-height: 1100px) {
869
- .ce-popover:not(.ce-popover--inline) {
870
- max-height: none;
871
- }
872
- .ce-popover__items {
873
- overflow-y: visible !important;
874
- }
875
- }
876
-
877
- .ce-popover__item {
878
- padding: 12px 18px;
879
- color: #475569;
880
- border-radius: 10px;
881
- transition: all 0.15s ease;
882
- }
883
-
884
- .ce-popover__item:hover {
885
- background: linear-gradient(135deg, #7C3AED 0%, #6d28d9 100%);
886
- color: white;
887
- }
888
-
889
- .ce-popover__item-icon {
890
- width: 30px;
891
- height: 30px;
892
- background: #f1f5f9;
893
- border-radius: 8px;
894
- display: flex;
895
- align-items: center;
896
- justify-content: center;
897
- margin-right: 14px;
898
- }
899
-
900
- .ce-popover__item:hover .ce-popover__item-icon {
901
- background: rgba(255, 255, 255, 0.2);
902
- }
903
-
904
- /* ============================================
905
- FOCUS & SELECTION
906
- ============================================ */
907
-
908
- .ce-block:focus,
909
- .ce-block *:focus {
910
- outline: none;
911
- }
912
-
913
- ::selection {
914
- background-color: rgba(124, 58, 237, 0.2);
915
- }
916
-
917
- /* ============================================
918
- ANIMATIONS
919
- ============================================ */
920
-
921
- @keyframes fadeInUp {
922
- from {
923
- opacity: 0;
924
- transform: translateY(10px);
925
- }
926
- to {
927
- opacity: 1;
928
- transform: translateY(0);
929
- }
930
- }
931
-
932
- .ce-block {
933
- animation: fadeInUp 0.25s ease;
934
- }
935
- /**
936
- * AI Assistant Styles for Editor.js
937
- * Inline toolbar, suggestions, and tooltips
938
- */
939
-
940
- /* AI Suggestion Underlines */
941
- .ai-suggestion {
942
- text-decoration: underline wavy;
943
- text-decoration-thickness: 2px;
944
- text-underline-offset: 2px;
945
- cursor: pointer;
946
- position: relative;
947
- transition: background 0.15s ease;
948
- }
949
-
950
- .ai-suggestion[data-type="grammar"],
951
- .ai-suggestion[data-type="spelling"] {
952
- text-decoration-color: #ef4444;
953
- }
954
-
955
- .ai-suggestion[data-type="style"] {
956
- text-decoration-color: #f59e0b;
957
- }
958
-
959
- .ai-suggestion[data-type="suggestion"] {
960
- text-decoration-color: #3b82f6;
961
- }
962
-
963
- .ai-suggestion:hover {
964
- background: rgba(124, 58, 237, 0.1);
965
- border-radius: 2px;
966
- }
967
-
968
- /* AI Inline Toolbar Container */
969
- .ai-inline-toolbar-container {
970
- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
971
- z-index: 10000 !important;
972
- }
973
-
974
- .ai-inline-toolbar-container > div {
975
- z-index: 10000 !important;
976
- }
977
-
978
- /* Editor.js Inline Tool Button Customization */
979
- .ce-inline-tool--ai-assistant {
980
- position: relative;
981
- }
982
-
983
- .ce-inline-tool--ai-assistant svg {
984
- color: #7C3AED;
985
- }
986
-
987
- .ce-inline-tool--ai-assistant:hover svg {
988
- color: #6d28d9;
989
- }
990
-
991
- /* Loading State for AI Tool Button */
992
- .ce-inline-tool--ai-assistant.loading svg {
993
- animation: ai-pulse 1.5s ease-in-out infinite;
994
- }
995
-
996
- @keyframes ai-pulse {
997
- 0%, 100% {
998
- opacity: 1;
999
- }
1000
- 50% {
1001
- opacity: 0.5;
1002
- }
1003
- }
1004
-
1005
- /* Editor Block Hover Effect (for AI suggestions) */
1006
- .codex-editor__redactor .ce-block:hover .ai-suggestion {
1007
- text-decoration-color: rgba(239, 68, 68, 0.8);
1008
- }
1009
-
1010
- .codex-editor__redactor .ce-block:hover .ai-suggestion[data-type="style"] {
1011
- text-decoration-color: rgba(245, 158, 11, 0.8);
1012
- }
1013
-
1014
- .codex-editor__redactor .ce-block:hover .ai-suggestion[data-type="suggestion"] {
1015
- text-decoration-color: rgba(59, 130, 246, 0.8);
1016
- }
1017
-
1018
- /* Tooltip Accessibility */
1019
- .ai-suggestion:focus {
1020
- outline: 2px solid #7C3AED;
1021
- outline-offset: 2px;
1022
- border-radius: 2px;
1023
- }
1024
-
1025
- /* Mobile Responsive */
1026
- @media (max-width: 768px) {
1027
- .ai-inline-toolbar-container > div {
1028
- max-width: calc(100vw - 40px);
1029
- left: 20px !important;
1030
- right: 20px !important;
1031
- }
1032
-
1033
- .ai-inline-toolbar-container button span {
1034
- display: none;
1035
- }
1036
-
1037
- .ai-inline-toolbar-container button {
1038
- padding: 6px 8px;
1039
- }
1040
- }
1041
-
1042
- /* Print Styles - Hide AI suggestions when printing */
1043
- @media print {
1044
- .ai-suggestion {
1045
- text-decoration: none !important;
1046
- }
1047
-
1048
- .ai-inline-toolbar-container {
1049
- display: none !important;
1050
- }
1051
- }
1052
-
1053
- /* Dark Mode Support (if Strapi admin is in dark mode) */
1054
- @media (prefers-color-scheme: dark) {
1055
- .ai-inline-toolbar-container > div {
1056
- background: #1e293b;
1057
- border-color: #334155;
1058
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
1059
- }
1060
-
1061
- .ai-inline-toolbar-container button {
1062
- color: #e2e8f0;
1063
- }
1064
-
1065
- .ai-inline-toolbar-container button:hover {
1066
- background: #334155;
1067
- color: #a78bfa;
1068
- }
1069
- }
1070
-
1071
- /* Smooth Transitions */
1072
- .ai-suggestion,
1073
- .ai-inline-toolbar-container button {
1074
- transition: all 0.15s ease;
1075
- }
1076
-
1077
- /* Selection Highlight Enhancement */
1078
- ::selection {
1079
- background: rgba(124, 58, 237, 0.2);
1080
- }
1081
-
1082
- ::-moz-selection {
1083
- background: rgba(124, 58, 237, 0.2);
1084
- }
1085
-
1086
- /* Custom Scrollbar for AI Tooltips */
1087
- .ai-tooltip-content::-webkit-scrollbar {
1088
- width: 6px;
1089
- }
1090
-
1091
- .ai-tooltip-content::-webkit-scrollbar-track {
1092
- background: #f1f5f9;
1093
- border-radius: 3px;
1094
- }
1095
-
1096
- .ai-tooltip-content::-webkit-scrollbar-thumb {
1097
- background: #cbd5e1;
1098
- border-radius: 3px;
1099
- }
1100
-
1101
- .ai-tooltip-content::-webkit-scrollbar-thumb:hover {
1102
- background: #94a3b8;
1103
- }