UNPKG

@ckeditor/ckeditor5-alignment

Version:

Text alignment feature for CKEditor 5.

40 lines (39 loc) 1.09 kB
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module alignment/alignment */ import { Plugin } from 'ckeditor5/src/core.js'; import AlignmentEditing from './alignmentediting.js'; import AlignmentUI from './alignmentui.js'; /** * The text alignment plugin. * * For a detailed overview, check the {@glink features/text-alignment Text alignment} feature guide * and the {@glink api/alignment package page}. * * This is a "glue" plugin which loads the {@link module:alignment/alignmentediting~AlignmentEditing} and * {@link module:alignment/alignmentui~AlignmentUI} plugins. */ export default class Alignment extends Plugin { /** * @inheritDoc */ static get requires() { return [AlignmentEditing, AlignmentUI]; } /** * @inheritDoc */ static get pluginName() { return 'Alignment'; } /** * @inheritDoc */ static get isOfficialPlugin() { return true; } }