CKEditor (when used in WYSIWYG module) has the capability to embed videos using a plugin, which i had discussed in this thread. The discussion lead to an interim module shared in post 13 in the same thread. However, the drawback of this 'interim' module is that it is not foolproof in ways that it allows embedding web pages too. This calls for some checks to be implemented in this module when the user inserts the video URL.
I need assistance with developing this foolproof module which would not allow inserting anything other than videos from the already supported sources. I supposed this might be possible because something similar has been implemented in Embed Google Maps Field module.
I would like to hear from someone who is ready to do this on a paid basis.
edit: Conversely, does someone think this is not possible as this has to be done inside the wysiwyg interface as opposed to embed_gmap module which has nothing to do with wysiwyg?
Comments
You need an input filter
I think the correct approach is to configure the HTML input filter on the input format which is used for your content, allow <embed>, <object> <script> tags (also in the HTML input filter configuration), and also install (and enable) the following additional filter to restrict the use of the tags: http://drupal.org/project/embedfilter
In the effect, the users will still be able to paste illegal code in the EmbedMedia plugin's text area, but none of it will be saved and mess up your site's layout (or security).
You can contact me if you need further assistance.
Well, the illegal code would
Well, the illegal code would still be saved in the database, just not rendered - as the filters run during rendering.
I can also recommend having a look at http://drupal.org/project/wysiwyg_filter for more granular control than what the "HTML Filter"-filter allows. Another benefit is that it allows controlled use of style attributes, something the other filter removes unconditionally.