• Resolved WooPrali

    (@wooprali)


    Hi,

    I am interested to integrate Shortcake into WPi Designer Button Shortcode plugin.

    I did below steps to integrate.

    Installed Shortcake plugin.
    Registered wpi_designer_button_shortcode for Shortcode Ui.

    UI ShortcodeUI is good. But i didn’t get expected result. bcoz plugin’s styles are not loaded in TinyMCE view.

    If possible guide me how to get good shortcode preview for my plugin.

    https://wordpress.org/plugins/shortcode-ui/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    But i didn’t get expected result. bcoz plugin’s styles are not loaded in TinyMCE view.

    How are they normally loaded?

    Thread Starter WooPrali

    (@wooprali)

    Hi Daniel,

    Normally, user cant see the preview of Designer Button Shortcode in TinyMCE editor. But he can see the preview in Add new style page of Designer Button plugin. I am expecting same preview in TinyMCE editor using your ShortcodeUI plugin.

    Regards,

    PRALI

    Thread Starter WooPrali

    (@wooprali)

    Hi Daniel,

    Problem is solved.
    Now everything is perfect. In next version release i will add ShortcodeUi Integration. I hope my plugin users will love this feature.

    To solve this task, i used wp_ajax for dynamically loading the dynamically generated styles and mce_css for loading plugin styles.

    Thanks for developing useful plugin for all.

    Regards,

    PRALI

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    i used wp_ajax for dynamically loading the dynamically generated styles and mce_css for loading plugin styles.

    Ah, this was going to be my suggestion. Glad you figured it out.

    Thread Starter WooPrali

    (@wooprali)

    Hi Daniel,

    Thanks for developing Nice plugin.
    I released latest version of Designer Button Plugin.
    Now it supports Shortcake plugin.

    Regards,

    PRALI

    An idea:

    function my_theme_add_editor_styles() {
            add_editor_style(plugins_url( '/styles.css', __FILE__ ) );
    
        }
        add_action( 'admin_init', 'my_theme_add_editor_styles' );

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need Integration for wpi_designer_button_shortcode plugin’ is closed to new replies.