Not sure why it crashes there. We load the current HTML and append a <script> containing the JavaScript to sync scrolling. I suppose the HTML of your page contains "something" that we cannot handle. If you can post the full HTML of your front-end I can have a look what makes it fail.
As a follow-up, judging from here this exception is thrown when your HTML has multiple root nodes. For example, if your HTML does not have 1 root like below:
<html>
<head></head>
<body></body>
</html>
But perhaps something like this:
<head></head>
<body></body>
Regardless, we can probably fix this but please do post your HTML so I can verify this hypothesis.
Yes this is probably the problem because I only had one view without calling Master and RenderBody(). I just wanted to test the package quick & dirty :). With the Master and RenderBody() it works as expected.
Preview-Error
Hi
Nice package!
I'm trying to get the sample block working... everything works except the preview. There I get the following error when I calling the API:
API-URL (/umbraco/backoffice/api/contentblockspreviewapi/GetPreviewForIframe?pageId=1062&culture=)
You know what I might have done wrong?
Thanks and best regards, Manuel
Hi Manuel,
Not sure why it crashes there. We load the current HTML and append a
<script>
containing the JavaScript to sync scrolling. I suppose the HTML of your page contains "something" that we cannot handle. If you can post the full HTML of your front-end I can have a look what makes it fail.As a follow-up, judging from here this exception is thrown when your HTML has multiple root nodes. For example, if your HTML does not have 1 root like below:
But perhaps something like this:
Regardless, we can probably fix this but please do post your HTML so I can verify this hypothesis.
Hi Daniël
Yes this is probably the problem because I only had one view without calling Master and RenderBody(). I just wanted to test the package quick & dirty :). With the Master and RenderBody() it works as expected.
Thanks for your support.
is working on a reply...