65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
oGrammalecteAPI.parseNode("node_id")
oGrammalecteAPI.parseNode(node)
The node can be a textarea, an editable node or an iframe. The node must have an identifier.
Results will be sent with a succession of events at the node.
node.addEventListener("GrammalecteResult", function (event) {
if (event.detail.sType && event.detail.sType == "errors") {
let oResult = event.detail.oResult; // null when the text parsing is finished
...
}
}
For the last event, `oResult` will be `null`.
|
|
|
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
oGrammalecteAPI.parseNode("node_id")
oGrammalecteAPI.parseNode(node)
The node can be a textarea, an editable node or an iframe. The node must have an identifier.
Results will be sent with a succession of events at the node.
node.addEventListener("GrammalecteResult", function (event) {
if (event.detail.sType && event.detail.sType == "proofreading") {
let oResult = event.detail.oResult; // null when the text parsing is finished
...
}
}
For the last event, `oResult` will be `null`.
|