vwatson Posted November 2, 2021 Share Posted November 2, 2021 What is the best way to make it easy for a client to embed videos from rumble.com into a textarea field? I have the video embed text formatter for youtube and vimeo added, but it seems that only works for those two video providers? I tried adding the iframe button as a ckeditor plugin, but I must be missing something as I can't get a button to appear in the editor toolbar. In the field, I check the box for the iframe plugin checked, but nothing appears in the toolbar. Thanks for any help. Link to comment Share on other sites More sharing options...
wbmnfktr Posted November 2, 2021 Share Posted November 2, 2021 You might have to dissect the rumble embed code to understands what's happening there in detail to make it work as either HannaCode or Repater/Matrix block. It's probably even better to fork the YouTube-embed textformatter and make it work with all textarea fields and maybe even the PrivacyWire module. Another option could be a snippet module or repeater-element/textarea in which you just place the embed code which then gets rendered as plain HTML/JS. Not that nice but possible. How urgent is that implementation? Link to comment Share on other sites More sharing options...
vwatson Posted November 2, 2021 Author Share Posted November 2, 2021 Well, this is a freebie site I'm doing for a friend. They have a rumble channel and will embed videos in their blog/articles. So I was hoping not to have to invest a lot of time/effort into it. ? Link to comment Share on other sites More sharing options...
wbmnfktr Posted November 2, 2021 Share Posted November 2, 2021 Friend or client... both don't wanna pay money for features like that. :D I'd go with a custom HannaCode here. There are patterns in the rumble embed which make it quite easy. Here is an example: !HannaCode:rumble:eyJuYW1lIjoicnVtYmxlIiwidHlwZSI6MiwiY29kZSI6IlwvKmhjX2F0dHJcbnZpZGVvaWQ9XCJ2bHBvaTZcIlxuaGNfYXR0cipcL1xuPD9waHAgbmFtZXNwYWNlIFByb2Nlc3NXaXJlOyA/PlxuXG48c2NyaXB0PiFmdW5jdGlvbihyLHUsbSxiLGwsZSl7ci5fUnVtYmxlPWIscltiXXx8KHJbYl09ZnVuY3Rpb24oKXsocltiXS5fPXJbYl0uX3x8W10pLnB1c2goYXJndW1lbnRzKTtpZihyW2JdLl8ubGVuZ3RoPT0xKXtsPXUuY3JlYXRlRWxlbWVudChtKSxlPXUuZ2V0RWxlbWVudHNCeVRhZ05hbWUobSlbMF0sbC5hc3luYz0xLGwuc3JjPVwiaHR0cHM6XC9cL3J1bWJsZS5jb21cL2VtYmVkSlNcL3U0XCIrKGFyZ3VtZW50c1sxXS52aWRlbz8nLicrYXJndW1lbnRzWzFdLnZpZGVvOicnKStcIlwvP3VybD1cIitlbmNvZGVVUklDb21wb25lbnQobG9jYXRpb24uaHJlZikrXCImYXJncz1cIitlbmNvZGVVUklDb21wb25lbnQoSlNPTi5zdHJpbmdpZnkoW10uc2xpY2UuYXBwbHkoYXJndW1lbnRzKSkpLGUucGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUobCxlKX19KX0od2luZG93LCBkb2N1bWVudCwgXCJzY3JpcHRcIiwgXCJSdW1ibGVcIik7PFwvc2NyaXB0PlxuXG48ZGl2IGlkPVwicnVtYmxlXzw/cGhwIGVjaG8gJHZpZGVvaWQ7ID8+XCI+PFwvZGl2PlxuPHNjcmlwdD5cblJ1bWJsZShcInBsYXlcIiwge1widmlkZW9cIjpcIjw/cGhwIGVjaG8gJHZpZGVvaWQ7ID8+XCIsXCJkaXZcIjpcInJ1bWJsZV88P3BocCBlY2hvICR2aWRlb2lkOyA/PlwifSk7PFwvc2NyaXB0PiJ9/!HannaCode Just import that into HannaCode and maybe add a safe default video ID. BTW... this is the video ID: 2 Link to comment Share on other sites More sharing options...
wbmnfktr Posted November 2, 2021 Share Posted November 2, 2021 And... you want to install HannaCodeDialog in order to make it easy for users to embed those snippets https://processwire.com/modules/hanna-code-dialog/ 2 Link to comment Share on other sites More sharing options...
wbmnfktr Posted November 2, 2021 Share Posted November 2, 2021 Yet another one with some basic PrivacyWire markup to make it slightly more GDPR/DSGVO-compatible... at least you need an opt-in for the video. !HannaCode:rumblePrivacyWire:eyJuYW1lIjoicnVtYmxlUHJpdmFjeVdpcmUiLCJ0eXBlIjoyLCJjb2RlIjoiXC8qaGNfYXR0clxudmlkZW9pZD1cInZscG9pNlwiXG5oY19hdHRyKlwvXG48P3BocCBuYW1lc3BhY2UgUHJvY2Vzc1dpcmU7ID8+XG5cbjxzY3JpcHQgdHl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CJkaXZcIjpcInJ1bWJsZV88P3BocCBlY2hvICR2aWRlb2lkOyA/PlwifSk7PFwvc2NyaXB0PiJ9/!HannaCode It doesn't render anything unless you opt-in for external media (cookies). 1 Link to comment Share on other sites More sharing options...
vwatson Posted November 2, 2021 Author Share Posted November 2, 2021 Thanks! I'll give that a try tonight. Link to comment Share on other sites More sharing options...
vwatson Posted November 3, 2021 Author Share Posted November 3, 2021 Worked like a charm. Thanks much! ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now