BookStackApp/BookStack

View on GitHub
resources/js/wysiwyg/ui/defaults/toolbars.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function getMainEditorFullToolbar has 106 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getMainEditorFullToolbar(context: EditorUiContext): EditorContainerUiElement {

    const inRtlMode = context.manager.getDefaultDirection() === 'rtl';

    return new EditorSimpleClassContainer('editor-toolbar-main', [
Severity: Major
Found in resources/js/wysiwyg/ui/defaults/toolbars.ts - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status