···99import {htmlEscape} from 'escape-goat';
1010import {createTippy} from '../modules/tippy.js';
1111import {confirmModal} from './comp/ConfirmModal.js';
1212+import {showErrorToast} from '../modules/toast.js';
12131314const {appUrl, appSubUrl, csrfToken, i18n} = window.config;
1415···439440 return;
440441 }
441442 // should never happen, otherwise there is a bug in code
442442- alert('Nothing to hide');
443443+ showErrorToast('Nothing to hide');
443444 });
444445445446 initGlobalShowModal();
+2-1
web_src/js/features/comp/ComboMarkdownEditor.js
···88import {renderPreviewPanelContent} from '../repo-editor.js';
99import {easyMDEToolbarActions} from './EasyMDEToolbarActions.js';
1010import {initTextExpander} from './TextExpander.js';
1111+import {showErrorToast} from '../../modules/toast.js';
11121213let elementIdCounter = 0;
1314···2627 $form[0]?.reportValidity();
2728 } else {
2829 // The alert won't hurt users too much, because we are dropping the EasyMDE and the check only occurs in a few places.
2929- alert('Require non-empty content');
3030+ showErrorToast('Require non-empty content');
3031 }
3132 return false;
3233 }