fix bug
This commit is contained in:
@@ -2,7 +2,7 @@ import { Plugin } from 'prosemirror-state'
|
||||
import { Editor } from './Editor'
|
||||
import { GlobalAttributes } from './types'
|
||||
|
||||
export interface ExtensionSpec<Options = {}, Commands = {}> {
|
||||
export interface ExtensionSpec<Options = any, Commands = {}> {
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ExtensionSpec, defaultExtension } from './Extension'
|
||||
import { Attributes, Overwrite } from './types'
|
||||
import { Editor } from './Editor'
|
||||
|
||||
export interface MarkExtensionSpec<Options = {}, Commands = {}> extends Overwrite<ExtensionSpec<Options, Commands>, {
|
||||
export interface MarkExtensionSpec<Options = any, Commands = {}> extends Overwrite<ExtensionSpec<Options, Commands>, {
|
||||
/**
|
||||
* Inclusive
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ExtensionSpec, defaultExtension } from './Extension'
|
||||
import { Attributes, NodeViewRenderer, Overwrite } from './types'
|
||||
import { Editor } from './Editor'
|
||||
|
||||
export interface NodeExtensionSpec<Options = {}, Commands = {}> extends Overwrite<ExtensionSpec<Options, Commands>, {
|
||||
export interface NodeExtensionSpec<Options = any, Commands = {}> extends Overwrite<ExtensionSpec<Options, Commands>, {
|
||||
/**
|
||||
* TopNode
|
||||
*/
|
||||
|
||||
@@ -9,9 +9,9 @@ export interface ParagraphOptions {
|
||||
const Paragraph = createNode({
|
||||
name: 'paragraph',
|
||||
|
||||
// defaultOptions: <ParagraphOptions>{
|
||||
// HTMLAttributes: {},
|
||||
// },
|
||||
defaultOptions: <ParagraphOptions>{
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
group: 'block',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user