By Albert on Tuesday, 10 May 2016
Posted in General
Replies 9
Likes 0
Views 0.9K
Votes 0
I need to be able to embed gist scripts into posts.

I'm using Sourcer to be able to embed javascript into easyblog. I'm using TinyMCE editor. When I save a post, the code works in the front-end, but when I edit a post the code is gone.
ex.
{source}<script></script>{/source}
when I edit it it changes to
{source}{/source}


I'm using sourcer, so I don't have to toggle off the editor to make javascript work.

I tested it with regular Joomla articles, and the plugin, embedding, editing all works. It just seems to be easyblog stripping it away when I try to edit a post.

TinyMCE plugin setting:
Prohibited Elements: applet,iframe
valid elements: script
Extended valid elements: script[language|type|src], iframe[src|title|width|height|allowfullscreen|frameborder|class|id]

upate: looks like arkEditor does the same thing. Is there some other setting I'm messing. I'm trying hard to find an editor that works with easyblog.
Hi Albert,

Please assign your domain to your license to obtain for support. You can do so by accessing your license area at http://stackideas.com/dashboard

Once you are done, update us here and we'll continue checking your issue.
Sam
·
Tuesday, 10 May 2016 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, I added a domain. I also added login details to my original post. I don't want to use your easyblog composer. I'm trying to find an editor where I can embed github Gist.
·
Saturday, 21 May 2016 13:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Albert,

I am really sorry for the delay of this reply as it is a weekend for us here. Are you logged into the site as super admin ?
·
Sunday, 22 May 2016 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes. I wanted to make sure to avoid text filters.
·
Sunday, 22 May 2016 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Albert,

Thanks, I will try this on your site but before that,

1. Can I update EasyBlog to the latest version, 5.0.35? Your site has 5.0.30 installed.

2. Can you please provide the code snippet which you are trying to insert?
·
Sunday, 22 May 2016 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
I updated it. For now, I'm using I cant post the embed here
·
Monday, 23 May 2016 00:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Albert,

Hm, it looks like there are no work around for this with TINYMCE. Regardless of what settings is used, it still strips of the src attribute The same behavior occurs when you create a Joomla article too

I would suggest that you use the codemirror editor instead or other 3rd party editor. Try to edit the post "Test git embeds" with codemirror, the code is still there.
·
Monday, 23 May 2016 14:34
·
0 Likes
·
0 Votes
·
0 Comments
·
I decided to use oEmbed method instead.
·
Tuesday, 24 May 2016 04:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Albert, glad that your issues are resolved now
·
Tuesday, 24 May 2016 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post