Clarica will be closed for Christmas between 20 December - 11th January
Any Joomla tutorials in this section are mostly based on the older Joomla 1.5 version.
The concepts are the same but newer versions have a different looking interface
(mostly all the same options, just different colours and layout)
Code Cleanup Issues in JCE & TinyMCE Scripts Removed Etc.
By default Joomla! 'cleans' content and code on saving, removing code elements such as object, embed, video, audio, style and iframe etc..
This overrides code cleanup settings in JCE
(eg in Components >> JCE >> Global Configuration >> Cleanup HTML - make sure this is off first)
To fix this just do the following.
Why does some HTML get removed from articles in version 1.5.8?
In Joomla! 1.5.8 and later, a default filtering choice is in place for those who have not selected an Article Filter option. The default applied for those who have not made a selection implements "black list" filtering as a security precaution against possible XSS. In version 1.5.8, all users, including members of the Super Admin group, have this set by default. In versions 1.5.9 and later, users in the Super Admin group do not have any filtering by default.
Changing the Article Global Configuration
If the default filtering option is not suitable for your needs, you can change it by using the Article Global Configuration options. For example, to change the default settings so that no filtering happens for members of the Super Administrator group:
- Navigate to Content ? Article Manager.
- Press the Parameters icon in the toolbar to show the Articles - Global Configuration screen.
- Scroll down to Filtering Options, highlight all Filter groups exceptSuper Administrator, and select Filter type of Blacklist (Default), as shown in the screenshot below.
With this setting, Joomla! will use the default Blacklist filter for all users except for the Super Administrator group. If you want to let other groups of Users submit content with no filtering, just modify the instructions above to exclude these groups. If you want no filtering on any groups, follow the instructions above but select only the Registered group.
TinyMCE Editor Configuration
If you are using the Tiny MCE Editor, you may also want to adjust these settings in the plugin:
- Code Cleanup on Startup ? Off
- Code Cleanup on Save ? Always (TinyMCE since Joomla! version 1.5.12)
- Do Not Clean HTML Entities ? Yes (In Joomla! version 1.5.15 and later, it is called Entity Encoding -> Raw)
More detailed instructions for filtering options can be found by pressing the Help button when in the Article Manager, or here in the Joomla documentation.
Joomla! 1.6 & 1.7
- In the Joomla! Article Manager, click on the Options button
- In the Options Dialog, click on the Text Filters tab.
- For the Super Users group, or any other trusted user group, set Filter Type to No Filtering. Make sure that you only set this option for user groups that can be trusted as setting the Filter Type to No Filtering will essentially allow the user to include any html in an article.
- Go to Global Configuration
- Click "Text Filters" Tab.
- Change "Super Users" filter type to "no filtering"
This will solve problems such as these.
- Youtube videos won't work in Joomla (code gets deleted)
- JCE TinyMCE code cleanup deletes my styles code and scripts.
- Inline document styles (css) gets removed by JCE or TinyMCE in Joomla <styles>
- Code cleanup problems in JCE / TinMCE
- Flash scripts being removed by JCE code cleanup
<br> & <br clear="all" /> tags gets deleted or converted to <p></p>
FIX: Go to components >> JCE >> Editor Global Configuration >> Formatting and Display >> Container element >> Change to : Disabled
Contiguous (repeated) spaces getting deleted.
FIX: Go to components >> JCE >> Editor Global Configuration >> Cleanup and output >> Entity Encoding >> Change to Named
FIX: Go to components >> JCE >> Editor Profiles >> Default >> Editor Parameters >> Options
Allow: PHP >> Yes (if required and if it won't be a security risk for your site)
Allow: CSS >> Yes (if required and if it won't be a security risk for your site)