await function jsGetActiveDocState()

Return the mode the active document is in. Can be RT, DT, SE, PR, QM or NA.