static-cms/src/actions/editor.js

17 lines
304 B
JavaScript
Raw Normal View History

import history from '../routing/history';
2016-08-11 18:21:32 -03:00
export const SWITCH_VISUAL_MODE = 'SWITCH_VISUAL_MODE';
export function switchVisualMode(useVisualMode) {
return {
type: SWITCH_VISUAL_MODE,
payload: useVisualMode,
};
}
export function cancelEdit() {
return () => {
history.goBack();
2016-08-11 18:21:32 -03:00
};
}