Skip to content

Support embed/autolink in blog content#311

Merged
zainforbjs merged 3 commits intomainfrom
feature/link-embeding
Mar 5, 2026
Merged

Support embed/autolink in blog content#311
zainforbjs merged 3 commits intomainfrom
feature/link-embeding

Conversation

@zainforbjs
Copy link
Contributor

Add embedding and autolinking helpers and apply them to blog posts. Controller.cfc: introduce extractYouTubeId, getEmbedHtml, isEmbeddableUrl and embedAndAutoLink to convert plain URLs into embed iframes (YouTube/Twitter) or anchor tags. BlogController.cfc: process blog.content with embedAndAutoLink before rendering so embeddable links are displayed as embeds. public/javascripts/createBlog.js: minor client-side updates to form flow and post-save behavior (adds redirect to /blog on successful save and other JS tweaks).

Add embedding and autolinking helpers and apply them to blog posts. Controller.cfc: introduce extractYouTubeId, getEmbedHtml, isEmbeddableUrl and embedAndAutoLink to convert plain URLs into embed iframes (YouTube/Twitter) or anchor tags. BlogController.cfc: process blog.content with embedAndAutoLink before rendering so embeddable links are displayed as embeds. public/javascripts/createBlog.js: minor client-side updates to form flow and post-save behavior (adds redirect to /blog on successful save and other JS tweaks).
@zainforbjs zainforbjs merged commit 5071878 into main Mar 5, 2026
1 check passed
@zainforbjs zainforbjs deleted the feature/link-embeding branch March 5, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant