UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.

18 lines (16 loc) 327 B
import { Tool } from '../../ui' class InsertListTool extends Tool { getClassNames () { return 'sc-insert-list-tool' } renderButton ($$) { let button = super.renderButton($$) return [ button ] } onClick () { this.executeCommand({ context: this.context }) } } export default InsertListTool