(doc: PmNode)
| 7 | import { inlineCssToJs } from '../utils/styles'; |
| 8 | |
| 9 | function hasContainerNode(doc: PmNode): boolean { |
| 10 | let found = false; |
| 11 | doc.forEach((node) => { |
| 12 | if (node.type.name === 'container') { |
| 13 | found = true; |
| 14 | } |
| 15 | }); |
| 16 | return found; |
| 17 | } |
| 18 | |
| 19 | function wrapInContainer(state: EditorState) { |
| 20 | const { doc } = state; |
no test coverage detected