WYSIWYG editor removes HTML code

With the "Edit HTML Source" option of your WYSIWYG editor you can put HTML code in your article. However the HTML code will be stripped upon saving. Unless ...

Even if you use the no WYSIWYG ( "Editor - No Editor") which can be set in Global Configuration and/or the parameters of your user account in the User Manager.

To prevent Joomla from stripping HTML from your content (Note: handle with care):

  1. Goto the Article Manager.
  2. Select "Parameters" (the button on the top right).
  3. Under Filtering options, choose:
    Filter groups: select the groups that are allowed to use HTML code, e.g. SuperAdministrator
    Filter type: Whitelist

Now you can use HTML in your articles (with "Edit HTML Source" option).

222 Votes

15 Comments

Feed
  1. That's nice.

    How can I do the same thing on the module / Custom HTML?
  2. Excellent tip.
    It's the little things that can make a big difference to ones day. Regards Lee
  3. Quote:
    How can I do the same thing on the module / Custom HTML?

    Yes, is it possible to do this in the custom html mod?
  4. I've searching this for month. I've installed many plug-in to works thing out but in the end, it's only a simple solution.

    Thanks a lot :-)
  5. We've been chatting about this a lot in the joomla forums lately.

    http://forum.joomla.org/viewtopic.php?p=1665026#p1665026

    One thing to mention is that this is specific types of code that are being stripped out for security purposes, mainly forms , javascript, and embed objects (flash).

    Another thing to mention is that although you may stop Joomla from stripping out this content like this tip explains, your WYSIWYG editor (if not standard) may also strip this out, so you'll have two palaces where you might need to make this adjustment.

    Check out the forum for more information..

    -A
  6. Thank you! :-) This is just what I needed. I was pulling my hair out when Joomla kept stripping out my Flash object tags!
  7. Dear I'm sela a young student in cambodia. I want to know a bout how to make the data base with joomla? please can you help me?
    this form will get by admin to see and the customer can not see it.
    thank from cambodia
  8. I updated to 1.5.10 and as you can see on my site an old youtube is still embedded. But I had one on the front page. Changing the parameters did not work. black, white admin, anythingf it just will not hold the code anymore.
    any suggestions?
  9. I've been looking for a solution for so long and tried many plugins/modules that hadn't worked, but making these changes finally worked for me - so thank you to who posted.

    One thing not noted here, is that in the Global Config, the Server tab (I believe), you have to allow the Flash upload. I'd had trouble using the little film icon before I did that.

    Also, and I don't know if it was me testing in haste, but I found that the "apply" would strip the code off, even with my settings made, but when I retested with again, copying in all the code, but hit "save", the code was still there when I jumped back in.
  10. HI this is great as I was just asking on the forum about html I realy have to try these adjustments. Thank you.8-) Bruce8-)
  11. I too have been suffering with this, and tried the suggestion, no help. The editors seem to overide the article parameters.

    I post on the forum every so often, hoping someone will eventually clear this up.....:\
  12. This didn't work for me in 1.5.11. I had to instead select the inverse and use 'blacklist'.

    FYI.
  13. Doesn't work for me in 1.5.11. I actually get a 500 error from trying to use these settings and saving the article. What a pain this is. ><img src=" />
  14. I have been fighting with PayPal buttons being messed up within Joomla for weeks! I followed the instructions above hoping to finally resolve this and now I have no buttons and the entire article is messed up. Now I get to start from scratch! I will not recommend Joomla to anyone and am sorry I ever heard of it!
  15. if you want to completely stop code getting stripped out, do the above and then use FCK editor and make this adjustment which makes protected code which FCK Editor will not touch.

    http://www.fijiwebdesign.com/component/option,com_fireboard/Itemid,54/func,view/id,947/catid,11/

Add Comment


    • >:o
    • :-[
    • :'(
    • :-(
    • :-D
    • :-*
    • :-)
    • :P
    • :\
    • 8-)
    • ;-)