diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index ee073ee1e..bee715c82 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -792,9 +792,12 @@ let postSaveTimer = null; case "image/png": case "image/gif": //case "image/svg+xml": not working - // let send_id = `embedFiles_${result.id}`; + {{* let send = `[img]${baseurl}/cloud/${address}/${result.display_path}[/img]`; *}} + let send_id = `embedFiles_${result.id}`; + {{* $( document ).ready(function() { document.getElementById(send_id).addEventListener("click", function() { setEmbedFiles(send); }); }); *}} $( document ).ready(function() { document.getElementById(send_id).addEventListener("click", function() { setEmbedFiles2(result); }); }); - return `
  • `; + // setEmbedFiles2(result); + return `
  • `; case "video/mp4": case "video/webm": case "video/ogg":