version 1.771, 2020/08/26 18:13:40
|
version 1.772, 2020/08/29 16:39:00
|
Line 1589 INNERJS
|
Line 1589 INNERJS
|
if (document.getSelection) txt = document.getSelection(); |
if (document.getSelection) txt = document.getSelection(); |
else if (document.selection) txt = document.selection.createRange().text; |
else if (document.selection) txt = document.selection.createRange().text; |
else return; |
else return; |
|
if (typeof(txt) != 'string') { |
|
txt = String(txt); |
|
} |
var cleantxt = txt.replace(new RegExp('([\\f\\n\\r\\t\\v ])+', 'g')," "); |
var cleantxt = txt.replace(new RegExp('([\\f\\n\\r\\t\\v ])+', 'g')," "); |
if (cleantxt=="") { |
if (cleantxt=="") { |
alert("$js_lt{'plse'}"); |
alert("$js_lt{'plse'}"); |