Opened 15 years ago
Closed 14 years ago
#5522 closed Bug (fixed)
IE Fails to apply type="text" attribute to Text Fields
Reported by: | Jerry Martinez | Owned by: | Alfonso Martínez de Lizarrondo |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.1 |
Component: | UI : Context Menu | Version: | 3.4.1 |
Keywords: | Cc: |
Description
Descriptive summary: When creating a Text Field element of type="text" Internet Explorer does not apply the 'type' attribute to the input tag. Because of this, the Context Menu for the same Text Field element will NOT display if accessed using FireFox.
This bug was realized since our application saves HTML into a database where users can modify the markup using CKEDITOR. Some of our users use Internet Explorer while others use FireFox.
Steps to reproduce: Using Internet Explorer:
- Create a sample Text Field element.
- Toggle 'Source' mode and copy the HTML which may look like this:
<p> <input maxlength="5" name="testName" size="5" value="testValue" /></p>
Using FireFox:
- Toggle 'Source' mode and paste the above HTML.
- Toggle off 'Source' mode back to Editor mode.
- Right click on the created Text Field and you will notice that the option "Text Field Properties" is not present.
Verified With: CKEDITOR 3.2.1 using IE7 & FF 3.5.9 CKEDITOR 3.2.2 SVN using IE7 & FF 3.5.9
Attachments (2)
Change History (11)
Changed 14 years ago by
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 3.2.1 → 3.4.2 |
comment:2 Changed 14 years ago by
Keywords: | HasPatch added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Version: | 3.4.2 → 3.4.1 |
If you close a ticket, then no one will look at it. Please, read the Ticket life cycle
comment:3 Changed 14 years ago by
Keywords: | HasPatch removed |
---|---|
Owner: | set to Alfonso Martínez de Lizarrondo |
Status: | reopened → review |
The patch fixes the problem, but while testing it be aware of #6646 because the context menu won't work when the content is reloaded.
comment:4 Changed 14 years ago by
Note: IE8 in standards mode works correctly by default, the lack of type="text" is only present in compatibility mode or old versions.
comment:6 Changed 14 years ago by
Status: | review → review_failed |
---|
Why we're still keeping the last chunk of the patch (being text type as the default)?
comment:7 Changed 14 years ago by
Status: | review_failed → review |
---|
Yes, we cold skip those two lines, but on the other hand it will avoid changes to the source if the content is first created with a compliant browser that generates the type="text" and then edited with IE that will remove it.
comment:8 Changed 14 years ago by
Status: | review → review_passed |
---|
comment:9 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6296]
This is a patch, not a solution to the problem. The solution would be to ensure that the 'type' attribute gets inserted in IE.
This patch allows the context menu to work properly for input elements missing a 'type' attribute.
First time contributing. I am not sure I followed the correct steps. I basically edited the ckeditor/_soource/plugins/forms/plugin.js file from the nightly build.