We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19328
    • 433 Posts
    Hi, I'm experiencing a bug when using TinyMCE in combination with MIGXdb. When editing a rich text field, the top navigation bar in the manager disappears and the focus is set on the rich text field. Scrolling to another location is no longer possible. See attachments. When closing the MIGX window again, the top navigation is still gone. Sometimes refreshing helps, other times it stays gone.

    Bruno17 already mentioned he thought this is a TinyMCE bug. I was wondering if anyone else has experienced this. I did see another user had a similar problem. See http://forums.modx.com/thread/78275/best-way-to-hide-child-resources-in-tree-and-display-them-in-grid-on-parent-resource?page=3#dis-post-438795. I couldn't find anything related in the bugtracker for MODX or TinyMCE.

    For me it only occurs in Google Chrome (22.0.1229.79) and Safari (6.0.1), not in Firefox. Have not been able to test in IE yet.

    What could prevent the top navigation bar in the manager from loading? Everything else works ok, the tree etc. Thanks for any help!

    MODX Revolution 2.2.4 pl
    MIGX 2.3.2 pl
    TinyMCE 4.3.3 pl [ed. note: michelle84 last edited this post 11 years, 7 months ago.]
      • 33968
      • 863 Posts
      I haven't experienced this exact problem, but having installed MIGX on a client site the users have reported a lot of frustration with content entered into TinyMCE being lost when the MIGX editing window is closed. On quite a few occasions some major changes have been completely lost... to the point where they gave up.

      A bit of testing from my end and the problem only seems to be occurring in Webkit browsers - Chrome and Safari, like you have noted above.

      I've not yet been able to determine whether or not the problem is with TinyMCE itself, or some kind of clash with it's implementation in MIGX. Hoping to find a quick fix otherwise I'll have to build my own grid-based TV.

      Possibly related: https://github.com/Bruno17/multiItemsGridTV/issues/17 [ed. note: okyanet last edited this post 11 years, 7 months ago.]
        • 4172
        • 5,888 Posts
        Would be glad, someone would find a solution for this issues with MIGX and tinyMCE.
        Personally, I don't use tinyMCE in MIGX, if possible.
        For text-formating I use textile-markup and the textile-output-filter.
        For images or links in between text I use another MIGX-TV and add placeholders into the textarea for them, as done here: http://rtfm.modx.com/display/ADDON/MIGX.Fancybox-images+with+seperate+placeholders+in+Richtext-Content
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 33968
          • 863 Posts
          Thanks Bruno - I'm really going to have a good attempt at fixing this. Do you have any ideas where to start? Is it anything to do with inserting images in tinyMCE, for example?
            • 4172
            • 5,888 Posts
            for your issue:
            can you test, if its fixed (not storing values), after adding this to components/migx/elements/tv/migx.tpl

            this part:
                    if (typeof(Tiny) != 'undefined') {
                        tinyMCE.triggerSave(); 
                    }       
            


            Ext.extend(MODx.window.UpdateTvItem,Ext.Window,{
                submit: function() {
                    if (typeof(Tiny) != 'undefined') {
                        tinyMCE.triggerSave(); 
                    }       
                    var v = this.fp.getForm().getValues();
            
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 33968
              • 863 Posts
              From my first tests, that actually seems to have worked. I'm waiting for my client to check this out tomorrow; will let you know how it goes.

              Thanks for the suggestion!

              @michelle84 sorry for hijacking your thread smiley
                • 19328
                • 433 Posts
                No problem, glad your problem is solved!
                Maybe it's related to my problem, just to be sure I'll try the fix and see if it solves the disappearing top navigation bar problem as well.
                  • 4172
                  • 5,888 Posts
                  I don't think this has something todo with your top-navigation-issue. (Never had seen this issue)
                  The fix only affects not saving the richtext-content in some situations.
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 33968
                    • 863 Posts
                    ...and without getting too far ahead of myself, the fix seems to have worked for several people using different browsers. Would definitely be worth including in your next update!
                      • 36734
                      • 14 Posts
                      Hi guys,

                      thanks so much for that quick fix. In my case, it was working fine most of the time with Chrome (still had that problem where it randomly did not save the tinyMCE content), but was completely failing with some versions of Firefox. The quick fix made everything works fine, and definitely saved me days of investigation to fix it.

                      Is there a pull request for that ?
                      (and sorry michelle, hijacking your topic as well).