UNPKG

@atlaskit/editor-plugin-base

Version:

Base plugin for @atlaskit/editor-core

13 lines 304 B
import { scrollGutterPluginKey } from '../pm-plugins/scroll-gutter/plugin-key'; export const setKeyboardHeight = keyboardHeight => (state, dispatch) => { const { tr } = state; tr.setMeta(scrollGutterPluginKey, { keyboardHeight }); if (dispatch) { dispatch(tr); } return true; };