Open mgroth0 opened 7 years ago
I've encounter this too, I'm trying to use
{{$:/state/Calendar/PageLayout/create-tiddler||$:/core/ui/EditTemplate/body}}
in a modal created by
new TWModal($tw.wiki).display('$:/plugins/linonetwo/tw-calendar/calendar-widget/tiddlywiki-ui/CreateNewTiddlerPopup', { maskClosable: true });
I think in a modal, something is different...
step into createElement("iframe")
This is a browser api, you can't step into it.
This bug happened when edit-text widget has toolbar.
Thanks @linonetwo can you show a minimal test case to reproduce the error on tiddlywiki.com?
I tried to debug this myself quite a bit but fell short of understanding the dev tools and being able to investigate further.
Uncaught TypeError: Cannot read property 'document' of undefined
which made my wiki unresponsive.this.iframeDoc = this.iframeNode.contentWindow.document;
this.iframeNode.contentWindow
being undefinedcreateElement("iframe")
function that precedes the error by 2 lines. -- In my wiki, this brings me to line 278 of TiddlyWiki5/core/modules/utils/fakedom.jsreturn new TW_Element(tag);
-- In tiddlywiki.com, Chrome dev tools just jumps right over this function even when I use "step into".So that's the moment when I called it and gave up. My main question is this: Why can't I step into createElement("iframe") in tiddlywiki.com? You can see for yourself by putting a breakpoint on the lines I mentioned and editing any tiddler.