embedding videos from youtube
is it possible yet? i've looked at the plug in section but doesn't contain anything neither does the tricks section. im looking to embed youtube videos and have them display on the page.
so far the only method that i know of is to use this syntax below, but it doesn't have the play button and goes to youtube i want to view the video on the page.
thanks.
6 Replies
In custom or resource page? If it's custom then you can copy-paste the embedded link in blade file
the resource page
i found this to be helpful https://github.com/spatie/filament-markdown-editor
GitHub
GitHub - spatie/filament-markdown-editor: A markdown editor for Fil...
A markdown editor for Filament with code highlighting and image uploads - GitHub - spatie/filament-markdown-editor: A markdown editor for Filament with code highlighting and image uploads
it accepts inline html but the iframe introduces html, is there a way around to only embedding the video? this is what i input into the body of my post
it messes the layout on my post.view
thanks
Try creating a custom view field: https://filamentphp.com/docs/2.x/forms/fields#view
it worked, i forgot i had this:
switched back to
now the markdown doesn't work
i'll see about the custom view field thanks @kennethsese
solved it: i installed this package
and just using the <x-markdown> component lets me display the markdown