konstantinmuenster / strapi-plugin-rich-text

A WYSIWYG editor for your rich text fields
MIT License
9 stars 3 forks source link

feat: #9 change the plugin name #21

Open SalahAdDin opened 3 months ago

SalahAdDin commented 3 months ago

What does it do?

It renames the plugin from the annoying and long strapi-plugin-rich-text to richtext-editor in the package strapi property. It does not affect the repository name, folder name, or plugin Id.

Why is it needed?

strapi-plugin-rich-text looks pretty ugly in the plugin configuration file and URLs. We chose richtext-editor so it is pretty clear what the plugin does in the plugin file or the URLs.

How to test it?

Just enable the plugin: plugin.ts:

export default {
  "richtext-editor": {
    enabled: true,
    resolve: "./node_modules/strapi-plugin-rich-text",
  },
};

And check the available routes:

pnpm strapi routes:list                   ✔ 

> strapi@0.1.0 strapi /media/Storage/Projects/Experiments/opensource/strapi-plugin-rich-text/apps/strapi
> strapi "routes:list"

├────────────────────┼─────────────────────────────────────────────────────────────────────────────────┤
│ HEAD|GET           │ /richtext-editor                                                                │
├────────────────────┼─────────────────────────────────────────────────────────────────────────────────┤

Notes