Javascript
« on: May 31, 2021, 05:49:42 AM »
Hello,

I am wanting to embed some tweets from Twitter however their embed code consists of adding a JS -

<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

When I put that in there the editor erases it. Is there any way to get around this?

Thanks,
Anthony

Re: Javascript
« Reply #1 on: May 31, 2021, 05:37:07 PM »
I should mention that I tried putting it in the source code and it deletes it from there as well. I think it is a safety so that people will not try to run bad scripts on the blogs. I am the only one writing so I don't have to worry about that

*

MB Themes

Re: Javascript
« Reply #2 on: May 31, 2021, 08:10:48 PM »
That simply means it generates javascript error (when editor disappear).
You will have to check browser console and debug that error.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slaven

  • ***
  • 81 posts
Re: Javascript
« Reply #3 on: July 05, 2021, 01:46:26 PM »
If I want to insert Google Adsense code directly into a post blog ... the same thing happens.

That's not right.

Generally there is a problem in the editor or is something up to Osclass  ... it doesn't save-remember the code but deletes it.

Blog plugin > update post > Decription > Source code > Inserting Google Adsense code does not work ... .


"Google Rich Snippet Tags" like Facebook and Twitter don't appear on the blog ... and they should? Your "Social Share Tags" plugin is used and it doesn't work without it when the display is turned on in the Admin panel.

Note: It's all possible to do in RichEdit :)
« Last Edit: July 05, 2021, 06:07:37 PM by alexborg »
Osclass

*

MB Themes

Re: Javascript
« Reply #4 on: July 06, 2021, 07:46:56 AM »
@alexborg
I am 100% sure this is removed by TinyMCE, as there is usually no single reason, why blogger should enter any kind of hidden javascript into article.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slaven

  • ***
  • 81 posts
Re: Javascript
« Reply #5 on: July 06, 2021, 07:02:50 PM »
Where can TinyMCE be modified within the Osclass or Blog plugin? Tnx
Osclass

*

MB Themes

Re: Javascript
« Reply #6 on: July 07, 2021, 09:48:42 AM »
@alexborg
It is not feature, it is security.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots