User Ratings
Rate This Project
Login To Rate This Project
Featured Reviews
Highest Rated
5 out of 5 starsHad to modify youtube.js to work with shortened youtube urls.. replace the val.replace and var text= lines with this.
if(val.indexOf("youtu.be",0) > -1){
val = val.replace("youtu.be","youtube.com/embed/");
}else{
val = val.replace("watch\?v\=", "embed\/");
}
var text='<iframe title="YouTube video player" class="youtube-player" type="text/html" width="480" height="390" src="'
//+this.getContentElement('general','content').getInputElement().getValue()
+ val
+'?rel=0" frameborder="0"></iframe>';
Lowest Rated
1 out of 5 starsUnable to make it work with jQuery adapter.
User Reviews
-
5 out of 5 starsHad to modify youtube.js to work with shortened youtube urls.. replace the val.replace and var text= lines with this. if(val.indexOf("youtu.be",0) > -1){ val = val.replace("youtu.be","youtube.com/embed/"); }else{ val = val.replace("watch\?v\=", "embed\/"); } var text='<iframe title="YouTube video player" class="youtube-player" type="text/html" width="480" height="390" src="' //+this.getContentElement('general','content').getInputElement().getValue() + val +'?rel=0" frameborder="0"></iframe>';
-
1 out of 5 starsUnable to make it work with jQuery adapter.
- Previous
- You're on page 1
- Next