We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41647
    • 49 Posts
    Hi there,

    i wondered if anyone knows a possible solution for the following problem:
    I have a migx-configuration, with tinyMCEs in different tabs. So when I open up the first window everything works fine. After I click on "close" and open up a second migx-window (from a different element in my grid), I cannot edit the content of my tinyMCE.
    Seems like the first editor isn't destroyed completely and IE has problems while initializing the second one.
    When I right click into the editor or user a button in the toolbar, I can use it perfectly. Just the first focus-event doesn't wwork.
    Only happens in IE! (9+10)

    Thanks for any ideas,
    janein

    PS: my TinyMCE is placed in the second tab (maybe this is relevant?).
      • 4172
      • 5,888 Posts
      which version?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 41647
        • 49 Posts
        first seen in 2.5.8 but an update to 2.6.8 didn't fix it.
        working on modx revo 2.2.11 and tinyMCE 4.3.3
          • 41647
          • 49 Posts
          I found a fix for my problem:

          In the file core/components/migx/elements/tv/tinymce.tpl ~line 40 I put:
          var tinyinstance = tinyMCE.getInstanceById('{/literal}tv{$tv->id}{literal}');
          if (typeof(tinyinstance) != 'undefined') {				
              tinyMCE.execCommand('mceFocus', false, '{/literal}tv{$tv->id}{literal}');
          }

          so the rte gets focussed when I open up a second dialog.

          to get this to work I had to put my rte in the first formtab in my migx-config.

          maybe you find a better way to implement this into migx - this is just a hack which works for me ;-)