src/bold/boldediting.js
Function init
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init() {
const editor = this.editor;
// Allow bold attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: BOLD } );
editor.model.schema.setAttributeProperties( BOLD, {