draft-js-list-depth-plugin
Version:
List depth Plugin for DraftJS
13 lines (10 loc) • 330 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (editorState) {
var selection = editorState.getSelection();
var contentState = editorState.getCurrentContent();
var blockStartKey = selection.getStartKey();
return contentState.getBlockMap().get(blockStartKey);
};