mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
chore(ckeditor5): type errors due to augmentation
This commit is contained in:
@@ -97,7 +97,7 @@ export function loadHighlightingTheme(themeName: string) {
|
||||
*/
|
||||
export function isSyntaxHighlightEnabled() {
|
||||
const theme = options.get("codeBlockTheme");
|
||||
return theme && theme !== "none";
|
||||
return !!theme && theme !== "none";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -111,7 +111,7 @@ export function buildConfig(): EditorConfig {
|
||||
},
|
||||
mapLanguageName: getHighlightJsNameForMime,
|
||||
defaultMimeType: MIME_TYPE_AUTO,
|
||||
enabled: isSyntaxHighlightEnabled
|
||||
enabled: isSyntaxHighlightEnabled()
|
||||
},
|
||||
clipboard: {
|
||||
copy: copyText
|
||||
|
||||
Reference in New Issue
Block a user