copy image markdown from admin area

This commit is contained in:
2023-12-03 11:12:08 +11:00
parent 92c435c1ed
commit 65be48b519
6 changed files with 5531 additions and 26 deletions

View File

@@ -5,6 +5,12 @@ import TinyMDE from "tiny-markdown-editor";
import defo from "@icelab/defo";
(function() {
document.addEventListener('alpine:init', () => {
Alpine.magic('clipboard', () => {
return subject => navigator.clipboard.writeText(subject)
})
})
document.addEventListener("DOMContentLoaded", function () {
const views = {
markdown: (el, attrs) => {