Open h-yabi2 opened 4 months ago
公式ドキュメント:
https://www.npmjs.com/package/quill-emoji
import "quill-emoji/dist/quill-emoji.css";
const modules = useMemo(() => { return { toolbar: { container: "#toolbar", handlers: { popup: () => {}, emoji: () => {} }, }, ~ // ↓以下が入っていればひとまず表示は可能 "emoji-toolbar": true, "emoji-textarea": true, "emoji-shortname": true, }; }, []);
return ( <div> <div id="toolbar" className="fixed bottom-[100px] left-0 w-full bg-white z-20" > <span className="ql-formats"> <button className="ql-emoji"> <img src={qlEmoji.src} alt="" /> </button> </span> </div> <ReactQuill ref={quillRef} modules={modules} readOnly={true} theme="snow" onChange={handleOnChange} scrollingContainer="html" /> </div> );
https://www.awesomescreenshot.com/video/29120866?key=36fd7fc7ecdc77ff9a6c959a14b656c8
公式ドキュメント:
https://www.npmjs.com/package/quill-emoji
動作画面
https://www.awesomescreenshot.com/video/29120866?key=36fd7fc7ecdc77ff9a6c959a14b656c8