In 2.1.1, core.modx.php should not even exist. Everything was moved to MODx snippet.
Go to responsivefilemanagerConnector snippet - properties,
find rfmUserGroups [Comma-separated list of Who can access RFM]
Use noAccessMessage to customize the message
Just tested it again, it works!
tinymce.init({ selector : "#ta", [[+commonTinyMCECode]] statusbar: true, menubar: true, content_css: "assets/css/ECMN-style.css", plugins: "autoresize,contextmenu,media,preview,paste,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[*],div[*],-span[!title|!class<test test2],a[href|target|class|rel|title|data-ajax|data-iframe],strong,div[src|data-iframe],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[*],-div[*],-a[strong|em|h1|h2|h3|p|div],blockquote[p|ol|ul|div],div[data-iframe]", resize:true, autoresize_min_height:100, toolbar: "newdocument | undo redo | blockquote | bold | italic | bullist numlist | link unlink | media | image responsivefilemanager | styleselect | searchreplace | charmap | fullscreen | code", contextmenu: "fullscreen | bold | italic | bullist | removeformat | link | image | code" });
extended_valid_elements:"iframe[src|style|width|height|scrolling|marginwidth|marginheight|frameborder]",
forced_root_block : 'p' //change to div if you want, or leave quotes empty //risky, because it affects all your document from then on
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|div],div[data-iframe]",
@rx2
I see that too.
This is what I am doing in the meantime until Bruno checks it out. (not sure about MIGXdb)
In TinymceWrapperMIGX chunk, replace content with:
[b]SAVE PLUGIN[/b] In [b]core/components/migx/elements/tv/tinymcewrapper.tpl[/b], replace content with:tinymce.init({ mode : "specific_textareas", //DO NOT TOUCH editor_selector : "migx-richtext", //DO NOT TOUCH [[+commonTinyMCECode]] 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="" code",="" setup:="" function(editor)="" {="" editor.on('mouseleave',="" function(evt)="" tinymce.activeeditor.save();="" console.log("saved");="" debug="" stuff="" });="" }="" [="" code]="" in="" tinymcewrapper="" plugin="" default="" properties,="" create="" this="" property:="" [b]migxrichtext[="" b]="" set="" type="" to="" [b]yes="" no[="" value="" [b]true[="" area="" [b]01="" textareas="" transform[="" [b]save="" property="" set[="" [u][b]before="" last="" curly="" bracket[="" b][="" u],="" paste:="" ="" $migxrichtext="$modx-">getOption('migxRichText', $sp);
$migx = '';
$migxChunk = $modx->getChunk('TinymceWrapperMIGX' . $suffix, array('commonTinyMCECode'=>$commonCode));
if ($migxChunk) {
$migx = $migxChunk;
}
if ($migxRichText == 1){
//do not load these twice when resources are being edited
if ($modxEventName == 'OnManagerPageInit') {
if ($jQuerySrc) {
$modx->regClientStartupHTMLBlock("<script src="" . $jQuerySrc . ""></script>");
}
if ($tinySrc) {
$modx->regClientStartupHTMLBlock("<script src="" . $tinySrc . ""></script>");
}
}
$migxTinyMCE = '
$(document).on("mouseenter", "div[id^=modx-window-mi-grid]", function() {
'.$migx.'
})
';
$modx->regClientStartupHTMLBlock("<script>" . $browserFunctions . $migxTinyMCE . "</script>");
}
I hope this is clear enough.</test>[/quote]<input id="tv{$tv->id}_checkbox" data-tiny="tv{$tv->id}" checked="checked" title="Disable TinyMCE" class="tinyTVcheck" type="checkbox">
<textarea rows="15" style="width:99%;" id="tv{$tv->id}" name="tv{$tv->id}" class="modx-richtext rtf-tinymcetv tv{$tv->id} migx-richtext" {literal}onchange="MODx.fireResourceFormChange();" {="" literal}="">{$tv->get('value')|escape}</textarea>
<script>
$(".tinyTVcheck").on("mouseup",function() {
autoSaveTextAreas($(this).attr("data-tiny"));
if (this.checked) {
tinymce.get($(this).attr("data-tiny")).hide();
$(this).trigger("change").attr("title","Enable TinyMCE");
}
else{
tinymce.get($(this).attr("data-tiny")).show();
$(this).trigger("change").attr("title","Disable TinyMCE");
}
});
</script>
tinymce.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(); //console.log("saved");//debug stuff }); } });