mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 01:31:41 +00:00
Merge branch 'issue-5102' into 'rails'
editor: No reportar error cuando no se selecciona un archivo para subir Closes #297, #336, #337, #344, #349, #402, #444, #533, #534, #2132, #2147, #2240, #2251, #2254, #2381, #2469, #2926, #2983, #3018, #3130, #3193, #3383, #3425, #3604, #4125, #4127, #4431, #4733, and #5102 See merge request sutty/sutty!102
This commit is contained in:
commit
5458fc6291
1 changed files with 4 additions and 2 deletions
|
@ -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>(
|
||||||
|
|
Loading…
Reference in a new issue