ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

Properties of form elements inside table inside inline editor are not preserved #4316

Open topaas20 opened 4 years ago

topaas20 commented 4 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

If you take the source code from https://ckeditor.com/docs/ckeditor4/latest/examples/inline.html (choose “Massive inline editing”) and change line 8:

into

i.e. use the link to ckeditor.js as it is in https://ckeditor.com/docs/ckeditor4/latest/examples/fullpreset.html

You have massive inline editing, with all editor options including forms. Choose a part to edit; Make a form, put a table in this form (which I usually do), and then put a textfield in there, with a name and a width for example. Go one cell down and make another text field. Revisit the first textfield via the contextmenu (right click on the mouse) and select “Text Field Properties”: the name- and width-field are now empty. This also happens with other things like radio, checkbox, selectbox and textarea

See https://jsfiddle.net/p43q0zy6/

Expected result

Entered info on text field (name, width) can be revisited end altered.

Actual result

All infofields for this text field are empty at revisiting via contextmenu

Other details

Checked on Windows 7, Firefox 81, Chrome 86 Windows 10, Chrome 85

Comandeer commented 4 years ago

I've prepared a simpler reproduction demo: https://jsfiddle.net/Comandeer/jkt9x3zL/

  1. Right click on the first textfield.
  2. Open its properties dialog.

The dialog is empty.

The issue is present only in inline editor and inside a table.