Skip to content

Commit

Permalink
fix(react): pass StyledProps to Editor component (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipraty authored Jun 3, 2024
1 parent dea50eb commit 4f514da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/WithoutCoreEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { create, Shikitor, ShikitorOptions } from '@shikitor/core'
import type { EditorProps, EditorRef, StyledProps } from '@shikitor/react'
import type { EditorProps, EditorRef } from '@shikitor/react'
import React, { forwardRef, useCallback, useEffect, useRef } from 'react'

import { useDefault } from './hooks/useDefault'
import { useEvent } from './hooks/useEvent'

export interface WithoutCoreEditorProps extends EditorProps, StyledProps {
export interface WithoutCoreEditorProps extends EditorProps {
create?: typeof create
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface StyledProps {
style?: React.CSSProperties
}

export interface EditorProps {
export interface EditorProps extends StyledProps {
options?: Omit<ShikitorOptions, 'plugins'>
defaultOptions?: Omit<ShikitorOptions, 'plugins'>
plugins?: ShikitorOptions['plugins']
Expand Down

0 comments on commit 4f514da

Please sign in to comment.