BitBravo / reading-time-rich-text

Reading time plugin for contentful rich text field

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project was bootstrapped with Create Contentful App.

Reading Time field and sidebar extension for Contentful RichText

In the project directory, you can run:

npm start

Creates or updates your app definition in contentful, and runs the app in development mode. Open your app to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

Demo: https://www.loom.com/share/d5bab33027f1460487f3899e551c597e

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Libraries to use

  • npx @contentful/create-contentful-app create-definition
  • Goto contentful/Apps/Manage apps
  • Config new apps and install this apps into specific space.
  • Create new rich text field which named "body"
  • Create new JSON field which stores the reading time and set new application in the appearance.

If you udatae the body field in the editor, then it will caculate the reading times and updates the JSON field. Live App URL: https://reading-time-rich-text-contentful.netlify.app You can use this app directly.

Learn More

Read more and check out the video on how to use the CLI.

Create Contentful App uses Create React App. You can learn more in the Create React App documentation and how to further customize your app.

About

Reading time plugin for contentful rich text field


Languages

Language:TypeScript 89.9%Language:HTML 8.5%Language:CSS 1.6%