onInputHelperInput
The function called when the user is trying to input the text and the input helper appears.
Parameters:
Name |
Type |
Description |
data |
object
|
Defines the text which the user inputs:
- add - defines if the text is added to the current text (true) or this is the beginning of the text (false),
type: boolean,
example: true;
- text - the text which the user inputs,
type: string,
example: "text".
|
Example
Copy code
window.Asc.plugin.event_onInputHelperInput = function(data) {
if (data.add)
window.Asc.plugin.currentText += data.text;
else
window.Asc.plugin.currentText = data.text;
...
}