-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: previewHtml
callback is not triggered
#422
Comments
Hi, Please let me know if you are passing in a "projectId" during initialization. Unlayer has just rolled out new billing plans and "Custom Preview" happens to be a paid feature now, if you are an old user and have an old workspace available you can still utilize the old "Free (Legacy)" plan feature sets. Make sure to create a new project in one of your old workspaces at console.unlayer.com, pass in the projectId within your editor, make sure to add your live domain to "Allowed Domains" list which you can find under project->settings->deployment. Let me know if this works |
This fixed it for me thank you 🙏 |
Hi @omerzahidbajwa, Is there any way to know if the previewing (no custom HTML needed) have completed since the callback won't be triggered? I have a custom button for users to trigger the previewing, and I want to hide the loading icons after the editor completes the task. Thank you! |
Hi, i am not sure if i understand your use case entirely but you can only access the previewHtml callback if its included within your plan, for now if you were using it previously to record if your users have triggered it you can still make use of it on a legacy projectId, make sure to add your live domain to the "Allowed Domains" list. I am not sure if theres any other way around that without the callback, you can always put your own custom event handlers and try to track the button clicks using vanilla javascript but it can be complicated. Didn't quiet get the loading icons part, a video might help. |
@omerzahidbajwa sorry for the confusion. Since I use RIght now I am using a backdrop to cover the whole "loading process" happens in the video, and use Much appreciated! Screen.Recording.2024-10-03.at.4.03.07.PM.mov |
Hi @omerzahidbajwa 👋 The issue came back even though I did set the |
can you ensure "Allowed Domains" is correctly set up |
The allowed domain settings seem to be correct, please ensure the projectId your passing is of a project on "Free (Legacy)" plan, any new projects would be on the new "Free" plan |
It is also set correctly. I did those changes last week and eveything went back to normal. When I spun up my app yesterday, without me changing anything, the issue came back 🤔 |
Where do I check whether my project is on the Thank you! |
I don't see that so I guess I am on the new Free plan, but this project's been there for quite some time now. Why would it be on the new Free plan? |
Hi @omerzahidbajwa , reiterating on my comment above, how come is my project on the new free plan and not on the legacy free plan? The project's been there long before the update came out. Also, in which plan is the previewHtml callback supported? Is it only the Optimize plan?? Thanks |
Hi, a few users have highlighted the issue, which is being actively worked on. It should be fixed very soon. The previewHtml call back comes under 'Custom Preview' entitlement (https://unlayer.com/pricing) as per the pricing page it should start from the 'Optimise' plan. |
Hello,
I am trying to preview the html using the editor's built in preview feature. I registered a callback for preview html this way I can use Mustache as a templating library.
It seems however that the callback is never called. It used to work a couple of days ago and now it doesn't (see screenshot below). In the the screenshot you can see that
[[firstName]]
is not being replaced by the appropriate data. I have updated theMustache
config to look for double square brackets rather than single curly brackets so this should work.Thank you!
The text was updated successfully, but these errors were encountered: