# alignment/utils

module

<a id="constants">

## Constants

<a id="constant-supportedOptions">

### `supportedOptions: ReadonlyArray<AlignmentSupportedOption>`

The list of supported alignment options:

* `'left'`,
* `'right'`,
* `'center'`,
* `'justify'`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-alignment/src/utils.ts#L23)

<a id="functions">

## Functions

<a id="function-isDefault">

### `isDefault( alignment, locale ) → boolean` _(internal)_

Checks whether alignment is the default one considering the direction of the editor content.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-alignment/src/utils.ts#L43)

#### Parameters

* `alignment: string`

  The name of the alignment to check.

* `locale: Locale`

  The [`locale`](module_core_editor_editor-Editor.md#member-locale) instance.

#### Returns

* `boolean`

<a id="function-isSupported">

### `isSupported( option ) → boolean` _(internal)_

Checks whether the passed option is supported by [`AlignmentEditing`](module_alignment_alignmentediting-AlignmentEditing.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-alignment/src/utils.ts#L31)

#### Parameters

* `option: string`

  The option value to check.

#### Returns

* `boolean`

<a id="function-normalizeAlignmentOptions">

### `normalizeAlignmentOptions( configuredOptions ) → Array<AlignmentFormat>` _(internal)_

Brings the configuration to the common form, an array of objects.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-alignment/src/utils.ts#L60)

#### Parameters

* `configuredOptions: Array<string | AlignmentFormat>`

  Alignment plugin configuration.

#### Returns

* `Array<AlignmentFormat>`

  Normalized object holding the configuration.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
