diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-10-07 20:40:09 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2020-10-07 20:40:09 +0800 |
| commit | e6f3df7eaf6881a303358289dadb904824872d45 (patch) | |
| tree | 57a98fea6448ee3b306af9f0127cd764697100a3 /assets/js/editor.js | |
| parent | 49506af621b073a3acd1cd53d54771d0695108ee (diff) | |
bring back the 1.x files to master
Diffstat (limited to 'assets/js/editor.js')
| -rw-r--r-- | assets/js/editor.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/assets/js/editor.js b/assets/js/editor.js new file mode 100644 index 0000000..61e535d --- /dev/null +++ b/assets/js/editor.js @@ -0,0 +1,14 @@ +$(function() { + if($('#wmd-button-row').length>0){ + $('#wmd-button-row').append('<li class="wmd-spacer wmd-spacer1"></li><li class="wmd-button" id="wmd-owo-button" style="" title="插入表情"><span class="OwO"></span></li>'); + var owo = new OwO({ + logo: 'OωO', + container: document.getElementsByClassName('OwO')[0], + target: document.getElementById('text'), + api: '/usr/themes/Miracles/assets/OwO.json', + position: 'down', + width: '400px', + maxHeight: '250px' + }); + } +});
\ No newline at end of file |
