Hello,
I am trying to insert videos using Elgg's default editor, CKEditor.
However, when I insert the video, it only saves on the backend and does not appear on the frontend.
I cannot embed the videos because there is a restriction on the iframe tag. So, how can I adapt this to my project?
I need this functionality, allowing CKEditor to enable this in any text field within the project.
Thank you very much.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
PS: it's possible to configure ckeditor to not automatically make a clickable link, but i don't remember the setting.
Hi Jerome!
I’m sorry, the embed plugin does work!
The issue was with the plugin configuration in the backend.
Whitelisted domains for oEmbed support was set as:
When I left the configuration blank, the plugin worked.
The oEmbed plugin solved the issue of inserting videos and adjusting the layout. When inserting the link, it must not have any formatting.
There’s only a small difference in the video layout depending on the link format. For example:
One video appears larger than the other. I know this is a minor issue, but for the sake of standardization, I’ll run some tests and get back to you soon.
When pasting the link (without formatting) into the editor, it doesn’t convert in the backend (which is fine); it’s only rendered on the frontend. I’ll run some tests with adjustments in the file:
Thank you for your help; your suggestion works. The issue has been resolved.
In the help text of the plugin settings it gives you a hint of what you should fill in.
https://youtube.com is an URL, not a domain. The domain of that link would be 'youtube', that will catch any URL with the same domain (like https://www.youtube.com or https://youtube.com).
With the plugin setting 'height' we try to make sure the format is the same, but it can still be that the height is the same but the width isn't. Let me know of any issues.
Copy the code below and paste it into:
<elgg_folder>/vendor/elgg/elgg/mod/ckeditor/views/default/ckeditor/config/base.mjs
==============================================
CODE :
// Gets the height of the top bar, if present
========================================================
How to standardize shared videos through iframe? The code above does not work for users not connected to the network.
Thanks
- Previous
- 1
- 2
- Next
You must log in to post replies.