Mastering Text Selection in EmEditor - IsEmpty vs Text Content Comparison

Mastering Text Selection in EmEditor - IsEmpty vs Text Content Comparison

Jason Lv8

Mastering Text Selection in EmEditor - IsEmpty vs Text Content Comparison

Viewing 4 posts - 1 through 4 (of 4 total)

  • Author
    Posts
  • November 14, 2012 at 12:55 pm #10628
    LTT
    Participant
    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.
    November 14, 2012 at 6:31 pm #10629
    Yutaka Emura
    Keymaster
    Hello,
    I will fix this by the next version.
    Thank you!
    November 17, 2012 at 12:39 pm #10633
    LTT
    Participant
    Document.write(“”) can be used to delete the text selected.
    But document.selection.Text = “” can not.
    November 18, 2012 at 9:16 pm #10637
    Yutaka Emura
    Keymaster
    I will fix this on the next version.
    Thanks!
  • Author
    Posts

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.

Also read:

https://techidaily.com
  • Title: Mastering Text Selection in EmEditor - IsEmpty vs Text Content Comparison
  • Author: Jason
  • Created at : 2024-10-22 17:54:53
  • Updated at : 2024-10-29 02:35:58
  • Link: https://win-great.techidaily.com/mastering-text-selection-in-emeditor-isempty-vs-text-content-comparison/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Mastering Text Selection in EmEditor - IsEmpty vs Text Content Comparison