Opened 14 years ago
Closed 11 years ago
#7770 closed Bug (fixed)
JS errors when selecting noneditable text in FF4
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Firefox4 | Cc: |
Description
I have found this bug when testing #7694
- Open Ajax sample
- Copy the below code and paste it in source mode:
<p>paragraph [one</p> <div contenteditable="false">none editable block</div> <p>paragraph] two</p>
- Switch to WYSIWYG mode
- Select whole "none editable block" text with a mouse and click on a size combo box. The JS error may be thrown
- If size combo is shown and no error is not thrown, than select size, click on font combo select a font, deselect the text by clicking on “paragraph] two”, select whole text again and click on size combo.
- If still can not reproduce it, try different combinations with selecting text, deselecting text, clicking on size combo, clicking on font combo. Sooner or later the error should be thrown.
The error is:
Location: _source/plugins/wysiwygarea/plugin.js Message: control.is is not a function
if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) )
plugin.js (Line 653)
Message: ev.getTarget().is is not a function
if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 )
plugin.js (Line 682)
I have managed to reproduce it only in FF4.
Change History (4)
comment:1 Changed 14 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 14 years ago by
Status: | confirmed → pending |
---|
comment:3 Changed 14 years ago by
Status: | pending → confirmed |
---|---|
Version: | 3.3 → 3.0 |
New TC which should be easier to reproduce:
- Open Ajax sample
- Copy the below code and paste it in source mode:
<p>paragraph [one</p> <div contenteditable="false">none editable block</div> <p>paragraph] two</p>
- Switch to WYSIWYG mode
- Select whole "none editable block" text with a mouse and move the selection a little bit to the right (See nonedit.png).
- Click on size combobox. The JS Error is thrown.
The error is:
Location: _source/plugins/wysiwygarea/plugin.js Message: control.is is not a function
if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) )
plugin.js (Line 653)
Message: ev.getTarget().is is not a function
if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 )
plugin.js (Line 682)
I have managed to reproduce it only in FF4 from CKEditor 3.0.
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
Couldn't reproduce any of mentioned issues. We reworked a lot of related code in 4.3, so it was fixed on our side or on FF's side.
WFM in FF4/Win7, can you figure out a stable procedure to reproduce?