feat: add MarkdownEditor component and integrate it into news add/edit forms
This commit is contained in:
@@ -163,14 +163,7 @@ async function handleSubmit() {
|
||||
</NFormItem>
|
||||
|
||||
<NFormItem label="新闻内容" path="content">
|
||||
<NInput
|
||||
v-model:value="form.content"
|
||||
type="textarea"
|
||||
placeholder="请输入新闻内容"
|
||||
:rows="10"
|
||||
maxlength="10000"
|
||||
show-count
|
||||
/>
|
||||
<MarkdownEditor v-model:value="form.content" placeholder="请输入新闻内容" :preview="false" />
|
||||
</NFormItem>
|
||||
|
||||
<NFormItem label="附件上传" path="attachmentIds">
|
||||
|
||||
@@ -165,14 +165,7 @@ async function handleSubmit() {
|
||||
</NFormItem>
|
||||
|
||||
<NFormItem label="新闻内容" path="content">
|
||||
<NInput
|
||||
v-model:value="form.content"
|
||||
type="textarea"
|
||||
placeholder="请输入新闻内容"
|
||||
:rows="10"
|
||||
maxlength="10000"
|
||||
show-count
|
||||
/>
|
||||
<MarkdownEditor v-model:value="form.content" placeholder="请输入新闻内容" :preview="false" />
|
||||
</NFormItem>
|
||||
|
||||
<NFormItem label="附件上传" path="attachmentIds">
|
||||
|
||||
Reference in New Issue
Block a user