We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31822
    • 5 Posts
    OK IM ON THE HOME STRETCH!

    My site is ready to go ’live’ but the problem with using quickedit is my style sheet doesn’t take over and it (quickedit) throws in some nasty inline styles... I fire-bugged it and it gave me this: "<span class="Apple-style-span" style="font-weight: bold;">" Does anyone know how to disable it from auto styling my copy??? Also I found some docs online and it said to check out output.css but I cant find that file anywhere. I did a fresh install of 09.6

    Happy 4th!
      • 22770
      • 285 Posts
      Are you pasting directly from Word or some similar programme? If so, don’t! The best way to handle this is to copy from word (or similar) then paste into a plain text editor (e.g., notepad or similar), remove all the remaining formatting, then paste into TinyMCE and redo the formatting. The other alternative is to do ’paste from Word’, then go to HTML view and remove any remaining junk.
        • 31822
        • 5 Posts
        See thats fine but the only thing is that this is for a client. They would have no idea what I’m talking about if I told them that. I just want it to not style anything and let my sheet style everything. Is that possible??
          • 22770
          • 285 Posts
          Not if they are pasting from word. I think there are two things you could do. Firstly, make sure they use the ’paste from word’ button, rather than just pasting. This will help with some of it. The second thing you could do would be to write a piece of PHP to strip out all tags and attributes that you don’t want, such as style="*" and so on. The problem with that is that I have no idea how you could use it in MODx. It would have to intercept the quickedit submission on the way to the database. I’m sure it’s possible, but I’m too much of a MODx newbie myself to know how.
            • 16610
            • 634 Posts
            This is an annoying "feature" with TinyMCE - nothing to do with MODx I think.

            Some solutions, requires hacking TinyMCE:
            http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=14599
            http://tinymce.moxiecode.com/punbb/viewtopic.php?id=7553

            Easiest solution is to change rich text editor to FCKEditor: http://www.modxcms.com/FCKEditor-583.html
            It has a build-in option to turn on plain text paste permanently.
              Mikko Lammi, Owner at Maagit
              • 31822
              • 5 Posts
              Thanks a bunch! I will try out that other RTE and see what happens!