How to prevent scripts from being removed on saving

joomla support cheshire manchester merseyside north west uk

By default, the Joomla! CMS content editor will remove scripts which you try to add to the body of any Article or Custom HTML Module when you select SAVE or SAVE & Close.

This is to protect the integrity of your website.

This default setting can however be changed.

If you do then you should take care to either:

  1. revert to the default setting after adding a script, or
  2. restrict which users can in future add scripts by configuring the Editor Profiles.

Read more: About Editor Profiles.

 

What do we mean by scripts?

Javascript, CSS and PHP.

Of these, Javascript is the one that you may most likely want to add to an Article or Custom HTML Module.

Example

Your web host may offer a Mailing List Sign Up feature and provide you with Javascript to add to your website to enable website visitors to sign up to your mailing lists.

Or, maybe you want to embed in an Article the script for your YouTube Channel.

Note: if you upload videos to YouTube and want to present these within your website, we would recommend you use a 3rd party extension.

Read more: Working with video.

 

How to prevent a script from being removed

This is a TWO STEP process which involves changing the:

  1. Global Configuration Text Filter settings for a user group, and the
  2. Content Editor Profile settings for a user group.

Read more: How to prevent scripts from being removed on saving.

WYNCHCO Joomla! CMS Support

We coach, help and support managers with responsiblity for Joomla! websites in organisations across Cheshire, Manchester, Merseyside, North West England and the UK.

Read more: WYNCHCO Joomla! CMS Support Packages.