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/[email protected]/alusBmoji
https://unpkg.com/@waline/[email protected]/bmojiBilibili
https://unpkg.com/@waline/[email protected]/bilibiliQQ
https://unpkg.com/@waline/[email protected]/qqTieba
https://unpkg.com/@waline/[email protected]/tiebaTwemoji
Emoji:
https://unpkg.com/@waline/[email protected]/tw-emoji
Others presets
Full: (Not recommended)
https://unpkg.com/@waline/[email protected]/twBody:
https://unpkg.com/@waline/[email protected]/tw-bodyFood:
https://unpkg.com/@waline/[email protected]/tw-foodNatural:
https://unpkg.com/@waline/[email protected]/tw-naturalObject:
https://unpkg.com/@waline/[email protected]/tw-objectSymbol:
https://unpkg.com/@waline/[email protected]/tw-symbolPeople:
https://unpkg.com/@waline/[email protected]/tw-peopleSport:
https://unpkg.com/@waline/[email protected]/tw-sportTime:
https://unpkg.com/@waline/[email protected]/tw-timeTravel:
https://unpkg.com/@waline/[email protected]/tw-travelWeather:
https://unpkg.com/@waline/[email protected]/tw-weatherFlag:
https://unpkg.com/@waline/[email protected]/tw-flag
Weibo
https://unpkg.com/@waline/[email protected]/weiboSoul knight Emoji
https://unpkg.com/@waline/[email protected]/soul-emoji
Warning
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@v3/dist/waline.js';
init({
el: '#waline',
serverURL: '<YOUR SERVER URL>',
// Set emoji to Weibo and Bmoji
emoji: [
'//unpkg.com/@waline/[email protected]/weibo',
'//unpkg.com/@waline/[email protected]/bmoji',
],
});
</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.
