function getEditorFoldMarks() {
            testEditor = EditorManager.getCurrentFullEditor();
            cm = testEditor._codeMirror;

            var marks = cm.getAllMarks().filter(function (m) {
                return m.__isFold;
            });
            return marks;
        }
Returns all the fold marks currently inside the editor
@returns {Array<TextMark>} The fold marks currently inside the editor