Skip to content

Commit 15a674e

Browse files
author
Hephaistos_DE
committed
refactor(idecap-cms-widget-richtext): implementation of platejs.org from @demshy
- Applied implementation from https://github.com/poslovnimediji/decap-cms/tree/widget-richtext - Based on PR decaporg#7162
1 parent 022dbe5 commit 15a674e

File tree

68 files changed

+13724
-8364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+13724
-8364
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
node: {
6565
extensions: ['.js', '.jsx', '.ts', '.tsx'],
6666
},
67+
exports: {},
6768
},
6869
'import/core-modules': [...packages, 'decap-cms-app/dist/esm'],
6970
},

dev-test/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ collections: # A list of collections the CMS should be able to edit
4949
required: false
5050
tagname: ''
5151

52-
- { label: 'Body', name: 'body', widget: 'markdown', hint: 'Main content goes here.' }
52+
- { label: 'Body', name: 'body', widget: 'richtext', hint: 'Main content goes here.' }
53+
- { label: 'Body', name: 'bodyold', widget: 'markdown', hint: 'Main content goes here.' }
54+
- { label: 'Body', name: 'bodyold2', widget: 'markdown', hint: 'Main content goes here 2.' }
5355

5456
- name: 'restaurants' # Used in routes, ie.: /admin/collections/:slug/edit
5557
label: 'Restaurants' # Used in the UI

0 commit comments

Comments
 (0)