JQuery selectors for editor elements safe to use?

Let’s say I want to monitor all the editor blocks. In the standard editor I can just select the blocks with e.g. $(“div.wp-block”). Will this work across plugins etc or will some plugins alter the editor blocks class/id?

I am worried that if the user, for example, uses a plugin that alters how the editor looks/works will break this jquery select for me?

Read more here:: JQuery selectors for editor elements safe to use?

Leave a Reply

Your email address will not be published. Required fields are marked *