src/title.js
File title.js
has 275 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
Function _attachPlaceholders
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_attachPlaceholders() {
const editor = this.editor;
const t = editor.t;
const view = editor.editing.view;
const viewRoot = view.document.getRoot();
Function _attachTabPressHandling
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_attachTabPressHandling() {
const editor = this.editor;
const model = editor.model;
// Pressing <kbd>Tab</kbd> inside the title should move the caret to the body.