• Resolved joleksow

    (@joleksow)


    I posted this comment to the wpdownloadmanager.com website a couple of days ago, but it seems like this forum is more active so I’ll repost it here:

    After I enable the advanced TinyMCE button add-on, no Visual Editor options show up at all. Any idea what could be causing this?

    The site is running WordPress 4.01.

    The site I am running on uses a non-default folder structure. WordPress core is in /core and content is in /content. This means there is no wp-content folder, so I wonder if the following function could be causing this problem since it assumes there is a wp-content folder:

    function wpdm_tinyplugin_register($plugin_array)
    {
    $url = trim(get_bloginfo(‘url’), “/”) . “/wp-content/plugins/wpdm-tinymce-button/editor_plugin.js”;

    $plugin_array[‘wpdm_tinyplugin’] = $url;
    return $plugin_array;
    }

    Please let me know when this might be fixed.

    Thanks!

    https://www.ads-software.com/plugins/download-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shahjada

    (@codename065)

    Ok, I’ll adjust it on next update

    Thread Starter joleksow

    (@joleksow)

    Hi Shaon,

    For the record, the TinyMCE plugin works fine when I replace the following line:

    $url = trim(get_bloginfo(‘url’), “/”) . “/wp-content/plugins/wpdm-tinymce-button/editor_plugin.js”;

    with this:

    $url = trim(plugins_url('editor_plugin.js', __FILE__));

    When do you think you will be able to update the plugin? I’m using this in a client’s site that is launching soon and would really like to be able to include the official fixed plugin instead of a version I’ve modified myself.

    Thanks!
    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TinyMCE add-on button issue’ is closed to new replies.