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