Skip to main content

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:

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.