npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tinymce-china-emoticons-plugin

v1.0.2

Published

适用于TinyMCE v6的贴吧/抖音/B站表情插件。The famous web forums of China's emoticons plugin for TinyMCE v6.

Downloads

10

Readme

TinyMCE贴吧/抖音/B站表情插件

想要为你的论坛/博客/网站增加一点活力吗?(笑) 本插件收集了常用的一组贴吧/抖音/B站表情,可以让你的网站更加生动有趣。

安装和使用

在node中,使用以下代码安装并引入:

npm i tinymce-china-emoticons-plugin
import "tinymce"
import "tinymce-china-emoticons-plugin"

在浏览器环境中,直接使用以下代码引入(你亦可更换成其他你喜欢的CDN):

<script src="https://cdn.jsdelivr.net/npm/tinymce-china-emoticons-plugin"></script>

引入后,在tinymce.init中引入即可:

tinymce.init({
    selector: "textarea",
    plugins: ["china-emoticons"],
    toolbar: "china-emoticons",
});

配置项

你可设置表情插入到编辑器中的大小。默认的大小是80x80,你可更换成其他您喜欢的大小。

tinymce.init({
    selector: "textarea",
    plugins: ["china-emoticons"],
    toolbar: "china-emoticons",
    china_emoticons_insert_size: 25,
});

贡献指南

本项目需要你的协助以变得更好。具体来说,你可以考虑:

  • 优化插件对话框的排版。插件目前在表情数量不为4的整数倍时行为不佳。
  • 按照常用、热门等顺序重新排列表情的顺序。
  • 补充其他没有出现的常用表情。

表情的数据位于src/data.ts内,代码位于src/index.ts内。

请将表情图片托管到sm.ms或其他中国大陆可用之稳定图床。

本项目采用vitest进行测试。提交前,请确保测试已经通过。

声明

本仓库未持有亦未向公众分发其中出现的表情图片,且仓库中提供的表情图片链接均搜集于网络。仓库管理者提示,表情图片的一切权利属于其法定著作权人,本仓库并未授予您任意使用这些图片的权利和便利,亦不为可能的后果承担任何责任。使用本仓库即代表您同意以上声明。