commit codemirror changes to textarea