Happy Sale Day!

30%OFF on all
Use coupon: IFTS

Javascript being stripped out of code

More
5 months 1 week ago #12634 by Kjrarick
Kjrarick created the topic: Javascript being stripped out of code
Hi there.

Joomla: 3.9.x
Editor: TinyMCE (No Filtering on Admin and Super Users)

Also followed this from the documentation

No luck. I noticed though that in my setup, I don't have the Basic Options tab in the Editor - TinyMCE properties.

I am attaching a text file with the code.

Could you let me know if I am missing any in my settings? I am using the Commune template.

Thank you,
Karla
Attachments:

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #12635 by marcin
marcin replied the topic: Javascript being stripped out of code
Hi,

Thank you for contacting us.

Strange, settings from the article should work.
If it is just a single use case, just switch to code mirror or no editor (in User settings or Global Config), add the code and save article/module.
After that you can switch back to TinyMce.

Regards,
Marcin

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #12636 by Kjrarick
Kjrarick replied the topic: Javascript being stripped out of code
Hi Marcin,

Thanks for the reply. It is very strange. However, I want to share that I found the answer in a another support forum. Apparently, Joomla (maybe a glitch or could be something else causing it - 3rd party templates, plugins, modules, etc) does not recognize the "$" symbol for jQuery. Instead when "$" is replaced with the full "jQuery", which I did on the code above, the script works fine.

Maybe someone can let Joomla folks know about this?

Thanks,
Karla

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #12637 by marcin
marcin replied the topic: Javascript being stripped out of code
Hi,

I thought that your script is cutted off from the editor.
Regarding the dollar sign, it is a prefix replaced with "jQuery" in Joomla to avoid conflicts with other scripts mainly Mootools (it uses double dollar prefix).

Regards.

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2021 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.