Opened 12 years ago
Last modified 12 years ago
#9818 confirmed Bug
hidden field id deleted
Reported by: | RosemaryONeill | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.3 |
Keywords: | Cc: |
Description
After viewing or changing the properties of a hidden field, the id is completely removed.
It would be best if only the properties exposed in the dialog -- name and value -- are affected by viewing or changing.
This does not seem to happen with any other form field.
Change History (5)
comment:1 Changed 12 years ago by
comment:3 Changed 12 years ago by
Status: | new → confirmed |
---|---|
Version: | → 3.3 |
Menu for hidden filed has been available from CKEditor 3.3 thus this is version I'm setting.
In CKE 3.0-3.2.2 only insertion of real hidden field element (which is invisible) was possible.
In CKE 3.3 hidden filed is replaced by fake element.
Problem:
- Go to \ckeditor4\plugins\forms\dialogs\hiddenfield.js. If you console.log (
element
objectelement = editor.restoreRealElement( this.hiddenField);
) you will notice that it contains id among few other attributes. - The problem is that attributes are not rewritten and original element object gets simply overwritten with newly created
element = CKEDITOR.env.ie && ... ? editor.document.createElement ...
comment:5 Changed 12 years ago by
Thank you for confirming this.
When do you think this problem can be addressed?
Just to clarify, when a hidden field is viewed or changed, this:
<input id="myhiddenfield" name="myhiddenfield" value="thisvalue" />
becomes this:
<input name="myhiddenfield" value="thisvalue" />