Browse Source

Fixing image insert

svalavuo 1 tháng trước cách đây
mục cha
commit
7a187ce046
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      js/wysiwyg.js

+ 5 - 0
js/wysiwyg.js

@@ -291,6 +291,11 @@ class WYSIWYGEditor {
         this.closeImageGallery();
     }
     
+    // Alias function for backward compatibility
+    insertSelectedImage() {
+        return this.insertSelectedImages();
+    }
+    
     async deleteImage(imageId, event) {
         event.stopPropagation(); // Prevent image selection