ckeditor4
ckeditor4 copied to clipboard
The added form cannot be deleted directly
Type of report
Bug
Provide detailed reproduction steps (if any)
- Add form to ckeditor
- Delete form element
- 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
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
.
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****
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.