inject a string or dom node at the cursor