@crashbytes/contentful-richtext-editor 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/dist/index.esm.js +2113 -2140
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2112 -2139
- package/dist/index.js.map +1 -1
- package/package.json +27 -26
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ A modern, Tiptap-based rich text editor that's fully compatible with Contentful'
|
|
|
10
10
|
- ✅ **Extensible** - Built on Tiptap v2 for easy customization
|
|
11
11
|
- ✅ **Lightweight** - Tree-shakeable, only import what you need
|
|
12
12
|
- ✅ **Responsive** - Works on desktop and mobile devices
|
|
13
|
-
- ✅ **
|
|
13
|
+
- ✅ **Optional Border Control** - Customize editor appearance with `showBorder` prop _(New in v2.0.4)_
|
|
14
14
|
|
|
15
15
|
## 🚀 Installation
|
|
16
16
|
|
|
@@ -41,7 +41,7 @@ function App() {
|
|
|
41
41
|
placeholder="Start writing your content..."
|
|
42
42
|
onChange={handleChange}
|
|
43
43
|
initialValue={content}
|
|
44
|
-
showBorder={true} //
|
|
44
|
+
showBorder={true} // Optional: control border visibility
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
47
|
);
|
|
@@ -50,7 +50,7 @@ function App() {
|
|
|
50
50
|
export default App;
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
## 🎨 Border Control
|
|
53
|
+
## 🎨 Border Control (New in v2.0.4)
|
|
54
54
|
|
|
55
55
|
Control the editor's border appearance with the `showBorder` prop:
|
|
56
56
|
|
|
@@ -147,7 +147,7 @@ function ContentfulEditor() {
|
|
|
147
147
|
|
|
148
148
|
| Prop | Type | Default | Description |
|
|
149
149
|
|------|------|---------|-------------|
|
|
150
|
-
| `showBorder` | `boolean` | `true` | Control editor border visibility |
|
|
150
|
+
| `showBorder` | `boolean` | `true` | Control editor border visibility _(New in v2.0.4)_ |
|
|
151
151
|
| `initialValue` | `Document` | `undefined` | Initial Contentful rich text document |
|
|
152
152
|
| `onChange` | `(document: Document) => void` | `undefined` | Callback when content changes |
|
|
153
153
|
| `onEmbedEntry` | `() => Promise<any> \| void` | `undefined` | Callback for embedding Contentful entries |
|
|
@@ -323,9 +323,11 @@ MIT © [CrashBytes](https://github.com/CrashBytes)
|
|
|
323
323
|
|
|
324
324
|
## 📈 Version History
|
|
325
325
|
|
|
326
|
-
- **v2.0.4** - Added `showBorder` prop
|
|
327
|
-
- **v2.0.
|
|
328
|
-
- **
|
|
326
|
+
- **v2.0.4** - Added optional border control with `showBorder` prop
|
|
327
|
+
- **v2.0.3** - Package made publicly accessible
|
|
328
|
+
- **v2.0.2** - Previous release
|
|
329
|
+
- **v2.0.0** - Major feature update with automatic configuration
|
|
330
|
+
- **v1.x** - Initial releases
|
|
329
331
|
|
|
330
332
|
---
|
|
331
333
|
|