We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47666
    • 43 Posts
    I'm not sure if this is a bug or maybe some kind of setting issue, but my icons (i tags) keep getting deleted from the content of each resource. I keep putting them back in and after a week or so I notice they are gone again. Here is the tag:

    <i class="fa fa-home fa-3x pull-left"></i>
    


    if it helps here is a link to a page where they have disappeared.
    http://bestsellinginsurance.com/auto-insurance.html

    any ideas?

    I'm running MODX Revolution 2.2.14-pl (traditional)
      • 3749
      • 24,544 Posts
      If you're using TinyMCE, it may be "cleaning things up" for you.

      BTW, many people would argue that the italic tag should never have a class. I think an img, span, or p tag would make more sense here and might be more likely to be left alone.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        And while we're at it, upgrade your site to 2.2.15. Your version is vulnerable to a nasty hack that is being actively used.

        Check your assets directory for any stray .php files, like 'cache.php' - there should never be any .php files in the assets directory (although a few third-party add-ons do have connectors for javascript applications there, instead of in core/components like they should). Also check your users for any odd users you didn't create.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 32699 ☆ A M B ☆
          • 427 Posts
          W. Shawn Wilkerson Reply #4, 12 years, 1 month ago
          Quote from: aaron4osu at Aug 15, 2014, 09:26 AM

          <i class="fa fa-home fa-3x pull-left"></i>
          



          Bob this is Font Awesome.

          aaron40su,

          If you are using any of the text-editors, as Bob mentioned, they have a horrible habit of changing perfectly formed, formatted, and functional code. I never use them myself.

          MODX does not care what is placed the pages and makes no attempt to adjust it in any way.
            Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

            Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
            • 47666
            • 43 Posts
            Thanks for the warning sottwell, I updated to the new version.

            I tried removing TineMCE but then get the following error when I try to open any chunk:

            Fatal error: require_once() [function.require]: Failed opening required '/.../bestsellinginsurance.com/core/components/tinymce/tinymce.class.php' (include_path='.:/opt/php53/lib/php') in /.../public_html/bestsellinginsurance.com/core/cache/includes/elements/modplugin/1.include.cache.php on line 21

            Any ideas?
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              You can't just remove the plugin. Go to your System Settings, and in the Editors section disable the Rich Text editor.

              It's better to simply disable it for the affected resource, in the resource's Settings tab just clear the Rich Text checkbox.

              To get rid of those errors, go to Package Manager and re-install it.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 47666
                • 43 Posts
                OK.

                looking around in the settings I noticed within the tinymce setting with this line:
                RemoveFormat Selector tiny.removeformat_selector b,strong,I,em,span,ins

                Do you think I can just remove the 'I' from the list and that would fix my problem?
                  • 47666
                  • 43 Posts
                  nope. didn't work. looks like i might have to just disable it.
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    I haven't used tinymce for years, but I seem to recall one setting to allow certain tags. I don't see that anywhere now.

                    That RemoveFormatSelector is for when you use the "Remove Format" button in the tinymce toolbar. [ed. note: sottwell last edited this post 12 years, 1 month ago.]
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Ah. That is not a problem with the i tag, it's a problem with any empty tags.

                      The property or setting we need is "extended_valid_elements", but I don't see any way of correctly adding such a setting.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org