function SRC_verifyEditArea()
{
  if (SRC_findResourceSearchBase().inTextMode()) {
    alert("Unable to add this link (the editor is in text mode)");
    return false;
  }

  if (!SRC_findResourceSearchBase().inEditArea()) {
    alert("Unable to add this link (cursor focus is not in an edit area)");
    return false;
  }

  return true;
}
/*
 * Verify that:
 *  -- the editor is ready
 *  -- the cursor is positioned within an editor window
 */
Verify that:
the editor is ready
the cursor is positioned within an editor window
Verify that : the editor is ready the cursor is positioned within an editor window
function SRC_verifyEditArea()
{
  if (SRC_findResourceSearchBase().inTextMode()) {
    alert("Unable to add this link (the editor is in text mode)");
    return false;
  }
  if (!SRC_findResourceSearchBase().inEditArea()) {
    alert("Unable to add this link (cursor focus is not in an edit area)");
    return false;
  }
  return true;
}
function SRC_verifyEditArea ( ) { if ( SRC_findResourceSearchBase ( ) . inTextMode ( ) ) { alert ( "Unable to add this link (the editor is in text mode)" ) ; return false ; } if ( ! SRC_findResourceSearchBase ( ) . inEditArea ( ) ) { alert ( "Unable to add this link (cursor focus is not in an edit area)" ) ; return false ; } return true ; }
Verify that:
  -- the editor is ready
  -- the cursor is positioned within an editor window
Verify that : -- the editor is ready -- the cursor is positioned within an editor window