We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30100
    • 58 Posts
    I did try to replace the file tinymce.functions.php with the 309 but that did not solve it, I’ll try on a fresh installation of MODx to see if there is something else. If that solution works for other people it should work for me too.

    Thanks for the tip and link. smiley
      • 22668
      • 718 Posts
      Quote from: tirithen at Jul 16, 2008, 11:10 AM

      I did try to replace the file tinymce.functions.php with the 309 but that did not solve it, I’ll try on a fresh installation of MODx to see if there is something else. If that solution works for other people it should work for me too.

      Thanks for the tip and link. smiley
      show me your Tiny settings
      +)
        • 30100
        • 58 Posts
        I usewd the 309 file in the link I got and that solved it, before I downloaded the 309 version from the repositories and took the file from there and that one did not work, now it’s fine! T:-) Thanks for the help.

        Else I must have mixed them up... Anyway, now everthing is fine. smiley
          • 30100
          • 58 Posts
          When you use the swedish language files in TinyMCE to align an image left or right the two options are mixed up, left is named right and the other way around.

          I changed two swedish language files:
          tinymce3101/jscripts/tiny_mce/plugins/advimage/langs/sv_dlg.js on line 40, 41
          tinymce3101/jscripts/tiny_mce/themes/advanced/langs/sv_dlg.js on line 40, 41

          I’ll post in TinyMCE forum as well. I’m attaching a zip file with the changed files in case someone else needs them corrected.
            • 9920
            • 17 Posts
            I’m having the same problem like tirithen: When I try to browse the images as a web user the Windows opens but the folder is empty.
            I’m using 0.9.6.2RC1 and TinyMCE 3.1.0.1a, replacing the tinymce.functions.php from 3.09 didn’t help.
            My target is that the web users which are writing a blog (using Ditto and Newspublisher) are able to add images to their posts.

            I set the toolbar to "advanced", here my configuration:

            &customparams=Custom Parameters;textarea; &tinyFormats=Block Formats;text;p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address &entity_encoding=Entity Encoding;list;named,numeric,raw;named &entities=Entities;text; &tinyPathOptions=Path Options;list;rootrelative,docrelative,fullpathurl;docrelative &tinyCleanup=Cleanup;list;enabled,disabled;enabled &tinyResizing=Advanced Resizing;list;true,false;false &advimage_styles=Advanced Image Styles;text; &advlink_styles=Advanced Link Styles;text; &disabledButtons=Disabled Buttons;text; &tinyLinkList=Link List;list;enabled,disabled;enabled &webtheme=Web Theme;list;simple,advanced,editor,custom;editor &webPlugins=Web Plugins;text;style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media &webButtons1=Web Buttons 1;text;undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help &webButtons2=Web Buttons 2;text;bold,italic,underline,strikethrough,sub,sup,separator,separator,blockquote,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops &webButtons3=Web Buttons 3;text; &webButtons4=Web Buttons 4;text; &webAlign=Web Toolbar Alignment;list;ltr,rtl;ltr


            Can someone help me out?
              • 30100
              • 58 Posts
              Yes, I did solve it, I took the cmsURL from the manager, look at the value for cmsURL, maybe you need to set "Web Users?" to yes in the manager settings. I also replaced tinymce.functions.php with the 309 one. That solved it for me, good luck!

              This is my &script chunk: (For my FDM call, I now realized that you maybe did not use FDM, but if you do this should work)
              <script language="javascript" type="text/javascript" src="assets/plugins/tinymce3101/jscripts/tiny_mce/tiny_mce.js"></script>
              <script language="javascript" type="text/javascript">
              
              // Configuration detail check http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
              tinyMCE.init({
              	theme : "advanced",
              	mode : "exact", // textareas:    Converts all textarea elements to editors when the page loads. exact: Converts elements of the specified names, as listed in the elements option.
              // This option should contain a comma separated list of element id's to convert into editor instances. This option is only used if mode is set to "exact".
              //	ie:	elements : "elm1,elm2"
              	elements : "content",
              	language : "sv",
              	docs_language : "sv",
              	body_id : "RTE_TinyMCE_text",
              	content_css : "[~16~]",
              	entity_encoding : "raw",
              	theme_advanced_blockformats : "p,h1,h2,address,pre",
              	theme_advanced_disable : "styleselect",
              	file_browser_callback : "myFileBrowser",
              	theme_advanced_resizing_min_width : 700
              });
              
              
              	function myFileBrowser (field_name, url, type, win) {		
              
              /*		var cmsURL = '/assets/plugins/tinymce3101/mcpuk/browser.php?Connector=/assets/plugins/tinymce3101/mcpuk/connectors/php/connector.php&ServerPath=/&editor=tinymce3&editorpath=/assets/plugins/tinymce3101';    // script URL - use an absolute path!
              */
              
              		var cmsURL = '/manager/media/browser/mcpuk/browser.php?Connector=/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/&editor=tinymce3&editorpath=/assets/plugins/tinymce3101';    // script URL - use an absolute path!
              
              		switch (type) {
              			case "image":
              				type = 'images';
              				break;
              			case "media":
              				break;
              			case "flash": 
              				break;
              			case "file":
              				type = 'files';
              				break;
              			default:
              				return false;
              		}
              		if (cmsURL.indexOf("?") < 0) {
              		    //add the type as the only query parameter
              		    cmsURL = cmsURL + "?type=" + type;
              		}
              		else {
              		    //add the type as an additional query parameter
              		    // (PHP session ID is now included if there is one at all)
              		    cmsURL = cmsURL + "&type=" + type;
              		}
              		
              		tinyMCE.activeEditor.windowManager.open({
              		    file : cmsURL,
              		    width : screen.width * 0.7,  // Your dimensions may differ - toy around with them!
              		    height : screen.height * 0.7,
              		    resizable : "yes",
              		    inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!
              		    close_previous : "no"
              		}, {
              		    window : win,
              		    input : field_name
              		});
              		return false;
              	}
              
              
              </script>
              
                • 9920
                • 17 Posts
                Thanks for the information.

                No, I don’t use FDM. So how should I set up my Ditto/Newspublisher calls that I can use FMD?
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Ditto has nothing at all to do with FDM. FDM is for creating documents, Ditto is for displaying documents. The only connection between the two is the ID of the folder document containing your news or blog articles to display with Ditto.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 30100
                    • 58 Posts
                    I don’t know how to fix the browser problem with newspublisher, maybe someone else do, I’m personally using FDM (look at topic: http://modxcms.com/forums/index.php/topic,14977.0.html) to create/manage news and edit pages, go and have a look at the link if your intrested, otherwise a newspublisher thread in this forum might have the answer for you.
                      • 9920
                      • 17 Posts
                      As I actually found out it is not only a problem in Newspublisher. The resource browser is also empty inside the manager. I didn’t remark it yet because I’m using FCK in the manager.
                      Do I have to reinstall modx? Because on another website of mine it works inside the manager.