plugin.getSelectedText

The 'getSelectedText' function retrieves the currently selected text within the HTML editor.

  • Prototype: plugin.getSelectedText(iDbPos, bRich);
  • Parameters:
    1. iDbPos: a position number (0-based) of the database on the tab control; -1 for the current database.
    2. bRich: true for HTML source, false for plain text.
  • Return Value: the currently selected HTML source, or only plain text.
  • Example:
    alert(plugin.getSelectedText(-1, false));