ckeditor4 icon indicating copy to clipboard operation
ckeditor4 copied to clipboard

The added form cannot be deleted directly

Open chenyu-zyq opened this issue 3 years ago • 3 comments

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Add form to ckeditor
  2. Delete form element
  3. You cannot delete it at once. You need to delete it twice [Video link]:https://kkttest.oss-cn-beijing.aliyuncs.com/github/CKEditor%20Sample%20-%20Google%20Chrome%202021-11-04%2013-38-13.mp4

Expected result

You can delete it directly

Actual result

You cannot delete it at once. You need to delete it twice

Other details

Browser: Chrome: 93.0.4577.63, Microsoft Edge: 93.0.961.38 OS: Windows 10 CKEditor version: 4.16.2 Installed CKEditor plugins: forms 4.16.2

chenyu-zyq avatar Nov 04 '21 05:11 chenyu-zyq

Hello @chenyu-zyq! Thank you for the report.

I can confirm this issue. This issue also occurs in: Checkbox, Radio Button, Text Field, Textarea, Button.

KarolDawidziuk avatar Nov 05 '21 13:11 KarolDawidziuk

Is there a way to solve this problem perhaps I can disable the selection of these form elements? When a form exists in the editor When you click form to get focus, clicking delete will delete all elements****

chenyu-zyq avatar Nov 06 '21 04:11 chenyu-zyq

Same issue with CKEditor version 4.19.0, 4.18.0, 4.17.0, 4.16.2, 4.16.1.

Steps to reproduce (with a checkbox):

  • Toggle editor to source mode
  • Add <input type="checkbox" />
  • Toggle editor to WYSIWYG
  • Click the checkbox to get focus
  • Delete

Result: All elements will be deleted

Works properly in CKEditor version 4.16.0.

Skkay avatar Jun 17 '22 08:06 Skkay