0.0.10 • Published 6 months ago

@samemichaeltadele/tiptap-editor v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@samemichaeltadele/tiptap-editor

A Strapi v5 plugin that integrates a tiptap rich text editor using reactjs-tiptap-editor as its foundation.

Features

  • Rich text editing capabilities powered by TipTap
  • Modern UI components from reactjs-tiptap-editor
  • Full compatibility with Strapi v5
  • Code block support with syntax highlighting
  • Typography extensions
  • Image zoom functionality
  • Dark mode support

Installation

npm install @samemichaeltadele/tiptap-editor

Configuration

  1. Enable the plugin in your Strapi configuration:
// config/plugins.js
module.exports = {
  'tiptap-editor': {
    enabled: true,
  }
};
  1. Add the field type to your content-type:
// content-types/your-content-type/schema.json
{
  "kind": "collectionType",
  "collectionName": "your_collection",
  "info": {
    "singularName": "your-content-type",
    "pluralName": "your-content-types",
    "displayName": "Your Content Type"
  },
  "options": {
    "draftAndPublish": true
  },
  "attributes": {
    "yourTtype": {
      "type": "customField",
      "customField": "plugin::tiptap-editor.tiptap-content"
    },
  }
}

You can also add the field from the content type builder under the custom tab on the field selection dialog

Dependencies

This plugin uses the following key dependencies:

Requirements

  • Strapi v5.x
  • Node.js 16.x or later
  • React 18.x

License

MIT

Author

@samemichaeltadele