EmEditor (text editor) Forum Index EmEditor Core Bug Reports
(document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| LTT | Posted on: 11/14/2012 3:55 am |
Just can't stay away ![]() ![]() Joined: 10/11/2006 From: Posts: 84 |
(document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? document.selection.SelectAll();
if( document.selection.IsEmpty ) alert( "IsEmpty" ); if( document.selection.Text == "" ) alert( "Text" ); Run this in a new (empty) window. alert( "IsEmpty" ) can not be triggered. |
| Yutaka | Posted on: 11/14/2012 9:31 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2397 |
Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? Hello,
I will fix this by the next version. Thank you!
|
| LTT | Posted on: 11/17/2012 3:39 am |
Just can't stay away ![]() ![]() Joined: 10/11/2006 From: Posts: 84 |
Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? Document.write("") can be used to delete the text selected.
But document.selection.Text = "" can not. |
| Yutaka | Posted on: 11/18/2012 12:16 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2397 |
Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? I will fix this on the next version.
Thanks!
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




