UNPKG

@ckeditor/ckeditor5-ui

Version:

The UI framework and standard UI library of CKEditor 5.

32 lines (31 loc) 867 B
/** * @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 */ import HighlightedTextView from './highlightedtextview.js'; /** * A button label view that can highlight a text fragment. */ export default class ButtonLabelWithHighlightView extends HighlightedTextView { /** * @inheritDoc */ constructor() { super(); this.set({ style: undefined, text: undefined, id: undefined }); const bind = this.bindTemplate; this.extendTemplate({ attributes: { class: [ 'ck-button__label' ], style: bind.to('style'), id: bind.to('id') } }); } }