Search
Other Sourcerer questions
Forum

Javascript code removed in articles

Maria Ivanova's Avatar Maria Ivanova
Hello,
I have purchased the pro version of sourcerer to be able to use javascript code in articles. It is continuing to strip code when I save the article just like before.
I am using Joomla 3.10.3, and latest version of sourcerer since I just bought it. I am placing tag {source} before and after javascript code and using "no editor" in joomla settings. The code is being stripped. Please help me fix that. Thank you.
website: www.saltlakesalsafest.com

p.s. I have read through your site and it says "It's important to note that you should place the code in the WYSIWYG view of the editor, NOT in the HTML/Code view of the editor." I am not understanding this exactly. do you mean that I need to have joomla default editor on in global configurations and insert the javacode through the editor view instead of "code" view?
Peter van Westen's Avatar Peter van Westen ADMIN
Yes, that is the main idea behind Sourcerer. That you can just use your WYSIWYG like normal and place the code directly into your article text.
Also, try using the Sourcerer editor button.
Please post a rating at the Joomla! Extensions Directory
Maria Ivanova's Avatar Maria Ivanova
Ok I have tinyMCE editor enabled in Joomla.
I need to add this javascript code to an article:
<script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script><healcode-widget data-version="0.2" data-link-class="healcode-pricing-option-image-link" data-site-id="1318" data-mb-site-id="21141" data-bw-identity-site="false" data-type="pricing-link" data-inner-html="<img alt='Buy Now' src='https://www.saltlakesalsafest.com/images/Getpassbutton.png' />" data-service-id="7328" />

I am adding {source} and {/source} tags before and after this. It strips java by adding j-avascipts after I click "save". What am I doing wrong?

Also, I am using the editor button. It inserts that script fine and strips it with adding "-" like shown above when I click "save" on the article.
Maria Ivanova's Avatar Maria Ivanova
Yep, I have read through that.

"Make sure you are using the WYSIWYG view of your editor.

Some editors remove tags you enter in the editor (even if not in html view).

To prevent tags from being stripped, use the double bracket syntax. So instead of <tag>, do [[tag]].

Some editors (like JCE) do allow you to enter tags in the WYSIWYG view, but you may have to change some settings in the editor."

- I am not using JCE, using tinyMCE default editor.
- I am using [] tags.
This is what I am doing when using the editor button, it strips it anyway

{source}[[script src="https://widgets.mindbodyonline.com/j-avascripts/healcode.js" type="text/j-avascript"]] [[/script]]<healcode-widget data-version="0.2" data-link-class="healcode-pricing-option-image-link" data-site-id="1318" data-mb-site-id="21141" data-bw-identity-site="false" data-type="pricing-link" data-inner-html="<img alt='Buy Now' src='https://www.saltlakesalsafest.com/images/Getpassbutton.png' />" data-service-id="7328" />{/source}

Also tried this, same result.
{source}[[script src="https://widgets.mindbodyonline.com/j-avascripts/healcode.js" type="text/j-avascript"]] [[/script]] [[healcode-widget data-version="0.2" data-link-class="healcode-pricing-option-image-link" data-site-id="1318" data-mb-site-id="21141" data-bw-identity-site="false" data-type="pricing-link" data-inner-html="<img alt='Buy Now' src='https://www.saltlakesalsafest.com/images/Getpassbutton.png' />" data-service-id="7328" /]]{/source}

What is wrong? Thank you for you help.
Maria Ivanova's Avatar Maria Ivanova
Also disabled JCH extension, same result. Not sure what else to do.
Maria Ivanova's Avatar Maria Ivanova
Any help would be appreciated. I have purchased the plug in for this purpose and can't seem to make it work after several hours and reading everything up on it on google and this site. Thank you
Maria
Peter van Westen's Avatar Peter van Westen ADMIN
Do you have RS Firewall installed?

Quick google search on: joomla "text/j-avascript"
forum.joomla.org/viewtopic.php?t=585392
Please post a rating at the Joomla! Extensions Directory
Maria Ivanova's Avatar Maria Ivanova
Thank you for your help with that link above
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription