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

Why does Editor use TextArea instead of contenteditable element?

4 Answers 383 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Zohar
Top achievements
Rank 1
Zohar asked on 26 Jan 2015, 10:10 PM
I am trying to use the kendo-editor angular directive in my app and am having problems because the directive only works on text areas.

More specifically I need to integrate it with another directive that only works on contenteditable elements.  Is there a way to get kendo-editor to work in a contenteditable div?

4 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 27 Jan 2015, 09:16 AM

Hello Zohar,

The inline editing mode of the editor uses a contentEditable div. Both modes have their uses -- the regular mode provides isolation from the surrounding page via an contentEditable iframe, while the inline editing provides a good user experience for editing complete pages.

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
Zohar
Top achievements
Rank 1
answered on 27 Jan 2015, 03:56 PM
Hi Alex,

Thanks for your response. I cant seem to find a way to implement inline editing with the kendo angular directive.. Placing the directive on a div has no effect. IE the editor does not show up.

Is there a way to use the angular directive inline?

Thanks
0
Alex Gyoshev
Telerik team
answered on 29 Jan 2015, 08:44 AM

Hello Zohar,

Here is a Dojo snippet that shows the inline editor instantiated via a AngularJS directive.

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
Zohar
Top achievements
Rank 1
answered on 29 Jan 2015, 05:33 PM
Perfect... Thanks!
Tags
Editor
Asked by
Zohar
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Zohar
Top achievements
Rank 1
Share this question
or