xheditor上傳圖片配置


二、

 

源碼:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Xeditor.aspx.cs" Inherits="Xeditor" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="xheditor/jquery/jquery-1.4.4.min.js"></script>
    <script src="xheditor/xheditor-1.2.1.min.js"></script>
    <script src="xheditor/xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
    $(pageInit);
    function pageInit() {
        $.extend(XHEDITOR.settings, { shortcuts: { 'ctrl+enter': submitForm } });
        $('#elm4').xheditor({ upImgUrl: "xheditor/upload.aspx", upImgExt: "jpg,jpeg,gif,png" });
    }
    function submitForm() { $('#frmDemo').submit(); }
</script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <textarea id="elm4" name="elm4" rows="12" cols="80" style="width: 80%">
內容內容內容內容內容內容內容內容內容內容內容內容內容內容內容內容內容
    </textarea><br /><br />
        </div>
    </form>
</body>
</html>

 

asdf


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM