Building an editor modules dependent plugin

I’m stuck trying to create a plugin with custom animation node. I tried to follow the idea of this link text answer but it looks like i miss something. If I only have editor module in the plugin, project crashes in stand-alone and packaged versions. If I have two plugin modules, editor and runtime (to load compiled editor module), i can build a plugin, but can’t package a project with this plugin neither built nor from sources. I believe the problem is in a way to access the editor module library from the runtime module, but don’t understand how to handle it right way.

Done thanks to this example: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums