emoji for tui.editor
<link rel="stylesheet" href="https://uicdn.toast.com/editor/3.2.1/toastui-editor.css" />
<style>
.editor-emoji-popup span {
display: inline-block;
font-size: 16px;
margin: 5px;
line-height: 1;
width: 16px;
text-align: center;
cursor: pointer;
}
</style>
<script src="https://uicdn.toast.com/editor/3.1.2/toastui-editor-all.min.js"></script>
<script src="https://erzh.github.io/tui.editor-emoji/lib/tui.editor-emoji.js"></script>
<div id="editor"></div>
<script>
const editor = new toastui.Editor({
el: document.querySelector('#editor'),
previewStyle: 'vertical',
toolbarItems: [
['heading', 'bold', 'italic', 'strike']
],
height: '500px',
});
// use emoji for tui.editor
useTuiEditorEmoji(editor)
</script>
emoji code from: https://unicode.org/emoji/charts/full-emoji-list.html