You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
354 B
22 lines
354 B
import React from 'react'
|
|
|
|
import { PluginOptions } from './index'
|
|
|
|
import Controller from './Controller'
|
|
|
|
const renderEditor = (opts: PluginOptions) => (
|
|
props: any,
|
|
editor: any,
|
|
next: any
|
|
) => {
|
|
const children = next()
|
|
|
|
return (
|
|
<Controller {...opts} editor={editor}>
|
|
{children}
|
|
</Controller>
|
|
)
|
|
}
|
|
|
|
export default renderEditor
|