pageer / lnblog

A flexible, file-based weblog.
https://lnblog.skepticats.com/
GNU General Public License v2.0
0 stars 0 forks source link

Image and other links for drafts don't work in TinyMCE #12

Closed pageer closed 4 years ago

pageer commented 4 years ago

Currently, TinyMCE can't deal correctly with image URLs in drafts. A relative URL, which would be correct after publication, can't be resolved in the editor.

The issue is that TinyMCE resolves links relative to the current URL, which is the drafts folder. However, the entry attachments live in a subdirectory of the drafts folder, so the URL that TinyMCE uses isn't valid.