Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bex 444 posts 555 karma points
    Mar 19, 2012 @ 12:57
    Bex
    0

    Any ideas how to register a custom tinyMCE plugin that will work with nforum?

    Hi

    I am using nForum and I want to add an image upload plugin to it so they can select images and they will be stored rather than referencing them via URL.

    I found a .net plugin (TinyMCE.Net) and adapted it and got it working fine in a stand alone solution.
    Now I am trying to add it to umbraco and it's not going well.

    I have added it to the tinyMCE plugins folder in a folder called aspnetbrowser:

    /umbraco_client/tinymce3/plugins/aspnetbrowser/

    I have updated the tinymce_init:

     tinyMCE.init({
           
    // General options
            mode
    : "exact",
            elements
    : "txtPost",
            theme
    : "advanced",
            plugins
    : "aspnetbrowser",
           
    // Theme options
            theme_advanced_buttons1
    : "bold,italic,underline,strikethrough,|,formatselect,aspnetbrowser,|,bullist,numlist,|,link,unlink,image,",        theme_advanced_buttons2 : "",
            theme_advanced_buttons3
    : "",
            theme_advanced_toolbar_location
    : "top",
            theme_advanced_toolbar_align
    : "center",
            theme_advanced_resizing
    : true,
            remove_linebreaks
    : false,
            relative_urls
    : false,
            content_css
    : "/css/nforumeditor.css"
       
    });

    In the tool bar, the link to the imagemanger is there, but it has no image, if you click on it it pops up a window bur it redirects to the home page (my default login page for the front end) (leaving the url as /umbraco_client/tinymce3/plugins/aspnetbrowser/imgmanager.aspx) 

    I have tried logging in as an umbraco user, as a front end user and as a forum user, but none make any difference.

    This should work, but I can't work out what I am doing wrong?

    Help!

  • Bex 444 posts 555 karma points
    Mar 19, 2012 @ 17:53
    Bex
    0

    Sorted!
    Misleading error.. needed to add the umbraco_client into the reserved urls in the webconfig 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies