Przeglądaj źródła

Configurado para que los pdf cojan las imágenes

Celestino Rey 4 miesięcy temu
rodzic
commit
fb3c27c41c
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      src/doc_generator/settings.py

+ 5 - 0
src/doc_generator/settings.py

@@ -181,4 +181,9 @@ TINYMCE_DEFAULT_CONFIG = {
     # --- This is the crucial part for connecting TinyMCE to the FileBrowser ---
     'file_picker_callback': 'filebrowser_callback',
     'file_picker_types': 'image', # We are only enabling it for images
+    
+     
+    "relative_urls": False,  # Important for correct media URL handling in PDFs
+    "remove_script_host": True,  # Important for correct media URL handling in PDFs
+   
 }