This is a migrated thread and some comments may be shown as answers.

Editor Issue on Ipad

5 Answers 129 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hubert
Top achievements
Rank 1
Hubert asked on 04 Jul 2012, 02:03 PM
Hi,

I am having Issue on Ipad on using the editor. 

When I write a very long line without any space or break.

example:
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

This line will flow over the editor.

On PC (non-ipad) the editor automatically has a horizontal scroll-bar, but not on Ipad.

Does anyone ever encounter this problem. Did I missed anything in the setting.

The was I set up the editor is pretty straight forward.
$('#some-textarea').kendoEditor({ tools: ["bold", "italic"] });

Thanks in advance,
Hubert


5 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 04 Jul 2012, 02:49 PM
Hello Hubert,

We have just reproduced the issue. Alas, there is no simple fix for this bug, as the editor uses an iframe and iOS tries to show all its content. We have logged this for further investigation.

A work-around for this is to set the width of the body element in the iframe, like this:

    var editor = $("#editor")
    editor.data("kendoEditor").body.style.width = editor.find("td:last").width() + "px";


Please note that this width should be updated on every window resize / orientationchange.

Your Telerik points have been updated for the bug report.

All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 2
answered on 10 Dec 2012, 09:12 PM
hi!

is there any fix submitted for iPad?
0
Dimo
Telerik team
answered on 13 Dec 2012, 04:59 PM
Hi Igor,

I am afraid we cannot offer any more information on the problem or its resolution at this point.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
ScholarisPM
Top achievements
Rank 1
answered on 14 May 2013, 09:53 AM
Hi Guys,
We have the same problem with the editor height on the iPad but setting the height style element does not actually work. Is there a work around for this variant

How are you going with finding a more permanent solution for this issue

Keep up the good work
Thanks
Craig
0
Dimo
Telerik team
answered on 14 May 2013, 10:10 AM
Hello,

We are currently adding support for contentEditable <div> elements for the Editor, which should resolve the problem. The new feature is scheduled for Q2 2013.

Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Hubert
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Igor
Top achievements
Rank 2
Dimo
Telerik team
ScholarisPM
Top achievements
Rank 1
Share this question
or