Use cm.options.direction
options.direction has a default value