Opened 16 years ago
Closed 15 years ago
#4056 closed Bug (fixed)
Hidden field problem
Reported by: | Garry Yao | Owned by: | Minh Nguyen |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.3 |
Component: | General | Version: | |
Keywords: | Confirmed Review+ | Cc: | matti.jarvinen@…, matthewlefflercomputer@… |
Description (last modified by )
There were many problems with hidden fields.
Reproducing Procedures
- Open the "replace by class" page, insert a form;
- Insert a hidden field with all attributes specified
- Actual Result in Firefox: The inserted is not visible.
- Right click the hidden field to open context menu
- Actual Result: The hidden field property entry is missing
- Click to open the hidden field dialog again;
- Actual Result: All the attributes of it are lost.
Attachments (4)
Change History (27)
comment:1 Changed 16 years ago by
Milestone: | CKEditor 3.0 → CKEditor 3.1 |
---|
comment:2 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Keywords: | IE removed |
comment:4 Changed 15 years ago by
Keywords: | Confirmed added |
---|---|
Milestone: | CKEditor 3.1 → CKEditor 3.x |
Summary: | [IE6] Hidden field problem → Hidden field problem |
comment:5 follow-up: 6 Changed 15 years ago by
Cc: | matti.jarvinen@… added |
---|
FF doesn't show context menu for select, radio and checkbox and those cannot be selected by clicking either.
Fix in V2 replaces the checkbox, radio button and select box with clickable placeholders.
Could you give me a short description on how to make fake elements with CKEditor and how to use them? Pseudo code example will do (just to get me on the right track) so I can asses how much work would go into fixing this.
comment:6 Changed 15 years ago by
Replying to matti:
Could you give me a short description on how to make fake elements with CKEditor and how to use them? Pseudo code example will do (just to get me on the right track) so I can asses how much work would go into fixing this.
Take a look at the "link" plugin, which creates fake elements for anchors. It should give you some hints on this.
comment:7 Changed 15 years ago by
I don't have svn version at hand so no patches here only changed files. Fixes radio, checkbox and hiddenfield with fake elements. Images are from V2 fix.
Few questions:
- Is creation of new html element required every time ( Always create a new anchor, because of IE BUG.)?
- How could this be redisigned to use original field commit methods?
- Any thoughts on select element, how that should be fixed for FF?
Comments please. We really would appreciate this to be fixed in next release.
comment:8 Changed 15 years ago by
Milestone: | CKEditor 3.x → CKEditor 3.3 |
---|
We should have a fake element for hidden fields (V2) (@matti, I didn't look at your changes).
comment:11 Changed 15 years ago by
Cc: | matthewlefflercomputer@… added |
---|
Changed 15 years ago by
Attachment: | 4056.patch added |
---|
comment:13 follow-up: 16 Changed 15 years ago by
Keywords: | Review? added |
---|---|
Owner: | set to Minh Nguyen |
Status: | new → assigned |
comment:14 follow-up: 15 Changed 15 years ago by
I'd would prefer to see someone fix this so that it uses setup and commit (easier to modify if needed for some reason).
Notice that my original zip has fixes for radio and checkbox too (which cannot be modified once created atleast on FF3.6).
comment:15 Changed 15 years ago by
Replying to matti:
I'd would prefer to see someone fix this so that it uses setup and commit (easier to modify if needed for some reason).
I can't see how this could improve maintainability.
Notice that my original zip has fixes for radio and checkbox too (which cannot be modified once created atleast on FF3.6).
We'll have a new ticket to discuss the trade-off to apply this also to checkbox etc.
comment:16 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
comment:17 follow-up: 19 Changed 15 years ago by
Replying to garry.yao:
I can't see how this could improve maintainability.
Sorry I should have been more precise what I ment was that patch doesn't use commit and setup functions of dialog definition and it makes it hard to add more dialog properties for the input by extending if needed.
For example we use additional required attribute for checkbox and some other inputs ( that is parsed within our cms when displaying, posting and receiving the form ). Without dialogdefinition.contents[].commit and setup functions we have to overwrite all of the onOK function to achieve this.
Replying to garry.yao: zip has this on plugin.js line 225 -> 274 though needs some work if radio and checkbox is not handled at the same time.
Changed 15 years ago by
Attachment: | 4056_2.patch added |
---|
comment:18 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
comment:19 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
Replying to matti:
Replying to garry.yao:
I can't see how this could improve maintainability.
Sorry I should have been more precise what I ment was that patch doesn't use commit and setup functions of dialog definition and it makes it hard to add more dialog properties for the input by extending if needed.
I got your points, it would be better if fields commit directly to the real element while the fake elements are created from it at end, transparently from the user.
comment:20 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
comment:21 follow-up: 22 Changed 15 years ago by
Keywords: | Review+ added; HasPatch Review? removed |
---|
Please cleaning up coding styles and make sure the fake element image file is committed, also note that the commit should fall into to 3.2.x branch instead of trunk.
comment:22 Changed 15 years ago by
Replying to garry.yao:
Please cleaning up coding styles and make sure the fake element image file is committed, also note that the commit should fall into to 3.2.x branch instead of trunk.
Typo: 3.3.x branch.
Accumulate Firefox problem.