Commit Graph

2 Commits

Author SHA1 Message Date
johnnyq
feb068f16c Keep a picture that was copied by itself as a copy when it is pasted into an editor, not as a link to where it came from: Copy image in a browser puts both the picture and an img tag pointing at the other site on the clipboard, and TinyMCE takes the HTML whenever there is any, so the reply or document saved the link and the picture showed only for the person who pasted it; js/tinymce_defaults.js now puts a paste handler on every editor, ahead of TinyMCE own, that hands the paste back with only the picture on it when the clipboard holds one image file and its HTML is a single img with no text or other content, so it is stored like a pasted screenshot in every editor in ITFlow and the client portal; HTML with text in it is left to TinyMCE as before and nothing is fetched; add the changelog entries. Reported by jcobu on the forum 2026-11-11 12:41:31 -05:00
johnnyq
6ecc27e7ca Version ITFlow's scripts and stylesheets so browsers fetch the new copies after an update instead of needing a cache clear: add staticFileUrl() in functions/app.php, which adds ?v= and the file's modification time to the address, and send every script and stylesheet tag through it, libs included, with page-relative addresses changed to start from the site root; add js/tinymce_defaults.js to set TinyMCE's cache_suffix so the plugins, theme and skins it loads itself are versioned too; load ticket collision detection only when a ticket is shown, so a ticket that isn't found no longer throws a script error; add changelog entries and a CONTRIBUTING rule that new tags must use staticFileUrl() 2026-11-09 01:22:35 -05:00