BookStackApp/BookStack

View on GitHub
resources/js/wysiwyg-tinymce/fixes.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function handleTableCellRangeEvents has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function handleTableCellRangeEvents(editor) {
    /** @var {HTMLTableCellElement[]} * */
    let selectedCells = [];

    editor.on('TableSelectionChange', event => {
Severity: Minor
Found in resources/js/wysiwyg-tinymce/fixes.js - About 1 hr to fix

    Function handleEmbedAlignmentChanges has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function handleEmbedAlignmentChanges(editor) {
        function updateClassesForPreview(previewElem) {
            const mediaTarget = previewElem.querySelector('iframe, video');
            if (!mediaTarget) {
                return;
    Severity: Minor
    Found in resources/js/wysiwyg-tinymce/fixes.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status