We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23703
    • 180 Posts
    I've been hacking on Newspublisher to get it to work with TinyMCE RTE Beta. Have got it working nicely except for the file browser.
    In components/newspublisher/model/newspublisher/newspublisher.class.php
    Change line 546 to
                $whichEditor = $this->modx->getOption('which_editor', null, 'TinyMCE RTE');

    I don't know why I need to use the null value, but it doesn't work if I use $this->props.

    On line 600 add
                if ($whichEditor == 'TinyMCE RTE' ) {
                    $this->modx->regClientStartupScript($this->modx->getOption('manager_url') .
                        'assets/ext3/adapter/ext/ext-base.js');
                    $this->modx->regClientStartupScript($this->modx->getOption('manager_url') .
                        'assets/ext3/ext-all.js');
                    $this->modx->regClientStartupScript($this->modx->getOption('manager_url') .
                        'assets/modext/core/modx.js');
    
                    $script = implode('', $this->modx->invokeEvent('OnRichTextEditorInit'));
                    $this->modx->regClientStartupHTMLBlock($script);
                } /* end if ($whichEditor == 'TinyMCE RTE') */
    

    There is an issue with TinyMCE RTE and settings. If you add new settings the plugin doesn't use them since it's using a fixed set of settings. I'll make another post on that.
      • 42562
      • 1,145 Posts
      Hi,
      What's your use case?
      Why use TinyMCE RTE in the frontend?
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 23703
        • 180 Posts
        I wanted to use a more current version of TinyMCE with NewsPublisher. I only saw your wrapper after I had published this. Haven't tried it yet. The file browser is still a problem though since Responsive Filemanager isn't free for commercial use.
          • 42562
          • 1,145 Posts
          For donation he'll give you license to do what you want.
            TinymceWrapper: Complete back/frontend content solution.
            Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
            5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.