include restoring codemirror index