react-markdown-editor-lite
Version:
a light-weight Markdown editor based on React
18 lines (17 loc) • 608 B
JavaScript
import react from "react";
import Icon from "../../components/Icon/index.mjs";
import i18n from "../../i18n/index.mjs";
import { PluginComponent } from "../Plugin.mjs";
class BlockWrap extends PluginComponent {
static pluginName = 'block-wrap';
render() {
return /*#__PURE__*/ react.createElement("span", {
className: "button button-type-wrap",
title: i18n.get('btnLineBreak'),
onClick: ()=>this.editor.insertMarkdown('hr')
}, /*#__PURE__*/ react.createElement(Icon, {
type: "wrap"
}));
}
}
export { BlockWrap as default };