|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
wysiwyg - get highlighted
How can I get the highlighted or selected text from the i frame?
-Bill |
|
#2
|
|||
|
|||
|
do you mean, you want to be able to save the html that the wysiwyg editor? say into a flat file or into a database?
|
|
#3
|
|||
|
|||
|
I use something like this:
var rng = eval(editPane+'.document.selection.createRange()') ; var sText = new String(rng.text); (note that "editPane" is my IFRAME name/reference and you will need to replace this with something else depending on your code.) Then you can manipulate the selected text and replace it with the resulting value like this: rng.text=sText; |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > wysiwyg - get highlighted |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|