ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Trouble configuring MoxieCode File Manager with LG TinyMCE extension [Note: pertains to TinyMCE 1.x only!]

February 18, 2008 6:51pm

Subscribe [5]
  • #1 / Feb 18, 2008 6:51pm

    Versa Studio

    572 posts

    I’ve got the mcfilemanager in its proper folder on the server, and the following config info:

    button_tile_map : 'true',
    mode:'textareas',
    editor_selector : 'lg_mceEditor',
    content_css : '/css/tinymce-base-styles.css',
    mode: "textareas",
    theme: "advanced",
    theme_advanced_toolbar_align : "left",
    plugins : "advlink,spellerpages,paste,filemanager",
    theme_advanced_buttons1:  "bold, italic, bullist, numlist, undo, redo, link, unlink, image, cleanup, removeformat, formatselect, spellerpages,pastetext,code,filemanager",
    theme_advanced_buttons2: "",
    theme_advanced_buttons3: "",
    theme_advanced_blockformats: "p,h2,h3,h4,pre",
    relative_urls: "false",
    remove_script_host: "false",
    convert_newlines_to_brs: "false",
    force_p_newlines: "true",
    paste_create_paragraphs : "true",
    paste_use_dialog : "true",
    cleanup_on_startup: "false",
    theme_advanced_toolbar_location : "top",
    custom_undo_redo_levels : 10, 
    remove_script_host: "false",
    cleanup_on_startup: "false",
    extended_valid_elements : "a[name|href|target|title|onclick|class|style],img[src|class|style|width|height|border],td[nowrap]",
    paste_use_dialog : "false",
    width: "500"

    TinyMCE is working.

    I also have the LG File Manager working fine.

    The only thing that doesn’t work is: I don’t get the File Mgr icon when I click the link or image icon the TinyMCE toolbar.

  • #2 / Feb 20, 2008 12:26pm

    Versa Studio

    572 posts

    Fixed by self!  Kids, always, always make sure your config files have the right paths in them, no matter how ridiculous they may seem!

    the_path_to_files: "../../../../../../../../disco/rear_entrance/snack_bar/"
  • #3 / Jun 09, 2008 2:11pm

    Corey Lane

    34 posts

    Fixed by self!  Kids, always, always make sure your config files have the right paths in them, no matter how ridiculous they may seem!

    the_path_to_files: "../../../../../../../../disco/rear_entrance/snack_bar/"

    What file is that in?

  • #4 / Jun 09, 2008 2:20pm

    Versa Studio

    572 posts

    Look in tiny_mce/jscripts/tiny_mce/plugins/filemanager/config.php

    Lots of good stuff in here, including what files FileManager will allow you to view/upload/download.

  • #5 / Jun 09, 2008 2:27pm

    Corey Lane

    34 posts

    Everytime I try to open the Filemanager I get a login prompt, how do I just disable authentication, or somehow integrate it with EE’s auth system. Any idea? Haven’t seen any other threads about this really.

  • #6 / Jun 09, 2008 2:43pm

    Versa Studio

    572 posts

    To my knowledge, no one has integrated TinyMCE’s FileManager with EE’s authentication. Basically, once a user is in to EE, they should get the FileManager functionality from TinyMCE’s content editing areas.

    Here’s my config file in its entirety.  I only change a few lines from the default.

  • #7 / Jun 09, 2008 4:08pm

    Corey Lane

    34 posts

    To my knowledge, no one has integrated TinyMCE’s FileManager with EE’s authentication. Basically, once a user is in to EE, they should get the FileManager functionality from TinyMCE’s content editing areas.

    Here’s my config file in its entirety.  I only change a few lines from the default.

    Thanks for your help. I’ve resolved my authentication issue in another thread, but I had to edit the LG TinyMCE Extension config to add the filemanager button to the editor toolbar. I pasted my config for that extension below. In yours you call it filemanager but in mine I had to use insertfile.

    Moxiecode Filemanager Example Page

    button_tile_map : true,
    mode:'textareas',
    editor_selector : 'lg_mceEditor',
    theme : 'advanced',
    content_css : '/themes/site_themes/default/styles/editor.css',
    relative_urls : false,
    document_base_url : '/', 
    apply_source_formatting : true,
    fix_list_elements : true,
    plugins :'inlinepopups,style,table,advhr,advimage,advlink,emotions,insertdatetime,media,searchreplace,contextmenu,paste,directionality,fullscreen,visualchars,nonbreaking,xhtmlxtras,imagemanager,style,advlink,filemanager',
    advimage_styles:'Align Left=left;Alight Right=right',
    advlink_styles : 'Code=code;Excel=excel;Flash=flash;Sound=sound;Office=office;PDF=pdf;Image=image;PowerPoint=powerpoint;Word=word;Video=video',
    heading_clear_tag : 'p',
    theme_advanced_buttons1 : "save,newdocument,|,insertfile,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,filemanager",
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
    theme_advanced_toolbar_location : 'top',
    theme_advanced_toolbar_align : 'left',
    theme_advanced_path_location : 'bottom',
    theme_advanced_blockformats : 'p,h2,h3,h4,h5,h6',
    plugin_insertdate_dateFormat : '%Y-%m-%d',
    plugin_insertdate_timeFormat : '%H:%M:%S',
    theme_advanced_resize_horizontal : false,
    theme_advanced_resizing : true,
    apply_source_formatting : true,
  • #8 / Apr 15, 2009 12:58am

    pavenc

    23 posts

    Sorry for the thread necromancy, but I couldn’t find much helpp on this.  I followed the steps listed here and on the moxiecode forum, but I’m getting a couple of javascript errors; one that says the DOM.Get is null or not an object and currentWin is null or not an object when I click on the button to insert an image.  The scripts look like they’re loaded to me, though, and it happens in both IE7 and FF3, so I don’t think it’s a browser bug.

    Any ideas?

    Thanks,
    Paul

  • #9 / Apr 15, 2009 1:30am

    Versa Studio

    572 posts

    Hi,

    I edited the post title. This was posted when I was using TinyMCE 1.x.  With 2.x, you need different code, which may fix your problem. Try the attached (too big to paste).

  • #10 / Apr 15, 2009 9:19am

    pavenc

    23 posts

    No, that wasn’t the problem.  The tinymce config should impact whether or not the plugin is present and if I can see the button or not; I wouldn’t expect that to be the source of a null object exception when the file manager window is loading…

    the window actually comes up and shows the chrome and most of the buttons; the folder list has the spinning ‘loading’ icon, and then I get the message (w/o any contents showing up).  I thought perhaps it was my URL pattern for the filesystem.rootpath, whichh perhaps causes a failure in the php to create some HTML element that the js is looking for in that DOM.Get call. 

    I am trying to load to my /assets directory, which is on the same depth as my /system directory.  I therefore put $mcImageManagerConfig[‘filesystem.rootpath’] = ‘/assets’; as my first attempt.  That didn’t work, and I noticed that some of the plugins in my EE panel use syntax like ‘/httpdocs/assets’, so I chnaged it to that; also didn’t work.

  • #11 / Jul 03, 2009 11:51am

    openmotive

    65 posts

    Did you ever find a solution for this? I am experiencing the same thing.

    I’m using the Mexicode Authenticator extension to pass the ExpressionEngine session the File-manager which was pretty straightforward and more secure than just removing authentication entirely.

    Chrome loads, everything hangs, same javascript errors:
    - TypeError: Result of expression ‘DOM.get(id+‘_title’)’ [null] is not an object.
    -TypeError: Result of expression ‘t.currentWin’ [undefined] is not an object.

    Spent the past 18 hours trying to figure out what’s going on. Completely at a loss and considering ditching Moxiecode’s stuff entirely and finding a different file-manager extension.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases