⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editorl.ascx

📁 如果不使用IIS,请先运行 XSP.exe,待提示已侦听 8080端口后
💻 ASCX
字号:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="editorl.ascx.vb" Inherits="htmleditor_editorl" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>


<%  Dim hvariable As String = "V" & DateTime.Now.ToFileTime().ToString() & "V"%>
<script type="text/javascript"  >
var <% =hvariable %> = 300;

function addheight(editor,v)
{
    var e=document.getElementById(editor);
    
    if(<% =hvariable %>+v>50)
        <% =hvariable %>+=v;
    e.style.height=<% =hvariable %>+'px';
}
</script>

<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/fckeditor/"
  DefaultLanguage="zh-cn" 
     >
    </FCKeditorV2:FCKeditor>
<div style="text-align:right "> 
<input type="button" value =" + " onclick="addheight('<%= fckeditor1.clientid & "___Frame" %>',50)" /> 
<input type="button" value =" - " onclick="addheight('<%= fckeditor1.clientid & "___Frame" %>',-50)" /> 

</div> 

<script type="text/javascript"  >
    var defheight=<%= Height %>;
    
    if(defheight>=300)
    {
        var e=document.getElementById('<%= fckeditor1.clientid & "___Frame" %>');
        e.style.height=defheight+'px';
        <% =hvariable %>=defheight;
    }
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -