Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tailwind to iframes in Admin (mobile preview, site editting, etc) #11

Open
greghunt opened this issue Apr 5, 2023 · 2 comments
Open

Comments

@greghunt
Copy link
Owner

greghunt commented Apr 5, 2023

No description provided.

@Triloworld
Copy link

For documentation:
WordPress/gutenberg#49655 (comment)

@dz0ny
Copy link

dz0ny commented Jun 24, 2024

This is a small patch that enables rendering FSE.

    public function __construct(Plugin $plugin)
    {

        add_action(
            'enqueue_block_assets',
            array($this, 'enqueue_scripts_public')
        );
    }

    public function enqueue_scripts_public(){
        $scripts = $this->plugin->get_admin_scripts();
        $name = $this->plugin->name . '_twind_admin';
        wp_enqueue_script($name, $scripts['main']);
        wp_add_inline_script($name, $scripts['setup']);
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants