Changeset 1907a18 in Klonkt for src/routes


Ignore:
Timestamp:
06/15/2026 01:48:56 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
d352b63
Parents:
851239c
Message:

feat: embed media via editor button ([[embed:url]] shortcode)

Embed YouTube/Spotify/SoundCloud/Vimeo/Apple Music/Bandcamp with a toolbar
button in the post editor: paste a URL -> [[embed:url]] chip -> server renders
an iframe (AudioEmbedService.embedMediaShortcodes, in the existing embed pipeline).
Standalone URL lines also embed via autoembed(). CSP already allows the domains.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    r851239c r1907a18  
    398398  if (site.enable_audio_player !== 0) {
    399399    html = AudioEmbedService.autoembed(html);
     400    html = AudioEmbedService.embedMediaShortcodes(html);
    400401    html = AudioEmbedService.embedExternalLinkShortcodes(html);
    401402
Note: See TracChangeset for help on using the changeset viewer.