Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

onError is called for every oembed I have #30

Open
l0c0luke opened this issue Aug 18, 2015 · 0 comments
Open

onError is called for every oembed I have #30

l0c0luke opened this issue Aug 18, 2015 · 0 comments

Comments

@l0c0luke
Copy link

It seems as though it is called long before the embed is even started. But I get the console you have in your library. and if i overwrite the onError function, it is always called. code I am using is like this ...

$("oembed").each(function() {
            var oembedelement = this;
            $(oembedelement).oembed($(oembedelement).html(), {
                includeHandle : false,
                embedMethod : 'auto',
                afterEmbed : function() {
                    $(oembedelement).remove();
                }
            });
        });

and the embed tags are something like <oembed>https://instagram.com/p/6aEQqHpS7g/?taken-by=earsplitt</oembed> being created from ckeditor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant