Browse Source

Fix video plugin see!

https://github.com/chamilo/chamilo-lms/commit/08a54874ed506d8a50ca7c0c161181947487eb20
jmontoyaa 8 years ago
parent
commit
7d175d49a0
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 )