Makes a bit of javascript that lets us listen in on the selection

make_js_listener(editor_name, position, new_text, selected_text)

Arguments

editor_name

The name given the editor

position

The starting row and column location

new_text

The new text including the code markup

selected_text

The text to be marked with a code or codes

Value

javascript text

Examples