You should always mix the water outside of the tank. Never add salt to a tank with living creatures in it. A bucket with a powerhead and waiting 24 hours before adding it is the best way to do it.
Also, be aware that the swing-arm hydrometers are calibrated at around 78 Farenheit, so if the water was hotter or colder, the reading won't be accurate.