我正在将 Ckeditor5 与 React 一起使用,并且在渲染组件时在控制台中收到此警告,如何摆脱此警告?
这是官方文档上的错误参考
这是我的组件
export const EditorField = (props) => {
const {name,method,placeholder,isSimplified} = props
const link = {
decorators: {
toggleDownloadable: {
mode: 'manual',
label: 'Downloadable',
attributes: {
download: 'file'
}
},
openInNewTab: {
mode: 'manual',
label: 'Open in a new tab',
defaultValue: true,
attributes: {
target: '_blank',
rel: 'noopener noreferrer'
}
}
}
}
const image = {
toolbar: [
'imageTextAlternative',
'imageStyle:inline',
'imageStyle:block',
'imageStyle:side',
'linkImage'
]
}
const table = {
contentToolbar: [ …Run Code Online (Sandbox Code Playgroud)