How can we make this preview blog posts? I added:
&& !(
$widget->getController() instanceof \Rainlab\Blog\Controllers\Posts
)
to the Plugin.php and have the preview icon available now. However, when I click the eye, the modal pops up and gives me an error:
The object you're trying to access doesn't belong to the theme being edited. Please reload the page.
So I'm looking into what is causing this error. Any suggestions?