Does anyone know how to add folding in yaml files for the CodeMirror editor? We add this editor to our app and it works perfectly with json. But when editor mode was switched to yaml the file was displayed fine but without folding for inner elements.
So it looks like:

