You are here

function scald_video_wysiwyg_editor_settings_alter in Scald: Media Management made easy 7

Implements hook_wysiwyg_editor_settings_alter().

This is a patch for using CKEditor 4.x with the WYSIWYG module. Without this patch, all works fine except the video preview in the WYSIWYG editor. This patch allow <video> and <source> tags.

File

modules/providers/scald_video/scald_video.module, line 367
Scald Video is a Scald Atom Provider for video files.

Code

function scald_video_wysiwyg_editor_settings_alter(&$settings, $context) {
  if ($context['profile']->editor == 'ckeditor') {
    $settings['extraAllowedContent'] = array(
      'video[controls,height,width,id,preload]',
      'source[src,type]',
    );
  }
}