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

Kendo UI Editor Issue

3 Answers 58 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sebahattin
Top achievements
Rank 1
Sebahattin asked on 07 Mar 2017, 09:13 AM

We have a requirement where, we are generating controls dynamically.
If I directly put this in html, then it’s working without any problem.
<textarea id="665" tabindex="1" class="rTFStyle" kendo-editor k-ng-model="richTextEditor_665" k-tools="['bold','italic','underline','strikethrough','justifyLeft','justifyCenter','justifyRight','justifyFull','insertUnorderedList','insertOrderedList','indent','outdent']"></textarea>

but if I use it with $compile then it is not working as expected

 

var html = “<textarea id="665" tabindex="1" class="rTFStyle" kendo-editor k-ng-model="richTextEditor_665" k-tools="['bold','italic','underline','strikethrough','justifyLeft','justifyCenter','justifyRight','justifyFull','insertUnorderedList','insertOrderedList','indent','outdent']"></textarea>”<br>$('#myTabContent2').html($compile(html)($scope))

in previous versions it was working fine.
I have latest version of kendo now Kendo UI v2017.1.223(kendo ui 2017 Q1 sp1).
I got the following errors.

3 Answers, 1 is accepted

Sort by
0
Joana
Telerik team
answered on 08 Mar 2017, 12:23 PM

Hello Sebahattin,

Could you please provide a sample with the code in which illustrates the working code with other versions? I am sending you a sample how to achieve the scenario with dynamic insertion: http://dojo.telerik.com/@jivanova/ufIFA.

Regards,
Joana
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sebahattin
Top achievements
Rank 1
answered on 09 Mar 2017, 08:13 AM
Hello Joana,
Thank you for your reply, as per your suggestion I created template on dojo : http://dojo.telerik.com/iyuKe
I am successfully able to reproduce issue on latest version 2017 Q1 SP1
I am using directly like this
$('#myTabContent2').html($compile(html)($scope));

And our older version is 2015 Q1 sp1
In my example you change version to latest then you can see the error.
I updated my code as you suggested and problem resolved.
But I think you should also fix that.

Thanks
0
Joana
Telerik team
answered on 09 Mar 2017, 11:55 AM

Hello Sebahattin,

 

I am glad that the solution has worked for you. We'll review the regression and will log it in our backlog.

 

I have updated your Telerik points for your report.

 

Regards,
Joana
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Sebahattin
Top achievements
Rank 1
Answers by
Joana
Telerik team
Sebahattin
Top achievements
Rank 1
Share this question
or