<![CDATA[ elFinder in NewsPublisher Not Selecting Images Correctly - My Forums]]> https://forums.modx.com/thread/?thread=102918 <![CDATA[elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554230
elfinder.min.js:9 TypeError: parent.tinymce.activeEditor.windowManager.getParams(...).setUrl is not a function
    at Object.mySubmit (http://example.com/npelfinder.html:23:75)
    at i.commands.getfile.getFileCallback [as callback] (http://example.com/npelfinder.html:56:45)
    at Object.<anonymous> (http://example.com/assets/components/newspublisher/elfinder/js/elfinder.min.js:16:15922)
    at i (http://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js:2:27451)
    at Object.fireWith [as resolveWith] (http://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js:2:28215)
    at Object.e.(anonymous function) [as resolve] (http://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js:2:29194)
    at i.commands.getfile.exec (http://example.com/assets/components/newspublisher/elfinder/js/elfinder.min.js:16:17143)
    at i.exec (http://example.com/assets/components/newspublisher/elfinder/js/elfinder.min.js:9:24448)
    at Array.<anonymous> (http://example.com/assets/components/newspublisher/elfinder/js/elfinder.min.js:10:3028)
    at i.trigger (http://example.com/assets/components/newspublisher/elfinder/js/elfinder.min.js:9:22784)


I've been mucking about this extra doing some pretty serious customizing but I can't think I did anything that would cause an issue.

Also, I am not seeing a way to dismiss or close the elFinder window in the view.]]>
smashingred Sep 29, 2017, 08:13 PM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554230
<![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554272


]]>
BobRay Oct 04, 2017, 05:34 AM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554272
<![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554264 4.5 is downgrading, thus ignoring all the minor serious fixes and lo, the latest major V of 7.
4 keeps you afloat with, of course, the pitfall in mind.

Anyways, problem officially fixed, see updated thread. Keep using old CDN]]>
donshakespeare Oct 03, 2017, 06:01 PM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554264
<![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554261
@bobray, I'd suggest updating the code to use 4.5 by default. Works fine and this now works properly.]]>
smashingred Oct 03, 2017, 01:33 PM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554261
<![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554254 https://forums.modx.com/thread/97694/support-comments-for-tinymcewrapper?page=47#dis-post-554253]]> donshakespeare Oct 03, 2017, 04:45 AM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554254 <![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554245
Is the MODX TinyMCE extra installed (or incompletely uninstalled)? Is TinyMCEWrapper installed?]]>
BobRay Oct 02, 2017, 05:13 AM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554245
<![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554239
TypeError: parent.tinymce.activeEditor.windowManager.getParams().setUrl is not a function. (In 'parent.tinymce.activeEditor.windowManager.getParams().setUrl(URL)', 'parent.tinymce.activeEditor.windowManager.getParams().setUrl' is undefined)


I confirmed the connector page and this page are not containers and have .html file extension. I confirmed the modx_content_types table contains the .html.

I just can't figure this out.]]>
smashingred Oct 01, 2017, 01:42 PM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554239
<![CDATA[Re: elFinder in NewsPublisher Not Selecting Images Correctly]]> https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554233
Have you modified the npElFinderInit TPL chunk? A typo there might cause this.

These lines in that chunk are suggestive:

// file is the URL of of the npElFinder resource
file: '[[++site_url]]npelfinder[[+np_html_extension]]',

If the HTML extension is wrong it will crap things up. The code queries the modx_content_types table in the DB to get the np_html_extension. Could you look in that table and see if HTML is the first entry and if its value field matches the extension used in the sites page's? Also, if that resource is a container and containers don't have an extension, that could be the problem.

Another thought: If it's a multi-language site, maybe the site_url tag should be uncached:

[[!++site_url]]


I've never tested with multiple contexts, so that by itself could cause an issue, though if it was working before, that's probably not it.
]]>
BobRay Sep 29, 2017, 10:20 PM https://forums.modx.com/thread/102918/elfinder-in-newspublisher-not-selecting-images-correctly#dis-post-554233