Twitter embed codes in Summernote editor

Does anyone use Summernote editor? I’m trying to embed twitter feeds via the code-button:

<blockquote class="twitter-tweet" lang="no"><p lang="en" dir="ltr">Behavior Driven Development and Design for Realtime with Meteor <a href="http://t.co/qeNVkxiain">http://t.co/qeNVkxiain</a> by <a href="https://twitter.com/ncoe12">@ncoe12</a> <a href="https://twitter.com/hashtag/javascript?src=hash">#javascript</a></p>&mdash; Meteor (@meteorjs) <a href="https://twitter.com/meteorjs/status/628605437529731073">4. august 2015</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

This results in a text block with Summernotes own CSS, and it seems that the Twitter script is ignored. The default Twitter-style is not loaded.

I also tried calling the widgets.js script inside <head></head>. Still, can’t see the Twitter styles.

Anyone have any tips on how I can get the Twitter-script to initiate and load it’s styles?

1 Like