You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create a shortcode and enqueue an asset using the native WordPress wp_enqueue_style, you would assume that the styles would also be enqueued in the editor.
Add a new shortcode to any breakdance page [tct_test_plugin]
View the frontend, see Hello World in red
View the editor preview, see no styles applied to shortcode Hello World text
Questions:
Is there a required way that shortcodes are supposed to be written to ensure styles are rendered in the editor.
If the above answer is yes, then why is this the case? You are making it unnecessarily difficult for plugin developers, requiring them to do something different for your singular plugin?
Editor
Frontend
The text was updated successfully, but these errors were encountered:
When you create a shortcode and enqueue an asset using the native WordPress
wp_enqueue_style
, you would assume that the styles would also be enqueued in the editor.This however is not the case.
How to reproduce:
[tct_test_plugin]
Hello World
in redHello World
textQuestions:
Editor
Frontend
The text was updated successfully, but these errors were encountered: