@atlaskit/editor-plugin-floating-toolbar
Version:
Floating toolbar plugin for @atlaskit/editor-core
19 lines • 545 B
JavaScript
import { createCommand } from './plugin-factory';
export var showConfirmDialog = function showConfirmDialog(buttonIndex, optionIndex) {
return createCommand({
type: 'SHOW_CONFIRM_DIALOG',
data: {
buttonIndex: buttonIndex,
optionIndex: optionIndex
}
}, function (tr) {
return tr.setMeta('addToHistory', false);
});
};
export var hideConfirmDialog = function hideConfirmDialog() {
return createCommand({
type: 'HIDE_CONFIRM_DIALOG'
}, function (tr) {
return tr.setMeta('addToHistory', false);
});
};