Skip to content

Commit fcc919b

Browse files
authored
Disable TinyMCE relative_urls to avoid auto replace self domain urls (#1389)
# i.e : <http://pod.localhost:8000/video/0001-podmp4/> become `../../0001-podmp4/`
1 parent 79a6f40 commit fcc919b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pod/main/settings.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,19 @@
319319
# Social share
320320

321321
SOCIAL_SHARE = ["X", "FACEBOOK", "LINKEDIN", "BLUESKY", "MASTODON"]
322+
323+
# Disable TinyMCE relative_urls to avoid auto replace self domain urls
324+
# i.e : http://pod.localhost:8000/video/0001-podmp4/ become ../../0001-podmp4/
325+
TINYMCE_DEFAULT_CONFIG = {
326+
"theme": "silver",
327+
"height": 500,
328+
"menubar": False,
329+
"plugins": "advlist,autolink,lists,link,image,charmap,print,preview,anchor,"
330+
"searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste,"
331+
"code,help,wordcount",
332+
"toolbar": "undo redo | formatselect | "
333+
"bold italic backcolor | alignleft aligncenter "
334+
"alignright alignjustify | bullist numlist outdent indent | "
335+
"removeformat | help",
336+
"relative_urls": False,
337+
}

0 commit comments

Comments
 (0)