mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
Fix corner case preventing notes from being created before ckeditor is initialized (#849)
* Pass deleteId to deleteBranch in ensureNoteIsAbsentFromParent * Add checks for whether window.cutToNote is defined. * check ckEditor initialized.
This commit is contained in:
@@ -248,6 +248,10 @@ function copySelectionToClipboard() {
|
||||
}
|
||||
}
|
||||
|
||||
function isCKEditorInitialized() {
|
||||
return !!(window && window.cutToNote);
|
||||
}
|
||||
|
||||
export default {
|
||||
reloadApp,
|
||||
parseDate,
|
||||
@@ -281,5 +285,6 @@ export default {
|
||||
clearBrowserCache,
|
||||
getUrlForDownload,
|
||||
normalizeShortcut,
|
||||
copySelectionToClipboard
|
||||
copySelectionToClipboard,
|
||||
isCKEditorInitialized
|
||||
};
|
||||
Reference in New Issue
Block a user