function putChar(char, position) {

    var CaretPos = getCursorPosition();
    putStringToEditor(char, CaretPos);
    CaretPos += position;
    setCursorPosition(CaretPos);

    onChange();
}
/**
 * Put input string to #editor, set cursor position and call onChange().
 * oldPosition + position = newPosition.
 *
 * @param char string which will be put in #editor
 * @param position position of cursor on end of function relative to start of input string
 */
Put input string to #editor, set cursor position and call onChange().
oldPosition + position = newPosition.

@param char string which will be put in #editor
@param position position of cursor on end of function relative to start of input string
Put input string to #editor set cursor position and call onChange () . oldPosition + position = newPosition . @param char string which will be put in #editor @param position position of cursor on end of function relative to start of input string
function putChar(char, position) {
    var CaretPos = getCursorPosition();
    putStringToEditor(char, CaretPos);
    CaretPos += position;
    setCursorPosition(CaretPos);
    onChange();
}
function putChar ( char , position ) { var CaretPos = getCursorPosition ( ) ; putStringToEditor ( char , CaretPos ) ; CaretPos += position ; setCursorPosition ( CaretPos ) ; onChange ( ) ; }
Put input string to #editor, set cursor position and call onChange().
Put input string to #editor set cursor position and call onChange () .