fbpx
Call us +1-231-421-7160

Text Filters: HTML Code Not Saving Properly

Occasionally, clients will contact us about work not saving properly in an article or in a Custom HTML module. A lot of times this occurs because the HTML code isn't saving correctly because Javascript has been added in an article or module and the filtering doesn't allow for this. There are several ways that this issue can impact the functions of your site, but we'll use one specific case as an example.

Example Scenario: Recently a client was trying to include a rollover image feature in an article. The rollover image feature (which is located in the JCE Editor) will exchange one image for another when a mouse is rolled over the image. The client connected images to enable the rollover feature, but his work didn't save correctly. This was caused by the code not saving correctly. Essentially, the error occurred because Javascript wasn't being recognized by the editor and/or Joomla was filtering out the type of code he was asking the editor to perform. Fortunately, there is a solution. This article contains instructions on how to resolve the issue of HTML code not saving properly.

First, once you're logged into the the back end of your site, go to Components > JCE Administration > Profiles.

code 1

Once inside the Editor Profiles, select the "Default" profile.

code 2

Under the "Editor Parameters" tab, go to options tab on the left, and look for the "Allow JavaScript" option and turn it on by selecting "Yes" from the drop down menu. Select "Save and Close" to save your work.

code 3

Once that is done, click on the Global Configuration button in the control panel.

global1

Select the "Text Filters" tab and scroll down to find the "Super Users" filter group.  Select "No Filtering" from the drop down menu that appears under the "Filter Type" column. Click on the "Save & Close" button at the top of the same window.

global2

Now, return to the article or custom HTML module where you were originally working. Complete and save the work as you did before. For the rollover image example that is included above, this client would return to the rollover feature in the JCE Editor. They will complete and save their work as they did before, but this time it should work correctly.

Do you have suggestions for improving this article?  

We take a great deal of pride in our knowledgebase and making sure that our content is complete, accurate and useable. If you have a suggestion for improving anything in this content, please let us know by filling out this form. Be sure to include the link to the article that you'd like to see improved. Thank you!