@uiw/react-markdown-editor
Version:
A markdown editor with preview, implemented with React.js and TypeScript.
31 lines (30 loc) • 976 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.redo = void 0;
var _commands = require("@codemirror/commands");
var _jsxRuntime = require("react/jsx-runtime");
var redo = {
name: 'redo',
keyCommand: 'redo',
button: {
'aria-label': 'redo 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: "M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"
})
}),
execute: function execute(_ref) {
var state = _ref.state,
view = _ref.view;
if (!state || !view) return;
(0, _commands.redo)(view);
}
};
exports.redo = redo;