Connecting Tech Pros Worldwide Help | Site Map

how to add some text in html edit mode.

Newbie
 
Join Date: Apr 2007
Posts: 1
#1: Apr 14 '07
We can make browser editable with document.designmode.
Using execcommand, we can do many things like inserting link, inserting table and so on. but I can't figure out how to add some text that I want in selection range.
Could you show me the way?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Apr 16 '07

re: how to add some text in html edit mode.


Welcome to TSDN (TheScripts).

See Selection and range object links.
Reply