Opened 11 years ago

Last modified 11 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 11 years ago by RosemaryONeill

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" />

comment:2 Changed 11 years ago by RosemaryONeill

Would someone please look into this.

comment:3 Changed 11 years ago by Jakub Ś

Status: newconfirmed
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:

  1. Go to \ckeditor4\plugins\forms\dialogs\hiddenfield.js. If you console.log ( element object element = editor.restoreRealElement( this.hiddenField); ) you will notice that it contains id among few other attributes.
  2. 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:4 Changed 11 years ago by Jakub Ś

This is also happening in CKE 4.x (v4).

comment:5 Changed 11 years ago by RosemaryONeill

Thank you for confirming this.

When do you think this problem can be addressed?

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy