@ckeditor/ckeditor5-engine 48.8.1-alpha.4 → 49.0.0-alpha.1

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 (135) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/controller/datacontroller.d.ts +329 -314
  3. package/dist/controller/editingcontroller.d.ts +95 -94
  4. package/dist/conversion/comparemarkers.d.ts +45 -45
  5. package/dist/conversion/conversion.d.ts +474 -474
  6. package/dist/conversion/conversionhelpers.d.ts +21 -21
  7. package/dist/conversion/downcastdispatcher.d.ts +539 -538
  8. package/dist/conversion/downcasthelpers.d.ts +1129 -1129
  9. package/dist/conversion/mapper.d.ts +692 -697
  10. package/dist/conversion/modelconsumable.d.ts +196 -196
  11. package/dist/conversion/upcastdispatcher.d.ts +483 -475
  12. package/dist/conversion/upcasthelpers.d.ts +491 -491
  13. package/dist/conversion/viewconsumable.d.ts +330 -330
  14. package/dist/dataprocessor/basichtmlwriter.d.ts +15 -15
  15. package/dist/dataprocessor/dataprocessor.d.ts +57 -57
  16. package/dist/dataprocessor/htmldataprocessor.d.ts +72 -72
  17. package/dist/dataprocessor/htmlwriter.d.ts +11 -11
  18. package/dist/dataprocessor/xmldataprocessor.d.ts +86 -86
  19. package/dist/dev-utils/model.d.ts +128 -116
  20. package/dist/dev-utils/operationreplayer.d.ts +49 -49
  21. package/dist/dev-utils/utils.d.ts +33 -33
  22. package/dist/dev-utils/view.d.ts +314 -309
  23. package/dist/engineconfig.d.ts +39 -39
  24. package/dist/index-content.css +3 -0
  25. package/dist/index-content.css.map +1 -0
  26. package/dist/index-editor.css +33 -29
  27. package/dist/index-editor.css.map +1 -0
  28. package/dist/index.css +26 -24
  29. package/dist/index.css.map +1 -1
  30. package/dist/index.d.ts +152 -150
  31. package/dist/index.js +34246 -40050
  32. package/dist/index.js.map +1 -1
  33. package/dist/legacyerrors.d.ts +0 -4
  34. package/dist/model/batch.d.ts +86 -86
  35. package/dist/model/differ.d.ts +504 -504
  36. package/dist/model/document.d.ts +265 -262
  37. package/dist/model/documentfragment.d.ts +214 -214
  38. package/dist/model/documentselection.d.ts +412 -410
  39. package/dist/model/element.d.ts +182 -182
  40. package/dist/model/history.d.ts +109 -109
  41. package/dist/model/item.d.ts +9 -9
  42. package/dist/model/liveposition.d.ts +81 -69
  43. package/dist/model/liverange.d.ts +118 -92
  44. package/dist/model/markercollection.d.ts +317 -324
  45. package/dist/model/model.d.ts +889 -909
  46. package/dist/model/node.d.ts +254 -254
  47. package/dist/model/nodelist.d.ts +110 -110
  48. package/dist/model/operation/attributeoperation.d.ts +98 -98
  49. package/dist/model/operation/detachoperation.d.ts +57 -57
  50. package/dist/model/operation/insertoperation.d.ts +85 -85
  51. package/dist/model/operation/markeroperation.d.ts +87 -87
  52. package/dist/model/operation/mergeoperation.d.ts +95 -95
  53. package/dist/model/operation/moveoperation.d.ts +97 -91
  54. package/dist/model/operation/nooperation.d.ts +33 -33
  55. package/dist/model/operation/operation.d.ts +94 -94
  56. package/dist/model/operation/operationfactory.d.ts +14 -14
  57. package/dist/model/operation/renameoperation.d.ts +78 -78
  58. package/dist/model/operation/rootattributeoperation.d.ts +93 -93
  59. package/dist/model/operation/rootoperation.d.ts +71 -71
  60. package/dist/model/operation/splitoperation.d.ts +104 -104
  61. package/dist/model/operation/transform.d.ts +91 -91
  62. package/dist/model/operation/utils.d.ts +58 -58
  63. package/dist/model/position.d.ts +542 -535
  64. package/dist/model/range.d.ts +467 -453
  65. package/dist/model/rootelement.d.ts +55 -55
  66. package/dist/model/schema.d.ts +1325 -1327
  67. package/dist/model/selection.d.ts +452 -471
  68. package/dist/model/text.d.ts +62 -62
  69. package/dist/model/textproxy.d.ts +140 -140
  70. package/dist/model/treewalker.d.ts +190 -190
  71. package/dist/model/typecheckable.d.ts +281 -281
  72. package/dist/model/utils/autoparagraphing.d.ts +29 -29
  73. package/dist/model/utils/deletecontent.d.ts +68 -68
  74. package/dist/model/utils/getselectedcontent.d.ts +27 -27
  75. package/dist/model/utils/insertcontent.d.ts +42 -42
  76. package/dist/model/utils/insertobject.d.ts +41 -41
  77. package/dist/model/utils/modifyselection.d.ts +44 -44
  78. package/dist/model/utils/selection-post-fixer.d.ts +71 -71
  79. package/dist/model/writer.d.ts +857 -848
  80. package/dist/view/attributeelement.d.ts +123 -123
  81. package/dist/view/containerelement.d.ts +49 -49
  82. package/dist/view/datatransfer.d.ts +70 -70
  83. package/dist/view/document.d.ts +175 -177
  84. package/dist/view/documentfragment.d.ts +158 -157
  85. package/dist/view/documentselection.d.ts +308 -307
  86. package/dist/view/domconverter.d.ts +614 -658
  87. package/dist/view/downcastwriter.d.ts +1012 -1006
  88. package/dist/view/editableelement.d.ts +64 -63
  89. package/dist/view/element.d.ts +754 -754
  90. package/dist/view/elementdefinition.d.ts +79 -79
  91. package/dist/view/emptyelement.d.ts +42 -42
  92. package/dist/view/filler.d.ts +75 -75
  93. package/dist/view/item.d.ts +9 -9
  94. package/dist/view/matcher.d.ts +412 -487
  95. package/dist/view/node.d.ts +164 -163
  96. package/dist/view/observer/arrowkeysobserver.d.ts +37 -37
  97. package/dist/view/observer/bubblingemittermixin.d.ts +163 -153
  98. package/dist/view/observer/bubblingeventinfo.d.ts +45 -42
  99. package/dist/view/observer/clickobserver.d.ts +36 -36
  100. package/dist/view/observer/compositionobserver.d.ts +67 -67
  101. package/dist/view/observer/domeventdata.d.ts +46 -46
  102. package/dist/view/observer/domeventobserver.d.ts +77 -74
  103. package/dist/view/observer/fakeselectionobserver.d.ts +42 -42
  104. package/dist/view/observer/focusobserver.d.ts +84 -84
  105. package/dist/view/observer/inputobserver.d.ts +76 -76
  106. package/dist/view/observer/keyobserver.d.ts +53 -53
  107. package/dist/view/observer/mouseobserver.d.ts +73 -73
  108. package/dist/view/observer/mutationobserver.d.ts +101 -101
  109. package/dist/view/observer/observer.d.ts +84 -83
  110. package/dist/view/observer/pointerobserver.d.ts +63 -63
  111. package/dist/view/observer/selectionobserver.d.ts +141 -137
  112. package/dist/view/observer/tabobserver.d.ts +38 -38
  113. package/dist/view/observer/touchobserver.d.ts +60 -60
  114. package/dist/view/placeholder.d.ts +77 -81
  115. package/dist/view/position.d.ts +187 -187
  116. package/dist/view/range.d.ts +282 -282
  117. package/dist/view/rawelement.d.ts +72 -72
  118. package/dist/view/renderer.d.ts +282 -273
  119. package/dist/view/rooteditableelement.d.ts +43 -43
  120. package/dist/view/selection.d.ts +356 -369
  121. package/dist/view/styles/background.d.ts +15 -15
  122. package/dist/view/styles/border.d.ts +27 -27
  123. package/dist/view/styles/margin.d.ts +12 -12
  124. package/dist/view/styles/padding.d.ts +12 -12
  125. package/dist/view/styles/utils.d.ts +72 -72
  126. package/dist/view/stylesmap.d.ts +715 -715
  127. package/dist/view/text.d.ts +75 -75
  128. package/dist/view/textproxy.d.ts +92 -92
  129. package/dist/view/tokenlist.d.ts +104 -104
  130. package/dist/view/treewalker.d.ts +201 -201
  131. package/dist/view/typecheckable.d.ts +445 -445
  132. package/dist/view/uielement.d.ts +93 -93
  133. package/dist/view/upcastwriter.d.ts +412 -412
  134. package/dist/view/view.d.ts +466 -468
  135. package/package.json +3 -3
@@ -1,47 +1,47 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module engine/engineconfig
7
- */
6
+ * @module engine/engineconfig
7
+ */
8
8
  /**
9
- * CKEditor engine configuration options.
10
- *
11
- * This is a base class for {@link module:core/editor/editorconfig~EditorConfig `EditorConfig`}.
12
- */
9
+ * CKEditor engine configuration options.
10
+ *
11
+ * This is a base class for {@link module:core/editor/editorconfig~EditorConfig `EditorConfig`}.
12
+ */
13
13
  export interface EngineConfig {
14
- /**
15
- * Enables specific experimental features in the editor for testing and feedback.
16
- */
17
- experimentalFlags?: ExperimentalFlagsConfig;
14
+ /**
15
+ * Enables specific experimental features in the editor for testing and feedback.
16
+ */
17
+ experimentalFlags?: ExperimentalFlagsConfig;
18
18
  }
19
19
  /**
20
- * The `experimentalFlags` configuration option enables integrators to turn on specific experimental
21
- * or pre-release features in CKEditor 5. These flags are primarily intended for testing and feedback purposes
22
- * during the development of new functionality.
23
- *
24
- * Each key in the `experimentalFlags` object represents a unique experimental feature identifier.
25
- * Setting the flag’s value to true activates the feature, while false (or absence of the key) keeps it disabled.
26
- *
27
- * **Notes:**
28
- * * Use with caution: Experimental features are not guaranteed to be stable and may change or be removed in future releases.
29
- * * No compatibility guarantees: Their APIs, behavior, and configuration may change without notice.
30
- * * Intended audience: This option is mainly for developers testing upcoming features, contributors, or early adopters
31
- * evaluating new editor capabilities.
32
- */
20
+ * The `experimentalFlags` configuration option enables integrators to turn on specific experimental
21
+ * or pre-release features in CKEditor 5. These flags are primarily intended for testing and feedback purposes
22
+ * during the development of new functionality.
23
+ *
24
+ * Each key in the `experimentalFlags` object represents a unique experimental feature identifier.
25
+ * Setting the flag’s value to true activates the feature, while false (or absence of the key) keeps it disabled.
26
+ *
27
+ * **Notes:**
28
+ * * Use with caution: Experimental features are not guaranteed to be stable and may change or be removed in future releases.
29
+ * * No compatibility guarantees: Their APIs, behavior, and configuration may change without notice.
30
+ * * Intended audience: This option is mainly for developers testing upcoming features, contributors, or early adopters
31
+ * evaluating new editor capabilities.
32
+ */
33
33
  export interface ExperimentalFlagsConfig {
34
- /**
35
- * Controls deep schema verification during
36
- * {@link module:engine/model/model~Model#insertContent `model.insertContent()`} operations.
37
- * This ensures that all elements and attributes in the inserted content fully conform to the schema — not just
38
- * at the top level — which helps identify structural inconsistencies early.
39
- *
40
- * This feature is **enabled by default**. Set to `false` only if you need to temporarily opt out.
41
- * This flag is deprecated and will be removed in a future release.
42
- *
43
- * @deprecated This flag is deprecated. Deep schema verification is now enabled by default.
44
- * Set to `false` only as a temporary workaround. The flag will be removed in a future release.
45
- */
46
- modelInsertContentDeepSchemaVerification?: boolean;
34
+ /**
35
+ * Controls deep schema verification during
36
+ * {@link module:engine/model/model~Model#insertContent `model.insertContent()`} operations.
37
+ * This ensures that all elements and attributes in the inserted content fully conform to the schema — not just
38
+ * at the top level — which helps identify structural inconsistencies early.
39
+ *
40
+ * This feature is **enabled by default**. Set to `false` only if you need to temporarily opt out.
41
+ * This flag is deprecated and will be removed in a future release.
42
+ *
43
+ * @deprecated This flag is deprecated. Deep schema verification is now enabled by default.
44
+ * Set to `false` only as a temporary workaround. The flag will be removed in a future release.
45
+ */
46
+ modelInsertContentDeepSchemaVerification?: boolean;
47
47
  }
@@ -2,3 +2,6 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
6
+
7
+ /*# sourceMappingURL=index-content.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index-content.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-content.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index-content.css.map */"]}
@@ -2,46 +2,50 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- .ck.ck-placeholder, .ck .ck-placeholder{
6
- position:relative;
7
- }
5
+ .ck.ck-placeholder, .ck .ck-placeholder {
6
+ position: relative;
8
7
 
9
- @media (forced-colors: active){
10
- .ck.ck-placeholder, .ck .ck-placeholder{
11
- forced-color-adjust:preserve-parent-color;
8
+ @media (forced-colors: active) {
9
+ forced-color-adjust: preserve-parent-color;
12
10
  }
13
- }
14
11
 
15
- :is(.ck.ck-placeholder, .ck .ck-placeholder):before{
16
- content:attr(data-placeholder);
17
- cursor:text;
18
- pointer-events:none;
19
- position:absolute;
20
- left:0;
21
- right:0;
22
- }
12
+ &:before {
13
+ content: attr(data-placeholder);
14
+ cursor: text;
15
+ pointer-events: none;
16
+ padding-left: inherit;
17
+ padding-right: inherit;
18
+ box-sizing: border-box;
19
+ white-space: nowrap;
20
+ text-overflow: ellipsis;
21
+ position: absolute;
22
+ left: 0;
23
+ right: 0;
24
+ overflow: hidden;
25
+
26
+ @media (forced-colors: none) {
27
+ color: var(--ck-color-engine-placeholder-text);
28
+ }
23
29
 
24
- @media (forced-colors: none){
25
- :is(.ck.ck-placeholder, .ck .ck-placeholder):before{
26
- color:var(--ck-color-engine-placeholder-text);
30
+ @media (forced-colors: active) {
31
+ margin-left: 1px;
32
+ font-style: italic;
33
+ }
27
34
  }
28
35
  }
29
36
 
30
- @media (forced-colors: active){
31
- :is(.ck.ck-placeholder, .ck .ck-placeholder):before{
32
- margin-left:1px;
33
- font-style:italic;
37
+ .ck.ck-read-only .ck-placeholder {
38
+ &:before {
39
+ display: none;
34
40
  }
35
41
  }
36
42
 
37
- .ck.ck-read-only .ck-placeholder:before{
38
- display:none;
43
+ .ck.ck-reset_all .ck-placeholder {
44
+ position: relative;
39
45
  }
40
46
 
41
- .ck.ck-reset_all .ck-placeholder{
42
- position:relative;
47
+ .ck.ck-editor__editable span[data-ck-unsafe-element] {
48
+ display: none;
43
49
  }
44
50
 
45
- .ck.ck-editor__editable span[data-ck-unsafe-element]{
46
- display:none;
47
- }
51
+ /*# sourceMappingURL=index-editor.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../theme/placeholder.css","index-editor.css","../theme/renderer.css"],"names":[],"mappings":";;;;AAMA,CAAA,EAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;ACLA,CAAC,CAAC,QAAQ,C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AAA,CAAA,EAAA,CAAA,KAAA,CAAA,MAAA,CAAA,WAAA,CAAA,IAAA,CAAA;ACrBhC,CAAC,CAAC,CAAC,CAAC;;AAEJ,CAAC,CAAC,CAAC,CDuBD,CAAA,KAAA,CAAA,CAAA,MAAA,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA,CAAA;ACtBF,CAAC,CAAC,CAAC,CAAC,CAAC,CDsB6B,MAAA,CAAA,IAAA,CAAA,CAAA,GAAA;ACrBlC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM;AACxB,CAAC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF;;ADmCA,CAAA,EAAA,CAAA,EAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;AChCA,CAAC,CDiCA,CAAA,CAAA,MAAA,CAAA;AChCD,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;AACjB,CAAC,CAAC;AACF;;ADuCA,CAAA,EAAA,CAAA,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;ACpCA,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ;AACpB;;AClCA,CAAA,EAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,CAAA,MAAA,CAAA,OAAA,CAAA,CAAA;ADqCA,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;AACf;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-editor.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n\n.ck.ck-placeholder, .ck .ck-placeholder {\n\tposition: relative;\n\n\t@media (forced-colors: active) {\n\t\t/*\n\t\t * This is needed for Edge on Windows to use the right color for the placeholder content (::before).\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t */\n\t\tforced-color-adjust: preserve-parent-color;\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\tcursor: text;\n\n\t\t/* See https://github.com/ckeditor/ckeditor5/issues/469. */\n\t\tpointer-events: none;\n\n\t\t/*\n\t\t * Inherit the content styles padding of the placeholder host.\n\t\t * This ensures the placeholder stays at the padding just like the native caret does, and not at the edge of editable.\n\t\t */\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * The padding should not expand element width when some other style set width to 100%.\n\t\t */\n\t\tbox-sizing: border-box;\n\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\n\t\t@media (forced-colors: none) {\n\t\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t\t}\n\n\t\t@media (forced-colors: active) {\n\t\t\t/*\n\t\t\t * In the high contrast mode there is no telling between regular and placeholder text. Using\n\t\t\t * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tfont-style: italic;\n\n\t\t\t/*\n\t\t\t * Without this margin, the caret will not show up and blink when the user puts the selection\n\t\t\t * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tmargin-left: 1px;\n\t\t}\n\t}\n}\n\n/* See https://github.com/ckeditor/ckeditor5/issues/1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n",".ck.ck-placeholder, .ck .ck-placeholder {\n position: relative;\n\n @media (forced-colors: active) {\n forced-color-adjust: preserve-parent-color;\n }\n\n &:before {\n content: attr(data-placeholder);\n cursor: text;\n pointer-events: none;\n padding-left: inherit;\n padding-right: inherit;\n box-sizing: border-box;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: absolute;\n left: 0;\n right: 0;\n overflow: hidden;\n\n @media (forced-colors: none) {\n color: var(--ck-color-engine-placeholder-text);\n }\n\n @media (forced-colors: active) {\n margin-left: 1px;\n font-style: italic;\n }\n }\n}\n\n.ck.ck-read-only .ck-placeholder {\n &:before {\n display: none;\n }\n}\n\n.ck.ck-reset_all .ck-placeholder {\n position: relative;\n}\n\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n display: none;\n}\n\n/*# sourceMappingURL=index-editor.css.map */","/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"]}
package/dist/index.css CHANGED
@@ -4,40 +4,42 @@
4
4
  */
5
5
  .ck.ck-placeholder, .ck .ck-placeholder {
6
6
  position: relative;
7
- }
8
7
 
9
- @media (forced-colors: active) {
10
- .ck.ck-placeholder, .ck .ck-placeholder {
8
+ @media (forced-colors: active) {
11
9
  forced-color-adjust: preserve-parent-color;
12
10
  }
13
- }
14
-
15
- :is(.ck.ck-placeholder, .ck .ck-placeholder):before {
16
- content: attr(data-placeholder);
17
- cursor: text;
18
- pointer-events: none;
19
- position: absolute;
20
- left: 0;
21
- right: 0;
22
- }
23
11
 
24
- @media (forced-colors: none) {
25
- :is(.ck.ck-placeholder, .ck .ck-placeholder):before {
26
- color: var(--ck-color-engine-placeholder-text);
12
+ &:before {
13
+ content: attr(data-placeholder);
14
+ cursor: text;
15
+ pointer-events: none;
16
+ padding-left: inherit;
17
+ padding-right: inherit;
18
+ box-sizing: border-box;
19
+ white-space: nowrap;
20
+ text-overflow: ellipsis;
21
+ position: absolute;
22
+ left: 0;
23
+ right: 0;
24
+ overflow: hidden;
25
+
26
+ @media (forced-colors: none) {
27
+ color: var(--ck-color-engine-placeholder-text);
28
+ }
29
+
30
+ @media (forced-colors: active) {
31
+ margin-left: 1px;
32
+ font-style: italic;
33
+ }
27
34
  }
28
35
  }
29
36
 
30
- @media (forced-colors: active) {
31
- :is(.ck.ck-placeholder, .ck .ck-placeholder):before {
32
- margin-left: 1px;
33
- font-style: italic;
37
+ .ck.ck-read-only .ck-placeholder {
38
+ &:before {
39
+ display: none;
34
40
  }
35
41
  }
36
42
 
37
- .ck.ck-read-only .ck-placeholder:before {
38
- display: none;
39
- }
40
-
41
43
  .ck.ck-reset_all .ck-placeholder {
42
44
  position: relative;
43
45
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../theme/placeholder.css","index.css","../theme/renderer.css"],"names":[],"mappings":";;;;AAMA,CAAA,EAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;ACLA,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ;AACpB;;ADOC,CAAA,KAAA,CAAA,CAAA,MAAA,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA,CAAA;ACJD,CAAC,CDIgC,CAAA,EAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;ACHjC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK;AAC9C,CAAC,CAAC;AACF;;ADSC,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA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AO,CAAC,CAAC,IAAI;AACf;;ADyBA,CAAA,EAAA,CAAA,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;ACtBA,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ;AACpB;;AChCA,CAAA,EAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,CAAA,MAAA,CAAA,OAAA,CAAA,CAAA;ADmCA,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;AACf;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n\n.ck.ck-placeholder, .ck .ck-placeholder {\n\tposition: relative;\n\n\t@media (forced-colors: active) {\n\t\t/*\n\t\t * This is needed for Edge on Windows to use the right color for the placeholder content (::before).\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t */\n\t\tforced-color-adjust: preserve-parent-color;\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\tcursor: text;\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\n\t\t@media (forced-colors: none) {\n\t\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t\t}\n\n\t\t@media (forced-colors: active) {\n\t\t\t/*\n\t\t\t * In the high contrast mode there is no telling between regular and placeholder text. Using\n\t\t\t * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tfont-style: italic;\n\n\t\t\t/*\n\t\t\t * Without this margin, the caret will not show up and blink when the user puts the selection\n\t\t\t * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tmargin-left: 1px;\n\t\t}\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n",".ck.ck-placeholder, .ck .ck-placeholder {\n position: relative;\n}\n\n@media (forced-colors: active) {\n .ck.ck-placeholder, .ck .ck-placeholder {\n forced-color-adjust: preserve-parent-color;\n }\n}\n\n:is(.ck.ck-placeholder, .ck .ck-placeholder):before {\n content: attr(data-placeholder);\n cursor: text;\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n}\n\n@media (forced-colors: none) {\n :is(.ck.ck-placeholder, .ck .ck-placeholder):before {\n color: var(--ck-color-engine-placeholder-text);\n }\n}\n\n@media (forced-colors: active) {\n :is(.ck.ck-placeholder, .ck .ck-placeholder):before {\n margin-left: 1px;\n font-style: italic;\n }\n}\n\n.ck.ck-read-only .ck-placeholder:before {\n display: none;\n}\n\n.ck.ck-reset_all .ck-placeholder {\n position: relative;\n}\n\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n display: none;\n}\n\n/*# sourceMappingURL=index.css.map */","/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"]}
1
+ {"version":3,"sources":["../theme/placeholder.css","index.css","../theme/renderer.css"],"names":[],"mappings":";;;;AAMA,CAAA,EAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CA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C,CAAC,CAAC,CDsB2B,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,MAAA,CAAA,WAAA,CAAA,IAAA,CAAA;ACrBhC,CAAC,CAAC,CAAC,CAAC;;AAEJ,CAAC,CAAC,CAAC,CDuBD,CAAA,KAAA,CAAA,CAAA,MAAA,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA,CAAA;ACtBF,CAAC,CAAC,CAAC,CAAC,CAAC,CDsB6B,MAAA,CAAA,IAAA,CAAA,CAAA,GAAA;ACrBlC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM;AACxB,CAAC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF;;ADmCA,CAAA,EAAA,CAAA,EAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;AChCA,CAAC,CDiCA,CAAA,CAAA,MAAA,CAAA;AChCD,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;AACjB,CAAC,CAAC;AACF;;ADuCA,CAAA,EAAA,CAAA,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA;ACpCA,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ;AACpB;;AClCA,CAAA,EAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,CAAA,MAAA,CAAA,OAAA,CAAA,CAAA;ADqCA,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;AACf;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n\n.ck.ck-placeholder, .ck .ck-placeholder {\n\tposition: relative;\n\n\t@media (forced-colors: active) {\n\t\t/*\n\t\t * This is needed for Edge on Windows to use the right color for the placeholder content (::before).\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t */\n\t\tforced-color-adjust: preserve-parent-color;\n\t}\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\tcursor: text;\n\n\t\t/* See https://github.com/ckeditor/ckeditor5/issues/469. */\n\t\tpointer-events: none;\n\n\t\t/*\n\t\t * Inherit the content styles padding of the placeholder host.\n\t\t * This ensures the placeholder stays at the padding just like the native caret does, and not at the edge of editable.\n\t\t */\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * The padding should not expand element width when some other style set width to 100%.\n\t\t */\n\t\tbox-sizing: border-box;\n\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\n\t\t@media (forced-colors: none) {\n\t\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t\t}\n\n\t\t@media (forced-colors: active) {\n\t\t\t/*\n\t\t\t * In the high contrast mode there is no telling between regular and placeholder text. Using\n\t\t\t * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tfont-style: italic;\n\n\t\t\t/*\n\t\t\t * Without this margin, the caret will not show up and blink when the user puts the selection\n\t\t\t * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tmargin-left: 1px;\n\t\t}\n\t}\n}\n\n/* See https://github.com/ckeditor/ckeditor5/issues/1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n",".ck.ck-placeholder, .ck .ck-placeholder {\n position: relative;\n\n @media (forced-colors: active) {\n forced-color-adjust: preserve-parent-color;\n }\n\n &:before {\n content: attr(data-placeholder);\n cursor: text;\n pointer-events: none;\n padding-left: inherit;\n padding-right: inherit;\n box-sizing: border-box;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: absolute;\n left: 0;\n right: 0;\n overflow: hidden;\n\n @media (forced-colors: none) {\n color: var(--ck-color-engine-placeholder-text);\n }\n\n @media (forced-colors: active) {\n margin-left: 1px;\n font-style: italic;\n }\n }\n}\n\n.ck.ck-read-only .ck-placeholder {\n &:before {\n display: none;\n }\n}\n\n.ck.ck-reset_all .ck-placeholder {\n position: relative;\n}\n\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n display: none;\n}\n\n/*# sourceMappingURL=index.css.map */","/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"]}