We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    My, my, I have been banging my head with this for 2 hours before I finally got it working.

    I use TinyMCE from the frontend with the FrontEndDocumentManager snippet (aka FDM), and everything works fine.. except for IE that is ! The strange thing is that TinyMCE worked just fine with IE6 and IE7 from the manager. The problem only occured on the frontend.

    I have used the code provided by Soda to use TinyMCE for my textareas with the FDM forms :

    <script language="javascript" type="text/javascript" src="assets/plugins/tinymce308/jscripts/tiny_mce/tiny_mce.js"></script>
    
    <script language="javascript" type="text/javascript">
    
    // Configuration detail check http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
    tinyMCE.init({
    	theme : "simple",
            language : "fr",
    	mode : "textareas", 
    });
    </script>
    


    I did get the following error from the infamous browser : "Expected identifier, string or number" which as you will see returns quite a bit of posts but no real solution that I could find. My error was to look for this error and add TinyMCE to the search string. Widening the search helped greatly and I found here what saved me from going nutso :
    http://cow.neondragon.net/index.php/1404-Internet-Explorer-Javascript-Errors

    Kudos for that !

    But for it to work with IE you have to ommit the comma of the last item [tt]mode : "textareas"[/tt]

    Thought I would share for those of you who need TinyMCE frontend smiley

      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l&#39;outil id
      • 34017
      • 898 Posts
      hehehe. That solution should be posted on every javascript help site. I had the same problem a few months ago when using Malsup’s Cycle plugin. It took me FOREVER to figure that out.

      It’s not really funny- really a pain.
        Chuck the Trukk
        ProWebscape.com :: Nashville-WebDesign.com
        - - - - - - - -
        What are TV's? Here's some info below.
        http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
        http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
        • 6726
        • 7,075 Posts
        Yeah the kind of issues which is pure lost time... thanks Bill Gates !

        If only Google could ban IE, maybe it would help people use standard compliant browsers tongue
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l&#39;outil id
          • 3749
          • 24,544 Posts
          I think that last comma is, technically, a syntax error since it implies that another item is coming ("expected"). The comma is a delimiter between items (just like in a CSV file) so it really should have something on both sides of it.

          You could make a logical argument either way on whether a browser should forgive it or not. The shocker for IE is that the error message is fairly on-target.

          I see the same syntax error in .CSS files where, I think, IE *does* forgive it.

          Bob

            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