fix #182 partial, no more js error is thrown, but saving texteditor value still impossible when first save was invalid