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

Use In-place editor for headlines H1/H2

3 Answers 203 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 23 Aug 2013, 06:41 AM
Hello,

I tried to integrate the inline editor with headlines. Specifically I want the user being able to change the content between <h1></h1> tags.

1.) I added contentEditable directly to the H1 and H2 tags but it didn't work.
2.) I added contentEditable to a Div Wrapper around the H1 or H2 tag. I allow the user only to change bold/italic/underline style. When the user selects everything and deletes, also the H1 tag within the div wrapper is deleted. So the question is how I need to integrate the inline editor to allow the user to edit the content within the H1 tag without deleting it?

Thanks,

Philip

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 27 Aug 2013, 07:02 AM
Hello Phillip,

I am afraid that this functionality is not supported at this time. You can suggest this on uservoice so that it gains some traction for upcoming releases.

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
Philip
Top achievements
Rank 1
answered on 27 Aug 2013, 08:19 PM
Hello Alex,

Thanks for replying.

I imagine that also other want or already offer editing of headlines alone. Do you have any workaround or any other solution?

Philip
0
Alex Gyoshev
Telerik team
answered on 28 Aug 2013, 12:31 PM
Hello Phillip,

We have made some improvements scheduled for the next internal build that will allow instantiating the editor from a heading element. Since these builds are available for customers with a subscription, you can edit the source code of the editor to allow it to be instantiated from other elements (see for a white-list of tags in the editor constructor).

Also, please note that while the editor will be functional in heading tags, it will allow lots of tags to be inserted, and needs to be configured properly so that only valid markup is produced.

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