2020年9月17日 星期四

[研究][ASP.NET] TinyMCE 5.4.2 WYSIWYG HTML Editor 試用

[研究][ASP.NET] TinyMCE 5.4.2 WYSIWYG HTML Editor 試用

2020-09-17

Visual Studio 2019 + ASP.NET + WebForm ( WebApplication)





Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TinyMCETest.Default" %>

<!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="scripts/tinymce/tinymce.js"></script>
    <script>
        tinymce.init({
            selector: '#TextBox1'
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Rows="5" Columns="20"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="Button" />
        </div>
    </form>
</body>
</html>




(完)

沒有留言:

張貼留言