468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
|
switch (oCommand.sCommand) {
case "openPanelForNode":
if (oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) {
oGrammalecte.startGCPanel(document.getElementById(oCommand.sNodeId));
}
break;
case "openPanelForText":
if (oCommand.sText && oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) {
oGrammalecte.startGCPanel(oCommand.sText, document.getElementById(oCommand.sNodeId));
}
break;
case "parseNode":
if (oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) {
let xNode = document.getElementById(oCommand.sNodeId);
if (xNode.tagName == "TEXTAREA" || xNode.tagName == "INPUT") {
oGrammalecteBackgroundPort.parseAndSpellcheck(xNode.value, oCommand.sNodeId);
|
>
|
|
>
>
>
>
|
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
|
switch (oCommand.sCommand) {
case "openPanelForNode":
if (oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) {
oGrammalecte.startGCPanel(document.getElementById(oCommand.sNodeId));
}
break;
case "openPanelForText":
if (oCommand.sText) {
if (oCommand.sText && oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) {
oGrammalecte.startGCPanel(oCommand.sText, document.getElementById(oCommand.sNodeId));
}
else {
oGrammalecte.startGCPanel(oCommand.sText);
}
}
break;
case "parseNode":
if (oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) {
let xNode = document.getElementById(oCommand.sNodeId);
if (xNode.tagName == "TEXTAREA" || xNode.tagName == "INPUT") {
oGrammalecteBackgroundPort.parseAndSpellcheck(xNode.value, oCommand.sNodeId);
|