fix default comportment for replace a dom range; fix enter on begin of a line