resources/js/wysiwyg/services/drop-paste-handling.ts
Function handleMediaInsert
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleMediaInsert(data: DataTransfer, context: EditorUiContext): boolean {
const clipboard = new Clipboard(data);
let handled = false;
// Don't handle the event ourselves if no items exist of contains table-looking data
Function createDropListener
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createDropListener(context: EditorUiContext): (event: DragEvent) => boolean {
const editor = context.editor;
return (event: DragEvent): boolean => {
// Template handling
const templateId = event.dataTransfer?.getData('bookstack/template') || '';