-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summernote youtube iframe code does not show video on Android WebView #3252
Comments
I wasn't able to replicate the issue, so I'm hoping this has since been resolve with the newer versions of Summernote. If it's still an issue, please reopen, or create a new issue. |
This is still an issue on latest release of summernote. When adding a video url e.g |
this issue exists in the current latest release of summernote (v0.8.18), any updates? i guess adding a callback would temporary solve this problem {
onChange: function(contents, $editable) {
$editable.find('iframe[src^="//"]').each(function(){
$(this).attr('src', 'https:' + $(this).attr('src'));
});
}
} |
Hi!
I am trying to show a summernote code from database with a youtube embedded video into an Android WebView but looks like the WebView needs the URL scheme to load and show it.
What is the reason to ommit the scheme when adding the attribute?
My first idea was to modify the code but I can not because I do not use the library directly (I am using the
summernote-rails (0.8.8.0)
gem), is there any method to modify the content of the attribute after adding the video? I have searched through the callbacks to use it in the initialization of summernote and modify the src attribute but I have not found any and I can not think of any way to address it. Any ideas?Thanks.
The text was updated successfully, but these errors were encountered: