cherry-markdown
cherry-markdown copied to clipboard
[Bug report]Antd's UI `Form` component failed to automatically obtain values
Describe the bug
When using the Form component of Antd, after filling in the name, the field still obtains an undefined
To Reproduce Steps to reproduce the behavior:
<Form.Item name='content'
rules={[
{ min: 5, message: '文章最最少5个字符' },
{ max: 20000, message: '文章最多20000个字符' },
]}
>
{/* <Input style={{ width: '100%' }} placeholder="请输入标题" /> */}
<div className='cherry-markdown' id='cherry-markdown'></div>
</Form.Item>
export const cherryConfig = {
id: 'cherry-markdown',
value: 'init',
toolbars: toolbarsOptions,
editor: {
name: 'content',
autoSave2Textarea: true
}
}
Expected behavior
When I submit the form, I can obtain content data.
Screenshots Other fields can obtain the (Input/Select) component
Environment (please complete the following information):
- OS: [e.g. Windows/macOS] win11
- Browser [e.g. Chrome, Safari]
- Chrome 版本 114.0.5735.201(正式版本) (64 位)
- Version [e.g. 0.5.14] "cherry-markdown": "^0.8.21",
Additional context Add any other context about the problem here.