function elFinderBrowser(field_name, url, type, win) {
tinymce.activeEditor.windowManager.open({
file: '/handlers/tiny_mce/plugins/elfinder/elfinder.html',
title: 'File Manager',
width: 920,
height: 470,
resizable: 'no',
inline : 'yes',
popup_css : false,
close_previous : 'no'
}, {
setUrl: function (url) {
win.document.getElementById(field_name).value = url;
}
});
return false;
}
tinymce.init({ selector : '#SPNp_text',
browser_spellcheck : 1,
language : 'en',
nowrap : false,
object_resizing : false,
plugins : 'advlist anchor autolink charmap code fontawesome hr image importcss insertdatetime link lists media noneditable pagebreak paste searchreplace tabfocus table template textcolor visualblocks visualchars',
skin : 'stonewall',
theme : 'modern',
inline : false,
hidden_input : false,
convert_fonts_to_spans : false,
extended_valid_elements : 'a[name|id|href|target|rel|title|style|class|onclick|ondblclick|onmousedown|onmouseout|onmouseover|onmouseup],div[align|class|style|height|width|id],form[id|accept|accept-charset|action|class|dir