(editor: Editor & LegacyEditorMethods)
| 10 | jsxt; |
| 11 | |
| 12 | const withInlineVoid = (editor: Editor & LegacyEditorMethods) => { |
| 13 | const { isInline, isVoid } = editor; |
| 14 | |
| 15 | editor.isInline = (element) => element.type === 'img' || isInline(element); |
| 16 | editor.isVoid = (element) => element.type === 'img' || isVoid(element); |
| 17 | syncLegacyMethods(editor); |
| 18 | |
| 19 | return editor; |
| 20 | }; |
| 21 | |
| 22 | describe('deleteMerge', () => { |
| 23 | it('returns early when there is no selection and no explicit location', () => { |
no test coverage detected
searching dependent graphs…