We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21257 MODX Staff
    • 730 Posts
    Could you also paste your TMCE Plugin Configuration string?
    I seem to recall some TMCE problems stemming from the config string..
      Mike Schell
      Lead Developer, MODX Cloud
      Email: [email protected]
      GitHub: https://github.com/netProphET/
      Twitter: @mkschell
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      Quote from: elz64 at Apr 14, 2011, 08:55 AM

      Quote from: goldsky at Apr 14, 2011, 08:29 AM

      Open the plugin code, check the path to the tiny’s js file

      Wich file for ’plugin code’ R u talking about ?
      Elements> Manage Elements> Plugins> TinyMCE Rich Text Editor
      <?php
      // Set the name of the plugin folder
      $plugin_dir = "tinymce";                        // <== check this folder
      
      // Set path and base setting variables
      if(!isset($mce_path))
      { 
      	$mce_path = MODX_BASE_PATH . 'assets/plugins/'.$plugin_dir . '/'; 
      	$mce_url  = MODX_BASE_URL  . 'assets/plugins/'.$plugin_dir . '/'; 
      }
      
      
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • 8790
        • 526 Posts
        yes.

        that’s it rolleyes


        // Set the name of the plugin folder
        $plugin_dir = "tinymce";
        
        // Set path and base setting variables
        if(!isset($mce_path))
        { 
        	$mce_path = MODX_BASE_PATH . 'assets/plugins/'.$plugin_dir . '/'; 
        	$mce_url  = MODX_BASE_URL  . 'assets/plugins/'.$plugin_dir . '/'; 
        }
        
        $params['customparams']    = $customparams;
        $params['blockFormats']    = $mce_formats;
        $params['entity_encoding'] = $entity_encoding;
        $params['entities']        = $entities;
        $params['pathoptions']     = $mce_path_options;
        $params['resizing']        = $mce_resizing;
        $params['disabledButtons'] = $disabledButtons;
        $params['link_list']       = $link_list;
        $params['theme']           = $webtheme;
        $params['custom_plugins']  = $webPlugins;
        $params['custom_buttons1'] = $webButtons1;
        $params['custom_buttons2'] = $webButtons2;
        $params['custom_buttons3'] = $webButtons3;
        $params['custom_buttons4'] = $webButtons4;
        $params['toolbar_align']   = $webAlign;
        $params['width']           = $width;
        $params['height']          = $height;
        
        $params['mce_path']        = $mce_path;
        $params['mce_url']         = $mce_url;
        
        include_once $mce_path . 'lang/tinymce.lang.php';
        include_once $mce_path . 'tinymce.functions.php';
        
        $mce = new TinyMCE($params);
        
        // Handle event
        $e = &$modx->Event; 
        switch ($e->name)
        {
        	case "OnRichTextEditorRegister": // register only for backend
        		$e->output("TinyMCE");
        		break;
        
        	case "OnRichTextEditorInit": 
        		if($editor!=="TinyMCE") return;
        		
        		$params['elements']        = $elements;
        		$params['css_selectors']   = $modx->config['tinymce_css_selectors'];
        		$params['use_browser']     = $modx->config['use_browser'];
        		$params['editor_css_path'] = $modx->config['editor_css_path'];
        		
        		if($modx->isBackend() || (intval($_GET['quickmanagertv']) == 1 && isset($_SESSION['mgrValidated'])))
        		{
        			$params['theme']           = $modx->config['tinymce_editor_theme'];
        			$params['language']        = getTinyMCELang($modx->config['manager_language']);
        			$params['frontend']        = false;
        			$params['custom_plugins']  = $modx->config['tinymce_custom_plugins'];
        			$params['custom_buttons1'] = $modx->config['tinymce_custom_buttons1'];
        			$params['custom_buttons2'] = $modx->config['tinymce_custom_buttons2'];
        			$params['custom_buttons3'] = $modx->config['tinymce_custom_buttons3'];
        			$params['custom_buttons4'] = $modx->config['tinymce_custom_buttons4'];
        			$params['toolbar_align']   = $modx->config['manager_direction'];
        			$params['webuser']         = null;
        			
        			$html = $mce->get_mce_script($params);
        		}
        		else
        		{
        			$frontend_language = isset($modx->config['fe_editor_lang']) ? $modx->config['fe_editor_lang']:'';
        			$webuser = (isset($modx->config['rb_webuser']) ? $modx->config['rb_webuser'] : null);
        			
        			$params['webuser']         = $webuser;
        			$params['language']        = getTinyMCELang($frontend_language);
        			$params['frontend']        = true;
        			
        			$html = $mce->get_mce_script($params);
        		}
        		$e->output($html);
        		break;
        
        	case "OnInterfaceSettingsRender":
        		global $usersettings,$settings;
        		$action = $modx->manager->action;
        		switch ($action)
        		{
        			case 11:
        				$mce_settings = '';
        				break;
        			case 12:
        				$mce_settings = $usersettings;
        				break;
        			case 17:
        				$mce_settings = $settings;
        				break;
        			default:
        				$mce_settings = $settings;
        				break;
        		}
        		
        		$params['use_editor']       = $modx->config['base_url'].$modx->config['use_editor'];
                $params['editor_css_path']  = $modx->config['editor_css_path'];
        		$params['theme']            = $mce_settings['tinymce_editor_theme'];
        		$params['css_selectors']    = $mce_settings['tinymce_css_selectors'];
        		$params['custom_plugins']   = $mce_settings['tinymce_custom_plugins'];
        		$params['custom_buttons1']  = $mce_settings['tinymce_custom_buttons1'];
        		$params['custom_buttons2']  = $mce_settings['tinymce_custom_buttons2'];
        		$params['custom_buttons3']  = $mce_settings['tinymce_custom_buttons3'];
        		$params['custom_buttons4']  = $mce_settings['tinymce_custom_buttons4'];
        		
        		$html = $mce->get_mce_settings($params);
        		$e->output($html);
        		break;
        		
        	default :
        		return; // stop here - this is very important. 
        		break; 
        }
        
          Schtroumpf Grognon - Grouchy Smurf
          ---------------------------------
          Faites pas attention.. - Don&#39;t pay attention
          http://www.dzi-neo.net
          • 9095
          • 4 Posts
          I have the same problem; after updating from 1.0.0 to 1.0.5, tinyMce didn't work anymore.
          Checked all of the settings in this post; still no success sad
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            those versions bring different TinyMCE's versions, too.
            try to check the plugin's path, or
            check user's configuration "Security> Manage Users> [admin|your username] > User tab> editor to use", or
            check "Tools> Configurations> Enable editor"
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 9095
              • 4 Posts
              Thanx for reacting Goldsky... Those options are all set correctly. I'm about reinstalling everything: backup database, assets, delete everything, reinstall.
              Or wouldn't that help.
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                I guess it's worth to try.
                Btw, check the physical tinyMCE's folder too.
                AFAIK, the old versions had their version on their folder's name.
                  Rico
                  Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                  MODx is great, but knowing how to use it well makes it perfect!

                  www.virtudraft.com

                  Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                  Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                  Maintainter/contributor of Babel

                  Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                  • 9095
                  • 4 Posts
                  Yes thanx, I did that and the path is set to the folder without version appended to it.
                  I'm going to reinstall.
                    • 9095
                    • 4 Posts
                    I found it smiley I had some custom settings for tinyMCE (plugins, buttons and css selectors) in my previous setup with MODx 1.0.0.
                    After removing all of these custom settings tinyMCE worked again! And I set the theme to 'simple' i.s.o. 'custom'.
                    My backend language is set to Dutch, so I'm not sure if I translated everything correctly.