UNPKG

v-md-editor

Version:

A markdown editor built on Vue

17 lines (14 loc) 333 B
import { insert } from '@/utils/constants/command'; export default { name: insert, icon: 'v-md-icon2-exit', title: '插入空格', action(editor) { editor.insert((selected) => { const content = selected? selected + ' ':' '; return { text: content, }; }); }, };