You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
866 B
45 lines
866 B
|
|
|
|
//----------------------------------------------------------------
|
|
//----------------------------------------------------------------
|
|
|
|
var editor=parent.rtevirtualkeyboardeditor;
|
|
function do_insert()
|
|
{
|
|
var keyboard_area = document.getElementById("keyboard_area");
|
|
|
|
if ( keyboard_area.value.length > 0 )
|
|
{
|
|
editor.InsertHTML(keyboard_area.value);
|
|
parent.rtevirtualkeyboarddialog.close();
|
|
editor.Focus();
|
|
}
|
|
}
|
|
function do_Close()
|
|
{
|
|
parent.rtevirtualkeyboarddialog.close();
|
|
editor.Focus();
|
|
}
|
|
new function()
|
|
{
|
|
var ns=document.getElementsByTagName("*");
|
|
for(var i=0;i<ns.length;i++)
|
|
{
|
|
var n=ns[i];
|
|
if(n.getAttribute('langtext')!="1")continue;
|
|
var t=n.innerText||n.textContent||"";
|
|
if(t)
|
|
{
|
|
t=editor.GetLangText(t);
|
|
n.innerText=t;
|
|
n.textContent=t;
|
|
}
|
|
var t=n.value||"";
|
|
if(t)
|
|
{
|
|
t=editor.GetLangText(t);
|
|
n.value=t;
|
|
}
|
|
}
|
|
}
|