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

Flat Previous Topic | Next Topic
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.
Flat Previous Topic | Next Topic


Subject Poster Date
 » (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? LTT 11/14/2012 3:55 am
     Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? Yutaka 11/14/2012 9:31 am
       Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? LTT 11/17/2012 3:39 am
         Re: (document.selection.IsEmpty) Does Not Equal (document.selection.Text == "") ? Yutaka 11/18/2012 12:16 pm

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