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

Editor (angular) - text area not editable anymore

16 Answers 756 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Casimodo
Top achievements
Rank 1
Casimodo asked on 08 Jul 2015, 04:46 PM

Hi,

as of v2015.2.624 the text area of the editor is not editable anymore when used with angular. Dunno if this applies only to angular apps.

See this dojo.

Regards,
Kasimier Buchcik

16 Answers, 1 is accepted

Sort by
0
Casimodo
Top achievements
Rank 1
answered on 10 Jul 2015, 06:56 PM
Anyone? Is this a bug, or am I doing something wrong?
0
Casimodo
Top achievements
Rank 1
answered on 10 Jul 2015, 08:40 PM
Here's an updated dojo (the previous had its head in the wrong place :-))
0
Casimodo
Top achievements
Rank 1
answered on 10 Jul 2015, 08:49 PM

I tried this dojo with Q1 ".../2015.2.624/js/kendo.all.min.js" and it works fine.

On the other hand using Q2 ".../2015.1.429/js/kendo.all.min.js" does not work.

So this seems very likely related to the new Q2 release.

0
Alex Gyoshev
Telerik team
answered on 13 Jul 2015, 05:24 AM

Hello Casimodo,

Thank you for reporting this. It appears to be a problem related to the editor being in a mobile application. We have logged the problem for investigation. See this Dojo snippet for a workaround until the problem is resolved.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Casimodo
Top achievements
Rank 1
answered on 20 Jul 2015, 03:00 PM

Thanks @Alex!

In the meantime I used a simple textarea. But you found a temporary workaround, so great!

Regards,

Kasimier Buchcik

0
Mike
Top achievements
Rank 1
answered on 29 Feb 2016, 09:24 AM
I am also experiencing the same problem with the 2016 release both in Firefox and Chrome, but this is in a web application, not a mobile app. Any outlook on when this will be fixed please?
0
Ianko
Telerik team
answered on 01 Mar 2016, 11:42 AM
Hello Mike,

Does the workaround provided by Alexander resolves the issue?

Can you reproduce the same in a Dojo |(http://dojo.telerik.com/) so that we can properly investigate it?

Regards,
Ianko
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Boris
Top achievements
Rank 1
Iron
answered on 06 Mar 2016, 02:39 PM

Hello lanko,

same over here.I get an empty editor without any ability to edit:

<textarea cols="40" name="recipe_introduction" id="id_introduction" rows="20"></textarea>

<script type="text/javascript">

$(document).ready(function(){ $("#id_introduction").kendoEditor({value: "test", resizable: {"content": true, "toolbar": true}, }); });

</script>

0
Ianko
Telerik team
answered on 07 Mar 2016, 06:25 AM
Hello Boris,

I used the provided code in a Dojo (http://dojo.telerik.com/osUbA) and I am unable to encounter any issues regarding Kendo Editor. Can you see if there is anything further that should be added to the scenario so that the issue to be reproduced in a Dojo?

Regards,
Ianko
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Boris
Top achievements
Rank 1
Iron
answered on 07 Mar 2016, 01:01 PM
Hello and thanks for the quick response. What I found out so far, is that the editor works outside a form, inside a form, but not inside a tab inside a form. The symptoms are: the given value is not shown inside the editor, its just empty and you dont get a cursor when clicking inside the text area. I'm trying to find out more...
0
Mike
Top achievements
Rank 1
answered on 07 Mar 2016, 03:05 PM

I can confirm, the problem I am having is when the kendo-editor text area is inside a kendo-tab-strip pane which is inside a form.

 

Mike Tunstall

0
Ianko
Telerik team
answered on 08 Mar 2016, 06:29 AM
Hi Mike and Boris,

Thank you for getting back. I suggest you to try and replicate the issue in a Dojo. That will enable me to explore the code involved in this scenario and directly reproduce the issue. 

On a side note, a possible solution is to call the editor's refresh() method when the tab's container is shown (you can use the TabStrip activate event for that).

Regards,
Ianko
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Boris
Top achievements
Rank 1
Iron
answered on 08 Mar 2016, 09:55 AM

Hello Ianko,

I already found out about the necessity for a refresh whenever an editor is moved around in the DOM (which happens when you use a tab strip). So this was exactly the issue here, inserting

$("#id_introduction").getKendoEditor().refresh();

after the tab strip initialization did the job. Thanks again  you for your help.

0
Mike
Top achievements
Rank 1
answered on 08 Mar 2016, 10:14 AM

I have created a Dojo as requested http://dojo.telerik.com/@MikeT5/oPEFI

 

Mike

0
Mike
Top achievements
Rank 1
answered on 08 Mar 2016, 12:06 PM

I have created a second Dojo this one applies the Leverage Widget References in the A Few Angular Kendo UI Best Practices  and sets the kendo-editor="keditor" to try and write data to the console, on execute, refresh or change, but the kendo editor is still not editable. Not sure if I am missing something.

 

Mike

0
Mike
Top achievements
Rank 1
answered on 08 Mar 2016, 12:28 PM

Found the solution Dojo

 

kendo-editor="keditor"

then add the following to the controller

$scope.$on("kendoRendered", function(e) {
              $scope.keditor.refresh();
        });

 

Mike

 

 

Tags
Editor
Asked by
Casimodo
Top achievements
Rank 1
Answers by
Casimodo
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Mike
Top achievements
Rank 1
Ianko
Telerik team
Boris
Top achievements
Rank 1
Iron
Share this question
or