Is it possible to hide a custom field from the modal that appears when you double-click on a related entry inside a Entries field?
In other words, I don't want my custom field to be visible within the modal that comes from getEditorHtml.
===== Updated based on accepted answer below =====
Based on the accepted answer from @Tyler Willingham I used the following code in my plugin's main plugin file:
public function init()
{
parent::init();
if (craft()->request->isCpRequest()) {
craft()->templates->includeJsResource('myPlugin/js/myJs.js');
}
}