Hello everybody,
I have a problem with an own plugin.
At first a marking inside the editor area is written in the variable text.
var text = editor.getSelection().getSelectedText();
This works!!!
But now I'd like to expand the selectet text for one character (backward, to the left).
An example:
In the editor area I have the characters 123456789.
Now I mark the charakters 3456 (so that var text = editor.getSelection().getSelectedText() includes 3456).
Now I am loooking for the possibility to include in another variable (e.g. var text-back) the character left to the marking (var text-back should include the character 2)
Thank you very much
Albert