Hello, thanks for your question :D
Honestly I'm not sure if that's possible :/ I can think of two options for doing this, but I'm not sure if either of them is workable:
There are several problems with this option:
- The dropdown div will not automatically follow the field when you move the block. So you will have to programmatically move it somehow.
- Create events can be caused by lots of different things (including undo/redo) not just dragging from the toolbox.
2) Trigger the dropdown div to open when you receive the final
move event after a block create event.
There are also problems with this solution:
- Detecting when a move happens after a create event will be tricky. There could be multiple
block drag events in between. There could also be two move events if you have
grid snapping enabled.
- There is still the problem of create events being caused by different things.
But if you can figure out when you actually want to trigger the dropdown div to show, the function for doing so is called
showEditor_ (if you're using the dropdown field). Note that this is protected, so technically it's only supposed to be called by subclasses :/ If this is an important feature for you you might want to file a
feature request for adding a public API.
Sorry I don't have an exact solution for ya' but hopefully that gives you someplace to start!
Best of luck on your project!
--Beka