tip tap and trix

This commit is contained in:
2024-08-25 14:23:20 +03:00
parent 7b10bfca1d
commit 7c4e19afbc
12 changed files with 3151 additions and 151 deletions
@@ -4,7 +4,7 @@
import {createEventDispatcher, getContext} from "svelte";
import Preview from "../../files/Preview.svelte";
import {previewTitle} from "./../Preview";
import {htmlurl} from "../../files/imageserver.js"
import {fileurl, htmlurl} from "../../files/imageserver.js"
import Status from "./../Status.svelte";
import Dropdown from "../../common/Dropdown.svelte";
@@ -25,8 +25,13 @@
function insert(e, preset) {
e.preventDefault();
let html = htmlurl(channel,record, preset)
dispatch("editor-insert", html);
let html = htmlurl(channel, record, preset)
dispatch("editor-insert", {
html: html,
url: channel.filesUrl + `/templates/${preset}/${record._file.path}`,
originalUrl: channel.filesUrl + "/" + record._file.path,
record: record
});
}
</script>