{"record":{"id":"b0c42f8ea1ff574c","repo":"Leantime/leantime","slug":"wiki-tiptap-controller-not-available","errorCode":null,"errorMessage":"[Wiki] Tiptap controller not available","messagePattern":"\\[Wiki\\] Tiptap controller not available","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/Domain/Wiki/Templates/show.blade.php","lineNumber":484,"sourceCode":"            if (nowSmall) {\n                jQuery('#contentsPanel').addClass('collapsed');\n                jQuery('#showContentsBtn').addClass('visible');\n                jQuery('#propertiesPanel').addClass('collapsed');\n                jQuery('#showPropertiesBtn').addClass('visible');\n            }\n        }, 150);\n    });\n\n    @if($currentArticle && $login::userIsAtLeast($roles::$editor))\n    (function() {\n        var articleId = @json($currentArticle->id);\n        var wrapper = document.getElementById('wikiDocumentWrapper');\n        var editorEl = document.getElementById('wikiTiptapEditor');\n        var textarea = document.getElementById('wikiArticleContent');\n        var indicator = document.getElementById('wikiEditIndicator');\n\n        if (!editorEl || !textarea || !window.leantime || !window.leantime.tiptapController) {\n            console.warn('[Wiki] Tiptap controller not available');\n            return;\n        }\n\n        var isEditing = false;\n        var saveTimeout = null;\n        var lastSavedContent = textarea.value;\n        var toolbarClicking = false;\n\n        wrapper.addEventListener('mousedown', function(e) {\n            if (isEditing && !editorEl.contains(e.target)) {\n                toolbarClicking = true;\n            }\n        });\n\n        var tiptapInstance = leantime.tiptapController.initComplex(textarea, {\n            placeholder: 'Click anywhere to start editing...',\n            toolbar: false,\n            autosave: false,","sourceCodeStart":466,"sourceCodeEnd":502,"githubUrl":"https://github.com/Leantime/leantime/blob/9a9f49f1008f4782b30f6723c54228f4f992e636/app/Domain/Wiki/Templates/show.blade.php#L466-L502","documentation":"Error \"[Wiki] Tiptap controller not available\" thrown in Leantime/leantime.","triggerScenarios":"Thrown at app/Domain/Wiki/Templates/show.blade.php:484 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9a9f49f1008f4782b30f6723c54228f4f992e636","analyzedAt":"2026-08-21T02:37:38.966Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}