tiptap/packages/extension-text/src/index.ts

17 lines
229 B
TypeScript
Raw Normal View History

import { Node } from '@tiptap/core'
2020-03-06 04:05:01 +08:00
const Text = Node.create({
2020-10-21 21:17:05 +08:00
name: 'text',
group: 'inline',
})
2020-10-23 04:40:40 +08:00
export default Text
2020-11-16 22:40:05 +08:00
declare global {
namespace Tiptap {
interface AllExtensions {
Text: typeof Text,
}
2020-10-23 04:40:40 +08:00
}
}