fix rich editor embed image original

This commit is contained in:
2024-09-13 18:11:57 +03:00
parent c0b3878674
commit c45a3847f8
5 changed files with 6 additions and 7 deletions
@@ -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
});