Emoji Customize
Less than 1 minute...
You can customize the emoji of the comment box by setting emoji option, you should set it to an array containing preset link or preset config object. If you don't want it, just set it to false.
Presets
Waline provides a series of emoji presets that can be used out of box. You can add them directly to the emoji options:
Alus
https://unpkg.com/@waline/emojis@1.1.0/alusBmoji
https://unpkg.com/@waline/emojis@1.1.0/bmojiBilibili
https://unpkg.com/@waline/emojis@1.1.0/bilibiliQQ
https://unpkg.com/@waline/emojis@1.1.0/qqTieba
https://unpkg.com/@waline/emojis@1.1.0/tiebaTwemoji
Emoji:
https://unpkg.com/@waline/emojis@1.1.0/tw-emoji
Others presets
Full: (Not recommended)
https://unpkg.com/@waline/emojis@1.1.0/twBody:
https://unpkg.com/@waline/emojis@1.1.0/tw-bodyFood:
https://unpkg.com/@waline/emojis@1.1.0/tw-foodNatural:
https://unpkg.com/@waline/emojis@1.1.0/tw-naturalObject:
https://unpkg.com/@waline/emojis@1.1.0/tw-objectSymbol:
https://unpkg.com/@waline/emojis@1.1.0/tw-symbolPeople:
https://unpkg.com/@waline/emojis@1.1.0/tw-peopleSport:
https://unpkg.com/@waline/emojis@1.1.0/tw-sportTime:
https://unpkg.com/@waline/emojis@1.1.0/tw-timeTravel:
https://unpkg.com/@waline/emojis@1.1.0/tw-travelWeather:
https://unpkg.com/@waline/emojis@1.1.0/tw-weatherFlag:
https://unpkg.com/@waline/emojis@1.1.0/tw-flag
Weibo
https://unpkg.com/@waline/emojis@1.1.0/weibo
Note
Waline DO NOT have any copyright of above emojis, use them at your own risk.
Example
<div id="waline"></div>
<script type="module">
import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs';
init({
el: '#waline',
serverURL: '<YOUR SERVER URL>',
// Set emoji to Weibo and Bilibili
emoji: [
'//unpkg.com/@waline/emojis@1.1.0/weibo',
'//unpkg.com/@waline/emojis@1.1.0/bilibili',
],
});
</script>
Create your own presets
Besides the presets provided by Waline, you can create your own presets, see Guide → Create Emoji Presets.
TIPS: The comment area is only for demo. If you have any questions, please go to Github Discussion to ask.






