We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Need to do further investigation, but out-of-the-box upgrade has the elFinder popup opening a view of the page being edited, not a file browser.
      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
      • 42562
      • 1,145 Posts
      Very unusual! Open/view elFinder directly from the resource tree, make sure it has no template attached to it...hard refresh your browser
      Any browser errors?
        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.
      • New MODX, it's the first thing installed, works as expected.
          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
        • Now this is really weird. On the other upgraded installation, the site itself is using #22 as the Not-Found resource, while I have it set to be #2. So apparently the elFinder is triggering the not-found page, and just coincidentally I was editing resource #22.

          Never mind. That entire MODX installation is behaving very oddly. Time to wipe it and start over.
            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
          • Ok. New installation. Can't seem to change the theme. Changing it here doesn't do anything.
            skin_url: MODx.config.assets_url+'components/tinymcewrapper/tinymceskins/fairOphelia',

              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
              • 42562
              • 1,145 Posts
              Seems there is a flaw in a fixed skin code within the plugin....fixed for next
                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.
                • 42562
                • 1,145 Posts
                RE: sottwell thanks for the feedback
                The now latest release should fix your issues.

                TinymceWrapper 2.2.1
                ---------------------------------
                FIXED bug of persistent manager top nav modal of custom file browser overwriting all RTEs
                FIXED bug that prevented creating resources with TinyMagicPublisher with FURL turned on
                FIXED bug that crashed TinyJSON Gallery where MODX Resizer was not yet installed
                  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.
                  • 42562
                  • 1,145 Posts
                  How Use TinymceWrapper 2.2.1+ RTE within ContentBlocks (or any other 3rdParty Extra, or any textarea whatsoever within the Manager) -
                  There are many ways to accomplish this, the easiest but most restrictive and ridiculing way is the official MODx.loadRTE way.

                  SET TinymceWrapper Plugin Properties:
                  customJS --- YES
                  customJSchunk --- CB (or anything you like)

                  Create a corresponding chunk TinymceWrapperCB (name must contain TinymceWrapper and the CB you specified in customJSchunk)
                  //TinymceWrapperCB chunk
                  MODx.loadRTE = function(element) {
                    tinymce.init({
                      mode: "exact",
                      elements: element, 
                      [[$TinymceWrapperCommonCode]]
                      plugins:"autoresize,preview,paste,contextmenu,image,wordcount,fullscreen,code,link,charmap,searchreplace,textpattern,emoticons,insertdatetime",
                      paste_word_valid_elements: "a,div,b,strong,i,em,h1,h2,h3,p,blockquote,ol,ul,pre",
                      valid_elements: "iframe[*],object[*],audio[*],a[href|target|class|rel|title|data-ajax|data-iframe],strong,b,br",
                      valid_children: "-li[ul],-li[ol],-li[div],-strong[*],-em[*],-h1[*],-h2[*],-h3[*],-a[strong|em|h1|h2|h3|p|div],blockquote[p|ol|ul],pre,div",
                      resize:true,
                      autoresize_min_height:100,
                      autoresize_max_height:400,
                      toolbar: "newdocument | fullscreen preview | undo redo | blockquote | bold | italic | aligncenter | bullist numlist | link unlink | image | styleselect | charmap emoticons insertdatetime | searchreplace",
                      contextmenu: "removeformat | link | image | code",
                      setup: function(editor) {
                            editor.on('mouseleave', function(evt) {
                            tinyMCE.activeEditor.save();
                            //console.log("saved");//debug stuff
                          });
                          }
                    });
                  };
                    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.
                    • 42562
                    • 1,145 Posts
                    TinyMagicPublisher, a true frontend editing tool in your palm.

                    What is true frontend editing when the interface does not look like my site in the least ...?
                    Why does my content have to be cloned to forms ...?
                    Why can't I just edit the very page I am looking at ...?
                    How can I utilize the powerful qualities of NewsPublisher in my own way ...?

                    If these are your questions ... look no further

                    With this snippet call in your template - any template for that matter, and adding one CSS class name, data-tiny to each respective element or, coming soon, add a modifier, useTMPmodifier , you can edit any field in your resource, beautifully - even if the content has [[$MODX tags]]

                    Oh, and if this magic is too much and you want to use NewsPublisher in the original form set &npPureMagicNonTraditional=`0` - all your RTEs will still be magically taken care of by the chunks you have prepared in your Manager.

                    <h1 data-tiny="np-pagetitle">[[*pagetitle]]</h1> //[[*pagetitle:TinyMagicPublisherModifier]]
                    <p data-tiny="np-introtext">[[*introtext]] </p> // [[*introtext:TinyMagicPublisherModifier]]
                    
                    [[!TinyMagicPublisher?
                    &useTMPmodifier = `1`
                    &npPureMagicNonTraditional=`1`
                    &npTraditionalTinyChunk=`TinymceWrapperNPtraditional`
                    &npDebug=`0`
                    &autoFileBrowser=`elFinderBrowser`
                    &elFinderBrowserRTEurl=`elFinder.html`
                    &responsivefilemanagerBrowserRTEurl=`[[++assets_url]]components/tinymcewrapper/responsivefilemanager/filemanager/dialog.php?type=1`
                    &responsivefilemanagerBrowserRTEtitle=`Responsive FileManager`
                    &roxyFilemanBrowserRTEtitle=`Roxy Fileman`
                    &roxyFilemanBrowserRTEurl=`[[++assets_url]]components/tinymcewrapper/roxy/fileman/roxy.php`
                    &mainCSSfile=`[[++assets_url]]components/tinymcewrapper/frontend/mainCSSfile.css`
                    &jsTopBarButtonsTpl=`TinymceWrapperNPpublishButtonsTpl`
                    &npCreateResource =`1`
                    &npNoShow=`100,115`
                    &npCancelCreateId=`1`
                    &chunkSuffix=``
                    &editThisButton=`Edit`
                    &createNewButton=`New`
                    &tinymceCDN=`//cdn.tinymce.com/4/tinymce.min.js`
                    &jQueryCDN=``
                    &npNoShowChildOfParents=``
                    &cacheable=`0`
                    &show=`pagetitle,alias,introtext,richtext,articlestags,content,TinymceWrapperServiceTV1,TinymceWrapperServiceTV2,TinymceWrapperServiceTV3,TinymceWrapperServiceTV4,TinymceWrapperCategoryTV1,TinymceWrapperCategoryTV2,TinymceWrapperCategoryTV3,TinymceWrapperCategoryTV4,TinymceWrapperCategoryTV5,TinymceWrapperCategoryTV6,TinymceWrapperImageTV1,TinymceWrapperImageTV2,TinymceWrapperImageTV3,TinymceWrapperImageTV4,TinymceWrapperImageTV5,TinymceWrapperImageTV6,TinymceWrapperMiscTV1,TinymceWrapperMiscTV2,hidemenu,published,publishedby,description,menuindex,menutitle,longtitle,pub_date,publishedon,unpub_date,parent,template,deleted`
                    &twTagsTV= `articlestags`
                    &twExistingTagsChunk = `twExistingTags`
                    &commonTinyMCECodeChunk = `TinymceWrapperNPCommonCode`
                    &required=`pagetitle,content`
                    &parentid=`10`
                    &parents = `10,86`
                    &templates = `1,32`
                    &templateid=`tw_ImogenTheme`
                    &initdatepicker=`1`
                    &cssfile= ``
                    &filetpl=`twBROWSERnpFileTpl`
                    &imagetpl=`twBROWSERnpImageTpl`
                    ]]
                      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.
                    • I'm curious. Does TW (now I know this doesn't mean the old BBS multi-player game Trade Wars) work well with property sets? Seems like its front-end incarnation as a snippet has a rather appalling property list.
                        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