| @@ -1,31 +0,0 @@ | |||||
| import { Mark } from 'tiptap' | |||||
| import { toggleMark } from 'tiptap-commands' | |||||
| export default class SubscriptStyle extends Mark { | |||||
| get name() { | |||||
| return 'subscriptstyle' | |||||
| } | |||||
| get schema() { | |||||
| return { | |||||
| parseDOM: [ | |||||
| { | |||||
| tag: 'sub', | |||||
| }, | |||||
| //{ | |||||
| // style: 'text-decoration', | |||||
| // getAttrs: value => value === 'underline', | |||||
| // }, | |||||
| ], | |||||
| toDOM: () => ['sub', 0], | |||||
| } | |||||
| } | |||||
| commands({ type }) { | |||||
| return () => toggleMark(type) | |||||
| } | |||||
| } | |||||
| @@ -1,27 +0,0 @@ | |||||
| import { Mark } from 'tiptap' | |||||
| import { toggleMark } from 'tiptap-commands' | |||||
| export default class SuperscriptStyle extends Mark { | |||||
| get name() { | |||||
| return 'superscriptstyle' | |||||
| } | |||||
| get schema() { | |||||
| return { | |||||
| parseDOM: [ | |||||
| { | |||||
| tag: 'sup', | |||||
| }, | |||||
| ], | |||||
| toDOM: () => ['sup', 0], | |||||
| } | |||||
| } | |||||
| commands({ type }) { | |||||
| return () => toggleMark(type) | |||||
| } | |||||
| } | |||||