@atlaskit/editor-plugin-floating-toolbar
Version:
Floating toolbar plugin for @atlaskit/editor-core
25 lines (24 loc) • 771 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.showConfirmDialog = exports.hideConfirmDialog = void 0;
var _pluginFactory = require("./plugin-factory");
var showConfirmDialog = exports.showConfirmDialog = function showConfirmDialog(buttonIndex, optionIndex) {
return (0, _pluginFactory.createCommand)({
type: 'SHOW_CONFIRM_DIALOG',
data: {
buttonIndex: buttonIndex,
optionIndex: optionIndex
}
}, function (tr) {
return tr.setMeta('addToHistory', false);
});
};
var hideConfirmDialog = exports.hideConfirmDialog = function hideConfirmDialog() {
return (0, _pluginFactory.createCommand)({
type: 'HIDE_CONFIRM_DIALOG'
}, function (tr) {
return tr.setMeta('addToHistory', false);
});
};