@uiw/react-markdown-editor
Version:
A markdown editor with preview, implemented with React.js and TypeScript.
32 lines (31 loc) • 1.01 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.undo = void 0;
var _commands = require("@codemirror/commands");
var _jsxRuntime = require("react/jsx-runtime");
var undo = {
name: 'undo',
keyCommand: 'undo',
button: {
'aria-label': 'undo text'
},
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
viewBox: "0 0 512 512",
height: "14",
width: "14",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
fill: "currentColor",
d: "M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"
})
}),
execute: function execute(_ref) {
var state = _ref.state,
view = _ref.view;
if (!state || !view) return;
(0, _commands.undo)(view);
}
};
exports.undo = undo;
//# sourceMappingURL=undo.js.map
;