I've added a button to tinyMCE which loads a php file into the iframe.
Actually it's a shortcode manager and I need to use some wordpress functionality such as translation functions or getting categories list or ...
To do this, I need to include wp-load.php and every thing works great with it. But I read on the forums that including wp-load.php is not a good practice at all!
So what's the best solution for my problem? Is there any way to load tinyMCE plugin without loading it within iframe or is there any other way to use wordpress functions in a file which is loaded into iframes or popups?