Title formatter
Simple text editor that allows you to format your text with bold, italic, and underline styles.
Strapi plugin title formatter
This plugin is a simple text editor that allows you to format your text with bold, italic, and underline styles. It also provides a preview of the formatted text in both HTML and Markdown formats.
The project is forked from @SKLINET/strapi-plugin-bold-title-editor
✨ Features
- Different output options: choose between HTML and Markdown.
- Actions:
- accentuate certain parts (bold, italic, underline)
- preview code output
- clear text format
⏳ Installation
# Using NPM
npm install @davideddr/strapi-plugin-title-formatter
Then, you'll need to build your admin panel:
# Using Yarn
yarn build
# Or using NPM
npm run build
⚙️ Configuration
In the field settings, you can choose which type of formatting to enable.
🎉 Usage
HTML
React/Next.js
1<h1 dangerouslySetInnerHTML={{ __html: title }} />
2<h3><a href="#" dangerouslySetInnerHTML={{ __html: title }} /></h3>
Vue
1<h1 v-html="title" />
2<h3><a href="#" v-html="title" /></h3>
Markdown
React
1import ReactMarkdown from 'react-markdown'
2
3<ReactMarkdown children={title} />
Install now
npm install @davideddr/strapi-plugin-title-formatter
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.