Toggles the ruler.


Parameters:

NameTypeDescription
actionNameString'toggleRuler' ruler toggling API.


Example:

editor.execCommand('toggleRuler');