@BobRay I’m not sure if this is specific to NewsPublisher or TinymceWrapper (or both) but apparently TinyMCE 4 is being retired soon and v5 will be required. As such I’m now getting an alert about the upgrade in both the Manager and front-end where I use Tiny.
Are you seeing the warnings in NewsPublisher itself?
NP loads Tiny 4 directly from the web, so in theory, all you’d have to do is add the new URL to the &tinysource property, which defaults to: //cdn.tinymce.com/4/tinymce.min.js
Putting this in the NP snippet tag might work. I don’t have time to test it right now. If you try it, let me know what happens.
There is a possibility that tiny 5 won’t play nice with NP or with elFinder.
[Update] There’s a new URL for Tiny 5 on this page and they want you to get a free API key, though I tried with the URL on the page and appeared to get the Tiny 5 code.
I have an API Key and added the domain to the approved list.
I tried your suggestion about &tinysource which was partially successful in removing the upgrade alert on the front-end.
However there is still one front-end Tiny field showing the alert. Looking at the page source I see the new cdn (and my API Key) is loading in the head (so far so good) but there’s still an instance of the old cdn <script type="text/javascript" src="//cdn.tinymce.com/4/tinymce.min.js"></script> at the bottom of the body and I can’t seem to locate where it’s coming from.
In the Manager the alert still appears so I’m not sure what’s going on there.
That’s weird. The only place that appears anywhere in NP’s code is in the line that grabs the value of tinysource. And it’s only used once – in the code that injects the part in the head.
I wonder if it could be in a template or chunk that being loaded on the page? I couldn’t find any code for injecting it (i.e., regClientScript) anywhere.
though you should be able to do it with the &tinysource property in the NP snippet tag.
I haven’t tested if fully, but it seems to work, and I was able to use the image browser to insert an image. If it doesn’t work with RFM, you may have to switch to elFinder.
I replaced the URL in the newspublisher class file with this one: //cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.11/tinymce.min.jswork time
though you should be able to do it with the &tinysource property in the NP snippet tag.
I haven’t tested if fully, but it seems to work, and I was able to use the image browser to insert an image. If it doesn’t work with RFM, you may have to switch to elFinder.
Let me know what happens.