Browse Source

suppression SubscriptStyle.js SuperscriptStyle.js -> CSS

master
choj 4 years ago
parent
commit
c5bbc3910f
2 changed files with 0 additions and 58 deletions
  1. +0
    -31
      src/components/extensions/SubscriptStyle.js
  2. +0
    -27
      src/components/extensions/SuperscriptStyle.js

+ 0
- 31
src/components/extensions/SubscriptStyle.js View File

@@ -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)
}

}

+ 0
- 27
src/components/extensions/SuperscriptStyle.js View File

@@ -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)
}

}

Loading…
Cancel
Save