opentiny / opentiny/tiny-editor

重置表单工具栏多选内容为空问题

Open
#306 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
535
Forks
71
Avg merge
6h 50m
Merged PRs (30d)
2

Description

重置表单会影响工具栏多选内容为空
表单代码:
`

详情 <textarea id="editor_content" name="content" style="display:none;"></textarea> 重置表单 `

<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>
没有点击重置图:
Image
点击重置后图:
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.