Copied to clipboard

Flag this post as spam?

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


  • Niklas Jalmerud 26 posts 62 karma points
    Oct 10, 2012 @ 09:08
    Niklas Jalmerud
    0

    Resizing RTE macro popup

    I'm creating a chart-tool for one of our clients. They wanted it as a macro for use in the RTE so that they can get charts anywhere on the site.

    The problem is that the Edit Macro modal popup is to small.

    Is there any way to make that popup bigger?

  • Niklas Jalmerud 26 posts 62 karma points
    Oct 12, 2012 @ 10:17
    Niklas Jalmerud
    0

    Ok found it myself.

    In the file \umbraco_client\tinymce3\plugins\umbracomacro\editor_plugin_src.js I found some code that I changed the width and height in:

     ed.windowManager.open({
                        file: tinyMCE.activeEditor.getParam('umbraco_path') + '/plugins/tinymce3/insertMacro.aspx?editor=trueurl' + urlParams,
                        width: 680 + parseInt(ed.getLang('umbracomacro.delta_width', 0)), //changed the width for the chartmacro
                        height: 570 + parseInt(ed.getLang('umbracomacro.delta_height', 0)),
                        inline: 1
                    }, {
                        plugin_url: url // Plugin absolute URL
                    });
    

    I could't se the changes at first because of the heavy cacheing involved.

Please Sign in or register to post replies

Write your reply to:

Draft