Fixed selection in Editor; now returns html instead of plain text.
This commit is contained in:
parent
0dadf51bac
commit
5a657dda65
2 changed files with 3 additions and 4 deletions
|
@ -49,9 +49,9 @@
|
|||
|
||||
function getSelectedText() {
|
||||
if(document.all)
|
||||
var selected=iframe.document.selection.createRange().text;
|
||||
var selected=iframe.document.selection.createRange().htmlText;
|
||||
else
|
||||
var selected=iframe.document.defaultView.getSelection().getRangeAt(0);
|
||||
var selected=iframe.document.defaultView.getSelection().getRangeAt(0).commonAncestorContainer.innerHTML;
|
||||
return selected;
|
||||
}
|
||||
|
||||
|
|
1
WebApplication/Editor.ascx.designer.cs
generated
1
WebApplication/Editor.ascx.designer.cs
generated
|
@ -1,7 +1,6 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4952
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue