-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
61 lines (61 loc) · 1.75 KB
/
index.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://avatars.githubusercontent.com/u/87648636?s=60&v=4" type="image/x-icon">
<title>Tinymce-plugin</title>
<style>
.open-plugin{
width:150px;
height: 30px;
display: flex;
padding: 0px 10px;
background-color:rgb(27, 79, 234);
border-radius:5px;
color:white;
font-size:0;
text-align:center;
cursor:pointer;
align-content: space-around;
flex-wrap: nowrap;
align-items: center;
justify-items: center;
}
.open-plugin img{
display: block;
width: 20px;
height: 20px;
}
.open-plugin span{
display: inline-block;
height:20px;
line-height:20px;
vertical-align: middle;
margin-left:10px;
font-size:14px;
}
</style>
</head>
<body>
<div>
<textarea class="tinymce">
<p>这是一个插件测试</p>
</textarea>
</div>
<div style="height: 60px;"></div>
<div id="tinymce-app2">
<div class="tinymce-box" style="color: #000;">
<div class="tinymce-cnt" id="mytextarea">
<p>This is the initial content of the editor</p>
</div>
</div>
</div>
<div>
<p></p>
<a onclick="openPlugin()" class="open-plugin" title="点击调用触发插件" ><img src="https://avatars.githubusercontent.com/u/87648636?s=60&v=4" alt=""><span>点击调用触发插件</span></a>
</div>
<script type="module" src="./demo/demo.ts"></script>
</body>
</html>