-
Notifications
You must be signed in to change notification settings - Fork 2
/
Default.aspx
36 lines (33 loc) · 1.54 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="RichWebForms.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css" href="node_modules/devextreme/dist/css/dx.common.css" />
<link rel="stylesheet" type="text/css" href="node_modules/devextreme/dist/css/dx.light.compact.css" />
<link rel="stylesheet" type="text/css" href="node_modules/devexpress-richedit/dist/dx.richedit.css" />
<script src="Scripts/jquery-3.5.1.min.js"></script>
<script src="node_modules/devexpress-richedit/dist/custom/dx.richedit.js"></script>
<script src="Scripts/creator.js"></script>
<script>
$(document).ready(function () {
const rich = createRichEdit($("#rich-container"), {
exportUrl: 'Default.aspx/Export',
document: '<%=InitialDocument%>',
});
window.rich = rich;
});
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="scm" runat="server" EnablePageMethods="true" />
<div>
<button onclick="setDataSource(window.rich, 'Default.aspx/GetDataSource'); return false;">setDataSource</button>
<button onclick="appendMergeFields(window.rich); return false;">addMergeFields</button>
<button onclick="mailMerge(window.rich); return false;">mailMerge</button>
<div id='rich-container' style="width: 100%; height: 900px"></div>
</div>
</form>
</body>
</html>