draft-js-modifiers
Version:
Modular state modifiers for Draft.js
13 lines (9 loc) • 310 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var getCurrentBlock = function getCurrentBlock(editorState) {
var selection = editorState.getSelection();
return editorState.getCurrentContent().getBlockForKey(selection.getStartKey());
};
exports.default = getCurrentBlock;