I am Bhavana C. I have been using Trumbowyg HTML Editor and have really loved the way it is designed. We are a team related to Movies and we have many content related to Social Media to be edited in the textarea. I am facing a small issue only with twitter embed code which is added fine in the first go but if the content is tried to edit again it disappears fas the twitter code is replaced by
Browser version: Google Chrome
OS: Windows
Screen resolution:
<blockquote class="twitter-tweet"><p lang="et" dir="ltr">Azhake Azhake : <a href="https://twitter.com/hashtag/Neerali?src=hash&ref_src=twsrc%5Etfw">#Neerali</a> video song <a href="https://t.co/MVOimtW1fy">https://t.co/MVOimtW1fy</a></p>— Mohanlal (@Mohanlal) <a href="https://twitter.com/Mohanlal/status/1003617901314621441?ref_src=twsrc%5Etfw">June 4, 2018</a></blockquote>Above code is rendered as:
Azhake Azhake : #Neerali video song https://t.co/MVOimtW1fy
— Mohanlal (@Mohanlal) June 4, 2018
`<p>
<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</p><twitterwidget class="twitter-tweet twitter-tweet-rendered" id="twitter-widget-0" style="position: static; visibility: visible; display: block; transform: rotate(0deg); max-width: 100%; width: 500px; min-width: 220px; margin-top: 10px; margin-bottom: 10px;" data-tweet-id="1003617901314621441"></twitterwidget>`
I see that the blockquotes in the first embed code are replaced with
I'm not able to reproduce it. Test done on https://alex-d.github.io/Trumbowyg with Chrome 67.
I am still able to reproduce the issue in https://alex-d.github.io/Trumbowyg with Chrome 67.
Is this how you did it? https://vimeo.com/273505599
Yes.. But the issue is reproducible once the media file from twitter is loaded. You can a have look at the issue here: https://vimeo.com/273520375
Any Update on this??
Nope :/
It's hard to fix since you are pasting some HTML which inject JS which modify this HTML.
Thanks Alex. As a workaround I am not loading the Twitter script while embedding and calling it only when displaying the tweet.
I think it's the right way.
Thanks Alex. As a workaround I am not loading the Twitter script while embedding and calling it only when displaying the tweet.
Could you explain how you achieve that please ?
Thanks Alex. As a workaround I am not loading the Twitter script while embedding and calling it only when displaying the tweet.
Could you explain how you achieve that please ?
When you are embedding the tweet, make sure you do not include the twitter script tag. Use the Twitter script code only when you are rendering your UI.
Do not include while embedding your tweet.