Add binary files support (#503)

هذا الالتزام موجود في:
Thomas Miceli
2025-09-16 01:35:54 +02:00
ملتزم من قبل GitHub
الأصل 905276f24b
التزام 594d876ba8
25 ملفات معدلة مع 426 إضافات و194 حذوفات

عرض الملف

@@ -196,8 +196,11 @@ document.addEventListener("DOMContentLoaded", () => {
let arr = Array.from(allEditorsdom);
arr.forEach((el: HTMLElement) => {
// in case we edit the gist contents
let currEditor = newEditor(el, el.querySelector<HTMLInputElement>(".form-filecontent")!.value);
editorsjs.push(currEditor);
let formFileContent =el.querySelector<HTMLInputElement>(".form-filecontent")
if (formFileContent !== null) {
let currEditor = newEditor(el, el.querySelector<HTMLInputElement>(".form-filecontent")!.value);
editorsjs.push(currEditor);
}
});
checkForFirstDeleteButton();