(editor: Editor)
| 10 | describe('browser.tinymce.core.EditorViewTest', () => { |
| 11 | |
| 12 | const getEditorRect = (editor: Editor) => { |
| 13 | if (editor.inline) { |
| 14 | return editor.getBody().getBoundingClientRect(); |
| 15 | } else { |
| 16 | return SelectorFind.descendant(TinyDom.contentAreaContainer(editor), 'iframe') |
| 17 | .map((elm) => elm.dom.getBoundingClientRect()) |
| 18 | .getOrDie(); |
| 19 | } |
| 20 | }; |
| 21 | |
| 22 | const setBodyStyles = (editor: Editor, css: Record<string, string>) => { |
| 23 | Css.setAll(TinyDom.body(editor), css); |
no test coverage detected
searching dependent graphs…