@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
25 lines (23 loc) • 719 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateStickyState = exports.removeStickyState = void 0;
var _pluginState = require("./plugin-state");
// eslint-disable-next-line import/order
var updateStickyState = exports.updateStickyState = function updateStickyState(rowState) {
return (0, _pluginState.createCommand)({
name: 'UPDATE',
state: rowState
}, function (tr) {
return tr.setMeta('addToHistory', false);
});
};
var removeStickyState = exports.removeStickyState = function removeStickyState(pos) {
return (0, _pluginState.createCommand)({
name: 'REMOVE',
pos: pos
}, function (tr) {
return tr.setMeta('addToHistory', false);
});
};