@atlaskit/editor-plugin-base
Version:
Base plugin for @atlaskit/editor-core
19 lines (18 loc) • 508 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setKeyboardHeight = void 0;
var _pluginKey = require("../pm-plugins/scroll-gutter/plugin-key");
var setKeyboardHeight = exports.setKeyboardHeight = function setKeyboardHeight(keyboardHeight) {
return function (state, dispatch) {
var tr = state.tr;
tr.setMeta(_pluginKey.scrollGutterPluginKey, {
keyboardHeight: keyboardHeight
});
if (dispatch) {
dispatch(tr);
}
return true;
};
};