我想在 Telerik radeditor 中有一个像目录这样的词。我已经启用它来编辑列表项,所以在 sharepoint 的列表项显示中,目录应该通过向下滚动到正确的标题来工作。我尝试使用如下锚标记添加一个片段,但它会在一个新窗口中以 dispform 的形式打开链接。有任何想法吗?谢谢
<snippet name="Table of Content">
<![CDATA[
<a href="#one">One</a>
<br/>
<a href="#two" >Two</a>
<br/>
<a href="#three" >Three</a>
<br/>
<a href="#four" >Four</a>
<br/>
<a href="#five" >Five</a>
<br/>
<a href="#six" >Six</a>
<br/>
<a href="#seven" >Seven</a>
<br/>
<a href="#eight">Eight</a>
<br/>
<a href="#nine">Nine</a>
<br/>
<a href="#ten" >Ten</a>
<br/>
<a name="one" />
<h1>This is number One</h1>
<br/>
<a name="two" />
<h1>This is number Two</h1>
<br/>
<a name="three" />
<h1>This is number Three</h1>
<br/>
<a name="four" />
<h1>This is number Four</h1>
<br/>
<a name="five" />
<h1>This is number Five</h1>
<br/>
<a name="six" />
<h1>This is number Six</h1>
<br/>
<a name="seven" />
<h1>This is number Seven</h1>
<br/>
<a name="eight" />
<h1>This is number Eight</h1>
<br/>
<a name="nine" />
<h1>This is number Nine</h1>
<br/>
<a name="ten" />
<h1>This is number ten</h1>
<br/>
]]>
</snippet>