We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17705
    • 501 Posts
    Has anyone tried to add a custom style to fckeditor?

    I followed the http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Styles instructions...
    added

    <Style name="Parrafo letra chica" element="span">
    <Attribute name="class" value="parrafin" />
    </Style>

    in the fckstyles.xml file... but the new style do not appear


    I have tried editing some paths in the .js config file too, ant nothing...

    any idea?
      • 4018
      • 1,131 Posts
      I’ll check it out and see what the problem is.
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 17705
        • 501 Posts
        Thanks Bravado
          • 4018
          • 1,131 Posts
          Have you tried updating FCKEditor to the latest version? (http://modxcms.com/FCKEditor-2.3a-0.html) This is the version that I have installed and I’m having no problems getting the fckstyles.xml file to work. I also copied this file from the root of the /assets/plugins/fckeditor directory into another one and modified the plugin configuration to use it and it worked as well. Try updating your plugin and see if that does the trick. smiley
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 17705
            • 501 Posts
            Thanks for the suggestion Bravado!

            Well, I am going to try with the latest latest smiley
            2.3.1, from http://www.fckeditor.net/

            lets see what happen then...
              • 17705
              • 501 Posts
              oops, no...

              Do I really need to use the 2.3b installer?

              (or) can I just copy the 2.3.1 over the fckeditor installed with modx 0.9.2.1?
                • 4018
                • 1,131 Posts
                Kill the existing /assets/plugins/fckeditor directory completely first, then upload the new one on in. I would suggest using the installer since it will automate the process of updating the code for the existing plugin. Else, you would have to manually paste in the plugin code from the included .tpl file.
                  Jeff Whitfield

                  "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                  • 17705
                  • 501 Posts
                  It worked Bravado, thanks a lot!...
                  I have custom styles now smiley

                  (I have used the 2.3.1 version, and actualiced the snippet using the tpl of 2.3b)
                    • 17705
                    • 501 Posts
                    mmmm, but I have a problem now!

                    fckeditor is not loading on the content field of the documents....

                    it is working on others rich format TV, but it shows a white hole in the content field... and I can not change that content because of that sad

                    Do you have the same problem using version 2.3b?
                      • 4018
                      • 1,131 Posts
                      No...but sometimes you have to flush the cache of your browser and resave your configuration setting for it to work. Weird..I know.
                        Jeff Whitfield

                        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."