Rumah >hujung hadapan web >html tutorial >[转]OBOUT ASP.NET HTML Editor
本文转自:http://www.obout.com/editor_new/sample_InsertHTML.aspx
Example demonstrates how to access HTML Editor's content at current selection/caret position from "outside" component.
Example code
<script type="text/JavaScript">function Insert(){ oboutGetEditor('editor').InsertHTML("<a href='mailto://support@obout.com'>Obout support</a>");}</script> <input type="button" onclick="Insert();" value="Insert Obout support link"/> <ed:Editor id="editor" runat="server" />
具体实例效果见 http://www.obout.com/editor_new/sample_InsertHTML.aspx