Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny Will Not Display Content in RTE TVs on Windows Browsers #22

Open
jaygilmore opened this issue Mar 13, 2017 · 1 comment
Open

Tiny Will Not Display Content in RTE TVs on Windows Browsers #22

jaygilmore opened this issue Mar 13, 2017 · 1 comment

Comments

@jaygilmore
Copy link
Member

There appears to be an issue in https://github.com/modxcms/TinyMCE/blob/develop/assets/components/tinymce/tiny.js that causes the content of the RTE on a RTE TV to not display. The RTE pane just appears blank.

This code replacing the onTVLoad function section seems to solve it:

,onTVLoad: function() {
    if (Tiny.config.plugins.indexOf(',inlinepopups')<0) MODx.loadRTE();
    var els = Ext.query('.modx-richtext');
    var ed;
    Ext.each(els,function(el) {
        el = Ext.get(el);
        if (!el) {return;}
        if (Ext.isEmpty(Tiny.loadedTVs)) {Tiny.loadedTVs = [];}
        if (Tiny.loadedTVs.indexOf(el) != -1) {return;}
        setTimeout(function() {
            tinyMCE.execCommand('mceAddControl', false, el.dom.id)
            ed = tinyMCE.get(el.dom.id);
            if (ed) {
                ed.execCommand('mceResize',false,'60%');
            }
            Tiny.loadedTVs.push(el);
          }, 100);
    },this);
}

This is an issue for all browsers in Windows for some reason.

This issue and fix were reported here: splittingred/TinyMCE#106

@Jenzemann
Copy link

Sometimes it also prevents the Ressource from saving. The Code also fixed this Problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants