@kangc/v-md-editor
Version:
A markdown editor built on Vue
21 lines (19 loc) • 401 B
JavaScript
exports.__esModule = true;
exports.default = createToolbar;
function createToolbar(_ref) {
var commandName = _ref.commandName,
text = _ref.text,
title = _ref.title,
icon = _ref.icon;
return {
title: title,
icon: icon,
text: text,
action: function action(editor) {
editor.execCommand(commandName, {
type: 'todo'
});
}
};
}
;