We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for TinyMCE 4.1.2-pl by splittingred.

    Brief Description:

    TinyMCE version 3.3.8 for MODx Revolution. Works with Revolution 2.0.0-RC2 or later only.
    New in 4.1.2

    • Added additional settings for tinymce customization
    • Fixed issues when using in frontend
    • [#33] Fixed missing language reference issue
    • Fixed problem that stripped // in http:// on image selection from MODx.Browser
    • Fixed language issue with modxlink plugin

    New in 4.1.1

    • Fixed issue with Tiny preventing save bar loading on derivative Resource types
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 26303
      • 27 Posts
      This is a bug using IE that’s been plaguing me and I’ve finally confirmed that it exists in a completely clean, basic install.

      With a brand-new, clean install of 2.0.5 with TinyMCE 4.1.2-pl added using all default system settings--

      --Create a RichText TV with a default output type
      --Assign the TV to a basic template
      --Assign the template to a basic resource, add some content into the TV, and save
      --In the manager using IE (8.0.6 here) navigate away to another resource or refresh the page and return to the TV
      ----May have to do the above twice to see the issue, since sometimes it will appear correctly the first time

      The problem: In the manager using IE, when viewing the RichText (TinyMCE) TV no content will be visible in the window unless you click in the window and start typing. This is not an issue using Firefox.

      I cannot tell if this is a TinyMCE issue or a core MODx issue, and I don’t know when the problem first appeared, but I’ve now confirmed all the above. If it’s a TinyMCE issue it was also occurring in the previous version (4.1.2-rc1).


      Here is my environment info:

      MODx 2.0.5-pl Traditional
      Linux 2.6.34.6
      PHP 5.2.14
      MySQL Client 5.1.52
      MySQL Server 5.1.52
      pdo_mysql 5.1.52

        • 3749
        • 24,544 Posts
        I’m trying to get this working in the front end. The editor is rendered fine and it formats the text, but all the buttons are dead (although the keyboard shortcuts seem to work).

        When I click a button, I get this JS error:

        Ext.getCmp("modx-panel-resource") is undefined


        I tried adding <div id="modx-panel-resource"> around the page, but I still get the error.

        I don’t know what else to try.

        Here’s my HTML:

        <label for="content">Resource Content: </label>
        
        <div class="modx-richtext">
               <textarea rows="10" cols="60" class="modx-richtext" name="content" id="content"></textarea>
        </div>

          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
          • 3749
          • 24,544 Posts
          Nudge wink

          I’m pretty sure this is something simple and I’m anxious to get it working for NewsPublisher.
            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
            • 1423
            • 24 Posts
            Hi, I would love to use the latest tinymce (3.4b2) in MODX Revo 2.0.7

            There are two problems (for me) with the current tinymce version (3.3.8) that don’t exist anymore in 3.4b2:

            1. When a user adds my predefined custom styles and later changes them, they all get added which may result in something like this
            img class="floatright pictureup picturedown floatleft"
            2. The center text button produces an inline style="display: block; margin-left: auto; margin-right: auto;" which stays, even when something else like align-right is clicked later.

            Now I would be very happy if someone could please explain to me if and how I can update tinymce myself.
            Or is there any place where this is already explained?

            I tried already to simply overwrite all the files in assets/components/tinymce/jscripts/tinymce/ with the latest version, but I still dont get the latest version to appear in the backend.

            Thanks in advance
            Thomas
              • 19090
              • 35 Posts
              Hi
              I’m having troubles installing this package from the repository, in the error log I see the following:

              [2011-02-07 10:04:45] (ERROR @ /connectors/workspace/packages-rest.php) xPDOZip: Error opening archive at /srv/www/vhosts/xxxxx/httpdocs/core/packages/tinymce-4.1.2-pl.transport.zip
              [2011-02-07 10:04:45] (ERROR @ /srv/www/vhosts/xxxxx/httpdocs/core/xpdo/compression/xpdozip.class.php : 142) PHP warning: ZipArchive::extractTo() [<a href='ziparchive.extractto'>ziparchive.extractto</a>]: Invalid or unitialized Zip object
              [2011-02-07 10:04:45] (ERROR @ /srv/www/vhosts/xxxxx/httpdocs/core/xpdo/compression/xpdozip.class.php : 153) PHP warning: ZipArchive::close() [<a href='ziparchive.close'>ziparchive.close</a>]: Invalid or unitialized Zip object
              [2011-02-07 10:04:45] (ERROR @ /connectors/workspace/packages-rest.php) Could not unpack package /srv/www/vhosts/xxxxx/httpdocs/core/packages/tinymce-4.1.2-pl.transport.zip to /srv/www/vhosts/xxxxx/httpdocs/core/packages/. SIG: tinymce-4.1.2-pl
              


              What is the problem?

              Regards

              Vlax
                • 19090
                • 35 Posts
                Ok I found the answer!
                I should have read the details in the Package manager....
                Changing the "archive_with" option in the system preferences did the trick...


                Installation Instructions

                Install via Package Management.

                If you’re having issues installing, make sure you have the latest ZipArchive extension for PHP, and that it’s properly configured, or set the "archive_with" System Setting to Yes.

                Quote from: memeko at Feb 07, 2011, 03:24 AM

                Hi
                I’m having troubles installing this package from the repository, in the error log I see the following:

                [2011-02-07 10:04:45] (ERROR @ /connectors/workspace/packages-rest.php) xPDOZip: Error opening archive at /srv/www/vhosts/xxxxx/httpdocs/core/packages/tinymce-4.1.2-pl.transport.zip
                [2011-02-07 10:04:45] (ERROR @ /srv/www/vhosts/xxxxx/httpdocs/core/xpdo/compression/xpdozip.class.php : 142) PHP warning: ZipArchive::extractTo() [<a href='ziparchive.extractto'>ziparchive.extractto</a>]: Invalid or unitialized Zip object
                [2011-02-07 10:04:45] (ERROR @ /srv/www/vhosts/xxxxx/httpdocs/core/xpdo/compression/xpdozip.class.php : 153) PHP warning: ZipArchive::close() [<a href='ziparchive.close'>ziparchive.close</a>]: Invalid or unitialized Zip object
                [2011-02-07 10:04:45] (ERROR @ /connectors/workspace/packages-rest.php) Could not unpack package /srv/www/vhosts/xxxxx/httpdocs/core/packages/tinymce-4.1.2-pl.transport.zip to /srv/www/vhosts/xxxxx/httpdocs/core/packages/. SIG: tinymce-4.1.2-pl
                


                What is the problem?

                Regards

                Vlax
                  • 33983 ☆ A M B ☆
                  • 181 Posts
                  Suggestion for future development

                  I just saw this great TinyMCE add on for spelling and grammar suggestions: http://www.afterthedeadline.com/download.slp?platform=TinyMCE. If this could be packaged with the TinyMCE package or as a separate package I think this would be a great addition.
                    • 33983 ☆ A M B ☆
                    • 181 Posts
                    I just added this plugin manually and here are the steps to do it:

                    1. down load the plugin: http://www.afterthedeadline.com/download.slp?platform=TinyMCE and unzip to:
                    /assets/components/tinymce/jscripts/tiny_mce/plugins/
                    - note change the folder name from atd-tiny to atd once you unzip it.

                    2. now (this is a hack) open up /core/components/tinymce/tinymce.class.php on after line 31 insert the code below. Note change the MYSITE string to your website hostname.
                    <?php
                    // ADDED after $this->properties = array_merge(array(
                    
                    // set your API key, // change MYSITE to your web domain:
                    'atd_rpc_id' => 'modx-MYSITE-'.$this->modx->user->get('id'),
                    // the URL of your proxy file 
                    'atd_rpc_url' => $this->config['assetsUrl'].'jscripts/tiny_mce/plugins/atd/server/proxy.php?url=',
                    // edit this file to customize how AtD shows errors 
                    'atd_css_url' => $this->config['assetsUrl'].'jscripts/tiny_mce/plugins/atd/css/content.css',
                    
                    'plugins' => 'AtD',
                    // the URL to the button image to display
                    'atd_button_url' => $this->config['assetsUrl'].'jscripts/tiny_mce/plugins/atd/atdbuttontr.gif',
                    // this list contains the categories of errors we want to show 
                    'atd_show_types' => "Bias Language,Cliches,Complex Expression,Diacritical Marks,Double Negatives,Hidden Verbs,Jargon Language,Passive voice,Phrases to Avoid,Redundant Expression",
                    // strings this plugin should ignore 
                    'atd_ignore_strings' => 'AtD,rsmudge',
                    // enable "Ignore Always" menu item, uses cookies by default. Set atd_ignore_rpc_url to a URL AtD should send ignore requests to. 
                    'atd_ignore_enable' => 'false',
                    // add the AtD button to the first row of the advanced theme 
                    'theme_advanced_buttons1_add' => 'AtD',
                    /**/
                    
                    // END
                    ?>


                    3. Now log into the manager and go to System -> System Settings and sort by tinymce
                    4. Now add AtD to Custom Plugins and Custom Buttons Row 1, make sure they save!

                    And now it should work!