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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| <!DOCTYPE html>
| <html>
| <head>
| <meta charset="UTF-8">
| <title>wangEditor 配置表情</title>
| </head>
| <body>
| <p>wangEditor 配置表情</p>
| <div id="div1">
| <p>欢迎使用 wangEditor 富文本编辑器</p>
| </div>
|
| <script type="text/javascript" src="/wangEditor.min.js"></script>
| <script type="text/javascript">
| var E = window.wangEditor
| var editor = new E('#div1')
| editor.customConfig.emotions = [
| {
| // tab 的标题
| title: '默认',
| // type -> 'emoji' / 'image'
| type: 'image',
| // content -> 数组
| content: [
| {
| alt: '[坏笑]',
| src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/50/pcmoren_huaixiao_org.png'
| },
| {
| alt: '[舔屏]',
| src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/40/pcmoren_tian_org.png'
| },
| {
| alt: '[污]',
| src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3c/pcmoren_wu_org.png'
| },
| {
| alt: '[允悲]',
| src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/2c/moren_yunbei_org.png'
| }
| ]
| },
| {
| // tab 的标题
| title: '新浪',
| // type -> 'emoji' / 'image'
| type: 'image',
| // content -> 数组
| content: [
| {
| src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/7a/shenshou_thumb.gif',
| alt: '[草泥马]'
| },
| {
| src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/60/horse2_thumb.gif',
| alt: '[神马]'
| },
| {
| src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/fuyun_thumb.gif',
| alt: '[浮云]'
| }
| ]
| },
| {
| // tab 的标题
| title: 'emoji',
| // type -> 'emoji' / 'image'
| type: 'emoji',
| // content -> 数组
| content: '😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😜 😝 😛 🤑 🤗 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😤 😠 😡 😶 😐 😑 😯 😦 😧 😮 😲 😵 😳 😱 😨 😰 😢 😥 😭 😓 😪 😴 🙄 🤔 😬 🤐'.split(/\s/)
| },
| {
| // tab 的标题
| title: 'emoji手势',
| // type -> 'emoji' / 'image'
| type: 'emoji',
| // content -> 数组
| content: ['🙌', '👏', '👋', '👍', '👎', '👊', '✊', '️👌', '✋', '👐', '💪', '🙏', '️👆', '👇', '👈', '👉', '🖕', '🖐', '🤘']
| }
| ]
| editor.create()
| </script>
| </body>
| </html>
|
|