@ckeditor/ckeditor5-remove-format 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 (159) hide show
  1. package/dist/augmentation.d.ts +13 -13
  2. package/dist/index-content.css +3 -0
  3. package/dist/index-content.css.map +1 -0
  4. package/dist/index-editor.css +3 -0
  5. package/dist/index-editor.css.map +1 -0
  6. package/dist/index.d.ts +10 -10
  7. package/dist/index.js +245 -232
  8. package/dist/index.js.map +1 -1
  9. package/dist/removeformat.d.ts +27 -27
  10. package/dist/removeformatcommand.d.ts +60 -60
  11. package/dist/removeformatediting.d.ts +31 -31
  12. package/dist/removeformatui.d.ts +25 -25
  13. package/dist/translations/af.js +1 -1
  14. package/dist/translations/af.umd.js +5 -3
  15. package/dist/translations/ar.js +1 -1
  16. package/dist/translations/ar.umd.js +5 -3
  17. package/dist/translations/ast.js +1 -1
  18. package/dist/translations/ast.umd.js +5 -3
  19. package/dist/translations/az.js +1 -1
  20. package/dist/translations/az.umd.js +5 -3
  21. package/dist/translations/be.js +1 -1
  22. package/dist/translations/be.umd.js +5 -3
  23. package/dist/translations/bg.js +1 -1
  24. package/dist/translations/bg.umd.js +5 -3
  25. package/dist/translations/bn.js +1 -1
  26. package/dist/translations/bn.umd.js +5 -3
  27. package/dist/translations/bs.js +1 -1
  28. package/dist/translations/bs.umd.js +5 -3
  29. package/dist/translations/ca.js +1 -1
  30. package/dist/translations/ca.umd.js +5 -3
  31. package/dist/translations/cs.js +1 -1
  32. package/dist/translations/cs.umd.js +5 -3
  33. package/dist/translations/da.js +1 -1
  34. package/dist/translations/da.umd.js +5 -3
  35. package/dist/translations/de-ch.js +1 -1
  36. package/dist/translations/de-ch.umd.js +5 -3
  37. package/dist/translations/de.js +1 -1
  38. package/dist/translations/de.umd.js +5 -3
  39. package/dist/translations/el.js +1 -1
  40. package/dist/translations/el.umd.js +5 -3
  41. package/dist/translations/en-au.js +1 -1
  42. package/dist/translations/en-au.umd.js +5 -3
  43. package/dist/translations/en-gb.js +1 -1
  44. package/dist/translations/en-gb.umd.js +5 -3
  45. package/dist/translations/en.js +1 -1
  46. package/dist/translations/en.umd.js +5 -3
  47. package/dist/translations/eo.js +1 -1
  48. package/dist/translations/eo.umd.js +5 -3
  49. package/dist/translations/es-co.js +1 -1
  50. package/dist/translations/es-co.umd.js +5 -3
  51. package/dist/translations/es.js +1 -1
  52. package/dist/translations/es.umd.js +5 -3
  53. package/dist/translations/et.js +1 -1
  54. package/dist/translations/et.umd.js +5 -3
  55. package/dist/translations/eu.js +1 -1
  56. package/dist/translations/eu.umd.js +5 -3
  57. package/dist/translations/fa.js +1 -1
  58. package/dist/translations/fa.umd.js +5 -3
  59. package/dist/translations/fi.js +1 -1
  60. package/dist/translations/fi.umd.js +5 -3
  61. package/dist/translations/fr.js +1 -1
  62. package/dist/translations/fr.umd.js +5 -3
  63. package/dist/translations/gl.js +1 -1
  64. package/dist/translations/gl.umd.js +5 -3
  65. package/dist/translations/gu.js +1 -1
  66. package/dist/translations/gu.umd.js +5 -3
  67. package/dist/translations/he.js +1 -1
  68. package/dist/translations/he.umd.js +5 -3
  69. package/dist/translations/hi.js +1 -1
  70. package/dist/translations/hi.umd.js +5 -3
  71. package/dist/translations/hr.js +1 -1
  72. package/dist/translations/hr.umd.js +5 -3
  73. package/dist/translations/hu.js +1 -1
  74. package/dist/translations/hu.umd.js +5 -3
  75. package/dist/translations/hy.js +1 -1
  76. package/dist/translations/hy.umd.js +5 -3
  77. package/dist/translations/id.js +1 -1
  78. package/dist/translations/id.umd.js +5 -3
  79. package/dist/translations/it.js +1 -1
  80. package/dist/translations/it.umd.js +5 -3
  81. package/dist/translations/ja.js +1 -1
  82. package/dist/translations/ja.umd.js +5 -3
  83. package/dist/translations/jv.js +1 -1
  84. package/dist/translations/jv.umd.js +5 -3
  85. package/dist/translations/kk.js +1 -1
  86. package/dist/translations/kk.umd.js +5 -3
  87. package/dist/translations/km.js +1 -1
  88. package/dist/translations/km.umd.js +5 -3
  89. package/dist/translations/kn.js +1 -1
  90. package/dist/translations/kn.umd.js +5 -3
  91. package/dist/translations/ko.js +1 -1
  92. package/dist/translations/ko.umd.js +5 -3
  93. package/dist/translations/ku.js +1 -1
  94. package/dist/translations/ku.umd.js +5 -3
  95. package/dist/translations/lt.js +1 -1
  96. package/dist/translations/lt.umd.js +5 -3
  97. package/dist/translations/lv.js +1 -1
  98. package/dist/translations/lv.umd.js +5 -3
  99. package/dist/translations/ms.js +1 -1
  100. package/dist/translations/ms.umd.js +5 -3
  101. package/dist/translations/nb.js +1 -1
  102. package/dist/translations/nb.umd.js +5 -3
  103. package/dist/translations/ne.js +1 -1
  104. package/dist/translations/ne.umd.js +5 -3
  105. package/dist/translations/nl.js +1 -1
  106. package/dist/translations/nl.umd.js +5 -3
  107. package/dist/translations/no.js +1 -1
  108. package/dist/translations/no.umd.js +5 -3
  109. package/dist/translations/oc.js +1 -1
  110. package/dist/translations/oc.umd.js +5 -3
  111. package/dist/translations/pl.js +1 -1
  112. package/dist/translations/pl.umd.js +5 -3
  113. package/dist/translations/pt-br.js +1 -1
  114. package/dist/translations/pt-br.umd.js +5 -3
  115. package/dist/translations/pt.js +1 -1
  116. package/dist/translations/pt.umd.js +5 -3
  117. package/dist/translations/ro.js +1 -1
  118. package/dist/translations/ro.umd.js +5 -3
  119. package/dist/translations/ru.js +1 -1
  120. package/dist/translations/ru.umd.js +5 -3
  121. package/dist/translations/si.js +1 -1
  122. package/dist/translations/si.umd.js +5 -3
  123. package/dist/translations/sk.js +1 -1
  124. package/dist/translations/sk.umd.js +5 -3
  125. package/dist/translations/sl.js +1 -1
  126. package/dist/translations/sl.umd.js +5 -3
  127. package/dist/translations/sq.js +1 -1
  128. package/dist/translations/sq.umd.js +5 -3
  129. package/dist/translations/sr-latn.js +1 -1
  130. package/dist/translations/sr-latn.umd.js +5 -3
  131. package/dist/translations/sr.js +1 -1
  132. package/dist/translations/sr.umd.js +5 -3
  133. package/dist/translations/sv.js +1 -1
  134. package/dist/translations/sv.umd.js +5 -3
  135. package/dist/translations/th.js +1 -1
  136. package/dist/translations/th.umd.js +5 -3
  137. package/dist/translations/ti.js +1 -1
  138. package/dist/translations/ti.umd.js +5 -3
  139. package/dist/translations/tk.js +1 -1
  140. package/dist/translations/tk.umd.js +5 -3
  141. package/dist/translations/tr.js +1 -1
  142. package/dist/translations/tr.umd.js +5 -3
  143. package/dist/translations/tt.js +1 -1
  144. package/dist/translations/tt.umd.js +5 -3
  145. package/dist/translations/ug.js +1 -1
  146. package/dist/translations/ug.umd.js +5 -3
  147. package/dist/translations/uk.js +1 -1
  148. package/dist/translations/uk.umd.js +5 -3
  149. package/dist/translations/ur.js +1 -1
  150. package/dist/translations/ur.umd.js +5 -3
  151. package/dist/translations/uz.js +1 -1
  152. package/dist/translations/uz.umd.js +5 -3
  153. package/dist/translations/vi.js +1 -1
  154. package/dist/translations/vi.umd.js +5 -3
  155. package/dist/translations/zh-cn.js +1 -1
  156. package/dist/translations/zh-cn.umd.js +5 -3
  157. package/dist/translations/zh.js +1 -1
  158. package/dist/translations/zh.umd.js +5 -3
  159. package/package.json +6 -6
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js","../src/removeformatui.ts","../src/removeformatcommand.ts","../src/removeformatediting.ts","../src/removeformat.ts"],"names":["REMOVE_FORMAT","RemoveFormatUI","Plugin","pluginName","isOfficialPlugin","init","editor","ui","componentFactory","add","view","_createButton","ButtonView","set","tooltip","MenuBarMenuListItemButtonView","ButtonClass","locale","command","commands","get","t","label","icon","IconRemoveFormat","bind","to","listenTo","execute","editing","focus","RemoveFormatCommand","Command","_customAttributesHandlers","refresh","model","isEnabled","first","_getFormattingItems","document","selection","change","writer","item","is","attributeName","_getFormattingAttributes","removeSelectionAttribute","itemRange","createRangeOn","_removeFormatting","registerCustomAttribute","isFormatting","removeFormatting","push","customHandled","nonSelectionAttributeName","toNonSelectionAttribute","removeAttribute","schema","itemHasRemovableFormatting","curRange","getRanges","getItems","isBlock","end","isTouching","createPositionAt","block","getSelectedBlocks","getAttributes","attributeProperties","getAttributeProperties","replace","RemoveFormatEditing","licenseFeatureCode","isPremiumPlugin","RemoveFormat","requires"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACxE,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAC1E,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAChG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;ACY/D,KAAA,CAAMA,aAAAA,CAAAA,CAAAA,CAAgB,CAAA,YAAA,CAAA;AAEtB,CAAA,CAAA;ADVA,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;AACnF,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO;AACtB,CAAC,CAAC,CAAC,CCYI,KAAA,CAAMC,cAAAA,CAAAA,OAAAA,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AAAA,CAAAA,CAAa;AJwMhC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CIvML,MAAA,CAAO,CAAA,YAAA,CAAA;AACR,CAAA,CAAA,CAAA,CAAA;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AJuMD,CAAC,CAAC,CAAC,CAAC,CAAC;AIrMH,CAAA,CAAA,CAAA,CAAA,CACD,MAAA,CAAA,GAAA,CAA2BC,gBAAAA,CAAAA,CAAAA,CAAyB;AJsMrD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CIrML,MAAA,CAAO,IAAA;AACR,CAAA,CAAA,CAAA,CAAA;AACD;;AJuMA,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAAC,mBAAmB,CAAC,CAAC,cAAc,CAAC,CAAC;AACjF,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Plugin, Command } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { IconRemoveFormat } from '@ckeditor/ckeditor5-icons/dist/index.js';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';\nimport { first } from '@ckeditor/ckeditor5-utils/dist/index.js';\n\nconst REMOVE_FORMAT = 'removeFormat';\n/**\n * The remove format UI plugin. It registers the `'removeFormat'` button which can be\n * used in the toolbar.\n */ class RemoveFormatUI extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'RemoveFormatUI';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n editor.ui.componentFactory.add(REMOVE_FORMAT, ()=>{\n const view = this._createButton(ButtonView);\n view.set({\n tooltip: true\n });\n return view;\n });\n editor.ui.componentFactory.add(`menuBar:${REMOVE_FORMAT}`, ()=>this._createButton(MenuBarMenuListItemButtonView));\n }\n /**\n\t * Creates a button for remove format command to use either in toolbar or in menu bar.\n\t */ _createButton(ButtonClass) {\n const editor = this.editor;\n const locale = editor.locale;\n const command = editor.commands.get(REMOVE_FORMAT);\n const view = new ButtonClass(editor.locale);\n const t = locale.t;\n view.set({\n label: t('Remove Format'),\n icon: IconRemoveFormat\n });\n view.bind('isEnabled').to(command, 'isEnabled');\n // Execute the command.\n this.listenTo(view, 'execute', ()=>{\n editor.execute(REMOVE_FORMAT);\n editor.editing.view.focus();\n });\n return view;\n }\n}\n\n/**\n * The remove format command.\n *\n * It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}\n * to clear the formatting in the selection.\n *\n * ```ts\n * editor.execute( 'removeFormat' );\n * ```\n */ class RemoveFormatCommand extends Command {\n /**\n\t * List of all registered custom attribute handlers.\n\t */ _customAttributesHandlers = [];\n /**\n\t * @inheritDoc\n\t */ refresh() {\n const model = this.editor.model;\n this.isEnabled = !!first(this._getFormattingItems(model.document.selection));\n }\n /**\n\t * @inheritDoc\n\t */ execute() {\n const model = this.editor.model;\n model.change((writer)=>{\n for (const item of this._getFormattingItems(model.document.selection)){\n if (item.is('selection')) {\n for (const attributeName of this._getFormattingAttributes(item)){\n writer.removeSelectionAttribute(attributeName);\n }\n } else {\n // Workaround for items with multiple removable attributes. See\n // https://github.com/ckeditor/ckeditor5-remove-format/pull/1#pullrequestreview-220515609\n const itemRange = writer.createRangeOn(item);\n for (const attributeName of this._getFormattingAttributes(item)){\n this._removeFormatting(attributeName, item, itemRange, writer);\n }\n }\n }\n });\n }\n /**\n\t * Registers a custom attribute handler that will be used to determine if an attribute is formatting and how to remove it.\n\t *\n\t * @internal\n\t */ registerCustomAttribute(isFormatting, removeFormatting) {\n this._customAttributesHandlers.push({\n isFormatting,\n removeFormatting\n });\n }\n /**\n\t * Helper method that removes a formatting attribute from an item either using custom callbacks or writer remove attribute.\n\t */ _removeFormatting(attributeName, item, itemRange, writer) {\n let customHandled = false;\n const nonSelectionAttributeName = toNonSelectionAttribute(attributeName);\n for (const { isFormatting, removeFormatting } of this._customAttributesHandlers){\n if (isFormatting(nonSelectionAttributeName, item)) {\n removeFormatting(attributeName, itemRange, writer);\n customHandled = true;\n }\n }\n if (!customHandled) {\n writer.removeAttribute(attributeName, itemRange);\n }\n }\n /**\n\t * Returns an iterable of items in a selection (including the selection itself) that have formatting model\n\t * attributes to be removed by the feature.\n\t */ *_getFormattingItems(selection) {\n const model = this.editor.model;\n const schema = model.schema;\n const itemHasRemovableFormatting = (item)=>{\n return !!first(this._getFormattingAttributes(item));\n };\n // Check formatting on selected items.\n for (const curRange of selection.getRanges()){\n for (const item of curRange.getItems()){\n // Ignore last block if range ends at the beginning of it.\n if (schema.isBlock(item) && curRange.end.isTouching(model.createPositionAt(item, 0))) {\n continue;\n }\n if (itemHasRemovableFormatting(item)) {\n yield item;\n }\n }\n }\n // Check formatting from selected blocks (to include partly selected blocks).\n for (const block of selection.getSelectedBlocks()){\n if (itemHasRemovableFormatting(block)) {\n yield block;\n }\n }\n // Finally the selection might be formatted as well, so make sure to check it.\n if (itemHasRemovableFormatting(selection)) {\n yield selection;\n }\n }\n /**\n\t * Returns an iterable of formatting attributes of a given model item.\n\t *\n\t * **Note:** Formatting items have the `isFormatting` property set to `true`.\n\t *\n\t * @returns The names of formatting attributes found in a given item.\n\t */ *_getFormattingAttributes(item) {\n const { schema } = this.editor.model;\n for (const [attributeName] of item.getAttributes()){\n const nonSelectionAttributeName = toNonSelectionAttribute(attributeName);\n for (const { isFormatting } of this._customAttributesHandlers){\n if (isFormatting(nonSelectionAttributeName, item)) {\n yield attributeName;\n }\n }\n const attributeProperties = schema.getAttributeProperties(nonSelectionAttributeName);\n if (attributeProperties && attributeProperties.isFormatting) {\n yield attributeName;\n }\n }\n }\n}\n/**\n * Helper function that converts a selection attribute name to a non-selection one. E.g. `selection:bold` to `bold`.\n */ function toNonSelectionAttribute(attributeName) {\n return attributeName.replace(/^selection:/, '');\n}\n\n/**\n * The remove format editing plugin.\n *\n * It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.\n */ class RemoveFormatEditing extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'RemoveFormatEditing';\n }\n /**\n\t * @inheritDoc\n\t * @internal\n\t */ static get licenseFeatureCode() {\n return 'RF';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ static get isPremiumPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n editor.commands.add('removeFormat', new RemoveFormatCommand(editor));\n }\n}\n\n/**\n * The remove format plugin.\n *\n * This is a \"glue\" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}\n * and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.\n *\n * For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.\n */ class RemoveFormat extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get requires() {\n return [\n RemoveFormatEditing,\n RemoveFormatUI\n ];\n }\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'RemoveFormat';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n}\n\nexport { RemoveFormat, RemoveFormatCommand, RemoveFormatEditing, RemoveFormatUI };\n//# sourceMappingURL=index.js.map\n","/**\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 * @module remove-format/removeformatui\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { IconRemoveFormat } from '@ckeditor/ckeditor5-icons';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui';\n\nimport { type RemoveFormatCommand } from './removeformatcommand.js';\n\nconst REMOVE_FORMAT = 'removeFormat';\n\n/**\n * The remove format UI plugin. It registers the `'removeFormat'` button which can be\n * used in the toolbar.\n */\nexport class RemoveFormatUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'RemoveFormatUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\teditor.ui.componentFactory.add( REMOVE_FORMAT, () => {\n\t\t\tconst view = this._createButton( ButtonView );\n\n\t\t\tview.set( {\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\treturn view;\n\t\t} );\n\n\t\teditor.ui.componentFactory.add( `menuBar:${ REMOVE_FORMAT }`, () => this._createButton( MenuBarMenuListItemButtonView ) );\n\t}\n\n\t/**\n\t * Creates a button for remove format command to use either in toolbar or in menu bar.\n\t */\n\tprivate _createButton<T extends typeof ButtonView | typeof MenuBarMenuListItemButtonView>( ButtonClass: T ): InstanceType<T> {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst command: RemoveFormatCommand = editor.commands.get( REMOVE_FORMAT )!;\n\t\tconst view = new ButtonClass( editor.locale ) as InstanceType<T>;\n\t\tconst t = locale.t;\n\n\t\tview.set( {\n\t\t\tlabel: t( 'Remove Format' ),\n\t\t\ticon: IconRemoveFormat\n\t\t} );\n\n\t\tview.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t// Execute the command.\n\t\tthis.listenTo( view, 'execute', () => {\n\t\t\teditor.execute( REMOVE_FORMAT );\n\t\t\teditor.editing.view.focus();\n\t\t} );\n\n\t\treturn view;\n\t}\n}\n","/**\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 * @module remove-format/removeformatcommand\n */\n\nimport type { ModelDocumentSelection, ModelItem, ModelRange, ModelWriter } from '@ckeditor/ckeditor5-engine';\nimport { Command } from '@ckeditor/ckeditor5-core';\nimport { first } from '@ckeditor/ckeditor5-utils';\n\n/**\n * The remove format command.\n *\n * It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}\n * to clear the formatting in the selection.\n *\n * ```ts\n * editor.execute( 'removeFormat' );\n * ```\n */\nexport class RemoveFormatCommand extends Command {\n\tdeclare public value: boolean;\n\n\t/**\n\t * List of all registered custom attribute handlers.\n\t */\n\tprivate _customAttributesHandlers: Array<{\n\t\tisFormatting: IsFormattingCallback;\n\t\tremoveFormatting: RemoveFormattingCallback;\n\t}> = [];\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override refresh(): void {\n\t\tconst model = this.editor.model;\n\n\t\tthis.isEnabled = !!first( this._getFormattingItems( model.document.selection ) );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override execute(): void {\n\t\tconst model = this.editor.model;\n\n\t\tmodel.change( writer => {\n\t\t\tfor ( const item of this._getFormattingItems( model.document.selection ) ) {\n\t\t\t\tif ( item.is( 'selection' ) ) {\n\t\t\t\t\tfor ( const attributeName of this._getFormattingAttributes( item ) ) {\n\t\t\t\t\t\twriter.removeSelectionAttribute( attributeName );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Workaround for items with multiple removable attributes. See\n\t\t\t\t\t// https://github.com/ckeditor/ckeditor5-remove-format/pull/1#pullrequestreview-220515609\n\t\t\t\t\tconst itemRange = writer.createRangeOn( item );\n\n\t\t\t\t\tfor ( const attributeName of this._getFormattingAttributes( item ) ) {\n\t\t\t\t\t\tthis._removeFormatting( attributeName, item, itemRange, writer );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * Registers a custom attribute handler that will be used to determine if an attribute is formatting and how to remove it.\n\t *\n\t * @internal\n\t */\n\tpublic registerCustomAttribute( isFormatting: IsFormattingCallback, removeFormatting: RemoveFormattingCallback ): void {\n\t\tthis._customAttributesHandlers.push( {\n\t\t\tisFormatting,\n\t\t\tremoveFormatting\n\t\t} );\n\t}\n\n\t/**\n\t * Helper method that removes a formatting attribute from an item either using custom callbacks or writer remove attribute.\n\t */\n\tprivate _removeFormatting( attributeName: string, item: ModelItem, itemRange: ModelRange, writer: ModelWriter ) {\n\t\tlet customHandled = false;\n\t\tconst nonSelectionAttributeName = toNonSelectionAttribute( attributeName );\n\n\t\tfor ( const { isFormatting, removeFormatting } of this._customAttributesHandlers ) {\n\t\t\tif ( isFormatting( nonSelectionAttributeName, item ) ) {\n\t\t\t\tremoveFormatting( attributeName, itemRange, writer );\n\t\t\t\tcustomHandled = true;\n\t\t\t}\n\t\t}\n\n\t\tif ( !customHandled ) {\n\t\t\twriter.removeAttribute( attributeName, itemRange );\n\t\t}\n\t}\n\n\t/**\n\t * Returns an iterable of items in a selection (including the selection itself) that have formatting model\n\t * attributes to be removed by the feature.\n\t */\n\tprivate* _getFormattingItems( selection: ModelDocumentSelection ) {\n\t\tconst model = this.editor.model;\n\t\tconst schema = model.schema;\n\n\t\tconst itemHasRemovableFormatting = ( item: ModelItem | ModelDocumentSelection ) => {\n\t\t\treturn !!first( this._getFormattingAttributes( item ) );\n\t\t};\n\n\t\t// Check formatting on selected items.\n\t\tfor ( const curRange of selection.getRanges() ) {\n\t\t\tfor ( const item of curRange.getItems() ) {\n\t\t\t\t// Ignore last block if range ends at the beginning of it.\n\t\t\t\tif ( schema.isBlock( item ) && curRange.end.isTouching( model.createPositionAt( item, 0 ) ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( itemHasRemovableFormatting( item ) ) {\n\t\t\t\t\tyield item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check formatting from selected blocks (to include partly selected blocks).\n\t\tfor ( const block of selection.getSelectedBlocks() ) {\n\t\t\tif ( itemHasRemovableFormatting( block ) ) {\n\t\t\t\tyield block;\n\t\t\t}\n\t\t}\n\n\t\t// Finally the selection might be formatted as well, so make sure to check it.\n\t\tif ( itemHasRemovableFormatting( selection ) ) {\n\t\t\tyield selection;\n\t\t}\n\t}\n\n\t/**\n\t * Returns an iterable of formatting attributes of a given model item.\n\t *\n\t * **Note:** Formatting items have the `isFormatting` property set to `true`.\n\t *\n\t * @returns The names of formatting attributes found in a given item.\n\t */\n\tprivate* _getFormattingAttributes( item: ModelItem | ModelDocumentSelection ) {\n\t\tconst { schema } = this.editor.model;\n\n\t\tfor ( const [ attributeName ] of item.getAttributes() ) {\n\t\t\tconst nonSelectionAttributeName = toNonSelectionAttribute( attributeName );\n\n\t\t\tfor ( const { isFormatting } of this._customAttributesHandlers ) {\n\t\t\t\tif ( isFormatting( nonSelectionAttributeName, item ) ) {\n\t\t\t\t\tyield attributeName;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst attributeProperties = schema.getAttributeProperties( nonSelectionAttributeName );\n\n\t\t\tif ( attributeProperties && attributeProperties.isFormatting ) {\n\t\t\t\tyield attributeName;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Helper function that converts a selection attribute name to a non-selection one. E.g. `selection:bold` to `bold`.\n */\nfunction toNonSelectionAttribute( attributeName: string ) {\n\treturn attributeName.replace( /^selection:/, '' );\n}\n\n/**\n * Callback that checks if an attribute is a formatting attribute.\n *\n * @internal\n */\nexport type IsFormattingCallback = ( attributeName: string, item: ModelItem | ModelDocumentSelection ) => boolean;\n\n/**\n * Callback that removes formatting from an item.\n *\n * @internal\n */\nexport type RemoveFormattingCallback = ( attributeName: string, range: ModelRange, writer: ModelWriter ) => void;\n","/**\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 * @module remove-format/removeformatediting\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\n\nimport { RemoveFormatCommand } from './removeformatcommand.js';\n\n/**\n * The remove format editing plugin.\n *\n * It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.\n */\nexport class RemoveFormatEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'RemoveFormatEditing' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t * @internal\n\t */\n\tpublic static get licenseFeatureCode(): string {\n\t\treturn 'RF';\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isPremiumPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\teditor.commands.add( 'removeFormat', new RemoveFormatCommand( editor ) );\n\t}\n}\n","/**\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 * @module remove-format/removeformat\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\n\nimport { RemoveFormatUI } from './removeformatui.js';\nimport { RemoveFormatEditing } from './removeformatediting.js';\n\n/**\n * The remove format plugin.\n *\n * This is a \"glue\" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}\n * and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.\n *\n * For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.\n */\nexport class RemoveFormat extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ RemoveFormatEditing, RemoveFormatUI ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'RemoveFormat' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["index.js","../src/removeformatui.ts","../src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A;;AJ+MA,CAAC,CAAC;AACF,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ;AACnF,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC;AACjF,CAAC;;AAED,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAAC,mBAAmB,CAAC,CAAC,cAAc,CAAC,CAAC;AACjF,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Command, Plugin } from \"@ckeditor/ckeditor5-core\";\nimport { IconRemoveFormat } from \"@ckeditor/ckeditor5-icons\";\nimport { ButtonView, MenuBarMenuListItemButtonView } from \"@ckeditor/ckeditor5-ui\";\nimport { first } from \"@ckeditor/ckeditor5-utils\";\n\n/**\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* @module remove-format/removeformatui\n*/\nconst REMOVE_FORMAT = \"removeFormat\";\n/**\n* The remove format UI plugin. It registers the `'removeFormat'` button which can be\n* used in the toolbar.\n*/\nvar RemoveFormatUI = class extends Plugin {\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get pluginName() {\n\t\treturn \"RemoveFormatUI\";\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tinit() {\n\t\tconst editor = this.editor;\n\t\teditor.ui.componentFactory.add(REMOVE_FORMAT, () => {\n\t\t\tconst view = this._createButton(ButtonView);\n\t\t\tview.set({ tooltip: true });\n\t\t\treturn view;\n\t\t});\n\t\teditor.ui.componentFactory.add(`menuBar:${REMOVE_FORMAT}`, () => this._createButton(MenuBarMenuListItemButtonView));\n\t}\n\t/**\n\t* Creates a button for remove format command to use either in toolbar or in menu bar.\n\t*/\n\t_createButton(ButtonClass) {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst command = editor.commands.get(REMOVE_FORMAT);\n\t\tconst view = new ButtonClass(editor.locale);\n\t\tconst t = locale.t;\n\t\tview.set({\n\t\t\tlabel: t(\"Remove Format\"),\n\t\t\ticon: IconRemoveFormat\n\t\t});\n\t\tview.bind(\"isEnabled\").to(command, \"isEnabled\");\n\t\tthis.listenTo(view, \"execute\", () => {\n\t\t\teditor.execute(REMOVE_FORMAT);\n\t\t\teditor.editing.view.focus();\n\t\t});\n\t\treturn view;\n\t}\n};\n\n/**\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* The remove format command.\n*\n* It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}\n* to clear the formatting in the selection.\n*\n* ```ts\n* editor.execute( 'removeFormat' );\n* ```\n*/\nvar RemoveFormatCommand = class extends Command {\n\t/**\n\t* List of all registered custom attribute handlers.\n\t*/\n\t_customAttributesHandlers = [];\n\t/**\n\t* @inheritDoc\n\t*/\n\trefresh() {\n\t\tconst model = this.editor.model;\n\t\tthis.isEnabled = !!first(this._getFormattingItems(model.document.selection));\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\texecute() {\n\t\tconst model = this.editor.model;\n\t\tmodel.change((writer) => {\n\t\t\tfor (const item of this._getFormattingItems(model.document.selection)) if (item.is(\"selection\")) for (const attributeName of this._getFormattingAttributes(item)) writer.removeSelectionAttribute(attributeName);\n\t\t\telse {\n\t\t\t\tconst itemRange = writer.createRangeOn(item);\n\t\t\t\tfor (const attributeName of this._getFormattingAttributes(item)) this._removeFormatting(attributeName, item, itemRange, writer);\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Registers a custom attribute handler that will be used to determine if an attribute is formatting and how to remove it.\n\t*\n\t* @internal\n\t*/\n\tregisterCustomAttribute(isFormatting, removeFormatting) {\n\t\tthis._customAttributesHandlers.push({\n\t\t\tisFormatting,\n\t\t\tremoveFormatting\n\t\t});\n\t}\n\t/**\n\t* Helper method that removes a formatting attribute from an item either using custom callbacks or writer remove attribute.\n\t*/\n\t_removeFormatting(attributeName, item, itemRange, writer) {\n\t\tlet customHandled = false;\n\t\tconst nonSelectionAttributeName = toNonSelectionAttribute(attributeName);\n\t\tfor (const { isFormatting, removeFormatting } of this._customAttributesHandlers) if (isFormatting(nonSelectionAttributeName, item)) {\n\t\t\tremoveFormatting(attributeName, itemRange, writer);\n\t\t\tcustomHandled = true;\n\t\t}\n\t\tif (!customHandled) writer.removeAttribute(attributeName, itemRange);\n\t}\n\t/**\n\t* Returns an iterable of items in a selection (including the selection itself) that have formatting model\n\t* attributes to be removed by the feature.\n\t*/\n\t*_getFormattingItems(selection) {\n\t\tconst model = this.editor.model;\n\t\tconst schema = model.schema;\n\t\tconst itemHasRemovableFormatting = (item) => {\n\t\t\treturn !!first(this._getFormattingAttributes(item));\n\t\t};\n\t\tfor (const curRange of selection.getRanges()) for (const item of curRange.getItems()) {\n\t\t\tif (schema.isBlock(item) && curRange.end.isTouching(model.createPositionAt(item, 0))) continue;\n\t\t\tif (itemHasRemovableFormatting(item)) yield item;\n\t\t}\n\t\tfor (const block of selection.getSelectedBlocks()) if (itemHasRemovableFormatting(block)) yield block;\n\t\tif (itemHasRemovableFormatting(selection)) yield selection;\n\t}\n\t/**\n\t* Returns an iterable of formatting attributes of a given model item.\n\t*\n\t* **Note:** Formatting items have the `isFormatting` property set to `true`.\n\t*\n\t* @returns The names of formatting attributes found in a given item.\n\t*/\n\t*_getFormattingAttributes(item) {\n\t\tconst { schema } = this.editor.model;\n\t\tfor (const [attributeName] of item.getAttributes()) {\n\t\t\tconst nonSelectionAttributeName = toNonSelectionAttribute(attributeName);\n\t\t\tfor (const { isFormatting } of this._customAttributesHandlers) if (isFormatting(nonSelectionAttributeName, item)) yield attributeName;\n\t\t\tconst attributeProperties = schema.getAttributeProperties(nonSelectionAttributeName);\n\t\t\tif (attributeProperties && attributeProperties.isFormatting) yield attributeName;\n\t\t}\n\t}\n};\n/**\n* Helper function that converts a selection attribute name to a non-selection one. E.g. `selection:bold` to `bold`.\n*/\nfunction toNonSelectionAttribute(attributeName) {\n\treturn attributeName.replace(/^selection:/, \"\");\n}\n\n/**\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* @module remove-format/removeformatediting\n*/\n/**\n* The remove format editing plugin.\n*\n* It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.\n*/\nvar RemoveFormatEditing = class extends Plugin {\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get pluginName() {\n\t\treturn \"RemoveFormatEditing\";\n\t}\n\t/**\n\t* @inheritDoc\n\t* @internal\n\t*/\n\tstatic get licenseFeatureCode() {\n\t\treturn \"RF\";\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isPremiumPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tinit() {\n\t\tconst editor = this.editor;\n\t\teditor.commands.add(\"removeFormat\", new RemoveFormatCommand(editor));\n\t}\n};\n\n/**\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* @module remove-format/removeformat\n*/\n/**\n* The remove format plugin.\n*\n* This is a \"glue\" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}\n* and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.\n*\n* For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.\n*/\nvar RemoveFormat = class extends Plugin {\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get requires() {\n\t\treturn [RemoveFormatEditing, RemoveFormatUI];\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get pluginName() {\n\t\treturn \"RemoveFormat\";\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn true;\n\t}\n};\n\n/**\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\nexport { RemoveFormat, RemoveFormatCommand, RemoveFormatEditing, RemoveFormatUI };\n//# sourceMappingURL=index.js.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/**\n * @module remove-format/removeformatui\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { IconRemoveFormat } from '@ckeditor/ckeditor5-icons';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui';\n\nimport { type RemoveFormatCommand } from './removeformatcommand.js';\n\nconst REMOVE_FORMAT = 'removeFormat';\n\n/**\n * The remove format UI plugin. It registers the `'removeFormat'` button which can be\n * used in the toolbar.\n */\nexport class RemoveFormatUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'RemoveFormatUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\teditor.ui.componentFactory.add( REMOVE_FORMAT, () => {\n\t\t\tconst view = this._createButton( ButtonView );\n\n\t\t\tview.set( {\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\treturn view;\n\t\t} );\n\n\t\teditor.ui.componentFactory.add( `menuBar:${ REMOVE_FORMAT }`, () => this._createButton( MenuBarMenuListItemButtonView ) );\n\t}\n\n\t/**\n\t * Creates a button for remove format command to use either in toolbar or in menu bar.\n\t */\n\tprivate _createButton<T extends typeof ButtonView | typeof MenuBarMenuListItemButtonView>( ButtonClass: T ): InstanceType<T> {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst command: RemoveFormatCommand = editor.commands.get( REMOVE_FORMAT )!;\n\t\tconst view = new ButtonClass( editor.locale ) as InstanceType<T>;\n\t\tconst t = locale.t;\n\n\t\tview.set( {\n\t\t\tlabel: t( 'Remove Format' ),\n\t\t\ticon: IconRemoveFormat\n\t\t} );\n\n\t\tview.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t// Execute the command.\n\t\tthis.listenTo( view, 'execute', () => {\n\t\t\teditor.execute( REMOVE_FORMAT );\n\t\t\teditor.editing.view.focus();\n\t\t} );\n\n\t\treturn view;\n\t}\n}\n","/**\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 * @module remove-format/removeformatcommand\n */\n\nimport type { ModelDocumentSelection, ModelItem, ModelRange, ModelWriter } from '@ckeditor/ckeditor5-engine';\nimport { Command } from '@ckeditor/ckeditor5-core';\nimport { first } from '@ckeditor/ckeditor5-utils';\n\n/**\n * The remove format command.\n *\n * It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}\n * to clear the formatting in the selection.\n *\n * ```ts\n * editor.execute( 'removeFormat' );\n * ```\n */\nexport class RemoveFormatCommand extends Command {\n\tdeclare public value: boolean;\n\n\t/**\n\t * List of all registered custom attribute handlers.\n\t */\n\tprivate _customAttributesHandlers: Array<{\n\t\tisFormatting: IsFormattingCallback;\n\t\tremoveFormatting: RemoveFormattingCallback;\n\t}> = [];\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override refresh(): void {\n\t\tconst model = this.editor.model;\n\n\t\tthis.isEnabled = !!first( this._getFormattingItems( model.document.selection ) );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override execute(): void {\n\t\tconst model = this.editor.model;\n\n\t\tmodel.change( writer => {\n\t\t\tfor ( const item of this._getFormattingItems( model.document.selection ) ) {\n\t\t\t\tif ( item.is( 'selection' ) ) {\n\t\t\t\t\tfor ( const attributeName of this._getFormattingAttributes( item ) ) {\n\t\t\t\t\t\twriter.removeSelectionAttribute( attributeName );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Workaround for items with multiple removable attributes. See\n\t\t\t\t\t// https://github.com/ckeditor/ckeditor5-remove-format/pull/1#pullrequestreview-220515609\n\t\t\t\t\tconst itemRange = writer.createRangeOn( item );\n\n\t\t\t\t\tfor ( const attributeName of this._getFormattingAttributes( item ) ) {\n\t\t\t\t\t\tthis._removeFormatting( attributeName, item, itemRange, writer );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * Registers a custom attribute handler that will be used to determine if an attribute is formatting and how to remove it.\n\t *\n\t * @internal\n\t */\n\tpublic registerCustomAttribute( isFormatting: IsFormattingCallback, removeFormatting: RemoveFormattingCallback ): void {\n\t\tthis._customAttributesHandlers.push( {\n\t\t\tisFormatting,\n\t\t\tremoveFormatting\n\t\t} );\n\t}\n\n\t/**\n\t * Helper method that removes a formatting attribute from an item either using custom callbacks or writer remove attribute.\n\t */\n\tprivate _removeFormatting( attributeName: string, item: ModelItem, itemRange: ModelRange, writer: ModelWriter ) {\n\t\tlet customHandled = false;\n\t\tconst nonSelectionAttributeName = toNonSelectionAttribute( attributeName );\n\n\t\tfor ( const { isFormatting, removeFormatting } of this._customAttributesHandlers ) {\n\t\t\tif ( isFormatting( nonSelectionAttributeName, item ) ) {\n\t\t\t\tremoveFormatting( attributeName, itemRange, writer );\n\t\t\t\tcustomHandled = true;\n\t\t\t}\n\t\t}\n\n\t\tif ( !customHandled ) {\n\t\t\twriter.removeAttribute( attributeName, itemRange );\n\t\t}\n\t}\n\n\t/**\n\t * Returns an iterable of items in a selection (including the selection itself) that have formatting model\n\t * attributes to be removed by the feature.\n\t */\n\tprivate* _getFormattingItems( selection: ModelDocumentSelection ) {\n\t\tconst model = this.editor.model;\n\t\tconst schema = model.schema;\n\n\t\tconst itemHasRemovableFormatting = ( item: ModelItem | ModelDocumentSelection ) => {\n\t\t\treturn !!first( this._getFormattingAttributes( item ) );\n\t\t};\n\n\t\t// Check formatting on selected items.\n\t\tfor ( const curRange of selection.getRanges() ) {\n\t\t\tfor ( const item of curRange.getItems() ) {\n\t\t\t\t// Ignore last block if range ends at the beginning of it.\n\t\t\t\tif ( schema.isBlock( item ) && curRange.end.isTouching( model.createPositionAt( item, 0 ) ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( itemHasRemovableFormatting( item ) ) {\n\t\t\t\t\tyield item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check formatting from selected blocks (to include partly selected blocks).\n\t\tfor ( const block of selection.getSelectedBlocks() ) {\n\t\t\tif ( itemHasRemovableFormatting( block ) ) {\n\t\t\t\tyield block;\n\t\t\t}\n\t\t}\n\n\t\t// Finally the selection might be formatted as well, so make sure to check it.\n\t\tif ( itemHasRemovableFormatting( selection ) ) {\n\t\t\tyield selection;\n\t\t}\n\t}\n\n\t/**\n\t * Returns an iterable of formatting attributes of a given model item.\n\t *\n\t * **Note:** Formatting items have the `isFormatting` property set to `true`.\n\t *\n\t * @returns The names of formatting attributes found in a given item.\n\t */\n\tprivate* _getFormattingAttributes( item: ModelItem | ModelDocumentSelection ) {\n\t\tconst { schema } = this.editor.model;\n\n\t\tfor ( const [ attributeName ] of item.getAttributes() ) {\n\t\t\tconst nonSelectionAttributeName = toNonSelectionAttribute( attributeName );\n\n\t\t\tfor ( const { isFormatting } of this._customAttributesHandlers ) {\n\t\t\t\tif ( isFormatting( nonSelectionAttributeName, item ) ) {\n\t\t\t\t\tyield attributeName;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst attributeProperties = schema.getAttributeProperties( nonSelectionAttributeName );\n\n\t\t\tif ( attributeProperties && attributeProperties.isFormatting ) {\n\t\t\t\tyield attributeName;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Helper function that converts a selection attribute name to a non-selection one. E.g. `selection:bold` to `bold`.\n */\nfunction toNonSelectionAttribute( attributeName: string ) {\n\treturn attributeName.replace( /^selection:/, '' );\n}\n\n/**\n * Callback that checks if an attribute is a formatting attribute.\n *\n * @internal\n */\nexport type IsFormattingCallback = ( attributeName: string, item: ModelItem | ModelDocumentSelection ) => boolean;\n\n/**\n * Callback that removes formatting from an item.\n *\n * @internal\n */\nexport type RemoveFormattingCallback = ( attributeName: string, range: ModelRange, writer: ModelWriter ) => void;\n","/**\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 * @module remove-format/removeformatediting\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\n\nimport { RemoveFormatCommand } from './removeformatcommand.js';\n\n/**\n * The remove format editing plugin.\n *\n * It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.\n */\nexport class RemoveFormatEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'RemoveFormatEditing' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t * @internal\n\t */\n\tpublic static get licenseFeatureCode(): string {\n\t\treturn 'RF';\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isPremiumPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\teditor.commands.add( 'removeFormat', new RemoveFormatCommand( editor ) );\n\t}\n}\n","/**\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 * @module remove-format/removeformat\n */\n\nimport { Plugin, type PluginDependenciesOf } from '@ckeditor/ckeditor5-core';\n\nimport { RemoveFormatUI } from './removeformatui.js';\nimport { RemoveFormatEditing } from './removeformatediting.js';\n\n/**\n * The remove format plugin.\n *\n * This is a \"glue\" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}\n * and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.\n *\n * For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.\n */\nexport class RemoveFormat extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires(): PluginDependenciesOf<[ RemoveFormatEditing, RemoveFormatUI ]> {\n\t\treturn [ RemoveFormatEditing, RemoveFormatUI ];\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'RemoveFormat' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n}\n"]}
@@ -1,32 +1,32 @@
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 remove-format/removeformat
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { RemoveFormatUI } from './removeformatui.js';
10
- import { RemoveFormatEditing } from './removeformatediting.js';
6
+ * @module remove-format/removeformat
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { RemoveFormatUI } from "./removeformatui.js";
10
+ import { RemoveFormatEditing } from "./removeformatediting.js";
11
11
  /**
12
- * The remove format plugin.
13
- *
14
- * This is a "glue" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}
15
- * and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.
16
- *
17
- * For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.
18
- */
12
+ * The remove format plugin.
13
+ *
14
+ * This is a "glue" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}
15
+ * and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.
16
+ *
17
+ * For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.
18
+ */
19
19
  export declare class RemoveFormat extends Plugin {
20
- /**
21
- * @inheritDoc
22
- */
23
- static get requires(): readonly [typeof RemoveFormatEditing, typeof RemoveFormatUI];
24
- /**
25
- * @inheritDoc
26
- */
27
- static get pluginName(): "RemoveFormat";
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isOfficialPlugin(): true;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get requires(): PluginDependenciesOf<[RemoveFormatEditing, RemoveFormatUI]>;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get pluginName(): "RemoveFormat";
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static override get isOfficialPlugin(): true;
32
32
  }
@@ -1,69 +1,69 @@
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 remove-format/removeformatcommand
7
- */
8
- import type { ModelDocumentSelection, ModelItem, ModelRange, ModelWriter } from '@ckeditor/ckeditor5-engine';
9
- import { Command } from '@ckeditor/ckeditor5-core';
6
+ * @module remove-format/removeformatcommand
7
+ */
8
+ import type { ModelDocumentSelection, ModelItem, ModelRange, ModelWriter } from "@ckeditor/ckeditor5-engine";
9
+ import { Command } from "@ckeditor/ckeditor5-core";
10
10
  /**
11
- * The remove format command.
12
- *
13
- * It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}
14
- * to clear the formatting in the selection.
15
- *
16
- * ```ts
17
- * editor.execute( 'removeFormat' );
18
- * ```
19
- */
11
+ * The remove format command.
12
+ *
13
+ * It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}
14
+ * to clear the formatting in the selection.
15
+ *
16
+ * ```ts
17
+ * editor.execute( 'removeFormat' );
18
+ * ```
19
+ */
20
20
  export declare class RemoveFormatCommand extends Command {
21
- value: boolean;
22
- /**
23
- * List of all registered custom attribute handlers.
24
- */
25
- private _customAttributesHandlers;
26
- /**
27
- * @inheritDoc
28
- */
29
- refresh(): void;
30
- /**
31
- * @inheritDoc
32
- */
33
- execute(): void;
34
- /**
35
- * Registers a custom attribute handler that will be used to determine if an attribute is formatting and how to remove it.
36
- *
37
- * @internal
38
- */
39
- registerCustomAttribute(isFormatting: IsFormattingCallback, removeFormatting: RemoveFormattingCallback): void;
40
- /**
41
- * Helper method that removes a formatting attribute from an item either using custom callbacks or writer remove attribute.
42
- */
43
- private _removeFormatting;
44
- /**
45
- * Returns an iterable of items in a selection (including the selection itself) that have formatting model
46
- * attributes to be removed by the feature.
47
- */
48
- private _getFormattingItems;
49
- /**
50
- * Returns an iterable of formatting attributes of a given model item.
51
- *
52
- * **Note:** Formatting items have the `isFormatting` property set to `true`.
53
- *
54
- * @returns The names of formatting attributes found in a given item.
55
- */
56
- private _getFormattingAttributes;
21
+ value: boolean;
22
+ /**
23
+ * List of all registered custom attribute handlers.
24
+ */
25
+ private _customAttributesHandlers;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ override refresh(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ override execute(): void;
34
+ /**
35
+ * Registers a custom attribute handler that will be used to determine if an attribute is formatting and how to remove it.
36
+ *
37
+ * @internal
38
+ */
39
+ registerCustomAttribute(isFormatting: IsFormattingCallback, removeFormatting: RemoveFormattingCallback): void;
40
+ /**
41
+ * Helper method that removes a formatting attribute from an item either using custom callbacks or writer remove attribute.
42
+ */
43
+ private _removeFormatting;
44
+ /**
45
+ * Returns an iterable of items in a selection (including the selection itself) that have formatting model
46
+ * attributes to be removed by the feature.
47
+ */
48
+ private _getFormattingItems;
49
+ /**
50
+ * Returns an iterable of formatting attributes of a given model item.
51
+ *
52
+ * **Note:** Formatting items have the `isFormatting` property set to `true`.
53
+ *
54
+ * @returns The names of formatting attributes found in a given item.
55
+ */
56
+ private _getFormattingAttributes;
57
57
  }
58
58
  /**
59
- * Callback that checks if an attribute is a formatting attribute.
60
- *
61
- * @internal
62
- */
59
+ * Callback that checks if an attribute is a formatting attribute.
60
+ *
61
+ * @internal
62
+ */
63
63
  export type IsFormattingCallback = (attributeName: string, item: ModelItem | ModelDocumentSelection) => boolean;
64
64
  /**
65
- * Callback that removes formatting from an item.
66
- *
67
- * @internal
68
- */
65
+ * Callback that removes formatting from an item.
66
+ *
67
+ * @internal
68
+ */
69
69
  export type RemoveFormattingCallback = (attributeName: string, range: ModelRange, writer: ModelWriter) => void;
@@ -1,36 +1,36 @@
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 remove-format/removeformatediting
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module remove-format/removeformatediting
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The remove format editing plugin.
11
- *
12
- * It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.
13
- */
10
+ * The remove format editing plugin.
11
+ *
12
+ * It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.
13
+ */
14
14
  export declare class RemoveFormatEditing extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get pluginName(): "RemoveFormatEditing";
19
- /**
20
- * @inheritDoc
21
- * @internal
22
- */
23
- static get licenseFeatureCode(): string;
24
- /**
25
- * @inheritDoc
26
- */
27
- static get isOfficialPlugin(): true;
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isPremiumPlugin(): true;
32
- /**
33
- * @inheritDoc
34
- */
35
- init(): void;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName(): "RemoveFormatEditing";
19
+ /**
20
+ * @inheritDoc
21
+ * @internal
22
+ */
23
+ static get licenseFeatureCode(): string;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static override get isOfficialPlugin(): true;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static override get isPremiumPlugin(): true;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ init(): void;
36
36
  }
@@ -1,30 +1,30 @@
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 remove-format/removeformatui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module remove-format/removeformatui
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The remove format UI plugin. It registers the `'removeFormat'` button which can be
11
- * used in the toolbar.
12
- */
10
+ * The remove format UI plugin. It registers the `'removeFormat'` button which can be
11
+ * used in the toolbar.
12
+ */
13
13
  export declare class RemoveFormatUI extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "RemoveFormatUI";
18
- /**
19
- * @inheritDoc
20
- */
21
- static get isOfficialPlugin(): true;
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- /**
27
- * Creates a button for remove format command to use either in toolbar or in menu bar.
28
- */
29
- private _createButton;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "RemoveFormatUI";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static override get isOfficialPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ /**
27
+ * Creates a button for remove format command to use either in toolbar or in menu bar.
28
+ */
29
+ private _createButton;
30
30
  }
@@ -2,4 +2,4 @@
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
- export default {"af":{"dictionary":{"Remove Format":"Verwyder formatering"},getPluralForm(n){return (n != 1);}}}
5
+ export default {"af":{"dictionary":{"Remove Format":"Verwyder formatering"}}}
@@ -4,8 +4,10 @@
4
4
  */
5
5
 
6
6
  ( e => {
7
- const { [ 'af' ]: { dictionary, getPluralForm } } = {"af":{"dictionary":{"Remove Format":"Verwyder formatering"},getPluralForm(n){return (n != 1);}}};
7
+ const { [ 'af' ]: translations } = {"af":{"dictionary":{"Remove Format":"Verwyder formatering"}}};
8
8
  e[ 'af' ] ||= { dictionary: {}, getPluralForm: null };
9
- e[ 'af' ].dictionary = Object.assign( e[ 'af' ].dictionary, dictionary );
10
- e[ 'af' ].getPluralForm = getPluralForm;
9
+ e[ 'af' ].dictionary = Object.assign( e[ 'af' ].dictionary, translations.dictionary );
10
+ if ( translations.getPluralForm ) {
11
+ e[ 'af' ].getPluralForm = translations.getPluralForm;
12
+ }
11
13
  } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -2,4 +2,4 @@
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
- export default {"ar":{"dictionary":{"Remove Format":"إزالة التنسيق"},getPluralForm(n){return (n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);}}}
5
+ export default {"ar":{"dictionary":{"Remove Format":"إزالة التنسيق"}}}
@@ -4,8 +4,10 @@
4
4
  */
5
5
 
6
6
  ( e => {
7
- const { [ 'ar' ]: { dictionary, getPluralForm } } = {"ar":{"dictionary":{"Remove Format":"إزالة التنسيق"},getPluralForm(n){return (n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);}}};
7
+ const { [ 'ar' ]: translations } = {"ar":{"dictionary":{"Remove Format":"إزالة التنسيق"}}};
8
8
  e[ 'ar' ] ||= { dictionary: {}, getPluralForm: null };
9
- e[ 'ar' ].dictionary = Object.assign( e[ 'ar' ].dictionary, dictionary );
10
- e[ 'ar' ].getPluralForm = getPluralForm;
9
+ e[ 'ar' ].dictionary = Object.assign( e[ 'ar' ].dictionary, translations.dictionary );
10
+ if ( translations.getPluralForm ) {
11
+ e[ 'ar' ].getPluralForm = translations.getPluralForm;
12
+ }
11
13
  } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -2,4 +2,4 @@
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
- export default {"ast":{"dictionary":{"Remove Format":""},getPluralForm(n){return (n != 1);}}}
5
+ export default {"ast":{"dictionary":{"Remove Format":""}}}
@@ -4,8 +4,10 @@
4
4
  */
5
5
 
6
6
  ( e => {
7
- const { [ 'ast' ]: { dictionary, getPluralForm } } = {"ast":{"dictionary":{"Remove Format":""},getPluralForm(n){return (n != 1);}}};
7
+ const { [ 'ast' ]: translations } = {"ast":{"dictionary":{"Remove Format":""}}};
8
8
  e[ 'ast' ] ||= { dictionary: {}, getPluralForm: null };
9
- e[ 'ast' ].dictionary = Object.assign( e[ 'ast' ].dictionary, dictionary );
10
- e[ 'ast' ].getPluralForm = getPluralForm;
9
+ e[ 'ast' ].dictionary = Object.assign( e[ 'ast' ].dictionary, translations.dictionary );
10
+ if ( translations.getPluralForm ) {
11
+ e[ 'ast' ].getPluralForm = translations.getPluralForm;
12
+ }
11
13
  } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -2,4 +2,4 @@
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
- export default {"az":{"dictionary":{"Remove Format":"Formatı Ləğv Et"},getPluralForm(n){return (n != 1);}}}
5
+ export default {"az":{"dictionary":{"Remove Format":"Formatı Ləğv Et"}}}
@@ -4,8 +4,10 @@
4
4
  */
5
5
 
6
6
  ( e => {
7
- const { [ 'az' ]: { dictionary, getPluralForm } } = {"az":{"dictionary":{"Remove Format":"Formatı Ləğv Et"},getPluralForm(n){return (n != 1);}}};
7
+ const { [ 'az' ]: translations } = {"az":{"dictionary":{"Remove Format":"Formatı Ləğv Et"}}};
8
8
  e[ 'az' ] ||= { dictionary: {}, getPluralForm: null };
9
- e[ 'az' ].dictionary = Object.assign( e[ 'az' ].dictionary, dictionary );
10
- e[ 'az' ].getPluralForm = getPluralForm;
9
+ e[ 'az' ].dictionary = Object.assign( e[ 'az' ].dictionary, translations.dictionary );
10
+ if ( translations.getPluralForm ) {
11
+ e[ 'az' ].getPluralForm = translations.getPluralForm;
12
+ }
11
13
  } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -2,4 +2,4 @@
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
- export default {"be":{"dictionary":{"Remove Format":"Выдаліць фарматаванне"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}}
5
+ export default {"be":{"dictionary":{"Remove Format":"Выдаліць фарматаванне"}}}
@@ -4,8 +4,10 @@
4
4
  */
5
5
 
6
6
  ( e => {
7
- const { [ 'be' ]: { dictionary, getPluralForm } } = {"be":{"dictionary":{"Remove Format":"Выдаліць фарматаванне"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}};
7
+ const { [ 'be' ]: translations } = {"be":{"dictionary":{"Remove Format":"Выдаліць фарматаванне"}}};
8
8
  e[ 'be' ] ||= { dictionary: {}, getPluralForm: null };
9
- e[ 'be' ].dictionary = Object.assign( e[ 'be' ].dictionary, dictionary );
10
- e[ 'be' ].getPluralForm = getPluralForm;
9
+ e[ 'be' ].dictionary = Object.assign( e[ 'be' ].dictionary, translations.dictionary );
10
+ if ( translations.getPluralForm ) {
11
+ e[ 'be' ].getPluralForm = translations.getPluralForm;
12
+ }
11
13
  } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -2,4 +2,4 @@
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
- export default {"bg":{"dictionary":{"Remove Format":"Премахни форматиране"},getPluralForm(n){return (n != 1);}}}
5
+ export default {"bg":{"dictionary":{"Remove Format":"Премахни форматиране"}}}