I have just thought... i’m using the &script=`tinymceload` call in my FDM call.
The chunk that the script is called from is this.
<script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce309/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce309/xconfig.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "exact",
width : "100%",
height : "400",
relative_urls : true,
document_base_url : "/",
remove_script_host : true,
language : "en",
elements : "tvcontent",
valid_elements : tinymce_valid_elements,
extended_valid_elements : tinymce_extended_valid_elements,
invalid_elements : tinymce_invalid_elements,
entity_encoding : "named",
cleanup: true,
apply_source_formatting : true,
remove_linebreaks : false,
convert_fonts_to_spans : "true",
file_browser_callback : "myFileBrowser",
external_link_list_url : "/assets/plugins/tinymce309/tinymce.linklist.php",
theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address",
plugins : "style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media",
theme_advanced_buttons0 : "",
theme_advanced_buttons1 : "undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help",
theme_advanced_buttons2 : "bold,italic,underline,strikethrough,sub,sup,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
theme_advanced_disable : "",
theme_advanced_resizing : false,
theme_advanced_resize_horizontal : false,
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
button_tile_map : false
});
function myFileBrowser (field_name, url, type, win) {
var cmsURL = '/assets/plugins/tinymce309/mcpuk/browser.php?Connector=/assets/plugins/tinymce309/mcpuk/connectors/php/connector.php&ServerPath=/&editor=tinymce3&editorpath=/assets/plugins/tinymce309'; // script URL - use an absolute path!
switch (type) {
case "image":
type = 'images';
break;
case "media":
break;
case "flash":
break;
case "file":
type = 'files';
break;
default:
return false;
}
if (cmsURL.indexOf("?") < 0) {
//add the type as the only query parameter
cmsURL = cmsURL + "?type=" + type;
}
else {
//add the type as an additional query parameter
// (PHP session ID is now included if there is one at all)
cmsURL = cmsURL + "&type=" + type;
}
tinyMCE.activeEditor.windowManager.open({
file : cmsURL,
width : screen.width * 0.7, // Your dimensions may differ - toy around with them!
height : screen.height * 0.7,
resizable : "yes",
inline : "yes", // This parameter only has an effect if you use the inlinepopups plugin!
close_previous : "no"
}, {
window : win,
input : field_name
});
return false;
}
</script>
I got this from an earlier post in this thread. Tinymce is loading just the browser is showing only a media folder but i have no idea where this media folder is. Still can’t write to it. I went back to tinymce212 and it worked fine apart from the fact it won’t work in IE due to a javascript error and opera won’t allow the tinymce box to be clickable. Those are some of the bug the updates were to solve. The edit box is clickable in all.
If I manually put the URL in the popup box and apply it, the information is incomplete which means I have to update to the latest version of 3.10 from the Tinymce site which nearly solves the issue of the code.
I have Furls on now.
Suffix : .html
use friendly aliases : yes
use friendly alias path : no
Allow duplicate alias : no
Auto generate alias : yes
Interface & features
Enable resource browser : yes
web users? : yes
rewrite browser path : yes
resource path : /home/sites/err-clan.com/public_html/assets/
resource url : http://mysite/assets/
uploadable media types : mp3,wav,au,wmv,avi,mpg,mpeg,swf,fla
I really don’t know if these settings are correct but i’m sure they are as I have tried every combination I can think of.
I really don’t know if anyone follows what the problem I’m having.... Which version of tinymce are you guys using, can you use it as a webuser, can you user the browse buttons and access the media, can you insert images, flash and quicktime elements?
I’ve tried no less than 5 versions of tinymce over the past 12 solid hours and only the 212 version worked but it doesn’t work in any browser but FF. LOL!!! I swear I’m cracking up with this. I’ve made a great FDM managed template and with permissions only to the webuser who signed up. It’s only tinymce webuser end that is scuppering my idea.
I was hoping to write up a complete tutorial on exactly what i’ve done once I get it working as I think what I’ve done will be really cool for others to use. Dimmy has helped with most of the coding side of course but I’d like to share exactly what I’ve done so far as long as I can get this final part done.
Soda, your snippet is excellent.