fix rich editor embed image original

This commit is contained in:
lexx committed 2024-09-13 18:11:57 +03:00
1 parent c0b3878674
commit c45a3847f8
5 files changed
+6 -7

No files matched your search

@@ -26,9 +26,10 @@
function insert(e, preset) {
e.preventDefault();
let html = htmlurl(channel, record, preset)
let url = !preset ? `/${record._file.path}` : `/templates/${preset}/${record._file.path}`;
dispatch("editor-insert", {
html: html,
url: channel.filesUrl + `/templates/${preset}/${record._file.path}`,
url: channel.filesUrl + url,
originalUrl: channel.filesUrl + "/" + record._file.path,
record: record
});