* Returns the iframes document object. * * @method getDoc * @return {Document} Iframe DOM document object.
()
| 1035 | * @return {Document} Iframe DOM document object. |
| 1036 | */ |
| 1037 | public getDoc(): Document { |
| 1038 | const self = this; |
| 1039 | |
| 1040 | if (!self.contentDocument) { |
| 1041 | const win = self.getWin(); |
| 1042 | |
| 1043 | if (win) { |
| 1044 | self.contentDocument = win.document; |
| 1045 | } |
| 1046 | } |
| 1047 | |
| 1048 | return self.contentDocument; |
| 1049 | } |
| 1050 | |
| 1051 | /** |
| 1052 | * Returns the root element of the editable area. |
no test coverage detected