5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 06:54:17 +00:00

Merge branch 'rails' of 0xacab.org:sutty/sutty into blazer

This commit is contained in:
f 2022-07-15 14:12:51 -03:00
commit 03d2914ec6

View file

@ -137,8 +137,10 @@ export function setupAuxiliaryToolbar(editor: Editor): void {
"click",
(event) => {
const files = editor.toolbar.auxiliary.multimedia.fileEl.files;
if (!files || !files.length)
throw new Error("no hay archivos para subir");
if (!files || !files.length) {
console.info("no hay archivos para subir");
return;
}
const file = files[0];
const selectedEl = editor.contentEl.querySelector<HTMLElement>(