We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Oh and if you copy a snippet call from resource repository, it probably has <!-- --> comment tags in it when you view the source..


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      Quote from: Bravado at Jul 11, 2006, 10:35 AM

      Doze, you pretty much have it right on the money. However, rather than using the valid_elements config setting, I think the extended_valid_elements config setting should be used instead. If you look at the plugin code, you’ll see a line like this:

      extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",


      It’s pretty easy to figure out what’s what on this line. To add support for the "rel" attribute for "a" tags, you could simply add in the "rel" attribute to the the part of the line dealing with anchor tags (a[name|href|target|title|onclick|rel]). Just modify the code like that and you should be set.

      Probably what I’ll do for the next revision is add in the valid_elements config setting to where just about every valid element in the XHTML specification is covered. That way we won’t have a bunch of elements constantly being replaced on users.

      More to come....

      Jeff

      Ahh..that would explain why my ID attributes were being dropped from UL/OL ... hmm..somewhat frustrating to have to do this, but I can also see this as being a very useful feature.
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 4018
        • 1,131 Posts
        Heh heh...yeah, it can be a bit of a pain. In the process of updating the plugin, I’m placing a variable for this at the top of the plugin code for easy editing. I found trying to add this variable to the plugin configuration was quite difficult so...I just placed the variable at the top of the code since, in all likelihood, not very many people are really going to edit this code very much...if at all!

        I’m coming along quite nicely on other things. Alot of issues that have been brought up are being address upto and including custom button assignments, plugins, formats, and other customizations. I’ve also added styles and formats to the Advanced theme and will allow for quite a bit of customization to the Full Featured theme. Should be enought to make everyone pretty happy for now. smiley
          Jeff Whitfield

          "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
          • 30223
          • 1,010 Posts
          Probably what I’ll do for the next revision is add in the valid_elements config setting to where just about every valid element in the XHTML specification is covered. That way we won’t have a bunch of elements constantly being replaced on users.

          Could you also add the ’eform’ attribute for input, textarea and select tags? That way when using TinyMce when building forms for eForm they don’t get stripped. (For those in the unknown the eform attribute is used by eForm form handling snippet)
            • 32982
            • 674 Posts
            anybody has setup 2 instances of tynimce?
            i couldent do...
              Jabiertxof (formerly XYZVISUAL)
              My bussines: http://marker.es
              https://www.youtube.com/user/jabiertxof/videos
              • 30223
              • 1,010 Posts
              I don’t know what you want to achieve but you could see how it’s done by doing this:

              Setup a TV with the RTE widget, assign it to a template and then edit a page with that template in the manager. You should now have an instance of tinyMce for the main page content and an instance for the TV.

              Have a look at the source of editor frame and perhaps that will give you something to start from.
                • 22777
                • 8 Posts
                Hello,
                I hope I’m posting to the correct forum this time.

                I’m trying to install tinyMCE and am getting this error:

                Setup will now attempt to setup the database:

                Warning: main(../manager/includes/config.inc.php): failed to open stream: No such file or directory in public_html/tinyMCE/install/instprocessor.php on line 14

                Warning: main(): Failed opening ’../manager/includes/config.inc.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in public_html/tinyMCE/install/instprocessor.php on line 14

                Creating connection to the database: Database connection failed!

                Please check the database login details and try again.

                I have the tinyMCE file located in the same directory as the /manager folder. The files exists in the correct folder and has the correct info.

                Everything else is working correctly.

                Any help in getting this installed would be appreciated.

                Kindest Regards
                Pattie
                  Kindest Regards
                  Pattie
                  • 7923
                  • 4,213 Posts
                  The TinyMCE archive contains assets and install folder. You need to FTP those on to your MODx site root including all paths.. So Tiny MCE files should end up in /assets/plugins/tinymce


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 23491 ☆ A M B ☆
                    • 1,056 Posts
                    Quote from: doze at Oct 16, 2006, 10:11 AM

                    The TinyMCE archive contains assets and install folder. You need to FTP those on to your MODx site root including all paths.. So Tiny MCE files should end up in /assets/plugins/tinymce

                    So...is TinyMCE vs. FCKEditor simply a developer’s choice? Or, are there any serious considerations one should make before leaning one direction vs. the other?
                    Having never used TinyMCE, and primarily FCK till now, what are some reasons I should consider switching, etc?

                    (apologies if this is better suited for an alternate board...)
                      Mike Reid - www.pixelchutes.com
                      MODx Ambassador / Contributor
                      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                      ________________________________
                      Where every pixel matters.
                      • 28215
                      • 4,149 Posts
                      Quote from: pixelchutes at Oct 16, 2006, 11:52 AM

                      So...is TinyMCE vs. FCKEditor simply a developer’s choice? Or, are there any serious considerations one should make before leaning one direction vs. the other?
                      Having never used TinyMCE, and primarily FCK till now, what are some reasons I should consider switching, etc?

                      FCK is not supported in Safari. So that hurts your Mac audience.
                        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com