resources/js/wysiwyg-tinymce/config.js
File config.js
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {register as registerShortcuts} from './shortcuts';
import {listen as listenForCommonEvents} from './common-events';
import {scrollToQueryString} from './scrolling';
import {listenForDragAndPaste} from './drop-paste-handling';
import {getPrimaryToolbar, registerAdditionalToolbars} from './toolbars';
Function buildForEditor
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function buildForEditor(options) {
// Set language
window.tinymce.addI18n(options.language, options.translationMap);
// BookStack Version
Function buildForInput
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function buildForInput(options) {
// Set language
window.tinymce.addI18n(options.language, options.translationMap);
// BookStack Version
Function gatherPlugins
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function gatherPlugins(options) {
const plugins = [
'image',
'table',
'link',
Function getSetupCallback
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getSetupCallback(options) {
return function setupCallback(editor) {
function editorChange() {
if (options.darkMode) {
editor.contentDocument.documentElement.classList.add('dark-mode');
Function setupCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function setupCallback(editor) {
function editorChange() {
if (options.darkMode) {
editor.contentDocument.documentElement.classList.add('dark-mode');
}