Browse Source

Fix Firefox v47 error if poster="" see BT#11431

Error was "Error loading this resource".
See: https://github.com/johndyer/mediaelement/issues/1769
jmontoyaa 8 years ago
parent
commit
08a54874ed
1 changed files with 4 additions and 0 deletions
  1. 4 0
      main/inc/lib/javascript/ckeditor/plugins/video/dialogs/video.js

+ 4 - 0
main/inc/lib/javascript/ckeditor/plugins/video/dialogs/video.js

@@ -9,6 +9,10 @@ CKEDITOR.dialog.add( 'video', function ( editor )
 		if ( !value && this.id=='id' )
 			value = generateId();
 
+        if (value == '') {
+            return;
+        }
+
 		videoNode.setAttribute( this.id, value);
 
 		if ( !value )