My 1994 Explorer does this too
I have the exact same problem just described. I thought it was the transmission. I've replaced the coil pack, the idle air valve, checked all vacuum lines and even tried premium gas. I have 96k miles on the original plugs and wires. Mine starts fine when cold or if it has been sitting for over 20 minutes, but if I stop for gas - fill it up, make a quick run to the bathroom then come back and start it, the engine shakes like it's misfiring. If I put it in gear and under load, it quickly clears up and runs okay. If I just let it idle and misfire, it will keep doing it for a while. I have new double platinum plugs and will get new ford wires - but I'd like to know if this really sounds like the plugs or the wires. My reasoning is that a spark plug or wire would misfire more under load than just idling and I'd expect it to be worse when cold. Am I wrong? Did the original guy posting about this try new plugs/wires and did it fix it? If so, I'll change mine this weekend. I know it doesn't hurt to change them after being used for as long as mine has, but I've spend a lot of money on other parts that had the same miles and it didn't fix it (like the coil pack).
Dennis