react-code-dataset
/
next.js
/examples
/cms-payload
/payload
/fields
/richText
/largeBody
/plugin.ts
| const withLargeBody = (incomingEditor) => { | |
| const editor = incomingEditor; | |
| const { shouldBreakOutOnEnter } = editor; | |
| editor.shouldBreakOutOnEnter = (element) => | |
| element.type === "large-body" ? true : shouldBreakOutOnEnter(element); | |
| return editor; | |
| }; | |
| export default withLargeBody; | |