5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 17:56:22 +00:00

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

This commit is contained in:
f 2022-07-13 18:54:06 -03:00
commit 7a0e5b8714

View file

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