mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 11:42:26 +08:00
fix(server): improved handling for missing files on Firefox
This commit is contained in:
parent
5ee6ba8cb0
commit
0bb573022a
6
libraries/ckeditor/ckeditor.js
vendored
6
libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -197,7 +197,15 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
|
|
||||||
const notificationsPlugin = editor.plugins.get("Notification");
|
const notificationsPlugin = editor.plugins.get("Notification");
|
||||||
notificationsPlugin.on("show:warning", (evt, data) => {
|
notificationsPlugin.on("show:warning", (evt, data) => {
|
||||||
|
const title = data.title;
|
||||||
|
const message = data.message.message;
|
||||||
|
|
||||||
|
if (title && message) {
|
||||||
toast.showErrorTitleAndMessage(data.title, data.message.message);
|
toast.showErrorTitleAndMessage(data.title, data.message.message);
|
||||||
|
} else if (title) {
|
||||||
|
toast.showError(title || message);
|
||||||
|
}
|
||||||
|
|
||||||
evt.stop();
|
evt.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user