Replies: 2 comments
-
There isn't a user-facing setting in Trilium Notes to disable or hide the "Auto-detected" box in code blocks—it's built into the editor as part of a custom CKEditor plugin and always appears when editing code blocks reference. The only practical workaround is to hide it with custom CSS. If you can inject custom styles, try adding: .ck-toolbar-container.codeblock-language-list {
display: none !important;
} This will hide the dropdown and its toolbar, but it's not an official or supported solution. Disabling it via code would require modifying and rebuilding the CKEditor integration. There are ongoing requests to improve the dropdown's usability, but no option yet to remove it entirely reference. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
There isn't a user-facing setting to disable or hide the "Auto-detected" box in code blocks—it's built into the editor as part of a custom CKEditor plugin and always appears when editing code blocks. If you want to hide it, you can use custom CSS like this: .ck-toolbar-container.codeblock-language-list {
display: none !important;
} This will hide the dropdown and its toolbar, but it's not an official or supported solution. Disabling it via code would require modifying and rebuilding the CKEditor integration, which is not trivial. There are ongoing requests to improve the dropdown's usability, but no option yet to remove it entirely [source]. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to stop the "Auto-detected" box from coming up when you are in a code block. It blocks the text above and I find it very inconvenient to click out to see what I have written above while I'm typing in the code block.
Beta Was this translation helpful? Give feedback.
All reactions