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

[Solved] Add attribute id to the header tags

1 Answer 13 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Satish
Top achievements
Rank 1
Satish asked on 09 Aug 2012, 10:29 PM
Hi,

We have a requirement in our project which is using telerik MVC editor, to add attribute "id" to header tags that are added using format code block.

And also when we apply headers using this "format code block", header tag is applied to whole paragraph. It has to be limited to the selected text.

Any input in this regard is highly appreciated.

Thx.

1 Answer, 1 is accepted

Sort by
0
Satish
Top achievements
Rank 1
answered on 05 Sep 2012, 05:56 PM
Thx, we have worked on the requirement and came up with a solution. We are using header ids to insert anchor tags to these headers at start of the page (kindoff bookmarking).

However, we have an issue with the editor. If we copy these anchor tags and paste it in other location, editor takes it as a absolute location rather than the relative path.

<a href="#article1">Link</a>
 
Transforms to
 
<a href="http://localhost:1010/index#article1">Link</a>

Any input in this regard is highly appreciated.

Thx.
Tags
Editor
Asked by
Satish
Top achievements
Rank 1
Answers by
Satish
Top achievements
Rank 1
Share this question
or