Skip to content

Commit 9ecc71d

Browse files
committed
fix: re-add "Code" control button to editor
1 parent d9a65f8 commit 9ecc71d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

package-lock.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
"peerDependencies": {
4949
"react": "^16"
5050
},
51+
"engines": {
52+
"node": "<=16"
53+
},
5154
"scripts": {
5255
"start": "webpack-serve --static public --port 30081 --host 0.0.0.0",
5356
"build": "NODE_ENV=production webpack"

src/Control.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ export default class Control extends React.Component {
105105
'link',
106106
'image', // keep normal image quick tool
107107
imageGallery,
108+
'|',
108109
// 'preview', // preview is not needed in Netlify CMS
109110
// 'side-by-side',
110111
// 'fullscreen',
112+
'code',
111113
"|", // Separator
112114
'guide'
113115
]

0 commit comments

Comments
 (0)