EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ?
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 11/18/2012 12:16 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2404
Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ?
I will fix this on the next version.

Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

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/14/2012 9:31 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2404
Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ?
Hello,

I will fix this by the next version.

Thank you!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

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.
Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文