Opened 6 years ago

Last modified 5 years ago

#9460 new Bug

[iOS] CKE4 nighly build; Selection lost when selecting font menu

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: iOS Cc: camden.michael@…

Description

On the latest version of iOS 6, on the iPad 2 you cannot use the Rich Combo Fields, you lose your selection and the style is not applied. Steps to reproduce;

  1. Access the nightly build demo site on device (At the time of writing): http://nightly-v4.ckeditor..com/3571/samples/divarea.html
  2. Create a selection around some text (doesn't matter what text is selected, just that there is a selection of text)
  3. Tap on the 'Font' menu

Result:
Page "jumps up", selection is lost but menu appears. Cannot tap on any item in the menu, tapping on the menu items causes the menu to disappear and restore the cursor on the editor. Selection is lost; cursor seems to appear where you attempted to tap on the menu item.

Expected result:
The menu should work like the desktop experience.

Change History (7)

comment:1 Changed 6 years ago by Michael Camden

Cc: camden.michael@… added

Any updates on this issue? It should be mentioned that this problem can occur on any version of the iPad that is running iOS 6.

comment:2 Changed 6 years ago by Jakub Ś

There are no plans for iOS right now. We'll be reviewing its status at the beginning of 2013.

Currently we are working to get best performance for CKEditor 4.0 which is planned to be released soon. After this is done the review should start.

comment:3 Changed 6 years ago by travis@…

Hey, we are still waiting for an update to this issue - it is fairly detrimental to the experience on the iPad. Any updates?

Thanks,

--Travis

comment:4 Changed 6 years ago by Jakub Ś

We have released CKEditor 4 and now we are finishing work on CKEditor for Drupal integration which is our second main priority.

As for mobile devices, yes we are planning to work on this but I can't say anything more :).

comment:5 Changed 6 years ago by Rob F.

This issue is affecting us as well. The font menus are basically unusable, and we have 2 other in-house plugins that use richcombo which also suffer from this.

comment:6 Changed 6 years ago by Rob F.

Some additional information that may help:

  1. The richcombo menu closes in response to a blur event which is getting fired. The callstack I was able to track down for this: (note: these line numbers are from CKEditor 3.6.4 but the same behavior is happening under 4.0.1, as far as I can tell)
    onHide (richcombo/plugin.js:257)
    hide (floatpanel/plugin.js:375)
    focused.on('blur', fn) (floatpanel/plugin.js:177)
    listenerFire (core/event.js:157)
    [fire()] (core/event.js:252)
    [getNativeListener()] (core/dom/domobject.js:48)
    
  2. If I inspect the source and find the JS call that's embedded in the onclick of the elements inside the iframe (for the richcombo), I can get it to trigger the expected behavior. Example:
    // generated by a custom plugin that uses richcombo:
    CKEDITOR.tools.callFunction(102,'[Contact First Name]');
    

So if I inspect the page source and grab that function and then execute it by pasting it into the debugger console, then it works -- and (in my custom plugin's case) the content gets inserted into the CKEditor instance. What appears to be happening is that the blur event (above) is firing and closing the richcombo/floatpanel but the click event is never firing (or else is getting canceled?)

comment:7 Changed 5 years ago by Jakub Ś

Summary: iOS6; CKE4 nighly build; Selection lost when selecting font menu[iOS] CKE4 nighly build; Selection lost when selecting font menu
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy