RE: Dave Smith thanks for the feedback
If it is any consolation, I install
TinymceWrapper from MODX packages, just like the average me, on https and http, on diff systems.
Please keep searching and report when you find something.
elFinder on MIGX TVs
I have managed to make my work as lightly integrated as possible. And if I might not understand your scenario, I cannot see why elFinder action reverts to MODX native.
It should not matter where you are using TinymceWrapper's TinyMCE RTE browsers.
Questions for you
* Do you have any errors in your browser's inspector?
* In MIGX nested whatnot, what you are using is actually TinymceWrapper's TinyMCE RTE - to transform TV textarea?
* You try to access elFinder from the RTE's toolbar?
* You have set your
autoFileBrowser in the TinymceWrapper's plugin to
elFinder?
* You are using the correct chunk as prescribed by bruno17 which can be found under
TinyMCE/Backend/3rdPartyChunks/sample.TinymceWrapperMIGX (remove the "sample" to protect/use - does not take chunkSuffix)
NOTE
In this chunk, you will not find the customary dynamic placeholder
[[+commonTinyMCECode]] but rather a fixed call to a chunk that must exist
[[$TinymceWrapperCommonCode]] - which at this rate uses a custom chunkSuffix
Since I have only very lightly tested with MIGX, further details can be forwarded to
bruno17
sample.TinymceWrapperMIGXtinymce.init({
mode: "exact",
elements: "tv[[+tv_id]]",
[[$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[*],-span[!title|!class<test test2],a[href|target|class|rel|title|data-ajax|data-iframe],strong,b,-p[class<text-align-left?text-align-center?text-align-right],br,-h1[class|data-ajax|data-iframe],-h2[class|data-ajax|data-iframe],-h3[class|data-ajax|data-iframe],-img[!src|!alt|!class=round_img|data-ajax|data-iframe],em,-blockquote,pre[class],-ol,-ul,-li,-code[class]",
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();
});
}
});
TinymceWrapperCommonCode (or whatever you name it, if used must have
file_browser_callback : autoFileBrowser,
This JS function is what successfully and automatically feeds the RTE the correct File Browser, as selected in the TinymceWrapper plugin. It is possible you have using a different setting, an old one perhaps from a deprecated chunk.
skin_url: MODx.config.assets_url+'components/tinymcewrapper/tinymceskins/modxPericles',
link_list:[
[[$TinymceWrapperLinkList]]
],
relative_urls: false,
remove_script_host: false,
document_base_url: MODx.config.site_url,
link_class_list: [
{title: 'None', value: ''},
{title: 'prettyLink', value: 'prettyLink'},
{title: 'colorBox', value: 'colorBox'}
],
image_class_list: [
{title: 'None', value: ''},
{title: 'prettyPhoto', value: 'prettyPhoto'},
{title: 'colorBox', value: 'colorBox'}
],
image_caption: true,
browser_spellcheck: true,
gecko_spellcheck: true,
paste_data_images: false,
menubar: false,
statusbar: false,
image_advtab: true,
textpattern_patterns: [
{start: '*', end: '*', format: 'italic'},
{start: '**', end: '**', format: 'bold'},
{start: '#', format: 'h1'},
{start: '##', format: 'h2'},
{start: '###', format: 'h3'},
{start: '####', format: 'h4'},
{start: '#####', format: 'h5'},
{start: '######', format: 'h6'},
{start: '1. ', cmd: 'InsertOrderedList'},
{start: '* ', cmd: 'InsertUnorderedList'},
{start: '- ', cmd: 'InsertUnorderedList'}
],
setup: function(editor) {
editor.on('keydown', function(evt) {
if (evt.keyCode == 83 && evt.ctrlKey && !evt.shiftKey && !evt.altKey && !evt.metaKey) {//ctrl + s = save
evt.preventDefault();
$('#modx-abtn-save button').trigger("click");
}
if (evt.keyCode == 27) { //escape key = remove fullscreen
evt.preventDefault();
if ($('.mce-fullscreen').length) {
tinymce.activeEditor.execCommand("mceFullscreen")
}
}
});
editor.on("init",function() { //float fullscreen link
containerId = $(editor.getContainer()).attr("id");
$("#"+containerId+" .mce-i-fullscreen").parent().parent().parent().parent().css("float","right");
});
},
external_plugins:{
twCodeMirror: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twCodeMirror.js",
// bubbleBar: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/tinymceBubbleBar.js",
modxMagicHoverLink: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/modxMagicHoverLink.js",
twPreCodeManager: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twPreCodeManager.js"
},
content_style:twPreCodeManagerPREcss,
twCodeMirrorPoppedOrInline: 1, //1 for popped (default), 0 for inline
//hoverStripMODXurl:false, //default is true
//hoverAddCLASStoTree:false //default is true
file_browser_callback : autoFileBrowser,
//leave trailing comma