We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    Yours works yes but that’s because there’s no options to open up the browser... you’re using a simple form of tinyMCE. that’s my issue with 212 with IE7 is the javascript error. It must be caused with the code I’m using above to call the tinyMCE in to the page or something in the javascripts. Theis is one of the bugs that was updated with the later versions of tinymce but these newer versions are not allowing me to browse directories.
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 6726
      • 7,075 Posts
      What’s the JS error ?
      I know I banged my head a while because of the "Expected identifier, string or number" IE error, would it be it ?
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        line : 59
        Char : 2
        Error : Oject required
        Code : 0
        URL : http://mysite/manager/media/browser/mcpuk/frmfolders.html

        is what appears in the IE script report box.

        I checked your code and about the trailing ","

        I use
        <script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce212/jscripts/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce212/xconfig.js"></script>
        <script language="javascript" type="text/javascript">
        	tinyMCE.init({
        		  theme : "advanced",
        		  mode : "exact",
        		  width : "100%",
        		  height : "400px",
        		  relative_urls : true,
        		  document_base_url : "[(base_url)]",
        		  remove_script_host : true,
        		  language : "en",
        		  elements : "tvcontent",
        		  valid_elements : tinymce_valid_elements,
        		  extended_valid_elements : tinymce_extended_valid_elements,
        		  invalid_elements : tinymce_invalid_elements,
        		  entity_encoding : "named",
        		  cleanup: true,
        		  apply_source_formatting : true,
        		  remove_linebreaks : false,
        		  convert_fonts_to_spans : "true",
        		  onchange_callback : "tvOnTinyMCEChangeCallBack",
        		  external_link_list_url : "[(base_url)]assets/plugins/tinymce212/tinymce.linklist.php",
        		  resource_browser_path : "[(base_url)]manager/media/browser/mcpuk/browser.html?Connector=[(base_url)]manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=[(base_url)]",
        		  file_browser_callback : "fileBrowserCallBack",
        		  theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address",
        		  plugins : "style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media",
        		  theme_advanced_buttons0 : "",
        		  theme_advanced_buttons1 : "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",
        		  theme_advanced_buttons2 : "bold,italic,underline,strikethrough,sub,sup,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops",
        		  theme_advanced_buttons3 : "",
        		  theme_advanced_buttons4 : "",
        		  theme_advanced_toolbar_location : "top",
        		  theme_advanced_toolbar_align : "left",
        		  theme_advanced_path_location : "bottom",
        		  theme_advanced_disable : "",
        		  theme_advanced_resizing : false,
        		  theme_advanced_resize_horizontal : false,
        		  plugin_insertdate_dateFormat : "%Y-%m-%d",
        		  plugin_insertdate_timeFormat : "%H:%M:%S",
        		  button_tile_map : false 
        
        	});
        	function fileBrowserCallBack(field_name, url, type, win) {
        		// This is where you insert your custom filebrowser logic
        		var win=tinyMCE.getWindowArg("window");
        		win.BrowseServer(field_name);
        	}
          function tvOnTinyMCEChangeCallBack(i){
            if (i.oldTargetElement.onchange) {
              i.oldTargetElement.onchange();
            }
          }	
        </script>


          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          I don’t suppose there’s an alternative to tinymce that will be as flexible with designing and allow for exactly what I want to do?

          Also is there a way to allow javascript to be written via the form? I made a template that has a TV in the <head> But if I enter anything starting with <script> or ending with </script> it’s being stripped out. It would be cool to give some members the ability to enter custom script for lightbox or similar scripts.

            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 36624
            • 535 Posts
            when you create your web account, have you created an assets/images folder per user too (like user1/images/ user1/files/ ? if yes, do you have setup the appropriate ressources path in the webuser config ?
              CTRL+SHIFT+U - Clear Cache
              CTRL+SHIFT+H - Hiding Heft Panel
              CTRL+SHIFT+N - Fast Create Resource
              CTRL+ALT+P - Preview Recource (in edit resorce window)
              CTRL+ALT+S - Save
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              No I don’t actually know how to do this... I have been searching the forums on how to create folders. I was about to create a post about it!

              I mean create automatically... not manually! smiley

              Ross
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 36624
                • 535 Posts
                try one manually and if your solution work we should be able to find how to create them dynamically.. wink
                  CTRL+SHIFT+U - Clear Cache
                  CTRL+SHIFT+H - Hiding Heft Panel
                  CTRL+SHIFT+N - Fast Create Resource
                  CTRL+ALT+P - Preview Recource (in edit resorce window)
                  CTRL+ALT+S - Save
                  • 25551 ☆ A M B ☆
                  • 1,231 Posts
                  ok i created assets/useruploads/modx/images and modx/media

                  modx being the test account username... I’m not sure where I would set the use config. I’m not a programmer so I need some idea what to do laugh

                  Cheers,

                  Ross
                    Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                    AugmentBLU - MODX Partner

                    BLUcart - MODX Revolution E-Commerce & Shopping Cart
                    • 19315
                    • 84 Posts
                    Hi,

                    I’m using this snippet in a Ditto call, so front end users can choose to edit a number of documents, all from one page. One thing I would like to do: be able for the user to manually change the order of the documents displayed.

                    I think I could just have an extra TV with a numerical entry, sort order, which the user can edit and which the ditto call uses to order the documents, but I think I would like something simpler (from the users perspective). I think when the "edit" or "delete" links are shown for each document, I would like links something like "move down" or "move up". Would this be possible with FDM?

                    Michal.
                      • 12983
                      • 108 Posts
                      What about opening a new forum for FDM? (even if it’s not a "default" component of MODx, it is an awesome addon which imho deserves a reserved forum)