/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /** * @module mention/mentionediting */ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; /** * The mention editing feature. * * @extends module:core/plugin~Plugin */ export default class MentionEditing extends Plugin { /** * @inheritDoc */ static get pluginName() { return 'MentionEditing'; } /** * @inheritDoc */ init() { const editor = this.editor; // Allow fontSize attribute on text nodes. editor.model.schema.extend( '$text', { allowAttributes: 'mention' } ); } }