選択されたテキストを取得、またはテキストを挿入します。
str = document.selection.Text;
document.selection.Text = str;
str = document.selection.Text
document.selection.Text = str
str = document.selection.Text;
alert( "選択されていたテキストは " + str );
document.selection.Text = "こんにちは";
str = document.selection.Text
alert "選択されていたテキストは " & str
document.selection.Text = "こんにちは"
EmEditor Professional Version 4.00 以上で利用できます。