Skip to content
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

On adding new tab to editor I catch en error #43

Open
vlad-alt opened this issue Aug 12, 2020 · 6 comments
Open

On adding new tab to editor I catch en error #43

vlad-alt opened this issue Aug 12, 2020 · 6 comments
Labels

Comments

@vlad-alt
Copy link

vlad-alt commented Aug 12, 2020

Hi
I integrated survey-creator and survey-angular to my Angular app. For now I want to add my own tab to editor. I use this example https://surveyjs.io/Examples/Survey-Creator?id=tabscustomization&theme=bootstrap#content-js.
In .html code I added tab script (from example) before div where editor will be rendered. And I catch this error. Is it something specific for angular I should to write?
image

@vlad-alt
Copy link
Author

Want to add that tab is rendered but questions removed from pages on Designer Mode

@tsv2013
Copy link
Member

tsv2013 commented Aug 12, 2020

This error means that your template hasn't been found. The template id is wrong or the script block with the template down't exist in the page.

@vlad-alt
Copy link
Author

@tsv2013 thanks for answer. May be angular modal window doesn't see <script> tags.

@tsv2013
Copy link
Member

tsv2013 commented Aug 12, 2020

@vlad-alt don't think so. Most likely it's a typo. You can run "document.getElementById("your_id")" in console to check whether it exists

@vlad-alt
Copy link
Author

vlad-alt commented Aug 12, 2020

@tsv2013 I run this at Chrome Console, than add it to setInterval to wait for this script loaded. In both cases it is null.

@vlad-alt
Copy link
Author

@tsv2013 don't worry, I thought I didn't write something important that's why it doesn't work. I try to find another way to do this. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants