Opened 13 years ago

Last modified 12 years ago

#8138 confirmed Bug

Arrow keys stop working after hide-show cycle

Reported by: Paweł Owned by:
Priority: Normal Milestone:
Component: General Version: 3.3
Keywords: Firefox Cc:

Description

This bug is similar to http://dev.ckeditor.com/ticket/6788.

This happens when you use CKEditor in tab elements. After hide & show CKeditor I can't move cursor with arrow buttons.

To reproduce the bug go into online demo and type the following into your javascript console:

$('.demoInside').hide();
$('.demoInside').show();

Place your cursor and try to move left / right using the arrow keys.

Firefox 5 (Win7)

Attachments (1)

Desktop.zip (264.8 KB) - added by Jakub Ś 13 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by Jakub Ś

Keywords: Firefox5 added; cursor disappears lost focus removed
Status: newconfirmed
Version: 3.6.13.3

To reproduce:

  1. Open attached demo page (it is set to CKE version 3.3)
  2. In firebug console execute hide command first
  3. As Second execute show command
  4. Just in case you can also execute both commands (look at code below):
     $('.demoInside').hide();
     $('.demoInside').show();
     $('.demoInside').hide();$('.demoInside').show();
    

When I tried to run only both commands in one line I was not able to reproduce the problem but when I ran them separately the problem occurred.

Changed 13 years ago by Jakub Ś

Attachment: Desktop.zip added

comment:2 Changed 13 years ago by Alfonso Martínez de Lizarrondo

I had today a similar problem (but due to a change setting position:relative) and I've filed this bug in Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=682712

comment:3 Changed 12 years ago by Jakub Ś

Keywords: Firefox added; Firefox5 removed

In Firefox 9 if you execute the below code you will get the same result:

document.getElementById( "cke_editor1" ).style.position = "absolute";

comment:4 Changed 12 years ago by Jakub Ś

#8653 was marked as duplicate.

comment:5 Changed 12 years ago by Jakub Ś

#8909 was marked as duplicate.

comment:6 Changed 12 years ago by chriscinelli

Do you guys have any plan to fix this? Not all the users have FF11 installed and in dynamic page with multiple textareas having the hide/show behavior is pretty common. This is limiting a lot where you can use the CKEditor

comment:7 Changed 12 years ago by Jakub Ś

This is limiting a lot where you can use the CKEditor

What about using as a workaround technique presented in Ajax Sample http://nightly.ckeditor.com/7478/_samples/ajax.html Result is the same.

Alternatively there is also "replace div on the fly" (there is no hiding in this case) http://nightly.ckeditor.com/7478/_samples/divreplace.html

There is more than one way to skin a cat.

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