resources/js/wysiwyg-tinymce/drop-paste-handling.js
Function drop
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drop(editor, options, event) {
const {dom} = editor;
const rng = window.tinymce.dom.RangeUtils.getCaretRangeFromPoint(
event.clientX,
event.clientY,
Function paste
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function paste(editor, options, event) {
const clipboard = new Clipboard(event.clipboardData || event.dataTransfer);
// Don't handle the event ourselves if no items exist of contains table-looking data
if (!clipboard.hasItems() || clipboard.containsTabularData()) {