How to install AjaxFileManager Plugin http://www.phpletter.com/Demo/Tinymce-Ajax-File-Manager/ in Drupal TinyMce module?
I attempt to install it unsuccessfully.

Some help?

Tnx
Ff

Comments

milchbar’s picture

Hey everyone,

i have the same problem. the example-file does a pretty good job, and i could also successfully install the plugin...but the icon does not appear.

i've added the following lines of code in tinymce.module:

    // We only load the TinyMCE js file once per request
    if (!$is_running) {
      $is_running = TRUE;
      $tinymce_mod_path = drupal_get_path('module', 'tinymce');
	  
	if (is_dir($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/ajaxfilemanager/') && user_access('access tinymce ajaxfilemanager')) {
		drupal_add_js($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/ajaxfilemanager/jscripts/ajaxfilemanager.js');
	  }

i know, the directory structure is absoluty stupid but i would change that later. "ajaxfilemanager.js" calls the AjaxFileManager-Window from the example files.

		tinyMCE.init({
			mode : "exact",
			elements : "ajaxfilemanager2",
			theme : "advanced",
			plugins : "table,advhr,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu",
			theme_advanced_buttons1_add_before : "newdocument,separator",
			theme_advanced_buttons1_add : "fontselect,fontsizeselect",
			theme_advanced_buttons2_add : "separator,forecolor,backcolor,liststyle",
			theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,",
			theme_advanced_buttons3_add_before : "tablecontrols,separator",
			theme_advanced_buttons3_add : "flash,advhr,separator,fullscreen",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			extended_valid_elements : "hr[class|width|size|noshade]",
			file_browser_callback : "ajaxfilemanager",
			paste_use_dialog : false,
			theme_advanced_resizing : true,
			theme_advanced_resize_horizontal : true,
			apply_source_formatting : true,
			force_br_newlines : true,
			force_p_newlines : false,	
			relative_urls : false
		});

the codeblock above is also from the example. but i don't see anything special (except the callback-funktion: see my attempt from above [tinymce.module]).

Hope my english is not too horrible and someone has an idea how to solve this. :)

Thanks in advance,
milchbar

mupsi’s picture

Issue summary: View changes
Status: Active » Closed (outdated)