Skip to content

Commit

Permalink
🎊 Add: 通过 js 添加 owo 按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
BigCoke233 authored Mar 20, 2020
1 parent fc9e064 commit 7cbfae7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions assets/js/editor.js
Original file line number Diff line number Diff line change
@@ -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'
});
}
});

0 comments on commit 7cbfae7

Please sign in to comment.