get Codemirror test without select all