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

simple-tinymce-react

v1.0.6

Published

a simple tinymce template

Downloads

2

Readme

基于自定义的multi-react-webpack-cli脚手架 基于tinymce编辑器,对其进行基础样式修改,样式更简洁

步骤: 1.先使用multi-react-webpack-cli init xxx 实现本地初始化项目 2.在src目录下创建tinymce组件,同时新建index.tsx文件将tinymce组件导出 3.本地开发环境测试:可以创建一个app.tsx和index.html(跟默认模板的app createApp挂载一样), 本地执行yarn start即可以运行程序,并在浏览器查看程序是否正确 4.本地测试通过之后就要发布到npm了,首先对默认的webpack配置文件进行修改,output这里的 (filename: 'index.js', libraryTarget: 'commonjs2',)这两个属性进行修改,并执行yarn run build进行 打包(这里打包的目的就是将tsx/ts文件进行编译,编译成浏览器能识别的文件类型),修改package.json文件的main入口文件,将其设置为dist/index.js(组件在引用的时候main的值就是入口文件) 5.npm login/npm pulish

问题:静态文件路径问题 当前项目引用的skins.min.css是相对路径引用的,到了引用这个组件的项目中,变成了当前项目的相对路径,会导致404, 目前想到解决方案: 1.采用nginx对静态资源进行转发,即将静态资源放置到一个服务器上,但是每增加一个包的引用,就需要配置一个跨域访问 2.能不能从代码方面上进行解决?(可能性不大,因为tinymce对于skins.min.css的引用是封装了一层的,不是简单的引用某个路径)