opentiny / opentiny/tiny-editor
重置表单工具栏多选内容为空问题
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 535
- Forks
- 71
- Avg merge
- 6h 50m
- Merged PRs (30d)
- 2
Description
重置表单会影响工具栏多选内容为空
表单代码:
`
<script> layui.use(['form', 'element', 'jquery', 'admin', 'tagsInput', 'notice'], function () { var form = layui.form; var $ = layui.jquery; var tagsInput = layui.tagsInput; var admin = layui.admin; var notice = layui.notice; // 重置表单 $('#formreset').click(function () { document.getElementById("formBasForm").reset(); notice.destroy(); notice.msg('重置表单成功!', {animateInside: true, icon: 1}); }); }); </script>
没有点击重置图:
点击重置后图:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the supplied form markup and reset handler, focusing on the editor toolbar's multi-select state after document.getElementById("formBasForm").reset(). Trace how reset events update the editor and toolbar, then verify that resetting the form preserves the expected multi-select content instead of leaving it empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100