You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
klintersrv/editor/_example/clientapi.htm

60 lines
2.3 KiB

3 months ago
<HTML>
<HEAD>
<TITLE>eWebEditor <EFBFBD><EFBFBD> <EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD>APIʾ<EFBFBD><EFBFBD></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel='stylesheet' type='text/css' href='example.css'>
</HEAD>
<BODY>
<p><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <a href="default.htm">ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ</a> &gt; <EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD>APIʾ<EFBFBD><EFBFBD></b></p>
<p><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>eWebEditor<EFBFBD><EFBFBD>Ŀͻ<EFBFBD><EFBFBD><EFBFBD>API<EFBFBD><EFBFBD><EFBFBD>Ա༭<EFBFBD><EFBFBD>ִ<EFBFBD>и߼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>API<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ</p>
<FORM method="post" name="myform" action="retrieve.asp">
<TABLE border="0" cellpadding="2" cellspacing="1">
<TR>
<TD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD></TD>
<TD>
<div>
<INPUT type="hidden" name="content1" value="<font style='color:red'>adfadf</font>">
<IFRAME ID="eWebEditor" onblur='myTextArea.value=eWebEditor.getHTML()' src="../ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
</div>
</TD>
</TR>
<TR>
<TD colspan=2 align=right>
<INPUT type=submit value="<EFBFBD>ύ">
<INPUT type=reset value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<INPUT type=button value="<EFBFBD>鿴Դ<EFBFBD>ļ<EFBFBD>" onclick="location.replace('view-source:'+location)">
</TD>
</TR>
<TR>
<TD>HTML<EFBFBD><EFBFBD><EFBFBD></TD>
<TD><TEXTAREA cols=50 rows=5 id=myTextArea style="width:550px"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD><EFBFBD><EFBFBD></TEXTAREA></TD>
</TR>
<TR>
<TD colspan=2 align=right>
<INPUT type=button value=ֵ(HTML)" onclick="myTextArea.value=eWebEditor1.getHTML()">
<INPUT type=button value=ֵ(<EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>)" onclick="myTextArea.value=eWebEditor1.getText()">
<INPUT type=button value="<EFBFBD><EFBFBD>ֵ" onclick="eWebEditor1.setHTML('<b>Hello My World!</b>')">
<INPUT type=button value="<EFBFBD><EFBFBD>ǰλ<EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD>" onclick="eWebEditor1.insertHTML('This is insertHTML function!')">
<INPUT type=button value=<EFBFBD><EFBFBD>׷<EFBFBD><EFBFBD>" onclick="eWebEditor1.appendHTML('This is appendHTML function!')">
<br>
<INPUT type=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬" onclick="eWebEditor1.setMode('CODE')">
<INPUT type=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬" onclick="eWebEditor1.setMode('EDIT')">
<INPUT type=button value="<EFBFBD>ı<EFBFBD>״̬" onclick="eWebEditor1.setMode('TEXT')">
<INPUT type=button value=<EFBFBD><EFBFBD>״̬" onclick="eWebEditor1.setMode('VIEW')">
<br>
<INPUT type=button value=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="alert(eWebEditor1.getCount(0))">
<INPUT type=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="alert(eWebEditor1.getCount(1))">
<INPUT type=button value="<EFBFBD><EFBFBD>Ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>1)" onclick="alert(eWebEditor1.getCount(2))">
<INPUT type=button value="<EFBFBD><EFBFBD>Ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>2)" onclick="alert(eWebEditor1.getCount(3))">
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>